Merged BRANCHES\DEV\AUTH_BRIDGE to HEAD

43735: Final part of ALF-14861 	SOLR to scale for non-admin users in 100k sites and a subgroup of each of 1000 independent groupings with 1000 subgroups 


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@44243 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrew Hind
2012-12-03 11:39:36 +00:00
parent 5a512655e6
commit d4e4455229
16 changed files with 2158 additions and 34 deletions

View File

@@ -944,21 +944,21 @@ public class SiteServiceTestHuge
// allocateUsersToGroups(NUM_USERS, NUM_GROUPS, Allocation.ALL_TO_EACH);
// }
// @Test
// public void testInit() throws Exception
// {
// createUsers(NUM_USERS);
// createGroups(NUM_GROUPS);
// allocateUsersToGroups(NUM_USERS, NUM_GROUPS, Allocation.ALL_TO_EACH);
//
// createSites(NUM_SITES, NUM_USERS, 0, OnFailure.KEEP_GOING);
//
// int blockSize = 10;
// for (int siteId = getNextSiteToAddGroupTo(1); siteId <= NUM_SITES; siteId += blockSize)
// {
// allocateGroupToSite(siteId, NUM_USERS, ADMIN_USER, OnFailure.KEEP_GOING, blockSize);
// }
// }
@Test
public void testInit() throws Exception
{
createUsers(NUM_USERS);
createGroups(NUM_GROUPS);
allocateUsersToGroups(NUM_USERS, NUM_GROUPS, Allocation.ALL_TO_EACH);
createSites(NUM_SITES, NUM_USERS, 0, OnFailure.KEEP_GOING);
int blockSize = 10;
for (int siteId = getNextSiteToAddGroupTo(1); siteId <= NUM_SITES; siteId += blockSize)
{
allocateGroupToSite(siteId, NUM_USERS, ADMIN_USER, OnFailure.KEEP_GOING, blockSize);
}
}
// ------------------ Test to load data from cmd line --------------------