Skip to content

Commit d290d72

Browse files
authored
test: update integ tests to nodejs22.x (#3837)
1 parent d07aa91 commit d290d72

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

integration/resources/templates/combination/api_with_authorizer_override_api_auth.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ Resources:
5151
Type: AWS::Serverless::Function
5252
Properties:
5353
InlineCode: |
54-
exports.handler = async (event, context, callback) => {
54+
exports.handler = async (event, context) => {
5555
return {
5656
statusCode: 200,
5757
body: 'Success'
5858
}
5959
}
6060
Handler: index.handler
61-
Runtime: nodejs16.x
61+
Runtime: nodejs22.x
6262
Events:
6363
LambdaRequest:
6464
Type: Api
@@ -94,9 +94,9 @@ Resources:
9494
Type: AWS::Serverless::Function
9595
Properties:
9696
Handler: index.handler
97-
Runtime: nodejs16.x
97+
Runtime: nodejs22.x
9898
InlineCode: |
99-
exports.handler = async (event, context, callback) => {
99+
exports.handler = async (event, context) => {
100100
const auth = event.queryStringParameters.authorization
101101
const policyDocument = {
102102
Version: '2012-10-17',

integration/resources/templates/combination/connector_appsync_to_eventbus.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Resources:
117117
API_KEY: !GetAtt ApiKey.ApiKey
118118
GRAPHQL_URL: !GetAtt AppSyncApi.GraphQLUrl
119119
EventBusName: !Ref EventBus
120-
Runtime: nodejs16.x
120+
Runtime: nodejs22.x
121121
Handler: index.handler
122122
InlineCode: |
123123
const https = require("https");

integration/resources/templates/combination/intrinsics_serverless_function.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Resources:
4444
Fn::Sub: ['${filename}.handler', filename: index]
4545

4646
Runtime:
47-
Fn::Join: ['', [nodejs, 16.x]]
47+
Fn::Join: ['', [nodejs, 22.x]]
4848

4949
Role:
5050
Fn::GetAtt: [MyNewRole, Arn]

0 commit comments

Comments
 (0)