Skip to content

Commit

Permalink
uncomment test cases intended for checkov 3
Browse files Browse the repository at this point in the history
  • Loading branch information
g-marconet committed Oct 23, 2024
1 parent 71d8db2 commit c182b29
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions backend/engine/tests/test_plugin_checkov.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,23 +83,22 @@ def test_with_findings(self):
message="CKV_AWS_55", # Ensure S3 bucket has ignore public ACLs enabled
severity="medium",
)
# New findings in Checkov 3.2.
# self._assertContainsFinding(
# details,
# type="terraform",
# filename="main.tf",
# line=1,
# message="CKV2_AWS_62", # Ensure S3 buckets should have event notifications enabled
# severity="low",
# )
# self._assertContainsFinding(
# details,
# type="terraform",
# filename="main.tf",
# line=1,
# message="CKV2_AWS_61", # Ensure that an S3 bucket has a lifecycle configuration
# severity="low",
# )
self._assertContainsFinding(
details,
type="terraform",
filename="main.tf",
line=1,
message="CKV2_AWS_62", # Ensure S3 buckets should have event notifications enabled
severity="low",
)
self._assertContainsFinding(
details,
type="terraform",
filename="main.tf",
line=1,
message="CKV2_AWS_61", # Ensure that an S3 bucket has a lifecycle configuration
severity="low",
)

def test_without_findings(self):
response = run_checkov(f"{SCRIPT_DIR}/{CHECKOV_TEST_DIR2}")
Expand Down

0 comments on commit c182b29

Please sign in to comment.