Skip to content

Migrate Organization OIDC Mapper tests into new testsuite - #51196

Open
vramik wants to merge 1 commit into
keycloak:mainfrom
vramik:51194-migrate-org-oidc-mapper-tests
Open

Migrate Organization OIDC Mapper tests into new testsuite#51196
vramik wants to merge 1 commit into
keycloak:mainfrom
vramik:51194-migrate-org-oidc-mapper-tests

Conversation

@vramik

@vramik vramik commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Closes #51194

Closes keycloak#51194

Signed-off-by: vramik <vramik@redhat.com>
Copilot AI review requested due to automatic review settings July 27, 2026 13:07
@vramik
vramik requested review from a team as code owners July 27, 2026 13:07

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 organization OIDC mapper tests to the new test framework and centralizes broker-login helpers.

Changes:

  • Converts mapper tests to JUnit 5 and test-framework resources.
  • Adds shared real-broker and login utilities.
  • Updates existing member tests to use shared helpers.

Reviewed changes

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

Show a summary per file
File Description
OrganizationMemberTest.java Uses centralized broker helpers.
OrganizationOIDCProtocolMapperTest.java Migrates OIDC mapper coverage.
OrganizationGroupOidcIdpMapperTest.java Migrates organization group IdP mapper tests.
OrganizationGroupMembershipOIDCMapperTest.java Migrates group membership mapper tests.
AbstractOrganizationTest.java Adds shared broker setup and login utilities.
Comments suppressed due to low confidence (1)

tests/base/src/test/java/org/keycloak/tests/organization/mapper/OrganizationGroupMembershipOIDCMapperTest.java:71

  • @InjectOAuthClient creates only the default test-app, while every test in this class switches to direct-grant/password; the inherited realm configuration never creates that client. Provision direct-grant in the migrated realm setup or run these requests with a configured injected client.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate Organization OIDC Mapper tests into new testsuite

2 participants