Skip to content

Commit

Permalink
test: New test group to test for side effects (#2046)
Browse files Browse the repository at this point in the history
* test: New test group to test for side effects

* refactor: Updated to use _compare_transform and test CN and GOV partitions
  • Loading branch information
mgrandis authored Jun 4, 2021
1 parent be9b9d9 commit c7322fb
Show file tree
Hide file tree
Showing 9 changed files with 1,788 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
Globals:
Api:
Auth:
ApiKeyRequired: true
UsagePlan:
CreateUsagePlan: SHARED

Resources:
MyApiOne:
Type: AWS::Serverless::Api
Properties:
StageName: Prod

MyApiTwo:
Type: AWS::Serverless::Api
Properties:
StageName: Prod

MyFunctionOne:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: nodejs12.x
InlineCode: |
exports.handler = async (event) => {
return {
statusCode: 200,
body: JSON.stringify(event),
headers: {}
}
}
Events:
ApiKey:
Type: Api
Properties:
RestApiId:
Ref: MyApiOne
Method: get
Path: /path/one

MyFunctionTwo:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: nodejs12.x
InlineCode: |
exports.handler = async (event) => {
return {
statusCode: 200,
body: JSON.stringify(event),
headers: {}
}
}
Events:
ApiKey:
Type: Api
Properties:
RestApiId:
Ref: MyApiTwo
Method: get
Path: /path/two
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Globals:
Api:
Auth:
ApiKeyRequired: true
UsagePlan:
CreateUsagePlan: SHARED

Resources:
MyApiFour:
Type: AWS::Serverless::Api
Properties:
StageName: Prod

MyFunctionFour:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: nodejs12.x
InlineCode: |
exports.handler = async (event) => {
return {
statusCode: 200,
body: JSON.stringify(event),
headers: {}
}
}
Events:
ApiKey:
Type: Api
Properties:
RestApiId:
Ref: MyApiFour
Method: get
Path: /path/four
Loading

0 comments on commit c7322fb

Please sign in to comment.