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:
Douglas Palmer 2024-09-30 09:38:10 -07:00 committed by GitHub
parent c682536dae
commit b5e282648f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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