Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
719 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,4 @@ | |
CUSTOM_DOMAIN = "CustomDomain" | ||
ARM = "ARM" | ||
EFS = "EFS" | ||
S3_EVENTS = "S3Events" |
16 changes: 16 additions & 0 deletions
16
integration/single/test_function_with_http_api_and_auth.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "1.48.0" | ||
__version__ = "1.49.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
tests/translator/input/error_function_with_invalid_schedule_event.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Transform: "AWS::Serverless-2016-10-31" | ||
|
||
Resources: | ||
ScheduledFunction: | ||
Type: 'AWS::Serverless::Function' | ||
Properties: | ||
CodeUri: s3://sam-demo-bucket/hello.zip?versionId=3Tcgv52_0GaDvhDva4YciYeqRyPnpIcO | ||
Handler: hello.handler | ||
Runtime: python3.10 | ||
Events: | ||
Schedule1: | ||
Type: Schedule | ||
Properties: | ||
Schedule: 'rate(1 minute)' | ||
Name: test-schedule | ||
Description: Test Schedule | ||
State: "Enabled" | ||
Enabled: True |
45 changes: 45 additions & 0 deletions
45
tests/translator/input/error_swagger_security_not_dict_with_api_key_required.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
transformId: AWS::Serverless-2016-10-31 | ||
AWSTemplateFormatVersion: '2010-09-09' | ||
Resources: | ||
AuthFunction: | ||
Type: AWS::Serverless::Function | ||
AccessingPartyAPI: | ||
Type: AWS::Serverless::Api | ||
Properties: | ||
EndpointConfiguration: REGIONAL | ||
StageName: demo | ||
Auth: | ||
ApiKeyRequired: true | ||
|
||
DefinitionBody: | ||
paths: | ||
"/path": | ||
put: | ||
responses: | ||
'201': | ||
content: | ||
application/json: | ||
schema: | ||
"$ref": "abcd" | ||
x-amazon-apigateway-integration: | ||
contentHandling: CONVERT_TO_TEXT | ||
responses: | ||
default: | ||
statusCode: '200' | ||
uri: | ||
Fn::Sub: foobar | ||
httpMethod: POST | ||
passthroughBehavior: when_no_match | ||
type: aws_proxy | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
required: | ||
- readoutId | ||
- status | ||
type: object | ||
security: | ||
- [] | ||
|
||
openapi: 3.0.3 |
35 changes: 35 additions & 0 deletions
35
tests/translator/input/function_with_event_schedule_state.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Transform: "AWS::Serverless-2016-10-31" | ||
Parameters: | ||
ScheduleState: | ||
Type: String | ||
Default: Disabled | ||
|
||
Resources: | ||
ScheduledFunction: | ||
Type: 'AWS::Serverless::Function' | ||
Properties: | ||
CodeUri: s3://sam-demo-bucket/hello.zip?versionId=3Tcgv52_0GaDvhDva4YciYeqRyPnpIcO | ||
Handler: hello.handler | ||
Runtime: python3.10 | ||
Events: | ||
Schedule1: | ||
Type: Schedule | ||
Properties: | ||
Schedule: 'rate(1 minute)' | ||
Name: test-schedule | ||
Description: Test Schedule | ||
State: "Enabled" | ||
Schedule2: | ||
Type: Schedule | ||
Properties: | ||
Schedule: 'rate(1 minute)' | ||
Name: test-schedule | ||
Description: Test Schedule | ||
State: !Sub "Enabled" | ||
Schedule3: | ||
Type: Schedule | ||
Properties: | ||
Schedule: 'rate(1 minute)' | ||
Name: test-schedule | ||
Description: Test Schedule | ||
State: !Ref ScheduleState |
Oops, something went wrong.