Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-ephemeral-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
fail-fast: false
matrix: ${{ fromJson(needs.build-matrix.outputs.matrix) }}

uses: launchbynttdata/launch-workflows/.github/workflows/reusable-terragrunt-deploy-ephemeral.yml@0.8.0
uses: launchbynttdata/launch-workflows/.github/workflows/reusable-terragrunt-deploy-ephemeral.yml@fix/ephemeral-deploys
with:
git_branch: ${{ github.head_ref }}
assume_role_arn: "arn:aws:iam::020127659860:role/github-actions-deploy-role"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-ephemeral-destroy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
fail-fast: false
matrix: ${{ fromJson(needs.build-matrix.outputs.matrix) }}

uses: launchbynttdata/launch-workflows/.github/workflows/reusable-terragrunt-destroy-ephemeral.yml@0.8.0
uses: launchbynttdata/launch-workflows/.github/workflows/reusable-terragrunt-destroy-ephemeral.yml@fix/ephemeral-deploys
with:
git_branch: ${{ github.head_ref }}
assume_role_arn: "arn:aws:iam::020127659860:role/github-actions-deploy-role"
Expand Down
2 changes: 1 addition & 1 deletion src/function/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
def lambda_handler(event, context):
return {
"statusCode": 200,
"body": f"Hello from a sample Python Lambda Function! Payload: {PAYLOAD}",
"body": f"Hello from an ephemeral Python Lambda Function! Payload: {PAYLOAD}",
}
7 changes: 2 additions & 5 deletions test/unit/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,11 @@
def test_primary_handler():
result = app.lambda_handler(None, None)
assert result["statusCode"] == 200
assert result["body"] == "Hello from a sample Python Lambda Function! Payload: None"
assert "Payload: None" in result["body"]


def test_primary_handler_with_payload():
with patch.object(app, "PAYLOAD", "test_payload"):
result = app.lambda_handler(None, None)
assert result["statusCode"] == 200
assert (
result["body"]
== "Hello from a sample Python Lambda Function! Payload: test_payload"
)
assert "test_payload" in result["body"]
Loading