|
70 | 70 | import static org.labkey.test.util.PermissionsHelper.EDITOR_ROLE; |
71 | 71 | import static org.labkey.test.util.PermissionsHelper.FOLDER_ADMIN_ROLE; |
72 | 72 | import static org.labkey.test.util.PermissionsHelper.PROJECT_ADMIN_ROLE; |
| 73 | +import static org.labkey.test.util.PermissionsHelper.SEE_AUDIT_LOG_FOLDER_ROLE; |
| 74 | +import static org.labkey.test.util.PermissionsHelper.SEE_AUDIT_LOG_SITE_ROLE; |
73 | 75 |
|
74 | 76 | @Category({Daily.class, Hosting.class}) |
75 | 77 | @BaseWebDriverTest.ClassTimeout(minutes = 9) |
@@ -392,16 +394,16 @@ protected void canSeeAuditLogTest() |
392 | 394 | // Grant the "See Audit Log Events" folder role to our audit user in the project and verify we see audit |
393 | 395 | // information in this project but not /Home. We pass the fully qualified classnames in the next few calls to |
394 | 396 | // disambiguate the root role from the folder role. |
395 | | - permissionsHelper.addMemberToRole(AUDIT_TEST_USER, "org.labkey.api.security.roles.CanSeeAuditLogFolderRole", PermissionsHelper.MemberType.user, getProjectName()); |
| 397 | + permissionsHelper.addMemberToRole(AUDIT_TEST_USER, SEE_AUDIT_LOG_FOLDER_ROLE, PermissionsHelper.MemberType.user, getProjectName()); |
396 | 398 | impersonate(AUDIT_TEST_USER); |
397 | 399 | verifyAuditQueries(true, getProjectName()); |
398 | 400 | verifyAuditQueries(false, "Home"); |
399 | 401 | stopImpersonating(); |
400 | | - permissionsHelper.removeUserRoleAssignment(AUDIT_TEST_USER, "org.labkey.api.security.roles.CanSeeAuditLogFolderRole", getProjectName()); |
| 402 | + permissionsHelper.removeUserRoleAssignment(AUDIT_TEST_USER, SEE_AUDIT_LOG_FOLDER_ROLE, getProjectName()); |
401 | 403 |
|
402 | 404 | // Grant the "See Audit Log Events" root role to our audit user and verify we see audit information in this |
403 | 405 | // project and in /Home |
404 | | - permissionsHelper.setSiteRoleUserPermissions(AUDIT_TEST_USER, "org.labkey.api.security.roles.CanSeeAuditLogRole"); |
| 406 | + permissionsHelper.setSiteRoleUserPermissions(AUDIT_TEST_USER, SEE_AUDIT_LOG_SITE_ROLE); |
405 | 407 | impersonate(AUDIT_TEST_USER); |
406 | 408 | verifyAuditQueries(true, getProjectName()); |
407 | 409 | ExecuteQueryPage.beginAt(this, "Home", "auditLog", "SearchAuditEvent"); |
|
0 commit comments