Scenario testing (synthetic deployments into Lambda)
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Start by locating the existing Pester tests for the layer-build script and reviewing the proposed GitHub Actions AWS IAM credential flow. Use the SAM templates, runtime layer, and hello-world handler described in the issue as the scenario-test entry points. Done means feature-specific Lambda cases invoke successfully, assertions pass, and deployed SAM stacks are torn down.
Written by the indexing model from the issue text.
Description
I'm excited to see unit tests being added here. Given a lot of this runtime's functionality is based on Lambda itself, it would be great if we could get programmatically test runtime features directly within Lambda.
I'm envisioning some Pester tests that:
- Build the runtime layer (maybe in a
BeforeAll{}block - I think we already have tests for the layer-build script?) - Iterate over a set of SAM templates (or multiple instantiations of a parameterized template) that:
- Refer to the runtime layer
- Deploy a "hello world"-type handler
- Invoke the lambda, once the deployment finishes
- Assert that the lambda runs
- Tear down SAM stacks when done
If we're trying to test specific features (e.g. compressed module handling, I would expect that one of the "test cases" (i.e. instantiations of the SAM template) deploys a Lambda that uses said feature.
I know GHA has a relatively straightforward integration story with AWS IAM - I envision GHA fetching AWS creds before running tests, whereas people testing locally would be able to use whatever AWS CLI creds they have configured.
- Dominant language
- PowerShell
- Stars
- 65
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from awslabs/aws-lambda-powershell-runtime
-
JSON logging support Open
Difficulty 5/5 Over a week Newbie friendliness 30/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
awslabs/aws-lambda-powershell-runtime#37 · 9 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
awslabs/aws-lambda-powershell-runtime#30 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
awslabs/aws-lambda-powershell-runtime#22 · 9 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
awslabs/aws-lambda-powershell-runtime#16 · 10 comments ·
All issues in awslabs/aws-lambda-powershell-runtime
Similar issues
-
kind/bug needs-triage
Difficulty 1/5 Under an hour Newbie friendliness 72/100
matrixorigin/matrixone#29223 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
copse-dev/agent-pane#2953 ·
-
bug ci-failure high priority
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
vllm-project/vllm-omni#7972 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
simonw/sqlite-utils#872 ·
-
bug good first issue
Difficulty 1/5 Under an hour Newbie friendliness 88/100
amponce/archive-movie-browser#166 ·