8000 Fix UserConfigBuilder usage by vaceksimon · Pull Request #41794 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void createRealmWithValidConsoleUris() throws Exception {
.username("new-realm-admin")
.name("new-realm-admin", "new-realm-admin")
.email("new-realm-admin@keycloak.org")
.emailVerified()
.emailVerified(true)
.password("password")
.clientRoles(Constants.REALM_MANAGEMENT_CLIENT_ID, AdminRoles.REALM_ADMIN)
.build()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void pushNotBeforeWithSamlApp() throws InterruptedException {
public void logoutAll() throws InterruptedException {
setupTestAppAndUser();

Response response = managedRealm.admin().users().create(UserConfigBuilder.create().username("user").name("User", "Name").email("user@name").emailVerified().build());
Response response = managedRealm.admin().users().create(UserConfigBuilder.create().username("user").name("User", "Name").email("user@name").emailVerified(true).build());
String userId = ApiUtil.getCreatedId(response);
response.close();
AdminEventAssertion.assertEvent(adminEvents.poll(), OperationType.CREATE, AdminEventPaths.userResourcePath(userId), ResourceType.USER);
Expand Down Expand Up @@ -215,7 +215,7 @@ private void setupTestAppAndUser() {

oauth.client("test-app-new", "secret");

UserRepresentation userRep = UserConfigBuilder.create().username("testuser").name("Test", "User").email("test@user").emailVerified().build();
UserRepresentation userRep = UserConfigBuilder.create().username("testuser").name("Test", "User").email("test@user").emailVerified(true).build();
Response response = managedRealm.admin().users().create(userRep);
String userId = ApiUtil.getCreatedId(response);
response.close();
Expand Down
0