-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Validate existing test apigw #10653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validate existing test apigw #10653
Conversation
…_base_64_encoded`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Nice work, and thanks for the comments, really helpful in understanding why there's an issue. 🙇♂️
client_config = None | ||
if is_aws_cloud(): | ||
client_config = botocore.config.Config( | ||
# Api gateway can throttle requests pretty heavily. Leading to potentially undeleted apis | ||
retries={"max_attempts": 10, "mode": "adaptive"} | ||
) | ||
apigateway_client = aws_client_factory( | ||
region_name=region_name, config=client_config | ||
).apigateway |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, this is a great way to fix it. We also have some other fixtures which just try deleting forever or almost if getting a 429, the throttling of DeleteRestApi
is really insane to me, you'd need to add 15+ seconds sleep in between calls 😭 neat 👌
@bentsku I added a lost commit forgotten on my machine! It contained the update you mentioned for |
Motivation
Part of the effort to improve parity with aws. This first step sorts all
aws.unknown
tags and replaces them withaws.validated
oraws.needs_fixing
.Changes
Started to go through apigw