ansible/test/units
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
..
_vendor Another unit test fix for Python 3.10. (#74628) 2021-05-07 17:26:41 -07:00
ansible_test Remove Shippable CI provider from ansible-test. 2021-05-05 17:42:13 -07:00
cli Clarify CLI version number as core version (#72287) 2021-03-01 11:14:56 -06:00
compat
config Provide better decryption errors for single vault values (#72362) 2020-11-18 14:25:32 -06:00
errors Fix YAML error message when error is at the end of the file (#73241) 2021-01-19 10:07:36 -05:00
executor Use ArgumentSpecValidator in AnsibleModule (#73703) 2021-03-19 12:09:18 -07:00
galaxy ansible-galaxy - increase page size and add retry decorator for throttling (#74240) 2021-05-10 13:26:41 -04:00
inventory Clean up unit test boilerplate. 2020-06-22 14:20:33 -07:00
inventory_test_data/group_vars
mock only add data when there is data to add (#54559) 2021-02-11 10:07:20 -05:00
module_utils ansible-galaxy - increase page size and add retry decorator for throttling (#74240) 2021-05-10 13:26:41 -04:00
modules async_wrapper more info on end (#74199) 2021-04-13 10:30:13 -04:00
parsing Fix unit tests on Python 3.10. 2021-05-07 16:56:30 -07:00
playbook [playbook/play.py] Increase error test coverage (#74217) 2021-04-13 11:22:02 -04:00
plugins pause - ensure control characters are always set appropriately (#74568) 2021-05-06 15:09:26 -04:00
regex Add toggle to control invalid character substitution in group names (#52748) 2019-03-06 11:49:40 -05:00
template Do not treat AnsibleUndefined as being unsafe (#65202) 2019-11-25 15:06:29 +01:00
utils defend against bad or missing crypt (#74304) 2021-04-20 11:47:34 -04:00
vars Remove empty setUp/tearDown/tearDownClass methods in test classes. 2019-11-06 08:14:29 -08:00
__init__.py
requirements.txt Fix unit tests on Python 3.10. 2021-05-07 16:56:30 -07:00
test_constants.py Remove some constants.py deprecated items (#70466) 2020-07-07 18:41:19 -05:00
test_context.py Clean up unit test boilerplate. 2020-06-22 14:20:33 -07:00