Description
Summary
In a recent PR (#3101) we introduced Parser to the Lambda layer we publish for Powertools for AWS Lambda. As part of this effort we added a test that parses the event of the Lambda function using a specific schema (Event Bridge event).
This works for e2e tests since we control the payload sent to the function being tested but doesn't work with the current setup we have for canary tests, which implicitly invoke the function by using a CDK custom resource with provider model.
Why is this needed?
So that we can move forward with the release.
Besides, the current test setup is not really testing the Parser utility as much as it's testing Zod itself, which is besides the point of the test.
Which area does this relate to?
Other
Solution
Temporarily remove the parsing of the event from the test and add it back again once we have refactored the code.
Acknowledgment
- This request meets Powertools for AWS Lambda (TypeScript) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Python, Java, and .NET
Future readers
Please react with 👍 and your use case to help us understand customer demand.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status