Skip to content

Commit

Permalink
remove duplicate test
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-Huneshagen committed Nov 13, 2023
1 parent 6090f3e commit e79c3dd
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tests/rules/test_StackNameMatchesRegexRule.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,3 @@ def test_failure_is_added_for_invalid_stack_name_from_extras():
== "The stack name some_invalid_stack_name does not follow the naming convention, reason: Only alphanumerical "
"characters and hyphens allowed."
)


def failure_is_added_for_invalid_stack_name_from_extras():
rule = StackNameMatchesRegexRule(Config(rules=["StackNameMatchesRegexRule"]))
extras = {"stack": {"tags": [{"key": "project", "value": "some_project"}]}, "stack_name": "some_invalid_stack_name"}
result = rule.invoke(cfmodel=CFModel(), extras=extras)
assert result.failures
assert (
result.failures[0].reason
== "The stack name some_invalid_stack_name does not follow the naming convention (only alphanumerical characters and hyphens allowed)."
)

0 comments on commit e79c3dd

Please sign in to comment.