From 5cfec6c07172540e57c401abd640259c379da933 Mon Sep 17 00:00:00 2001 From: Kevin DeJong Date: Tue, 12 Nov 2024 07:10:45 -0800 Subject: [PATCH] Make sure config is all True --- .../resources/test_hardcodedarnproperties.py | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/test/unit/rules/resources/test_hardcodedarnproperties.py b/test/unit/rules/resources/test_hardcodedarnproperties.py index bee996d3e7..2e2663d347 100644 --- a/test/unit/rules/resources/test_hardcodedarnproperties.py +++ b/test/unit/rules/resources/test_hardcodedarnproperties.py @@ -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",