From 39f93dfa335394013cecb2a7f076ee18f84124b5 Mon Sep 17 00:00:00 2001 From: Bill Burke Date: Wed, 21 Mar 2018 10:01:40 -0400 Subject: [PATCH] fix providers test --- .../testsuite/admin/authentication/ProvidersTest.java | 2 +- .../test/java/org/keycloak/testsuite/cli/KcinitTest.java | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/admin/authentication/ProvidersTest.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/admin/authentication/ProvidersTest.java index 2642a11ef7..e5d9471406 100644 --- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/admin/authentication/ProvidersTest.java +++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/admin/authentication/ProvidersTest.java @@ -146,7 +146,7 @@ public class ProvidersTest extends AbstractAuthenticationTest { "Validates a username and password from login form."); addProviderInfo(result, "auth-x509-client-username-form", "X509/Validate Username Form", "Validates username and password from X509 client certificate received as a part of mutual SSL handshake."); - addProviderInfo(result, "cli-username-password", "Username Password Challenge", + addProviderInfo(result, "console-username-password", "Username Password Challenge", "Proprietary challenge protocol for CLI clients that queries for username password"); addProviderInfo(result, "direct-grant-auth-x509-username", "X509/Validate Username", "Validates username and password from X509 client certificate received as a part of mutual SSL handshake."); diff --git a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/cli/KcinitTest.java b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/cli/KcinitTest.java index 21cbc90c09..0884d7a9ba 100644 --- a/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/cli/KcinitTest.java +++ b/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/cli/KcinitTest.java @@ -135,6 +135,10 @@ public class KcinitTest extends AbstractTestRealmKeycloakTest { user = session.users().addUser(realm, "wburke"); session.userCredentialManager().updateCredential(realm, user, UserCredentialModel.password("password")); user.setEnabled(true); + user = session.users().addUser(realm, "tbrady"); + session.userCredentialManager().updateCredential(realm, user, UserCredentialModel.password("password")); + user.setEnabled(true); + user.addRequiredAction(UserModel.RequiredAction.UPDATE_PASSWORD); }); } @@ -157,7 +161,7 @@ public class KcinitTest extends AbstractTestRealmKeycloakTest { }); - Thread.sleep(10000000); + Thread.sleep(100000000); } @Test