Merged 5.2.N (5.2.1) to HEAD (5.2)

129180 mmuller: Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)
      128642 jvonka: V1 REST API: cleanup and rationalise new api tests (re: remotable helpers & runAs user / admin) - round 5b
      - fix test fallout
      REPO-113


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@129354 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alexandru Epure
2016-08-09 14:14:36 +00:00
parent 14b303bbca
commit d4af90d5ab
5 changed files with 85 additions and 38 deletions

View File

@@ -481,6 +481,23 @@ public class RepoService
});
}
protected void deleteUser(final String username, final TestNetwork network)
{
AuthenticationUtil.runAsSystem(new RunAsWork<TestPerson>()
{
@Override
public TestPerson doWork() throws Exception
{
if (personService.personExists(username))
{
authenticationService.deleteAuthentication(username);
personService.deletePerson(username);
}
return null;
}
});
}
public TestSite createSite(TestNetwork network, final SiteInformation site)
{
SiteInfo siteInfo = null;