From cb77bb74333c0c8c8b032fe9164c8c43395621a2 Mon Sep 17 00:00:00 2001 From: Hadeer-Elsaeed Date: Mon, 2 Jan 2023 18:38:19 +0200 Subject: [PATCH] feat(api): add scope id for get client_authz_scope_permission --- tests/test_keycloak_admin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_keycloak_admin.py b/tests/test_keycloak_admin.py index 63e1d6c..2425184 100644 --- a/tests/test_keycloak_admin.py +++ b/tests/test_keycloak_admin.py @@ -1577,9 +1577,9 @@ 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)[ - "name" - ] + permission_name = admin.get_client_authz_scope_permission( + client_id=realm_management_id, scope_id=token_exchange_scope_id + )["name"] assert permission_name == "test-permission" with pytest.raises(KeycloakPostError) as err: admin.create_client_authz_scope_permission(