Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Wait for the brute force off-thread processing in AbstractAdvancedBrokerTest#31385

Merged
mposolda merged 1 commit intokeycloak:mainfrom
rmartinc:issue-30641
Jul 18, 2024
Merged

Wait for the brute force off-thread processing in AbstractAdvancedBrokerTest#31385
mposolda merged 1 commit intokeycloak:mainfrom
rmartinc:issue-30641

Conversation

@rmartinc
Copy link
Contributor

Closes #30188
Closes #30641

The brute force works off-thread so the disable can delay a bit. Usually it's fast and it's executed before the next login but it seems that sometimes the race can be won by the next login. Just using the the event to be sure the brute force processing was executed. A new method waits for the event to come up to N seconds.

I tested 60 times here https://github.com/rmartinc/keycloak/actions/runs/9973832926. I executed the two tests (KcSamlBrokerTest and KcOidcBrokerTest) in a for loop 30 times, and I repeated the CI run. I think 60 times without issues is enough.

@mposolda mposolda merged commit 5ea3bec into keycloak:main Jul 18, 2024
@ahus1
Copy link
Member

ahus1 commented Jul 18, 2024

@rmartinc - may I ask you to backport this to KC24 + KC25 to have stable tests in those branches as well? Possibly KC22 would be too much, I leave that up to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

3 participants