Open
Description
Why is this needed?
Currently, some unit tests such as powertools-idempotency-dynamodb
depend on running a local server for mocking AWS resources.
This violates the principle that unit tests should run in a self-contained way.
Example which should be avoided:
This starts a DynamoDB mock server on localhost.
Which area does this relate to?
Tests
Suggestion
This issues suggests to:
- Audit all unit tests for external dependencies
- Replace external dependencies by self-contained mocking
- Add a test scenario in the end2end tests to cover the use-case using real infrastructure in real AWS accounts
Acknowledgment
- This request meets Powertools for AWS Lambda (Python) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Python, TypeScript, and .NET
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Backlog