You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
dreamorosi
added
logger
This item relates to the Logger Utility
and removed
triage
This item has not been triaged by a maintainer, please wait
labels
Oct 19, 2022
dreamorosi
changed the title
Tests (logger): add e2e test for clear state functionality
Maintenance: add e2e test for clear state functionality
Nov 14, 2022
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
astrue
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
The text was updated successfully, but these errors were encountered: