You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
3 years ago
..
_vendor Another unit test fix for Python 3.10. (#74628) 3 years ago
ansible_test Remove Shippable CI provider from ansible-test. 3 years ago
cli Clarify CLI version number as core version (#72287) 3 years ago
compat Move unit test compat code out of `lib/ansible/`. (#46996) 6 years ago
config Provide better decryption errors for single vault values (#72362) 4 years ago
errors Fix YAML error message when error is at the end of the file (#73241) 3 years ago
executor Use ArgumentSpecValidator in AnsibleModule (#73703) 3 years ago
galaxy ansible-galaxy - increase page size and add retry decorator for throttling (#74240) 3 years ago
inventory Clean up unit test boilerplate. 4 years ago
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 9 years ago
mock only add data when there is data to add (#54559) 3 years ago
module_utils ansible-galaxy - increase page size and add retry decorator for throttling (#74240) 3 years ago
modules async_wrapper more info on end (#74199) 3 years ago
parsing Fix unit tests on Python 3.10. 3 years ago
playbook [playbook/play.py] Increase error test coverage (#74217) 3 years ago
plugins pause - ensure control characters are always set appropriately (#74568) 3 years ago
regex Add toggle to control invalid character substitution in group names (#52748) 5 years ago
template Do not treat AnsibleUndefined as being unsafe (#65202) 5 years ago
utils defend against bad or missing crypt (#74304) 3 years ago
vars Remove empty setUp/tearDown/tearDownClass methods in test classes. 5 years ago
__init__.py Add empty-init code-smell script. (#18406) 8 years ago
requirements.txt Fix unit tests on Python 3.10. 3 years ago
test_constants.py Remove some constants.py deprecated items (#70466) 4 years ago
test_context.py Clean up unit test boilerplate. 4 years ago