Skip to content

Commit

Permalink
Fix upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong committed Apr 5, 2024
1 parent f083838 commit f482b1c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
5 changes: 3 additions & 2 deletions test/fixtures/results/public/lambda-poller.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"Filename": "test/fixtures/templates/public/lambda-poller.yaml",
"Id": "a5319ec2-3a5c-7f99-2864-8a011aecb344",
"Id": "e650af14-6edf-0a02-3b15-9e2c6f1b295e",
"Level": "Error",
"Location": {
"End": {
Expand All @@ -19,7 +19,8 @@
"LineNumber": 151
}
},
"Message": "Deprecated runtime (nodejs6.10) specified. Updating disabled since 2019-08-12. Please consider updating to nodejs20.x",
"Message": "Deprecated runtime 'nodejs6.10' specified. Updating disabled since '2019-08-12'. Please consider updating to 'nodejs20.x'",
"ParentId": null,
"Rule": {
"Description": "Check if an EOL Lambda Runtime is specified and give an error if used. ",
"Id": "E2531",
Expand Down
10 changes: 6 additions & 4 deletions test/fixtures/results/quickstart/nist_config_rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
},
{
"Filename": "test/fixtures/templates/quickstart/nist_config_rules.yaml",
"Id": "36464f54-47b7-171f-73b9-20c2ddfd7289",
"Id": "1a829157-de4c-691e-ae90-a9341fcbee5c",
"Level": "Error",
"Location": {
"End": {
Expand All @@ -76,7 +76,8 @@
"LineNumber": 94
}
},
"Message": "Deprecated runtime (nodejs) specified. Updating disabled since 2016-10-31. Please consider updating to nodejs20.x",
"Message": "Deprecated runtime 'nodejs' specified. Updating disabled since '2016-10-31'. Please consider updating to 'nodejs20.x'",
"ParentId": null,
"Rule": {
"Description": "Check if an EOL Lambda Runtime is specified and give an error if used. ",
"Id": "E2531",
Expand Down Expand Up @@ -143,7 +144,7 @@
},
{
"Filename": "test/fixtures/templates/quickstart/nist_config_rules.yaml",
"Id": "8f48c077-bdaf-de3a-4da6-8c995b3e11d0",
"Id": "d871548a-4348-70d8-a964-7093851dd666",
"Level": "Error",
"Location": {
"End": {
Expand All @@ -161,7 +162,8 @@
"LineNumber": 159
}
},
"Message": "Deprecated runtime (nodejs) specified. Updating disabled since 2016-10-31. Please consider updating to nodejs20.x",
"Message": "Deprecated runtime 'nodejs' specified. Updating disabled since '2016-10-31'. Please consider updating to 'nodejs20.x'",
"ParentId": null,
"Rule": {
"Description": "Check if an EOL Lambda Runtime is specified and give an error if used. ",
"Id": "E2531",
Expand Down
5 changes: 3 additions & 2 deletions test/integration/test_good_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,15 @@ class TestQuickStartTemplates(BaseCliTestCase):
"Filename": (
"test/fixtures/templates/good/transform_serverless_globals.yaml"
),
"Id": "bbc3467b-5b8b-1300-e638-dc3e4a1741cb",
"Id": "fc9f2534-f4f8-092b-52d6-dafd2d429b67",
"Level": "Error",
"Location": {
"End": {"ColumnNumber": 13, "LineNumber": 10},
"Path": ["Resources", "myFunction", "Properties", "Runtime"],
"Start": {"ColumnNumber": 3, "LineNumber": 10},
},
"Message": "Deprecated runtime (nodejs6.10) specified. Updating disabled since 2019-08-12. Please consider updating to nodejs20.x",
"Message": "Deprecated runtime 'nodejs6.10' specified. Updating disabled since '2019-08-12'. Please consider updating to 'nodejs20.x'",
"ParentId": None,
"Rule": {
"Description": (
"Check if an EOL Lambda Runtime is specified and give an"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def validator():
(
"Deprecated runtime 'nodejs4.3' specified. "
"Updating disabled since '2019-04-30'. "
"Please consider updating to 'nodejs16.x'"
"Please consider updating to 'nodejs20.x'"
),
rule=DeprecatedRuntimeEnd(),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def validator():
"EOL runtime 'nodejs6.10' specified. "
"Runtime is EOL since '2019-04-30' and "
"updating will be disabled at '2019-08-12'. "
"Please consider updating to 'nodejs16.x'"
"Please consider updating to 'nodejs20.x'"
),
rule=DeprecatedRuntimeEol(),
)
Expand Down

0 comments on commit f482b1c

Please sign in to comment.