Skip to content

Maintenance: add e2e test for clear state functionality #924

Closed
@saragerion

Description

@saragerion

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

Related issues, RFCs

#482
#902

Metadata

Metadata

Assignees

Labels

completedThis item is complete and has been merged/shippedloggerThis item relates to the Logger UtilitytestsPRs that add or change tests

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions