8000 Rewrite AssertEvents expectLogout and expectLogoutError into EventAssertion methods. by lhanusov · Pull Request #48638 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Rewrite AssertEvents expectLogout and expectLogoutError into EventAssertion methods. - #48638

Merged
stianst merged 1 commit into
keycloak:mainfrom
lhanusov:48620
May 6, 2026
Merged

stianst merged 1 commit into
keycloak:mainfrom
lhanusov:48620

Conversation

@lhanusov
Copy link
Copy Markdown
Contributor

Closes #48620

@lhanusov lhanusov self-assigned this Apr 30, 2026
@lhanusov lhanusov added the area/test-framework Test framework — infrastructure, Realm DSL, page objects, migration utils label Apr 30, 2026
@lhanusov
lhanusov requested review from stianst and vaceksimon April 30, 2026 14:49
@lhanusov
lhanusov marked this pull request as ready for review May 4, 2026 10:57
@lhanusov
lhanusov requested review from a team as code owners May 4, 2026 10:57
@lhanusov
lhanusov force-pushed the 48620 branch 3 times, most recently from bf416ac to 4a08aab Compare May 4, 2026 12:58
@stianst stianst self-assigned this May 4, 2026
events.expectLogout(offlineSession.getSessionId())
.detail(Details.LOGOUT_TRIGGERED_BY_REQUIRED_ACTION, RequiredAction.UPDATE_PASSWORD.name())
.assertEvent();
EventRepresentation eventRep = events.poll();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should skip a fixed number of events, and not do a loop

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this comment, I've decided to fix the test rather then adding a skip loop.

@stianst stianst left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor thing to change; don't use a loop, but instead skip X events

…ertion methods.

Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>
@stianst
stianst merged commit ba108b0 into keycloak:main May 6, 2026
86 checks passed
@stianst stianst mentioned this pull request Jun 1, 2026
sashyo pushed a commit to tide-foundation/keycloak-IGA that referenced this pull request Jul 20, 2026
…ertion methods. (keycloak#48638)

Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/test-framework Test framework — infrastructure, Realm DSL, page objects, migration utils team/cloud-native team/core-clients team/core-iam

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rewrite expectLogout and expectLogoutError to new methods in EventAssertion

2 participants

0