From 29886cdaaf50b02d0218ac0fc5ac209f2f4d0953 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cain=C3=A3=20S=2E=20G?= Date: Thu, 22 Jun 2023 13:01:35 -0300 Subject: [PATCH] fix: fixed typo in test for create_client_authz_scope_based_permission MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: CainĂ£ S. G --- 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 e3a3cba..0cb94f9 100644 --- a/tests/test_keycloak_admin.py +++ b/tests/test_keycloak_admin.py @@ -973,7 +973,7 @@ def test_clients(admin: KeycloakAdmin, realm: str): payload={ "name": "test-permission-sb", "resources": [test_resource_id], - "scope": [test_scope_id], + "scopes": [test_scope_id], }, ) assert res, res @@ -987,7 +987,7 @@ def test_clients(admin: KeycloakAdmin, realm: str): payload={ "name": "test-permission-sb", "resources": [test_resource_id], - "scope": [test_scope_id], + "scopes": [test_scope_id], }, ) assert err.match('409: b\'{"error":"Policy with name') @@ -996,7 +996,7 @@ def test_clients(admin: KeycloakAdmin, realm: str): payload={ "name": "test-permission-sb", "resources": [test_resource_id], - "scope": [test_scope_id], + "scopes": [test_scope_id], }, skip_exists=True, ) == {"msg": "Already exists"}