KEYCLOAK-19463 fix PasswordPolicyTest for Quarkus

This commit is contained in:
Dominik 2021-10-04 13:54:22 +02:00 committed by Pedro Igor
parent e5b05d05f0
commit 021245a330
3 changed files with 18 additions and 1 deletions

View file

@ -128,6 +128,21 @@
</resources>
</configuration>
</execution>
<execution>
<id>add-pw-blacklist-file</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${auth.server.home}/dependency/password-blacklists</outputDirectory>
<resources>
<resource>
<directory>${keycloak.base.test.resource}/password-blacklists</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>

View file

@ -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

View file

@ -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();