org.keycloak.testsuite.forms.BruteForceTest#testRaceAttackPermanentLockout (#32701)
* org.keycloak.testsuite.forms.BruteForceTest#testRaceAttackPermanentLockout Closes #32256 Signed-off-by: Douglas Palmer <dpalmer@redhat.com> Signed-off-by: Marek Posolda <mposolda@gmail.com> Co-authored-by: Marek Posolda <mposolda@gmail.com>
This commit is contained in:
parent
c682536dae
commit
b5e282648f
1 changed files with 1 additions and 1 deletions
|
@ -881,7 +881,7 @@ public class BruteForceTest extends AbstractTestRealmKeycloakTest {
|
||||||
threads[i].join();
|
threads[i].join();
|
||||||
}
|
}
|
||||||
int invalidCount = (int) adminClient.realm("test").attackDetection().bruteForceUserStatus(user.getId()).get("numFailures");
|
int invalidCount = (int) adminClient.realm("test").attackDetection().bruteForceUserStatus(user.getId()).get("numFailures");
|
||||||
assertTrue("Invalid count should be less than or equal 2 but was: " + invalidCount, invalidCount <= 2);
|
assertTrue("Invalid count should be less than or equal 3 but was: " + invalidCount, invalidCount <= 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
public class LoginThread extends Thread {
|
public class LoginThread extends Thread {
|
||||||
|
|
Loading…
Reference in a new issue