Skip to content

Commit

Permalink
Update more tests for condition keys (#3781)
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong authored Oct 21, 2024
1 parent ebea805 commit a6eb97a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/unit/rules/resources/iam/test_identity_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,10 @@ def test_string_statements_with_condition(self):
"IpAddress": {"aws:SourceIp": "203.0.113.0/24"},
"ArnEquals": {"aws:SourceArn": "arn:aws:sns:REGION:123456789012:TOPIC-ID"},
"StringLikeIfExists": { "ec2:InstanceType": [ "t1.*", "t2.*" ]},
"Null":{"aws:TokenIssueTime":"true"}
"Null":{"aws:TokenIssueTime":"true"},
"ForAllValues:StringEquals":{"aws:PrincipalTag/job-category":["iamuser-admin","iamuser-read-only"]},
"ForAnyValue:StringEquals":{"aws:PrincipalTag/job-category":"iamuser-admin"},
"ForAllValues:StringLike": {"aws:TagKeys": ["key1*"]}
}
}
]
Expand Down

0 comments on commit a6eb97a

Please sign in to comment.