Skip to content

Commit

Permalink
Merge pull request Kuadrant#389 from averevki/keycloak-verify-account
Browse files Browse the repository at this point in the history
Setup default name and surname for keycloak user
  • Loading branch information
pehala authored May 9, 2024
2 parents 04c96a5 + f400aac commit 665a629
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testsuite/oidc/rhsso/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ def create_user(self, username, password, **kwargs):
"""Creates new user"""
kwargs["username"] = username
kwargs["enabled"] = True
kwargs.setdefault("firstName", "John")
kwargs.setdefault("lastName", "Doe")
kwargs.setdefault("email", f"{username}@anything.invalid")
self.admin.create_user(kwargs)
user_id = self.admin.get_user_id(username)
Expand Down

0 comments on commit 665a629

Please sign in to comment.