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
2019-07-22 14:25:20 -05:00
..
cli Perfy McPerferton (#58400) 2019-07-22 14:25:20 -05:00
compat Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
config fixes to config manager (#58530) 2019-07-17 10:39:30 -04:00
contrib
errors Add better error when k=v syntax is used with YAML in tasks (#41754) 2018-12-04 12:32:02 -05:00
executor Support using importlib on py>=3 to avoid imp deprecation (#54883) 2019-04-25 10:28:18 -05:00
galaxy ansible-galaxy: add collection sub command (#57106) 2019-07-10 05:47:25 +10:00
inventory_test_data/group_vars
mock Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
module_utils Add unit tests for bytes_to_human formatter 2019-07-22 15:45:07 +02:00
modules New feature to na_ontap_snapmirror (#59047) 2019-07-22 13:46:00 -04:00
parsing Correct places where match was intended 2019-07-18 17:10:58 -07:00
playbook role: Fix role's hash_params (#55263) 2019-07-08 09:25:59 -04:00
plugins Perfy McPerferton (#58400) 2019-07-22 14:25:20 -05:00
pytest/plugins Move ansible-test unit coverage code into plugin. 2019-07-10 10:09:46 -07:00
regex Add toggle to control invalid character substitution in group names (#52748) 2019-03-06 11:49:40 -05:00
template Add back _contains_vars method as maybe_template (#58290) 2019-06-25 10:54:37 -05:00
utils patch ansible-connection collection plugin loading (#59119) 2019-07-16 13:46:15 -07:00
vars Fix inventory cache interface (#50446) 2019-03-06 12:12:35 -06:00
__init__.py
ansible.cfg
test_constants.py
test_context.py Save the command line arguments into a global context 2019-01-03 18:12:23 -08:00