I’m an expat living in Ecuador for 7 years, and I have gone through all the processes to become a legal resident. Never have I been asked to submit any medical test results, let alone an HIV test, to change migratory categories (from temporary to permanent resident status, for instance). There are no restrictions whatsoever for people living with HIV here. Actually, once you’re a resident (temporary or permanent) you can access free medical care paid by the government and HIV treatment is part of that.