Skip to content

Commit 454e115

Browse files
committed
test: fix error message in 'validate'
`cfn-lint` changed their message when a Lambda runtime is deprecated [1] From `Check if EOL Lambda Function Runtimes are used` To `Validate if lambda runtime is deprecated` And also using nodejs16.x changed from a warning (W2531) to an error (E2531) [1]: aws-cloudformation/cfn-lint@31783ca#diff-3e96ba21727bba3d7bfb0c5c235a0cbc45eca97819429104d7ff9fbec8aa05b2
1 parent b45721e commit 454e115

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration/validate/test_validate_command.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ def test_lint_deprecated_runtimes(self, runtime):
157157
self.assertEqual(command_result.process.returncode, 1)
158158
self.assertRegex(
159159
output,
160-
f"\\[\\[W2531: Check if EOL Lambda Function Runtimes are used] "
161-
f"\\(Runtime \\'{runtime}'\\ was deprecated on.*",
160+
f"\\[\\[E2531: Validate if lambda runtime is deprecated\\] "
161+
f"\\(Runtime '{runtime}' was deprecated on.*",
162162
)
163163

164164
def test_lint_supported_runtimes(self):

0 commit comments

Comments
 (0)