mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.1 to HEAD
13256: Fix ETHREEOH-1221 Hard-coded use of "admin" username ___________________________________________________________________ Modified: svn:mergeinfo Merged /alfresco/BRANCHES/V3.1:r13256 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13613 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -76,7 +76,7 @@ public class AbstractWCMServiceImplTest extends TestCase
|
||||
protected static final boolean TEST_WEBPROJ_DONT_USE_AS_TEMPLATE = false;
|
||||
|
||||
// base web users
|
||||
protected static final String USER_ADMIN = "admin";
|
||||
//protected static final String USER_ADMIN = "admin";
|
||||
|
||||
protected static final String TEST_USER = "testWebUser-"+TEST_RUN;
|
||||
|
||||
@@ -106,7 +106,7 @@ public class AbstractWCMServiceImplTest extends TestCase
|
||||
transactionService = (TransactionService)ctx.getBean("TransactionService");
|
||||
|
||||
// By default run as Admin
|
||||
AuthenticationUtil.setFullyAuthenticatedUser(USER_ADMIN);
|
||||
AuthenticationUtil.setFullyAuthenticatedUser(AuthenticationUtil.getAdminUserName());
|
||||
|
||||
createUser(USER_ONE);
|
||||
createUser(USER_TWO);
|
||||
@@ -120,7 +120,7 @@ public class AbstractWCMServiceImplTest extends TestCase
|
||||
if (CLEAN)
|
||||
{
|
||||
// Switch back to Admin
|
||||
AuthenticationUtil.setFullyAuthenticatedUser(USER_ADMIN);
|
||||
AuthenticationUtil.setFullyAuthenticatedUser(AuthenticationUtil.getAdminUserName());
|
||||
|
||||
List<WebProjectInfo> webProjects = wpService.listWebProjects();
|
||||
for (final WebProjectInfo wpInfo : webProjects)
|
||||
|
Reference in New Issue
Block a user