8000 Migrate Organization Invitation Management tests into new testsuite by hammadxcm · Pull Request #48203 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Migrate Organization Invitation Management tests into new testsuite - #48203

Closed
hammadxcm wants to merge 2 commits into
keycloak:mainfrom
hammadxcm:migrate-organization-invitation-management-tests
Closed

hammadxcm wants to merge 2 commits into
keycloak:mainfrom
hammadxcm:migrate-organization-invitation-management-tests

Conversation

@hammadxcm
@hammadxcm hammadxcm commented Apr 17, 2026 •
Copy link
Copy Markdown
Contributor

Parent tracking issue: #47926

Part of #48178

Migrates OrganizationInvitationManagementTest from testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/organization/admin/ to the new test framework under tests/base/src/test/java/org/keycloak/tests/organization/admin/.

All 15 test methods are pure organization admin-API checks (invitation CRUD, pagination, filtering, search, cross-org isolation, disabled-org behaviour) and required no logic changes — only the framework wiring differs:

  • Extends the new-framework AbstractOrganizationTest (JUnit 5, @InjectRealm).
  • @KeycloakIntegrationTest added at class level.
  • SMTP is supplied via @InjectMailServer MailServer — the GreenMailSupplier already intercepts the realm config, so the manual SMTP override from configureTestRealm is no longer needed.
  • setTimeOffset(int) → @InjectTimeOffSet TimeOffSet.
  • OrganizationAttributeUpdater (not ported to the new framework) is replaced with a local setOrganizationEnabled helper that returns a restore Runnable — same disable/re-enable semantics.
  • JUnit 4 annotations/assertions swapped for JUnit 5; Hamcrest matchers unchanged.

The remaining admin tests in #48178 (OrganizationTest, OrganizationInvitationLinkTest, OrganizationThemeTest, IdentityProviderThemeConfigTest) still depend on broker/UI infrastructure (legacy bc/BrokerConfiguration, @Page / Graphene) that has no direct equivalent in the new framework yet, so they are not part of this PR.

@hammadxcm
hammadxcm force-pushed the migrate-organization-invitation-management-tests branch from 5d3f712 to 0a595c1 Compare April 17, 2026 15:52
@ahus1
ahus1 commented Apr 18, 2026
Copy link
Copy Markdown
Member

limiting open PRs of new contributors to two at a time.

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.

2 participants

0