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/module_utils
Sloane Hertel 093986dfaf
[2.10] ansible-galaxy - increase page size and add retry decorator (#74649)
* 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

ci_complete

Co-authored-by: Matt Martz <matt@sivel.net>
Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
(cherry picked from commit ee725846f0)

* Add changelog for ansible-galaxy improvements (#74738)

Changelog for #74240

(cherry picked from commit 9cfedcd9c9)
4 years ago
..
basic ensure unsafe writes fallback (#70722) (#73144) 4 years ago
common [2.10] AnsibleVaultEncryptedUnicode should be considered a string (#72216) 4 years ago
facts Detect Homebrew on Mac M1 (Apple Silicon) (#74378) (#74400) 4 years ago
json_utils [stable-2.10] Clean up unit test boilerplate. 4 years ago
parsing [stable-2.10] Clean up unit test boilerplate. 4 years ago
urls Add multipart/form-data functionality (#69376) 5 years ago
__init__.py Add empty-init code-smell script. (#18406) 8 years ago
conftest.py [stable-2.10] Clean up unit test boilerplate. 4 years ago
test_api.py [2.10] ansible-galaxy - increase page size and add retry decorator (#74649) 4 years ago
test_distro.py [stable-2.10] Clean up unit test boilerplate. 4 years ago