Skip to content

Commit 527caec

Browse files
authored
Upgrade integration test cases lambda resources runtimes to nodejs14 instead of nodejs12 (#2474)
1 parent c2df06a commit 527caec

File tree

86 files changed

+108
-108
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+108
-108
lines changed

integration/resources/templates/combination/api_with_authorizer_apikey.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Resources:
1414
Type: AWS::Serverless::Function
1515
Properties:
1616
Handler: index.handler
17-
Runtime: nodejs12.x
17+
Runtime: nodejs14.x
1818
InlineCode: |
1919
exports.handler = async (event, context, callback) => {
2020
return {
@@ -45,7 +45,7 @@ Resources:
4545
Type: AWS::Serverless::Function
4646
Properties:
4747
Handler: index.handler
48-
Runtime: nodejs12.x
48+
Runtime: nodejs14.x
4949
InlineCode: |
5050
exports.handler = async (event, context, callback) => {
5151
console.log(event);

integration/resources/templates/combination/api_with_authorizers_invokefunction_set_none.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Resources:
3131
InlineCode: |
3232
print("hello")
3333
Handler: index.handler
34-
Runtime: nodejs12.x
34+
Runtime: nodejs14.x
3535
Events:
3636
API3:
3737
Type: Api
@@ -50,7 +50,7 @@ Resources:
5050
InlineCode: |
5151
print("hello")
5252
Handler: index.handler
53-
Runtime: nodejs12.x
53+
Runtime: nodejs14.x
5454
Events:
5555
MyApiWithAwsIamAuth:
5656
Type: Api

integration/resources/templates/combination/api_with_authorizers_max.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Resources:
4343
Type: AWS::Serverless::Function
4444
Properties:
4545
Handler: index.handler
46-
Runtime: nodejs12.x
46+
Runtime: nodejs14.x
4747
InlineCode: |
4848
exports.handler = async (event, context, callback) => {
4949
return {
@@ -101,7 +101,7 @@ Resources:
101101
Type: AWS::Serverless::Function
102102
Properties:
103103
Handler: index.handler
104-
Runtime: nodejs12.x
104+
Runtime: nodejs14.x
105105
InlineCode: |
106106
exports.handler = async (event, context, callback) => {
107107
const token = event.type === 'TOKEN' ? event.authorizationToken : event.queryStringParameters.authorization

integration/resources/templates/combination/api_with_authorizers_max_openapi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Resources:
4646
Type: AWS::Serverless::Function
4747
Properties:
4848
Handler: index.handler
49-
Runtime: nodejs12.x
49+
Runtime: nodejs14.x
5050
InlineCode: |
5151
exports.handler = async (event, context, callback) => {
5252
return {
@@ -114,7 +114,7 @@ Resources:
114114
Type: AWS::Serverless::Function
115115
Properties:
116116
Handler: index.handler
117-
Runtime: nodejs12.x
117+
Runtime: nodejs14.x
118118
InlineCode: |
119119
exports.handler = async (event, context, callback) => {
120120
const token = event.type === 'TOKEN' ? event.authorizationToken : event.queryStringParameters.authorization

integration/resources/templates/combination/api_with_authorizers_min.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Resources:
2323
Type: AWS::Serverless::Function
2424
Properties:
2525
Handler: index.handler
26-
Runtime: nodejs12.x
26+
Runtime: nodejs14.x
2727
InlineCode: |
2828
exports.handler = async (event, context, callback) => {
2929
return {
@@ -80,7 +80,7 @@ Resources:
8080
Type: AWS::Serverless::Function
8181
Properties:
8282
Handler: index.handler
83-
Runtime: nodejs12.x
83+
Runtime: nodejs14.x
8484
InlineCode: |
8585
exports.handler = async (event, context, callback) => {
8686
const token = event.type === 'TOKEN' ? event.authorizationToken : event.queryStringParameters.authorization

integration/resources/templates/combination/api_with_binary_media_types_with_definition_body_openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Resources:
5151
Type: AWS::Serverless::Function
5252
Properties:
5353
Handler: index.handler
54-
Runtime: nodejs12.x
54+
Runtime: nodejs14.x
5555
CodeUri:
5656
Bucket:
5757
Ref: Bucket

integration/resources/templates/combination/api_with_cors.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Resources:
2222
Type: AWS::Serverless::Function
2323
Properties:
2424
Handler: index.handler
25-
Runtime: nodejs12.x
25+
Runtime: nodejs14.x
2626
CodeUri: ${codeuri}
2727
MemorySize: 128
2828

integration/resources/templates/combination/api_with_cors_only_headers.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Resources:
2424
Type: AWS::Serverless::Function
2525
Properties:
2626
Handler: index.handler
27-
Runtime: nodejs12.x
27+
Runtime: nodejs14.x
2828
CodeUri: ${codeuri}
2929
MemorySize: 128
3030

integration/resources/templates/combination/api_with_cors_only_max_age.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Resources:
2424
Type: AWS::Serverless::Function
2525
Properties:
2626
Handler: index.handler
27-
Runtime: nodejs12.x
27+
Runtime: nodejs14.x
2828
CodeUri: ${codeuri}
2929
MemorySize: 128
3030

integration/resources/templates/combination/api_with_cors_only_methods.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Resources:
2424
Type: AWS::Serverless::Function
2525
Properties:
2626
Handler: index.handler
27-
Runtime: nodejs12.x
27+
Runtime: nodejs14.x
2828
CodeUri: ${codeuri}
2929
MemorySize: 128
3030

integration/resources/templates/combination/api_with_cors_openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Resources:
2222
Type: AWS::Serverless::Function
2323
Properties:
2424
Handler: index.handler
25-
Runtime: nodejs12.x
25+
Runtime: nodejs14.x
2626
CodeUri: ${codeuri}
2727
MemorySize: 128
2828

integration/resources/templates/combination/api_with_cors_shorthand.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Resources:
2323
Type: AWS::Serverless::Function
2424
Properties:
2525
Handler: index.handler
26-
Runtime: nodejs12.x
26+
Runtime: nodejs14.x
2727
CodeUri: ${codeuri}
2828
MemorySize: 128
2929

integration/resources/templates/combination/api_with_custom_domains_edge.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Resources:
1717
return response;
1818
};
1919
Handler: index.handler
20-
Runtime: nodejs12.x
20+
Runtime: nodejs14.x
2121
Events:
2222
Fetch:
2323
Type: Api

integration/resources/templates/combination/api_with_custom_domains_regional.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Resources:
3535
return response;
3636
};
3737
Handler: index.handler
38-
Runtime: nodejs12.x
38+
Runtime: nodejs14.x
3939
Events:
4040
ImplicitGet:
4141
Type: Api

integration/resources/templates/combination/api_with_custom_domains_regional_ownership_verification.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Resources:
3939
return response;
4040
};
4141
Handler: index.handler
42-
Runtime: nodejs12.x
42+
Runtime: nodejs14.x
4343
Events:
4444
ImplicitGet:
4545
Type: Api

integration/resources/templates/combination/api_with_disable_execute_api_endpoint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Resources:
2424
return response;
2525
};
2626
Handler: index.handler
27-
Runtime: nodejs12.x
27+
Runtime: nodejs14.x
2828
Events:
2929
Iam:
3030
Type: Api

integration/resources/templates/combination/api_with_fail_on_warnings.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Resources:
2323
return response;
2424
};
2525
Handler: index.handler
26-
Runtime: nodejs12.x
26+
Runtime: nodejs14.x
2727
Events:
2828
Iam:
2929
Type: Api

integration/resources/templates/combination/api_with_gateway_responses.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Resources:
1313
Type: AWS::Serverless::Function
1414
Properties:
1515
Handler: index.handler
16-
Runtime: nodejs12.x
16+
Runtime: nodejs14.x
1717
InlineCode: |
1818
exports.handler = async (event, context, callback) => {
1919
return {

integration/resources/templates/combination/api_with_request_models.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Resources:
1414
Type: AWS::Serverless::Function
1515
Properties:
1616
Handler: index.handler
17-
Runtime: nodejs12.x
17+
Runtime: nodejs14.x
1818
InlineCode: |
1919
exports.handler = async (event, context, callback) => {
2020
return {

integration/resources/templates/combination/api_with_request_models_openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Resources:
1515
Type: AWS::Serverless::Function
1616
Properties:
1717
Handler: index.handler
18-
Runtime: nodejs12.x
18+
Runtime: nodejs14.x
1919
InlineCode: |
2020
exports.handler = async (event, context, callback) => {
2121
return {

integration/resources/templates/combination/api_with_request_parameters_openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Resources:
2929
});
3030
}
3131
Handler: index.handler
32-
Runtime: nodejs12.x
32+
Runtime: nodejs14.x
3333
Events:
3434
GetHtml:
3535
Type: Api

integration/resources/templates/combination/api_with_resource_policies.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Resources:
2424
Type: AWS::Serverless::Function
2525
Properties:
2626
Handler: index.handler
27-
Runtime: nodejs12.x
27+
Runtime: nodejs14.x
2828
CodeUri: ${codeuri}
2929
MemorySize: 128
3030

integration/resources/templates/combination/api_with_resource_policies_aws_account.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Resources:
33
Type: AWS::Serverless::Function
44
Properties:
55
Handler: index.handler
6-
Runtime: nodejs12.x
6+
Runtime: nodejs14.x
77
CodeUri: ${codeuri}
88
Events:
99
Api:

integration/resources/templates/combination/function_with_alias.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ Resources:
33
Type: AWS::Serverless::Function
44
Properties:
55
Handler: index.handler
6-
Runtime: nodejs12.x
6+
Runtime: nodejs14.x
77
CodeUri: ${codeuri}
88
AutoPublishAlias: Live

integration/resources/templates/combination/function_with_alias_and_event_sources.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Resources:
88
Properties:
99
CodeUri: ${codeuri}
1010
Handler: index.handler
11-
Runtime: nodejs12.x
11+
Runtime: nodejs14.x
1212

1313
AutoPublishAlias: Live
1414

integration/resources/templates/combination/function_with_alias_globals.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Resources:
77
Type: AWS::Serverless::Function
88
Properties:
99
Handler: index.handler
10-
Runtime: nodejs12.x
10+
Runtime: nodejs14.x
1111
CodeUri: ${codeuri}
1212

1313
# Alias is inherited from globals here
@@ -16,6 +16,6 @@ Resources:
1616
Type: AWS::Serverless::Function
1717
Properties:
1818
Handler: index.handler
19-
Runtime: nodejs12.x
19+
Runtime: nodejs14.x
2020
CodeUri: ${codeuri}
2121
AutoPublishAlias: Live

integration/resources/templates/combination/function_with_alias_intrinsics.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Resources:
1919
Type: AWS::Serverless::Function
2020
Properties:
2121
Handler: index.handler
22-
Runtime: nodejs12.x
22+
Runtime: nodejs14.x
2323
CodeUri:
2424
# Just trying to create a complex intrinsic function where only a part of it can be resolved
2525
Bucket:

integration/resources/templates/combination/function_with_all_event_types.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Resources:
1919
InlineCode: |
2020
exports.handler = async () => ‘Hello World!'
2121
Handler: index.handler
22-
Runtime: nodejs12.x
22+
Runtime: nodejs14.x
2323
Events:
2424
ImageBucket:
2525
Type: S3
@@ -36,7 +36,7 @@ Resources:
3636
InlineCode: |
3737
exports.handler = async () => ‘Hello World!'
3838
Handler: index.handler
39-
Runtime: nodejs12.x
39+
Runtime: nodejs14.x
4040
AutoPublishAlias: Live
4141
Events:
4242
CWSchedule:

integration/resources/templates/combination/function_with_all_event_types_condition_false.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Resources:
1414
InlineCode: |
1515
exports.handler = async () => ‘Hello World!'
1616
Handler: index.handler
17-
Runtime: nodejs12.x
17+
Runtime: nodejs14.x
1818
Events:
1919
ImageBucket:
2020
Type: S3
@@ -31,7 +31,7 @@ Resources:
3131
InlineCode: |
3232
exports.handler = async () => ‘Hello World!'
3333
Handler: index.handler
34-
Runtime: nodejs12.x
34+
Runtime: nodejs14.x
3535
AutoPublishAlias: Live
3636
Events:
3737
CWSchedule:

integration/resources/templates/combination/function_with_api.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Resources:
1111
Type: AWS::Serverless::Function
1212
Properties:
1313
Handler: index.handler
14-
Runtime: nodejs12.x
14+
Runtime: nodejs14.x
1515
CodeUri: ${codeuri}
1616
MemorySize: 128
1717

integration/resources/templates/combination/function_with_application.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Resources:
1313
Type: AWS::Serverless::Function
1414
Properties:
1515
Handler: index.handler
16-
Runtime: nodejs12.x
16+
Runtime: nodejs14.x
1717
CodeUri: ${codeuri}
1818
Environment:
1919
Variables:

integration/resources/templates/combination/function_with_cloudwatch_log.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Resources:
33
Type: 'AWS::Serverless::Function'
44
Properties:
55
Handler: index.handler
6-
Runtime: nodejs12.x
6+
Runtime: nodejs14.x
77
CodeUri: ${codeuri}
88
MemorySize: 128
99
Events:

integration/resources/templates/combination/function_with_cwe_dlq_and_retry_policy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Resources:
66
Type: AWS::Serverless::Function
77
Properties:
88
Handler: index.handler
9-
Runtime: nodejs12.x
9+
Runtime: nodejs14.x
1010
CodeUri: ${codeuri}
1111
MemorySize: 128
1212

integration/resources/templates/combination/function_with_cwe_dlq_generated.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Resources:
33
Type: AWS::Serverless::Function
44
Properties:
55
Handler: index.handler
6-
Runtime: nodejs12.x
6+
Runtime: nodejs14.x
77
CodeUri: ${codeuri}
88
MemorySize: 128
99

0 commit comments

Comments
 (0)