From a5b5e78eba043cdfd76d0e07015caa470693fbdb Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Wed, 28 Sep 2016 14:16:07 -0300 Subject: [PATCH] Inclusion of test to check the federation provider list when SSSD is enabled --- .../test/java/org/keycloak/testsuite/sssd/SSSDTest.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/testsuite/integration-arquillian/tests/other/sssd/src/test/java/org/keycloak/testsuite/sssd/SSSDTest.java b/testsuite/integration-arquillian/tests/other/sssd/src/test/java/org/keycloak/testsuite/sssd/SSSDTest.java index 81ffa988d3..b11d5e43b4 100644 --- a/testsuite/integration-arquillian/tests/other/sssd/src/test/java/org/keycloak/testsuite/sssd/SSSDTest.java +++ b/testsuite/integration-arquillian/tests/other/sssd/src/test/java/org/keycloak/testsuite/sssd/SSSDTest.java @@ -6,6 +6,7 @@ import org.junit.Rule; import org.junit.Test; import org.keycloak.representations.idm.GroupRepresentation; import org.keycloak.representations.idm.RealmRepresentation; +import org.keycloak.representations.idm.UserFederationProviderFactoryRepresentation; import org.keycloak.representations.idm.UserFederationProviderRepresentation; import org.keycloak.representations.idm.UserRepresentation; import org.keycloak.testsuite.AbstractKeycloakTest; @@ -71,6 +72,12 @@ public class SSSDTest extends AbstractKeycloakTest { adminClient.realm(REALM_NAME).userFederation().create(userFederation); } + @Test + public void testProviderFactories() { + List providerFactories = adminClient.realm(REALM_NAME).userFederation().getProviderFactories(); + Assert.assertNames(providerFactories, "ldap", "kerberos", "dummy", "dummy-configurable", "sssd"); + } + @Test public void testWrongUser() { log.debug("Testing wrong password for user " + USERNAME);