Skip to content

Commit

Permalink
Reduced output of test_lint_cloudformation_templates
Browse files Browse the repository at this point in the history
  • Loading branch information
ckunki committed Feb 29, 2024
1 parent edc7070 commit b589f6e
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions test/unit/aws/test_lint_cloudformation_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ def validate_using_cfn_lint(tmp_path, cloudformation_yml):
raise e


@pytest.mark.parametrize("template", [
ci_codebuild_template(),
release_codebuild_template(),
ec2_template(),
vm_bucket_template(),
waf_template(),
])
def test_lint_cloudformation_templates(tmp_path, template):
validate_using_cfn_lint(tmp_path, template)
TEMPLATES = {
"ci-codebuild": ci_codebuild_template(),
"release-codebuild": release_codebuild_template(),
"ec2": ec2_template(),
"vm-bucket": vm_bucket_template(),
"waf": waf_template(),
}

@pytest.mark.parametrize("template_key", TEMPLATES)
def test_lint_cloudformation_templates(tmp_path, template_key):
validate_using_cfn_lint(tmp_path, TEMPLATES[template_key])

0 comments on commit b589f6e

Please sign in to comment.