From 683d0210e1b265aa6712af1889750090a87a38d8 Mon Sep 17 00:00:00 2001 From: Richard Nemeth Date: Fri, 23 Jun 2023 07:28:29 +0200 Subject: [PATCH] test: fix the user group pagination test --- tests/test_keycloak_admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_keycloak_admin.py b/tests/test_keycloak_admin.py index 8be5229..7d6d572 100644 --- a/tests/test_keycloak_admin.py +++ b/tests/test_keycloak_admin.py @@ -360,10 +360,10 @@ def test_user_groups_pagination(admin: KeycloakAdmin, realm: str): groups = admin.get_user_groups(user_id=user_id) assert len(groups) == admin.PAGE_SIZE + 50, len(groups) - groups = admin.get_user_groups(user_id=user_id, query={"first": 100}) + groups = admin.get_user_groups(user_id=user_id, query={"first": 100, "max": -1, "search": ""}) assert len(groups) == 50, len(groups) - groups = admin.get_user_groups(user_id=user_id, query={"max": 20}) + groups = admin.get_user_groups(user_id=user_id, query={"max": 20, "first": -1, "search": ""}) assert len(groups) == 20, len(groups)