Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
baolsen committed Dec 18, 2023
1 parent a8f1eb6 commit 790817c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_examples_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ def test_s3_bucket_policy(output):
f"arn:aws:s3:::{bucket_name}/*",
]
assert set(statement["Resource"]) == set(expected_resources)
assert "false" == statement["Condition"]["Bool"]["aws:SecureTransport"][0]
assert "false" == statement["Condition"]["Bool"]["aws:SecureTransport"]

# ### Compare apparent to actual
# Change ["false"] to "false" so the next comparison passes
if "false" == statement["Condition"]["Bool"]["aws:SecureTransport"][0]:
if "false" == statement["Condition"]["Bool"]["aws:SecureTransport"]:
statement["Condition"]["Bool"]["aws:SecureTransport"] = "false"

apparent_bucket_policy["Statement"] = [statement]
Expand Down

0 comments on commit 790817c

Please sign in to comment.