[FEATURE] Automatically delay requests based on the Retry-After
header value
#1722
Labels
Core: Transport
Sending data to the tested app
Difficulty: Intermediate
Requires some experience
Priority: Low
Cosmetic or low-impact changes
Type: Feature
New functionalities or enhancements
UX: Usability
Enhances user experience
Is your feature request related to a problem? Please describe.
Often Schemathesis tests fail because of rate limits and generally are not executed as expected and don't test the service properly.
Describe the solution you'd like
There is a manual rate limiting (in #910), but it could happen that Schemathesis hits the limit anyway, for example, if no rate limit is set in CLI or just unexpected.
As a secondary measure, Schemathesis can read the
Retry-After
header and delay requests automatically.It could be activated via e.g. the
--rate-limit=auto
CLI optionDescribe alternatives you've considered
Just a manual rate limit, but it could still fail for different reasons.
Additional context
There are a few unresolved issues:
The text was updated successfully, but these errors were encountered: