Skip to content

Test cases migration: userSessionLimits - #51231

Draft
ruchikajha95 wants to merge 5 commits into
keycloak:mainfrom
ruchikajha95:feature-47811/sessionlimits-package
Draft

Test cases migration: userSessionLimits#51231
ruchikajha95 wants to merge 5 commits into
keycloak:mainfrom
ruchikajha95:feature-47811/sessionlimits-package

Conversation

@ruchikajha95

Copy link
Copy Markdown
Contributor

This PR covers the migration of the test cases from old test suits to the new test suit.

The focus was to migrate the userSessionLimits : https://github.com/keycloak/keycloak/tree/main/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/sessionlimits

Closes #47811

Signed-off-by: Ruchika ruchika.jha1@ibm.com

@keycloak-github-bot keycloak-github-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unreported flaky test detected, please review

@keycloak-github-bot

Copy link
Copy Markdown

Unreported flaky test detected

If the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR.

org.keycloak.testsuite.federation.ldap.LDAPUserLoginTest#loginLDAPUserCredentialVaultAuthenticationSimpleEncryptionStartTLS

Keycloak CI - Java Distribution IT (windows-latest - temurin - 17)

org.openqa.selenium.TimeoutException: 
java.net.SocketTimeoutException: Read timed out
Build info: version: '4.28.1', revision: '73f5ad48a2'
System info: os.name: 'Windows Server 2025', os.arch: 'amd64', os.version: '10.0', java.version: '17.0.19'
Driver info: driver.version: HtmlUnitDriver
...

Report flaky test

@ruchikajha95
ruchikajha95 force-pushed the feature-47811/sessionlimits-package branch from 1007814 to d03f5fd Compare August 5, 2026 10:37
@keycloak-github-bot

Copy link
Copy Markdown

Unreported flaky test detected

If the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR.

org.keycloak.testsuite.webauthn.registration.AuthAttachmentRegisterTest#authenticatorAttachmentPlatform

Keycloak CI - WebAuthn IT

org.openqa.selenium.WebDriverException: 
unknown error: unhandled inspector error: {"code":-32000,"message":"Node with given id does not belong to the document"}
  (Session info: chrome=150.0.7871.128)
Build info: version: '4.28.1', revision: '73f5ad48a2'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: '6.17.0-1020-azure', java.version: '25.0.3'
...

Report flaky test

@keycloak-github-bot keycloak-github-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unreported flaky test detected, please review

@ruchikajha95
ruchikajha95 force-pushed the feature-47811/sessionlimits-package branch from 4e318fa to 6377907 Compare August 6, 2026 09:43
Closes keycloak#47811

Signed-off-by: Ruchika <ruchika.jha1@ibm.com>
Closes keycloak#47811

Signed-off-by: Ruchika <ruchika.jha1@ibm.com>
Closes keycloak#47811

Signed-off-by: Ruchika <ruchika.jha1@ibm.com>
Closes keycloak#47811

Signed-off-by: Ruchika <ruchika.jha1@ibm.com>
@ruchikajha95
ruchikajha95 force-pushed the feature-47811/sessionlimits-package branch from 693d7cb to d99b189 Compare August 6, 2026 18:55
@ruchikajha95
ruchikajha95 requested review from ahus1, pruivo and ryanemerson and a balanced review from Copilot August 7, 2026 08:45

Copilot AI 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.

Pull request overview

Migrates user-session-limit broker tests from the legacy Arquillian suite to the new test framework.

Changes:

  • Adds OIDC and SAML broker session-limit tests and shared flow utilities.
  • Adds an IdP profile-review page object with configurable page-wait timeout.
  • Removes migrated tests from the legacy suite.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
testsuite/.../volatile-sessions-suite Removes obsolete exclusions.
testsuite/.../clusterless-suite Removes obsolete exclusions.
testsuite/.../base-suite Removes the migrated package.
testsuite/.../sessionlimits/UserSessionLimitsUtil.java Removes legacy utility.
testsuite/.../sessionlimits/KcSamlUserSessionLimitsBrokerTest.java Removes legacy SAML test.
testsuite/.../sessionlimits/KcOidcUserSessionLimitsBrokerTest.java Removes legacy OIDC test.
testsuite/.../sessionlimits/AbstractUserSessionLimitsBrokerTest.java Removes legacy shared test base.
tests/base/.../sessionlimits/UserSessionLimitsUtil.java Adds post-broker flow helpers.
tests/base/.../sessionlimits/KcSamlUserSessionLimitsBrokerTest.java Adds migrated SAML coverage.
tests/base/.../sessionlimits/KcOidcUserSessionLimitsBrokerTest.java Adds migrated OIDC coverage.
test-framework/ui/.../WaitUtils.java Supports custom page-wait timeouts.
test-framework/ui/.../IdpReviewUserProfilePage.java Models the IdP profile-review page.

@ruchikajha95

Copy link
Copy Markdown
Contributor Author

Thanks for the review @msdaly200 ! i will push the changes asap.

Closes keycloak#47811

Signed-off-by: Ruchika <ruchika.jha1@ibm.com>
@ruchikajha95
ruchikajha95 requested a review from msdaly200 August 7, 2026 11:40

import org.keycloak.testframework.ui.webdriver.ManagedWebDriver;

public class IdpReviewUserProfilePage extends LoginUpdateProfilePage {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

where this test come from?

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate sessionlimits package to the new test framework

4 participants