aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/auth/test_privileges.py1
-rw-r--r--tests/unit/auth/test_roles.py4
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/unit/auth/test_privileges.py b/tests/unit/auth/test_privileges.py
index e6c86d8..8395293 100644
--- a/tests/unit/auth/test_privileges.py
+++ b/tests/unit/auth/test_privileges.py
@@ -12,6 +12,7 @@ PRIVILEGES = sorted(
(Privilege("system:group:create-group", "Create a group"),
Privilege("system:group:view-group", "View the details of a group"),
Privilege("system:group:edit-group", "Edit the details of a group"),
+ Privilege("system:user:list", "List users in the system"),
Privilege("system:group:delete-group", "Delete a group"),
Privilege("group:user:add-group-member", "Add a user to a group"),
Privilege("group:user:remove-group-member", "Remove a user from a group"),
diff --git a/tests/unit/auth/test_roles.py b/tests/unit/auth/test_roles.py
index 0914b54..0a3ba19 100644
--- a/tests/unit/auth/test_roles.py
+++ b/tests/unit/auth/test_roles.py
@@ -103,7 +103,9 @@ def test_create_role_raises_exception_for_unauthorised_users(# pylint: disable=[
'Transfer leadership of the group to some other '
'member')),
Privilege(privilege_id='system:group:view-group',
- privilege_description='View the details of a group'))),
+ privilege_description='View the details of a group'),
+ Privilege(privilege_id='system:user:list',
+ privilege_description='List users in the system'))),
Role(
role_id=uuid.UUID("ade7e6b0-ba9c-4b51-87d0-2af7fe39a347"),
role_name="group-creator",