ansible/test/units/cli
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
..
arguments Migrate command line parsing to argparse (#50610) 2019-04-23 13:54:39 -05:00
test_data ansible-galaxy: add collection sub command (#57106) 2019-07-10 05:47:25 +10:00
__init__.py
test_adhoc.py Restore ansible --version output (#55728) 2019-04-29 16:38:31 -04:00
test_cli.py Split up the base_parser function 2019-01-03 18:12:23 -08:00
test_console.py Restore ansible --version output (#55728) 2019-04-29 16:38:31 -04:00
test_galaxy.py ansible-galaxy: add collection sub command (#57106) 2019-07-10 05:47:25 +10:00
test_playbook.py Perfy McPerferton (#58400) 2019-07-22 14:25:20 -05:00
test_vault.py Restore ansible --version output (#55728) 2019-04-29 16:38:31 -04:00