From 3fcbfd0bceb2bf9d750a22826d9382abf2b1ace4 Mon Sep 17 00:00:00 2001 From: Lukas Hanusovsky Date: Fri, 10 Apr 2026 15:48:43 +0200 Subject: [PATCH] Fixing SSSD LoginPage and ApiUtil changes not propagated from recent base package updates. Signed-off-by: Lukas Hanusovsky --- .../keycloak/testsuite/sssd/AbstractBaseSSSDTest.java | 2 +- .../keycloak/testsuite/sssd/SSSDUserProfileTest.java | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/testsuite/integration-arquillian/tests/other/sssd/src/test/java/org/keycloak/testsuite/sssd/AbstractBaseSSSDTest.java b/testsuite/integration-arquillian/tests/other/sssd/src/test/java/org/keycloak/testsuite/sssd/AbstractBaseSSSDTest.java index ed784ad0703..3267a116020 100644 --- a/testsuite/integration-arquillian/tests/other/sssd/src/test/java/org/keycloak/testsuite/sssd/AbstractBaseSSSDTest.java +++ b/testsuite/integration-arquillian/tests/other/sssd/src/test/java/org/keycloak/testsuite/sssd/AbstractBaseSSSDTest.java @@ -73,7 +73,7 @@ public static void loadSSSDConfiguration() throws ConfigurationException { } protected void testLoginFailure(String username, String password) { - loginPage.open(); + oauth.openLoginForm(); loginPage.login(username, password); loginPage.assertCurrent(); Assert.assertEquals("Invalid username or password.", loginPage.getInputError()); diff --git a/testsuite/integration-arquillian/tests/other/sssd/src/test/java/org/keycloak/testsuite/sssd/SSSDUserProfileTest.java b/testsuite/integration-arquillian/tests/other/sssd/src/test/java/org/keycloak/testsuite/sssd/SSSDUserProfileTest.java index c728b2116ae..6c74a5d21bb 100644 --- a/testsuite/integration-arquillian/tests/other/sssd/src/test/java/org/keycloak/testsuite/sssd/SSSDUserProfileTest.java +++ b/testsuite/integration-arquillian/tests/other/sssd/src/test/java/org/keycloak/testsuite/sssd/SSSDUserProfileTest.java @@ -41,7 +41,7 @@ import org.keycloak.representations.userprofile.config.UPAttributeRequired; import org.keycloak.representations.userprofile.config.UPConfig; import org.keycloak.storage.UserStorageProvider; -import org.keycloak.testsuite.admin.ApiUtil; +import org.keycloak.testsuite.admin.AdminApiUtil; import org.keycloak.testsuite.pages.AppPage; import org.keycloak.testsuite.util.oauth.AccessTokenResponse; import org.keycloak.testsuite.util.WaitUtils; @@ -86,7 +86,7 @@ public void test02DefaultSSSDUserProfile() throws Exception { // default configuration adds all sssd attributes // check they are read-only in both admin and user for a SSSD user String username = getUsername(); - UserResource userResource = ApiUtil.findUserByUsernameId(testRealm(), username); + UserResource userResource = AdminApiUtil.findUserByUsernameId(testRealm(), username); UserRepresentation user = userResource.toRepresentation(true); // for admin the four should be read-only @@ -130,7 +130,7 @@ public void test02DefaultSSSDUserProfile() throws Exception { @Test public void test03DefaultInternalDBUserProfile() throws Exception { // check non sssd user has normal atttributes enabled - UserResource testResource = ApiUtil.findUserByUsernameId(testRealm(), "test-user@localhost"); + UserResource testResource = AdminApiUtil.findUserByUsernameId(testRealm(), "test-user@localhost"); UserRepresentation test = testResource.toRepresentation(true); // for admin the four should be editable @@ -180,7 +180,7 @@ public void test04MixedSSSDUserProfile() throws Exception { // for admin all attributes are added as read-only and postal_code remains editable String username = getUsername(); String sssdId = getSssdProviderId(); - UserResource userResource = ApiUtil.findUserByUsernameId(testRealm(), username); + UserResource userResource = AdminApiUtil.findUserByUsernameId(testRealm(), username); UserRepresentation user = userResource.toRepresentation(true); // first and last names are removed from the UP config (unmanaged) and are not available from the representation assertUser(user, username, getEmail(username), null, null, sssdId); @@ -231,7 +231,7 @@ public void test05MixedInternalDBUserProfile() throws Exception { createMixedUPConfiguration(); // for admin firstName and lastName remains removed, the rest editable - UserResource testResource = ApiUtil.findUserByUsernameId(testRealm(), "test-user@localhost"); + UserResource testResource = AdminApiUtil.findUserByUsernameId(testRealm(), "test-user@localhost"); UserRepresentation test = testResource.toRepresentation(true); assertUser(test, "test-user@localhost", "test-user@localhost", null, null, null); assertProfileAttributes(test, null, false, "username", "email", "postal_code");