From 021245a33095c899ab1d9606016f7cd1b9e33a7f Mon Sep 17 00:00:00 2001 From: Dominik Date: Mon, 4 Oct 2021 13:54:22 +0200 Subject: [PATCH] KEYCLOAK-19463 fix PasswordPolicyTest for Quarkus --- .../servers/auth-server/quarkus/pom.xml | 15 +++++++++++++++ .../src/main/content/conf/keycloak.properties | 3 +++ .../testsuite/policy/PasswordPolicyTest.java | 1 - 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/testsuite/integration-arquillian/servers/auth-server/quarkus/pom.xml b/testsuite/integration-arquillian/servers/auth-server/quarkus/pom.xml index b57e59c22a..6ff8c7b7ad 100644 --- a/testsuite/integration-arquillian/servers/auth-server/quarkus/pom.xml +++ b/testsuite/integration-arquillian/servers/auth-server/quarkus/pom.xml @@ -128,6 +128,21 @@ + + add-pw-blacklist-file + process-resources + + copy-resources + + + ${auth.server.home}/dependency/password-blacklists + + + ${keycloak.base.test.resource}/password-blacklists + + + + diff --git a/testsuite/integration-arquillian/servers/auth-server/quarkus/src/main/content/conf/keycloak.properties b/testsuite/integration-arquillian/servers/auth-server/quarkus/src/main/content/conf/keycloak.properties index 3ece6fd9cb..feff5c4442 100644 --- a/testsuite/integration-arquillian/servers/auth-server/quarkus/src/main/content/conf/keycloak.properties +++ b/testsuite/integration-arquillian/servers/auth-server/quarkus/src/main/content/conf/keycloak.properties @@ -30,5 +30,8 @@ spi.user-profile.declarative-user-profile.admin-read-only-attributes=deniedSomeA #theme folders dir spi.theme.folder.dir=${kc.home.dir:}/themes +#password-blacklists path +spi.password-policy.password-blacklist.blacklists-path=${kc.home.dir:}/dependency/password-blacklists + # http client connection reuse settings spi.connections-http-client.default.reuse-connections=false \ No newline at end of file diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/policy/PasswordPolicyTest.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/policy/PasswordPolicyTest.java index bded338875..648232f37f 100755 --- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/policy/PasswordPolicyTest.java +++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/policy/PasswordPolicyTest.java @@ -166,7 +166,6 @@ public class PasswordPolicyTest extends AbstractKeycloakTest { * KEYCLOAK-5244 */ @Test - @AuthServerContainerExclude(value = AuthServer.QUARKUS, details = "test-password-blacklist.txt not in classpath") public void testBlacklistPasswordPolicyWithTestBlacklist() throws Exception { ContainerAssume.assumeNotAuthServerRemote();