File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments