Browse Source

fix: test case of create client authz scope permissions

pull/400/head
hadeer-elsaeed 1 year ago
parent
commit
3d6ee71368
  1. 4
      tests/test_keycloak_admin.py

4
tests/test_keycloak_admin.py

@ -1669,7 +1669,7 @@ def test_enable_token_exchange(admin: KeycloakAdmin, realm: str):
# Create permissions on the target client to reference this policy
admin.create_client_authz_scope_permission(
payload={
"id": token_exchange_permission_id,
"id": token_exchange_scope_id,
"name": "test-permission",
"type": "scope",
"logic": "POSITIVE",
@ -1681,7 +1681,7 @@ def test_enable_token_exchange(admin: KeycloakAdmin, realm: str):
client_id=realm_management_id,
)
permission_name = admin.get_client_authz_scope_permission(
client_id=realm_management_id, scope_id=token_exchange_permission_id
client_id=realm_management_id, scope_id=token_exchange_scope_id
)["name"]
assert permission_name == "test-permission"
with pytest.raises(KeycloakPostError) as err:

Loading…
Cancel
Save