Skip to content

Commit a6eb97a

Browse files
authored
Update more tests for condition keys (#3781)
1 parent ebea805 commit a6eb97a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/unit/rules/resources/iam/test_identity_policy.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,10 @@ def test_string_statements_with_condition(self):
186186
"IpAddress": {"aws:SourceIp": "203.0.113.0/24"},
187187
"ArnEquals": {"aws:SourceArn": "arn:aws:sns:REGION:123456789012:TOPIC-ID"},
188188
"StringLikeIfExists": { "ec2:InstanceType": [ "t1.*", "t2.*" ]},
189-
"Null":{"aws:TokenIssueTime":"true"}
189+
"Null":{"aws:TokenIssueTime":"true"},
190+
"ForAllValues:StringEquals":{"aws:PrincipalTag/job-category":["iamuser-admin","iamuser-read-only"]},
191+
"ForAnyValue:StringEquals":{"aws:PrincipalTag/job-category":"iamuser-admin"},
192+
"ForAllValues:StringLike": {"aws:TagKeys": ["key1*"]}
190193
}
191194
}
192195
]

0 commit comments

Comments
 (0)