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/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
5 years ago
..
action Templar: encapsulate _available_variables (#55435) 6 years ago
cache Improve testing of FactCache (#55739) 5 years ago
callback Fix for callback plugins on Python3 when a module returns dictionary keys that aren't strings 6 years ago
cliconf Fix ios test for python2 non-ascii paths 5 years ago
connection Fix netconf guess_network_os to use ssh_config if supplied. (#55199) 5 years ago
filter Correct places where match was intended 5 years ago
httpapi Add latest updates from FTD Ansible downstream repository. (#53638) 6 years ago
inventory add IAM role assumption to aws_ec2 inventory (#41637) 5 years ago
loader_fixtures Don't cache duplicate plugin names (#34420) 7 years ago
lookup Skip tests with unsatisfied deps (#55853) 5 years ago
shell Add support for Windows hosts in the SSH connection plugin (#47732) 6 years ago
strategy Perfy McPerferton (#58400) 5 years ago
terminal Add unit tests for junos terminal (#47103) 6 years ago
vars Add empty-init code-smell script. (#18406) 8 years ago
__init__.py Add empty-init code-smell script. (#18406) 8 years ago
test_plugins.py Misc typo fixes (#49816) 6 years ago