|
@ -660,14 +660,14 @@ def test_groups(admin: KeycloakAdmin, user: str): |
|
|
# Test get groups again |
|
|
# Test get groups again |
|
|
groups = admin.get_groups() |
|
|
groups = admin.get_groups() |
|
|
assert len(groups) == 1, groups |
|
|
assert len(groups) == 1, groups |
|
|
assert len(groups[0]["subGroups"]) == 2, groups["subGroups"] |
|
|
|
|
|
|
|
|
assert len(groups[0]["subGroups"]) == 2, groups[0]["subGroups"] |
|
|
assert groups[0]["id"] == group_id |
|
|
assert groups[0]["id"] == group_id |
|
|
assert {x["id"] for x in groups[0]["subGroups"]} == {subgroup_id_1, subgroup_id_2} |
|
|
assert {x["id"] for x in groups[0]["subGroups"]} == {subgroup_id_1, subgroup_id_2} |
|
|
|
|
|
|
|
|
# Test get groups query |
|
|
# Test get groups query |
|
|
groups = admin.get_groups(query={"max": 10}) |
|
|
groups = admin.get_groups(query={"max": 10}) |
|
|
assert len(groups) == 1, groups |
|
|
assert len(groups) == 1, groups |
|
|
assert len(groups[0]["subGroups"]) == 2, groups["subGroups"] |
|
|
|
|
|
|
|
|
assert len(groups[0]["subGroups"]) == 2, groups[0]["subGroups"] |
|
|
assert groups[0]["id"] == group_id |
|
|
assert groups[0]["id"] == group_id |
|
|
assert {x["id"] for x in groups[0]["subGroups"]} == {subgroup_id_1, subgroup_id_2} |
|
|
assert {x["id"] for x in groups[0]["subGroups"]} == {subgroup_id_1, subgroup_id_2} |
|
|
|
|
|
|
|
|