Description
Description of the feature request
Problem statement
PR #902 introduces a new flag that developers can enable to "clear the state" across invocations.
If developers want to make sure that persistent attributes added inside the handler function code are not persisted across invocations, they can now set the parameter clearState
as true
in the injectLambdaContext middleware or decorator.
To further validate that the functionality works as expected, we'd need one or more E2E tests scenarios for the Logger utility that confirm that with the flag enabled, persistent attributes added inside the Lambda function handler are not cached between invocations.
Summary of the feature
Add E2E test scenario for the clear state functionality.
Code examples
N/A
Benefits for you and the wider AWS community
Improved confidence over this feature's effectiveness.
Describe alternatives you've considered
N/A
Additional context
N/A