adding test code

Closes #20783
This commit is contained in:
eatik 2023-06-23 09:05:21 -05:00 committed by Pedro Igor
parent 0cc464695e
commit 7cfa012427

View file

@ -1670,6 +1670,16 @@ public class PermissionsTest extends AbstractKeycloakTest {
clients.get(AdminRoles.QUERY_USERS).realm(REALM_NAME).clients().findAll();
}
}, clients.get(AdminRoles.QUERY_USERS), true);
invoke(new Invocation() {
public void invoke(RealmResource realm) {
clients.get(AdminRoles.VIEW_USERS).realm(REALM_NAME).users().get(user.getId()).getConfiguredUserStorageCredentialTypes();
}
}, clients.get(AdminRoles.VIEW_USERS), true);
invoke(new Invocation() {
public void invoke(RealmResource realm) {
clients.get(AdminRoles.QUERY_USERS).realm(REALM_NAME).users().get(user.getId()).getConfiguredUserStorageCredentialTypes();
}
}, clients.get(AdminRoles.QUERY_USERS), true);
}
@Test