Skip to content

Commit 2de58d8

Browse files
authored
test: Update lint tests to show deprecated nodejs18.x (#8215)
1 parent cb6e92b commit 2de58d8

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

tests/integration/testdata/validate/default_json/template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"Properties": {
99
"CodeUri": "hello-world/",
1010
"Handler": "app.lambdaHandler",
11-
"Runtime": "nodejs20.x"
11+
"Runtime": "nodejs22.x"
1212
}
1313
}
1414
}

tests/integration/testdata/validate/default_yaml/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ Resources:
77
Properties:
88
CodeUri: HelloWorldFunction
99
Handler: app.lambdaHandler
10-
Runtime: nodejs18.x
10+
Runtime: nodejs22.x

tests/integration/testdata/validate/default_yaml/templateError.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Resources:
77
Properties:
88
CodeUri: HelloWorldFunction
99
Handler: app.lambdaHandler
10-
Runtime: nodejs18.x
10+
Runtime: nodejs22.x
1111

1212
HelloWorldFunction:
1313
Type: AWS::Serverless::Api

tests/integration/testdata/validate/multiple_files/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ Resources:
77
Properties:
88
CodeUri: HelloWorldFunction
99
Handler: app.lambdaHandler
10-
Runtime: nodejs18.x
10+
Runtime: nodejs22.x

tests/integration/validate/test_validate_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ def test_lint_template(self, relative_folder: str, expected_file: TemplateFileTy
128128
@parameterized.expand(
129129
[
130130
("nodejs16.x",),
131+
("nodejs18.x",),
131132
]
132133
)
133134
def test_lint_deprecated_runtimes(self, runtime):
@@ -173,7 +174,6 @@ def test_lint_supported_runtimes(self):
173174
"java17",
174175
"java11",
175176
"java8.al2",
176-
"nodejs18.x",
177177
"nodejs20.x",
178178
"nodejs22.x",
179179
"provided.al2",

0 commit comments

Comments
 (0)