ansible/test/units/module_utils
Sloane Hertel ee725846f0
ansible-galaxy - increase page size and add retry decorator for throttling (#74240)
* Get available collection versions with page_size=100 for v2 and limit=100 for v3

* Update unit tests for larger page sizes

* Add a generic retry decorator in module_utils/api.py that accepts an Iterable of delays and a callable to determine if an exception inheriting from Exception should be retried

* Use the new decorator to handle Galaxy API rate limiting

* Add unit tests for new retry decorator

* Preserve the decorated function's metadata with functools.wraps

Co-authored-by: Matt Martz <matt@sivel.net>
Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
2021-05-10 13:26:41 -04:00
..
basic Fix unit tests on Python 3.10. 2021-05-07 16:56:30 -07:00
common Remove deprecated common.removed module_util. 2021-04-29 16:07:56 -07:00
facts facts - set correct OS family for Rocky Linux (#74530) 2021-05-04 10:14:13 -04:00
json_utils Clean up unit test boilerplate. 2020-06-22 14:20:33 -07:00
parsing Clean up unit test boilerplate. 2020-06-22 14:20:33 -07:00
urls Make test_prepare_multipart succeed on non Debian distros 2021-01-13 21:21:33 +01:00
__init__.py
conftest.py Clean up unit test boilerplate. 2020-06-22 14:20:33 -07:00
test_api.py ansible-galaxy - increase page size and add retry decorator for throttling (#74240) 2021-05-10 13:26:41 -04:00
test_distro.py Clean up unit test boilerplate. 2020-06-22 14:20:33 -07:00