8000 Remove unreachable adminUrl from root-url-client in test realms by ahus1 · Pull Request #54832 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Remove unreachable adminUrl from root-url-client in test realms - #54832

Open
ahus1 wants to merge 1 commit into
keycloak:mainfrom
ahus1:is-54831-test-realm-admin-url
Open

ahus1 wants to merge 1 commit into
keycloak:mainfrom
ahus1:is-54831-test-realm-admin-url

Conversation

@ahus1
@ahus1 ahus1 commented Nov 6, 2026
Copy link
Copy Markdown
Member

Remove the unreachable adminUrl from the root-url-client in the test realms (testrealm.json, cli/testrealm.json and AbstractRestServiceTest).
Realm logout-all sends a backchannel logout to every client with an adminUrl, which logged a connection refused warning for localhost:8180 as nothing listens there.
The tests using this client don't rely on the adminUrl.

Closes #54831

Realm logout-all sends a backchannel logout to every client with an adminUrl,
which logged a connection refused warning for localhost:8180.

Closes keycloak#54831

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
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.

🟢 Approval recommended

No active review issues remain for the cleanup of the unused adminUrl in the test realm definitions.

No open issues 🎉

What changed in this PR

Removes the unused, unreachable adminUrl from root-url-client in three test realm definitions, addressing #54831 by preventing unnecessary backchannel logout attempts and connection-refused warnings.

Changes:

  • Removes the logout endpoint from both JSON fixtures and the Java realm setup.
  • Preserves the client’s root URL, base URL, and redirect URIs.
File Description
tests/​base/​src/​test/​resources/​org/​keycloak/​tests/​testrealm.json Removes root-url-client’s unreachable adminUrl.
tests/​base/​src/​test/​resources/​org/​keycloak/​tests/​cli/​testrealm.json Applies the same cleanup to the CLI fixture.
tests/​base/​src/​test/​java/​org/​keycloak/​tests/​account/​AbstractRestServiceTest.java Removes the matching adminUrl from the account test realm setup.

Review effort: Balanced

@ahus1
ahus1 marked this pull request as ready for review November 6, 2026 22:18
@ahus1
ahus1 requested a review from a team as a code owner November 6, 2026 22:18
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.

Test realms define an unreachable adminUrl that causes connection refused warnings on logout

2 participants

0