fix: support https test setup across keycloak versions (#715) - #716
Open
tiborrr wants to merge 1 commit into
Open
fix: support https test setup across keycloak versions (#715)#716tiborrr wants to merge 1 commit into
tiborrr wants to merge 1 commit into
Conversation
Author
NoteI am doing this to get started on #669 to migrate to httpx also for the sync part of the code. |
tiborrr
force-pushed
the
fix/keycloak-version-compat-tests
branch
2 times, most recently
from
April 24, 2026 10:09
0e15b2b to
7675d58
Compare
…spereirampj#715) Update test startup and fixtures to run reliably with HTTPS/self-signed certificates across supported Keycloak versions, and relax brittle assertions to account for version-specific response differences.
tiborrr
force-pushed
the
fix/keycloak-version-compat-tests
branch
from
April 24, 2026 10:09
7675d58 to
81692ad
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
test_keycloak_init.shhttp/https) viatests/conftest.pyWhy
Newer Keycloak versions changed HTTPS/token/error behavior, which caused the integration suite to fail under the previous HTTP-only assumptions.
These changes keep tests stable across supported Keycloak versions while preserving the existing test flow and maintainability.
What Changed
test_keycloak_init.shKEYCLOAK_ADMIN,KEYCLOAK_ADMIN_PASSWORD,KEYCLOAK_HOST,KEYCLOAK_PORTtests/conftest.pyKeycloakTestEnvnow exposesscheme,server_url,verify,use_httpsenv.server_urlandverify=env.verifytests/test_keycloak_admin.py,tests/test_keycloak_openid.py,tests/test_keycloak_uma.py,tests/test_pkce_flow.pyhttp://...expectations to scheme-aware expectationsValidation
./test_keycloak_init.sh "uv run python -m pytest -q"210 passedruff checkandruff format --check)22.023.026.6.1/latestLinked Issue