ansible/test/units/module_utils
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
..
acme crypto modules: fix sanity errors (#60046) 2019-08-18 05:37:57 +02:00
aws Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
basic unit tests: remove unused imports (#60462) 2019-08-13 19:21:43 +02:00
cloud Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
common Fix unit tests to work with pytest >= 5.0 (#60246) 2019-08-09 14:58:46 -04:00
docker docker: fix sanity errors (#60047) 2019-08-09 23:50:11 +02:00
ec2 Update bare exceptions to specify Exception. 2018-12-16 15:03:19 -08:00
facts Speed up units using time.sleep by mocking or shortening sleep time (#61064) 2019-08-21 16:52:58 -05:00
gcp unit tests: remove unused imports (#59636) 2019-07-26 10:53:31 -04:00
hwc Unit tests: remove unused imports (#59740) 2019-07-29 22:10:13 +02:00
json_utils unit tests: remove unused imports (#59636) 2019-07-26 10:53:31 -04:00
net_tools unit tests: remove unused imports (#59636) 2019-07-26 10:53:31 -04:00
network Meraki - Enable API call rate limiting for requests (#54827) 2019-08-27 16:32:09 -04:00
parsing Consolidate boolean/mk_boolean conversion functions into a single location 2017-07-17 11:48:05 -07:00
postgresql Postgres module_utils: add get_connect_params + unit tests (#58067) 2019-06-19 06:49:19 -07:00
remote_management Adding dell ome device_info module (#53438) 2019-06-10 06:41:48 -04:00
urls ansible-galaxy - define multiple galaxy instances in ansible.cfg (#60553) 2019-08-21 07:49:05 +10:00
xenserver unit tests: remove unused imports (#60462) 2019-08-13 19:21:43 +02:00
__init__.py
conftest.py Python 3.8 collections compatibility fixes. 2018-10-08 11:26:37 -07:00
test_database.py Fix unit test parametrize order on Python 3.5. 2018-09-17 22:45:42 -07:00
test_distribution_version.py Get minor version number for CentOS and Debian (#57814) 2019-06-28 19:21:35 -04:00
test_distro.py Update distro unit test (#55003) 2019-04-08 16:26:31 -04:00
test_hetzner.py Hetzner failover IP: refactoring (#56203) 2019-05-10 08:33:51 +02:00
test_known_hosts.py unit tests: remove unused imports (#59636) 2019-07-26 10:53:31 -04:00
test_kubevirt.py kubevirt: more unit tests (#57739) 2019-06-25 20:06:13 +10:00
test_netapp.py Improved netapp module utility for E-Series. (#59527) 2019-08-01 13:24:38 -04:00
test_text.py Porting tests to pytest (#33387) 2017-12-05 12:43:13 -08:00
test_utm_utils.py Add optional headers to utm modules (#49856) 2019-01-17 19:06:50 +05:30
test_vmware.py VMware: add support for http_proxy in connection API 2019-08-01 15:57:26 +02:00