ansible/test/units/galaxy
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
..
__init__.py
test_api.py ansible-galaxy - increase page size and add retry decorator for throttling (#74240) 2021-05-10 13:26:41 -04:00
test_collection.py Replace the inhouse collection dependency resolver with resolvelib 2021-01-27 22:23:22 +01:00
test_collection_install.py add --offline option to galaxy collection verify (#74040) 2021-03-29 09:47:15 -07:00
test_role_requirements.py galaxy: handle plus sign in user token appearing in role url (#73057) 2021-01-06 10:50:44 -05:00
test_token.py
test_user_agent.py ansible-galaxy - expand User-Agent string for Galaxy endpoints (#65578) 2019-12-06 10:34:14 +10:00