Fix PasswordPolicyTest stability
This commit is contained in:
parent
244848afc4
commit
ce996f6a41
1 changed files with 0 additions and 3 deletions
|
@ -32,7 +32,6 @@ import static org.keycloak.testsuite.console.page.authentication.PasswordPolicy.
|
||||||
* @author Petr Mensik
|
* @author Petr Mensik
|
||||||
* @author mhajas
|
* @author mhajas
|
||||||
*/
|
*/
|
||||||
//@Ignore // FIXME still unstable
|
|
||||||
public class PasswordPolicyTest extends AbstractConsoleTest {
|
public class PasswordPolicyTest extends AbstractConsoleTest {
|
||||||
|
|
||||||
@Page
|
@Page
|
||||||
|
@ -67,7 +66,6 @@ public class PasswordPolicyTest extends AbstractConsoleTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testLengthPolicy() {
|
public void testLengthPolicy() {
|
||||||
|
|
||||||
RealmRepresentation realm = testRealmResource().toRepresentation();
|
RealmRepresentation realm = testRealmResource().toRepresentation();
|
||||||
realm.setPasswordPolicy("length(8) and ");
|
realm.setPasswordPolicy("length(8) and ");
|
||||||
testRealmResource().update(realm);
|
testRealmResource().update(realm);
|
||||||
|
@ -154,7 +152,6 @@ public class PasswordPolicyTest extends AbstractConsoleTest {
|
||||||
public void testRegexPatternsPolicy() {
|
public void testRegexPatternsPolicy() {
|
||||||
RealmRepresentation realm = testRealmResource().toRepresentation();
|
RealmRepresentation realm = testRealmResource().toRepresentation();
|
||||||
realm.setPasswordPolicy("regexPattern(^[A-Z]+#[a-z]{8}$) and ");
|
realm.setPasswordPolicy("regexPattern(^[A-Z]+#[a-z]{8}$) and ");
|
||||||
System.out.println(realm.getPasswordPolicy());
|
|
||||||
testRealmResource().update(realm);
|
testRealmResource().update(realm);
|
||||||
|
|
||||||
testUserCredentialsPage.navigateTo();
|
testUserCredentialsPage.navigateTo();
|
||||||
|
|
Loading…
Reference in a new issue