Closed
Description
Summary
Function URL latest introduction is missing a test without authorization fields. This will ensure code paths work when a function URL is configured as NONE
for AuthType
.
Why is this needed?
Completeness. Functional tests are covering only when IAM is set and not when NONE
is set, this will help verify future AuthZ options added to Function URL, and uncover any side effect when these aren't available.
Which area does this relate to?
Event Handler - REST API
Solution
Rename test_lambda_function_url_event
to test_lambda_function_url_event_iam
, and create a new test test_lambda_function_url_event
to cover NONE
and all potential authZ keys that might not exist in Function URL
Acknowledgment
- This request meets Lambda Powertools Tenets
- Should this be considered in other Lambda Powertools languages? i.e. Java, TypeScript