Skip to content

Commit

Permalink
Removes obsolete assert and renames a test
Browse files Browse the repository at this point in the history
  • Loading branch information
tjuerge committed Mar 19, 2024
1 parent 481e1fa commit f50fcaf
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void testRealms(String realm) {

@ParameterizedTest(name="username {0} has email {1}@ns-mail8.com")
@CsvSource({"dooj1,johndoo", "dooj2,janedoo", "dooj3,jimdoo"})
public void testAccessingUsersAsAdmin(String username, String email) {
public void testUsersWithGroups(String username, String email) {
Keycloak kcAdmin = KEYCLOAK_ENVIRONMENT.getAdminClient();
UsersResource usersResource = kcAdmin.realm(REALM).users();
// Get user representation for given username
Expand All @@ -86,7 +86,6 @@ public void testFullSync() {
// Trigger full sync of users and groups
SynchronizationResultRepresentation syncResult = realm.userStorage().syncUsers(storageProviderId, "triggerFullSync");
assertNotNull(syncResult);
assertEquals(102, syncResult.getAdded());
// Check groups hierarchy synced from Confluence
List<GroupRepresentation> groups = realm.groups().query("Page", true);
assertEquals(2, groups.size());
Expand Down

0 comments on commit f50fcaf

Please sign in to comment.