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
Matt Martz 284dafe476
Perfy McPerferton (#58400)
* InventoryManager start of perf improvements

* 0 not 1

* More startswith to [0] improvements

* Remove unused var

* The hash doesn't need to be a string, start as a list, make it into a tuple

* set actually appears faster than frozenset, and these don't need to be frozen

* Cache hosts lists, to avoid extra get_hosts calls, pass to get_vars too

* negligible perf improvement, it could help with memory later

* Try the fast way, fallback to the safe way

* Revert to previous logic, linting fix

* Extend pre-caching to free

* Address test failures

* Hosts are strings

* Fix unit test

* host is a string

* update test assumption

* drop SharedPluginLoaderObj, pre-create a set, instead of 2 comparisons in the list comprehension

* Dedupe code

* Change to _hosts and _hosts_all in get_vars

* Add backwards compat for strategies that don't do set host caches

* Add deprecation message to SharedPluginLoaderObj

* Remove unused SharedPluginLoaderObj import

* Update docs/comments

* Remove debugging

* Indicate what patterh_hash is

* That won't work

* Re-fix tests

* Update _set_hosts_cache to accept the play directly, use without refresh in get_hosts_remaining and get_failed_hosts for backwards compat

* Rename variable to avoid confusion

* On add_host only manipulate _hosts_cache_all

* Add warning docs around _hosts and _hosts_all args
5 years ago
..
cli Perfy McPerferton (#58400) 5 years ago
compat Move unit test compat code out of `lib/ansible/`. (#46996) 6 years ago
config fixes to config manager (#58530) 5 years ago
contrib Fix vmware_inventory unit tests so they run. 6 years ago
errors Add better error when k=v syntax is used with YAML in tasks (#41754) 6 years ago
executor Support using importlib on py>=3 to avoid imp deprecation (#54883) 5 years ago
galaxy ansible-galaxy: add collection sub command (#57106) 5 years ago
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 9 years ago
mock Move unit test compat code out of `lib/ansible/`. (#46996) 6 years ago
module_utils Add unit tests for bytes_to_human formatter 5 years ago
modules New feature to na_ontap_snapmirror (#59047) 5 years ago
parsing Correct places where match was intended 5 years ago
playbook role: Fix role's hash_params (#55263) 5 years ago
plugins Perfy McPerferton (#58400) 5 years ago
pytest/plugins Move ansible-test unit coverage code into plugin. 5 years ago
regex Add toggle to control invalid character substitution in group names (#52748) 6 years ago
template Add back _contains_vars method as maybe_template (#58290) 5 years ago
utils patch ansible-connection collection plugin loading (#59119) 5 years ago
vars Fix inventory cache interface (#50446) 6 years ago
__init__.py Add empty-init code-smell script. (#18406) 8 years ago
ansible.cfg Fix ansible-test config management. 7 years ago
test_constants.py 1st part of ansible config, adds ansible-config to view/manage configs (#12797) 7 years ago
test_context.py Save the command line arguments into a global context 6 years ago