ansible/test/units/module_utils/network
Kevin Breit 489156378c Meraki - Enable API call rate limiting for requests (#54827)
* Initial commit for rate limiting
- Detects if error code is 429
- Pauses for random time between .5 and 5 seconds before retrying
- If it fails 10 times, give up and tell user

* Redo structure of request() to support rate limiting

* Hold down timer is now a sliding scale
- 3 * number of retries
- Fails after the 30 second wait

* Whitespace fixes

* Redo implementation using decorators
- Errors aren't tested but code works for regular calls

* Unit tests work for error handling

* Add integration tests for successful retries

* Add condition for 502 errors and retry

* Move _error_report out of the class

* PEP8 fixes

* Add changelog entry
2019-08-27 16:32:09 -04:00
..
aci Unit tests: remove unused imports (#59812) 2019-08-02 17:18:14 +02:00
avi
common
ftd
meraki Meraki - Enable API call rate limiting for requests (#54827) 2019-08-27 16:32:09 -04:00
nos unit tests: remove unused imports (#59636) 2019-07-26 10:53:31 -04:00
nso
slxos unit tests: remove unused imports (#59636) 2019-07-26 10:53:31 -04:00
__init__.py