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
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.
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
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
forAuthType
.Test: https://github.com/awslabs/aws-lambda-powertools-python/blob/develop/tests/functional/data_classes/test_lambda_function_url.py#L5
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
totest_lambda_function_url_event_iam
, and create a new testtest_lambda_function_url_event
to coverNONE
and all potential authZ keys that might not exist in Function URLAcknowledgment
The text was updated successfully, but these errors were encountered: