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 ae84fdc commit 134aadb
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tests/unit/confidant/authnz/rbac_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,20 +95,6 @@ def test_default_acl(mocker: MockerFixture):
'san': ['test-service.sub.example.com'],
},
) 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(
resource_type='certificate',
action='get',
resource_id='test-service.example.com',
kwargs={
'ca': 'development',
'san': [
'bad-service.example.com',
'test-service.example.com',
],
},
) is False
# Test for user type is service, and an allowed resource, with
# disallowed fake action
assert rbac.default_acl(resource_type='service', action='fake') is False
Expand Down

0 comments on commit 134aadb

Please sign in to comment.