-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
14 changed files
with
94 additions
and
1 deletion.
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
8 changes: 8 additions & 0 deletions
8
tests/integration/testdata/buildcmd/base-dir/ChildStackX/ChildStackY/FunctionA/main_a_2.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import json | ||
|
||
|
||
def handler(event, context): | ||
""" | ||
FunctionA in leaf template | ||
""" | ||
return {"statusCode": 200, "body": json.dumps({"hello": "a2"})} |
Empty file.
Empty file.
Empty file.
Empty file.
2 changes: 2 additions & 0 deletions
2
...stdata/buildcmd/base-dir/ChildStackX/ChildStackY/MyLayerVersion/my_layer/simple_python.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
def layer_ping(): | ||
return "This is a Layer Ping from simple_python" |
21 changes: 21 additions & 0 deletions
21
tests/integration/testdata/buildcmd/base-dir/ChildStackX/ChildStackY/template.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,21 @@ | ||
AWSTemplateFormatVersion : '2010-09-09' | ||
Transform: AWS::Serverless-2016-10-31 | ||
Description: A hello world application. | ||
|
||
Resources: | ||
FunctionA: | ||
Type: AWS::Serverless::Function | ||
Properties: | ||
Handler: main_a_2.handler | ||
Runtime: python3.7 | ||
CodeUri: base-dir/ChildStackX/ChildStackY/FunctionA | ||
Timeout: 600 | ||
|
||
MyLayerVersion: | ||
Type: AWS::Serverless::LayerVersion | ||
Properties: | ||
LayerName: MyLayer | ||
Description: Layer description | ||
ContentUri: base-dir/ChildStackX/ChildStackY/MyLayerVersion | ||
CompatibleRuntimes: | ||
- python3.7 |
8 changes: 8 additions & 0 deletions
8
tests/integration/testdata/buildcmd/base-dir/ChildStackX/FunctionB/main_b.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import json | ||
|
||
|
||
def handler(event, context): | ||
""" | ||
FunctionB in child template | ||
""" | ||
return {"statusCode": 200, "body": json.dumps({"hello": "b"})} |
Empty file.
17 changes: 17 additions & 0 deletions
17
tests/integration/testdata/buildcmd/base-dir/ChildStackX/template.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,17 @@ | ||
AWSTemplateFormatVersion : '2010-09-09' | ||
Transform: AWS::Serverless-2016-10-31 | ||
Description: A hello world application. | ||
|
||
Resources: | ||
FunctionB: | ||
Type: AWS::Serverless::Function | ||
Properties: | ||
Handler: main_b.handler | ||
Runtime: python3.7 | ||
CodeUri: base-dir/ChildStackX/FunctionB | ||
Timeout: 600 | ||
|
||
ChildStackY: | ||
Type: AWS::Serverless::Application | ||
Properties: | ||
Location: ChildStackY/template.yaml |
8 changes: 8 additions & 0 deletions
8
tests/integration/testdata/buildcmd/base-dir/FunctionA/main_a.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import json | ||
|
||
|
||
def handler(event, context): | ||
""" | ||
FunctionA in root template | ||
""" | ||
return {"statusCode": 200, "body": json.dumps({"hello": "a"})} |
Empty file.
17 changes: 17 additions & 0 deletions
17
tests/integration/testdata/buildcmd/base-dir/template.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,17 @@ | ||
AWSTemplateFormatVersion : '2010-09-09' | ||
Transform: AWS::Serverless-2016-10-31 | ||
Description: A hello world application. | ||
|
||
Resources: | ||
FunctionA: | ||
Type: AWS::Serverless::Function | ||
Properties: | ||
Handler: main_a.handler | ||
Runtime: python3.7 | ||
CodeUri: base-dir/FunctionA | ||
Timeout: 600 | ||
|
||
ChildStackX: | ||
Type: AWS::Serverless::Application | ||
Properties: | ||
Location: ChildStackX/template.yaml |