From f400aacc683ed6caae3ddcc940b513b6a043c3c1 Mon Sep 17 00:00:00 2001 From: averevki Date: Tue, 7 May 2024 15:55:43 +0200 Subject: [PATCH] Setup default name and surname for keycloak user --- testsuite/oidc/rhsso/objects.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testsuite/oidc/rhsso/objects.py b/testsuite/oidc/rhsso/objects.py index efe6e2f5..0e38d9a5 100644 --- a/testsuite/oidc/rhsso/objects.py +++ b/testsuite/oidc/rhsso/objects.py @@ -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)