KEYCLOAK-19463 fix PasswordPolicyTest for Quarkus
This commit is contained in:
parent
e5b05d05f0
commit
021245a330
3 changed files with 18 additions and 1 deletions
|
@ -128,6 +128,21 @@
|
||||||
</resources>
|
</resources>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</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>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
|
|
@ -30,5 +30,8 @@ spi.user-profile.declarative-user-profile.admin-read-only-attributes=deniedSomeA
|
||||||
#theme folders dir
|
#theme folders dir
|
||||||
spi.theme.folder.dir=${kc.home.dir:}/themes
|
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
|
# http client connection reuse settings
|
||||||
spi.connections-http-client.default.reuse-connections=false
|
spi.connections-http-client.default.reuse-connections=false
|
|
@ -166,7 +166,6 @@ public class PasswordPolicyTest extends AbstractKeycloakTest {
|
||||||
* KEYCLOAK-5244
|
* KEYCLOAK-5244
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
@AuthServerContainerExclude(value = AuthServer.QUARKUS, details = "test-password-blacklist.txt not in classpath")
|
|
||||||
public void testBlacklistPasswordPolicyWithTestBlacklist() throws Exception {
|
public void testBlacklistPasswordPolicyWithTestBlacklist() throws Exception {
|
||||||
|
|
||||||
ContainerAssume.assumeNotAuthServerRemote();
|
ContainerAssume.assumeNotAuthServerRemote();
|
||||||
|
|
Loading…
Reference in a new issue