fix(integ-tests): Add IAM auth to API Gateway resources in integration tests#3963
Open
licjun wants to merge 1 commit into
Open
fix(integ-tests): Add IAM auth to API Gateway resources in integration tests#3963licjun wants to merge 1 commit into
licjun wants to merge 1 commit into
Conversation
licjun
force-pushed
the
fix/apigateway-no-auth
branch
from
July 22, 2026 00:15
e0e9baa to
36901fc
Compare
…n tests Add IAM authorization to all API Gateway resources created by integration tests. Changes: - WebSocket APIs: Added Auth.AuthType: AWS_IAM (11 templates) - HTTP APIs: Added Auth.EnableIamAuthorizer + DefaultAuthorizer (10 templates) - REST APIs: Added Auth.DefaultAuthorizer: AWS_IAM (27 templates) - Added SigV4 request signing helpers to base_test.py - Updated tests that verify HTTP responses to use SigV4 signed requests - Updated expected status code from 403 to 404 for deleted routes with IAM auth
licjun
force-pushed
the
fix/apigateway-no-auth
branch
from
July 22, 2026 16:02
36901fc to
8dc28c2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add IAM authorization to all API Gateway resources created by integration tests.
Changes
Auth.AuthType: AWS_IAM(11 templates)Auth.EnableIamAuthorizer: true+DefaultAuthorizer: AWS_IAM(10 templates)Auth.DefaultAuthorizer: AWS_IAM(27 templates)base_test.pyTesting
Verified locally against account 830899278857 (us-west-2):
test_basic_http_api✅test_websocket_api_with_disable_execute_api_endpoint✅test_function_with_http_api✅test_function_with_http_api_default_path✅test_function_with_implicit_http_api✅test_state_machine_with_api_single_quotes_input✅test_basic_api_inline_openapi✅test_basic_api_with_mode✅