mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged API-STRIKES-BACK (5.2.0) to HEAD (5.2)
127330 amukha: RA-941: V1 REST API Tests: rationalise the test startup - eg. only create test data when needed ;-) - Added checks to defer test data creation until it is required. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@127601 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1322,12 +1322,12 @@ public class RepoService
|
||||
|
||||
public void create()
|
||||
{
|
||||
if(!getId().equals(TenantService.DEFAULT_DOMAIN))
|
||||
if(!getId().equals(TenantService.DEFAULT_DOMAIN) && !tenantAdminService.existsTenant(getId()))
|
||||
{
|
||||
tenantAdminService.createTenant(getId(), "admin".toCharArray());
|
||||
numNetworks++;
|
||||
log("Created network " + getId());
|
||||
}
|
||||
numNetworks++;
|
||||
log("Created network " + getId());
|
||||
}
|
||||
|
||||
public TestSite createSite(SiteVisibility siteVisibility)
|
||||
|
Reference in New Issue
Block a user