Browse Source
chore: also run organization tests on latest
pull/642/head
Benedict Becker
3 weeks ago
Failed to extract signature
1 changed files with
6 additions and
3 deletions
-
tests/test_keycloak_admin.py
|
|
@ -340,7 +340,9 @@ def test_organizations(admin: KeycloakAdmin, realm: str) -> None: |
|
|
|
""" |
|
|
|
# Organizations was only release in KeyCloak 26, so disable these checks |
|
|
|
# for older KeyCloak releases |
|
|
|
if Version(os.environ["KEYCLOAK_DOCKER_IMAGE_TAG"]) < Version("26"): |
|
|
|
if os.environ["KEYCLOAK_DOCKER_IMAGE_TAG"] != "latest" and Version( |
|
|
|
os.environ["KEYCLOAK_DOCKER_IMAGE_TAG"] |
|
|
|
) < Version("26"): |
|
|
|
return |
|
|
|
|
|
|
|
admin.change_current_realm(realm) |
|
|
@ -3746,8 +3748,9 @@ async def a_test_organizations(admin: KeycloakAdmin, realm: str) -> None: |
|
|
|
""" |
|
|
|
# Organizations was only release in KeyCloak 26, so disable these checks |
|
|
|
# for older KeyCloak releases |
|
|
|
if Version(os.environ["KEYCLOAK_DOCKER_IMAGE_TAG"]) < Version("26"): |
|
|
|
return |
|
|
|
if os.environ["KEYCLOAK_DOCKER_IMAGE_TAG"] != "latest" and Version( |
|
|
|
os.environ["KEYCLOAK_DOCKER_IMAGE_TAG"] |
|
|
|
) < Version("26"): |
|
|
|
|
|
|
|
await admin.a_change_current_realm(realm) |
|
|
|
await admin.a_update_realm(realm_name=realm, payload={"organizationsEnabled": True}) |
|
|
|