Skip to content

Commit a81f941

Browse files
author
Kinnaird McQuade
committed
Fix tests for 0.2.2
1 parent c053610 commit a81f941

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/scanning/test_statement_detail.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,14 @@ def test_missing_resource_constraints(self):
7979
statement = StatementDetail(this_statement)
8080
result = statement.missing_resource_constraints()
8181
# print(result)
82-
self.assertListEqual(result, ['secretsmanager:PutSecretValue'])
82+
self.assertListEqual(result, ['secretsmanager:CreateSecret', 'secretsmanager:PutSecretValue'])
8383

8484
def test_missing_resource_constraints_for_modify_actions(self):
8585
this_statement = {
8686
"Sid": "VisualEditor0",
8787
"Effect": "Allow",
8888
"Action": [
89-
# 3 wildcard only actions
90-
"secretsmanager:createsecret",
89+
# wildcard only actions
9190
"secretsmanager:getrandompassword",
9291
"secretsmanager:listsecrets",
9392
# This one is wildcard OR "secret"
@@ -121,8 +120,7 @@ def test_missing_resource_constraints_for_modify_actions_with_override(self):
121120
"Sid": "VisualEditor0",
122121
"Effect": "Allow",
123122
"Action": [
124-
# 3 wildcard only actions
125-
"secretsmanager:createsecret",
123+
# wildcard only actions
126124
"secretsmanager:getrandompassword",
127125
"secretsmanager:listsecrets",
128126
# This one is wildcard OR "secret"

0 commit comments

Comments
 (0)