-
Notifications
You must be signed in to change notification settings - Fork 48
Add support for retry of HTTP requests #1384
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
Conversation
This issue has been automatically marked as stale because it has not had activity in the last 30 days. |
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.
The cassette file is unused, we should write a test using it.
* add retry and its configs * auto reformat * format * redo is_retry and rewrite retry config options * Reformat * Fix syntax & add test * Fixe test & adjusting retry impl * pre-commit fixes * Update template * Fix import * pre-commit fixes * change retry import * remove retry import * remove saving content of the response * update cassette * delete env file * update cassette * use mock for test_retry * pre-commit fixes * use urllib3 for requests * pre-commit fixes * fix return format * pre-commit fixes * add response header * pre-commit fixes * change retry test * pre-commit fixes * update test_retry * pre-commit fixes * use call count * pre-commit fixes * Update .generator/src/generator/templates/rest.j2 Co-authored-by: Thomas Hervé <[email protected]> * pre-commit fixes * Add back test * pre-commit fixes * Fix content encoding * touch up rest client and test * pre-commit fixes * add test without reset header * pre-commit fixes * change allowed method check * Minor tweaks * Use cassette for errors as well * Docs --------- Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: Thomas Hervé <[email protected]> afd63b3
What does this PR do?
Adding retry and configuration options to the client
Additional Notes
Review checklist
Please check relevant items below:
This PR includes all newly recorded cassettes for any modified tests.
This PR does not rely on API client schema changes.
Or, this PR relies on API schema changes and this is a Draft PR to include tests for that new functionality.