Browse Source
test: fix the user group pagination test
pull/430/merge
Richard Nemeth
2 years ago
No known key found for this signature in database
GPG Key ID: 21C39470DF3DEC39
1 changed files with
2 additions and
2 deletions
-
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) |
|
|
|
|
|
|
|
|
|
|
|