Skip to content

Commit

Permalink
Make sure config is all True
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong committed Nov 12, 2024
1 parent 7c834a1 commit 5cfec6c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/unit/rules/resources/test_hardcodedarnproperties.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,26 @@ def test_file_positive(self):
# By default, a set of "correct" templates are checked
self.helper_file_positive()

def test_file_positive_with_config(self):
self.helper_file_negative(
"test/fixtures/templates/good/resources/properties/hard_coded_arn_properties.yaml",
0,
ConfigMixIn(
[],
include_experimental=True,
include_checks=[
"I",
],
configure_rules={
"I3042": {
"partition": True,
"region": True,
"accountId": True,
}
},
),
)

def test_file_negative_partition(self):
self.helper_file_negative(
"test/fixtures/templates/bad/hard_coded_arn_properties.yaml",
Expand Down

0 comments on commit 5cfec6c

Please sign in to comment.