Skip to content

Commit

Permalink
loosen rbac for get cert
Browse files Browse the repository at this point in the history
  • Loading branch information
meng-han committed Nov 7, 2024
1 parent e134890 commit ae84fdc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/confidant/authnz/rbac_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,16 @@ def test_default_acl(mocker: MockerFixture):
kwargs={'ca': 'development'},
) is False
# Test for user type is service, with certificate resource and get
# action, with a valid CN, but an invalid SAN
# action, with a valid CN
assert rbac.default_acl(
resource_type='certificate',
action='get',
resource_id='test-service.example.com',
kwargs={
'ca': 'development',
'san': ['bad-service.example.com'],
'san': ['test-service.sub.example.com'],
},
) is False
) is True
# Test for user type is service, with certificate resource and get
# action, with a valid CN, but a mix of valid and invalid SAN values
assert rbac.default_acl(
Expand Down

0 comments on commit ae84fdc

Please sign in to comment.