Skip to content
Snippets Groups Projects
Commit 7c4765ed authored by buczekp's avatar buczekp
Browse files

[LMS-1625] fixed expectations of authorization tests

SVN: 16933
parent bc9f81b6
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,8 @@ public class AuthorizationManagementConsolTest extends AbstractGWTTestCase
remoteConsole.prepare(new OpenRoleAssignmentDialog());
remoteConsole.prepare(FillRoleAssignmentForm.fillAuthorizationGroupRole(TEST_GROUP
.toUpperCase(), TestConstants.ADMINS_GROUP, RoleWithHierarchy.SPACE_OBSERVER.toString()));
.toUpperCase(), TestConstants.ADMINS_GROUP, RoleWithHierarchy.SPACE_OBSERVER
.toString()));
final CheckRoleAssignmentTable table = new CheckRoleAssignmentTable();
table.expectedRow(RoleAssignmentRow.authorizationGroupRoleRow(TEST_GROUP.toUpperCase(),
ADMINS_GROUP, RoleWithHierarchy.SPACE_OBSERVER.toString()));
......@@ -114,7 +115,7 @@ public class AuthorizationManagementConsolTest extends AbstractGWTTestCase
FailureExpectation failureExpectation =
new FailureExpectation(
(Class<? extends AsyncCallback<?>>) AbstractBrowserGrid.ListEntitiesCallback.class)
.with("Authorization failure: None of method roles '[INSTANCE.ADMIN]' "
.with("Authorization failure: None of method roles '[INSTANCE_ADMIN]' "
+ "could be found in roles of user 'o'.");
remoteConsole.prepare(failureExpectation);
......
......@@ -110,7 +110,7 @@ public class GenericSampleRegistrationTest extends AbstractGWTTestCase
FailureExpectation failureExpectation =
new FailureExpectation(GenericSampleRegistrationForm.RegisterSampleCallback.class)
.with("Authorization failure: None of method roles "
+ "'[SPACE.USER, SPACE.POWER_USER, SPACE.ADMIN, INSTANCE.ADMIN]' "
+ "'[INSTANCE_ADMIN, SPACE_ADMIN, SPACE_USER, SPACE_POWER_USER]' "
+ "could be found in roles of user 'observer'.");
remoteConsole.prepare(failureExpectation);
launchTest();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment