Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
calumabarnett committed Aug 22, 2024
1 parent 0a16db2 commit 123d59a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_pull.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,19 @@ def test_create_pull_bucket_policy():
"principals": [{"identifiers": ["arn-one", "arn-two"], "type": "AWS"}],
"resources": ["arn:aws:s3:::test-bucket"],
},
{
"actions": ["s3:*"],
"conditions": [
{
"test": "NumericLessThan",
"variable": "s3:TlsVersion",
"values": ["1.2"],
}
],
"effect": "Deny",
"principals": [{"identifiers": ["*"], "type": "AWS"}],
"resources": ["arn:aws:s3:::test-bucket", "arn:aws:s3:::test-bucket/*"],
},
]
return Output.all(policy.statements, expected).apply(
assert_pulumi_output_equals_expected
Expand Down

0 comments on commit 123d59a

Please sign in to comment.