mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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 --------------------
|
||||
|
||||
|
Reference in New Issue
Block a user