Added full scope to app in JaxrsBasicAuthTest
This commit is contained in:
1 parent
8e01f8ecf1
commit
e069f303a4
1 file changed
+2
-3
+2
-3
@@ -47,6 +47,7 @@ public class JaxrsBasicAuthTest {
|
||||
ApplicationModel app = appRealm.addApplication("jaxrs-app");
|
||||
app.setEnabled(true);
|
||||
app.setSecret("password");
|
||||
app.setFullScopeAllowed(true);
|
||||
|
||||
JaxrsBasicAuthTest.appRealm = appRealm;
|
||||
}
|
||||
@@ -122,9 +123,7 @@ public class JaxrsBasicAuthTest {
|
||||
.get(JaxrsTestResource.SimpleRepresentation.class);
|
||||
Assert.assertEquals("get", getRep.getMethod());
|
||||
|
||||
// TODO: SHOULD HAVE USER ROLE
|
||||
//Assert.assertTrue(getRep.getHasUserRole());
|
||||
|
||||
Assert.assertTrue(getRep.getHasUserRole());
|
||||
Assert.assertFalse(getRep.getHasAdminRole());
|
||||
Assert.assertFalse(getRep.getHasJaxrsAppRole());
|
||||
// Assert that principal is ID of user (should be in UUID format)
|
||||
|
||||
Reference in new issue
Block a user