Open
Conversation
Contributor
✅ No Breaking Changes DetectedNo public API breaking changes found in this PR. |
Hweinstock
reviewed
Apr 23, 2026
Contributor
Hweinstock
left a comment
There was a problem hiding this comment.
Looks good! Small qs about integ tests.
| cls.region = os.environ.get("BEDROCK_TEST_REGION", "us-west-2") | ||
| cls.role_arn = os.environ.get("GATEWAY_ROLE_ARN") | ||
| if not cls.role_arn: | ||
| pytest.skip("GATEWAY_ROLE_ARN not set") |
Contributor
There was a problem hiding this comment.
could this lead to tests being silently skipped or would the CI action still fail?
| authorizerType="NONE", | ||
| description="updated by integ test", | ||
| ) | ||
| assert updated["status"] == "READY" |
Contributor
There was a problem hiding this comment.
should we assert that the gateway was actually updated?
| ) | ||
| if not response.get("nextToken"): | ||
| return None | ||
| kwargs["nextToken"] = response["nextToken"] |
Contributor
There was a problem hiding this comment.
Two questions:
- why would a user pass in nextToken?
- should we use a local variable instead to avoid mutating the parameters?
|
|
||
|
|
||
| @pytest.mark.integration | ||
| class TestGatewayClient: |
Contributor
There was a problem hiding this comment.
nit: could we add one more get_gateway_target_by_name
get_gateway_target returns AccessDeniedException when called with a gateway ARN. Extract the gateway ID from the ARN for all target _and_wait polling methods. Also add missing credentialProviderConfigurations to the update_gateway_target integ test.
22f7529 to
cc85cfd
Compare
fix(gateway): use gateway ID instead of ARN for target polling
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.
Issue #, if available: Issue #390
Description of changes:
__getattr__passthrough*_and_waitpolling methods using shared wait_until/wait_until_deleted utilities:get_gateway_by_name— paginates through gateways, returns full details on first matchget_gateway_target_by_name— paginates through targets for a given gateway, returns full details on first match*_and_waitmethods accept WaitConfig for configurable polling behavior and apply convert_kwargs for snake_case supportTest Plan:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.