Skip to content

Commit

Permalink
Roles API Tests: update admin system memberships
Browse files Browse the repository at this point in the history
  • Loading branch information
john-odonnell committed Jun 16, 2023
1 parent 9d1a704 commit c9fa1a3
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions test/python/roles/test_roles_query_params_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def test_parameter_combos_a(self):

def test_parameter_combos_b(self):
"""Test Conjur's response to being given all optional parameters besides `graph`
Conjur responses with `all` results ONLY
Conjur responds with `all` results ONLY
"""
details, status, _ = self.api.show_role_with_http_info(
self.account,
Expand All @@ -201,7 +201,17 @@ def test_parameter_combos_b(self):
]

if api_config.ENTERPRISE_TESTS:
target_details.append('!:!:root')
system_memberships = [
'system:group:conjur/replication-sets/full/replicated-data',
'system:policy:conjur',
'system:policy:conjur/replication-sets',
'system:policy:conjur/replication-sets/full',
'system:policy:root',
'system:user:admin',
'!:!:root'
]
for membership in system_memberships:
target_details.append(membership)

self.assertEqual(status, 200)
for i in target_details:
Expand All @@ -213,7 +223,7 @@ def test_parameter_combos_b(self):

def test_parameter_combos_c(self):
"""Test Conjur's response to being given both `members` and `memberships`
Conjur response with `memberships` results ONLY
Conjur responds with `memberships` results ONLY
"""
self.add_user_to_group('bob')

Expand Down

0 comments on commit c9fa1a3

Please sign in to comment.