ansible/test/units/plugins
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
..
action Templar: encapsulate _available_variables (#55435) 2019-05-20 11:49:54 -04:00
cache Improve testing of FactCache (#55739) 2019-06-10 16:26:24 -04:00
callback Fix for callback plugins on Python3 when a module returns dictionary keys that aren't strings 2018-12-04 23:03:48 -08:00
cliconf Fix ios test for python2 non-ascii paths 2019-06-21 11:32:28 -07:00
connection Fix netconf guess_network_os to use ssh_config if supplied. (#55199) 2019-06-21 09:04:13 +05:30
filter Correct places where match was intended 2019-07-18 17:10:58 -07:00
httpapi Add latest updates from FTD Ansible downstream repository. (#53638) 2019-04-01 18:08:01 +05:30
inventory add IAM role assumption to aws_ec2 inventory (#41637) 2019-06-18 15:34:41 -07:00
loader_fixtures Don't cache duplicate plugin names (#34420) 2018-01-04 16:47:23 -06:00
lookup Skip tests with unsatisfied deps (#55853) 2019-06-28 13:09:36 -07:00
shell Add support for Windows hosts in the SSH connection plugin (#47732) 2019-03-07 16:38:02 -08:00
strategy Perfy McPerferton (#58400) 2019-07-22 14:25:20 -05:00
terminal Add unit tests for junos terminal (#47103) 2018-10-16 15:14:38 +05:30
vars
__init__.py
test_plugins.py Misc typo fixes (#49816) 2018-12-14 15:12:58 +05:30