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/integration/targets/collections
David Shrewsbury ff47d3f766
Make sure collection is a list if a str is given (#69081)
* Make sure collection is a list if a str is given

* Call field validation early on collections

Because we are doing work on modifying the collections value before
it is actually validated, we can validate it ourselves early to make
sure the user supplies either a string or list. Dicts are not valid.

The new validation allows us to simplify the _ensure_default_collection()
function. And since the field is now static, we no longer need to specify
a default for it, which also allows us to simplify the function. Since
the default is now removed, we can also remove the sanity/ignore.txt entry
for collectionsearch.py.

New unit tests are added (and the existing one modified) that allow us to
make sure that we throw a parser error if a user specifies something other
than a string or list for the collections value everywhere it can be specified.

* Revert removing the collection default

The default is actually used, so restore it.

* Fix unit tests in test_helpers.py affected by early collection validation
5 years ago
..
collection_root_sys/ansible_collections/testns Add missing boilerplate to collections test. (#60507) 5 years ago
collection_root_user/ansible_collections Filter BLACKLIST_EXTS in PluginLoader (#69029) 5 years ago
collections/ansible_collections fix using inventory and cache plugins in a collection (#56469) 5 years ago
custom_vars_plugins Support vars plugins in collections (#61078) 5 years ago
inventory_cache fix using inventory and cache plugins in a collection (#56469) 5 years ago
library Add missing boilerplate to collections test. (#60507) 5 years ago
roles Allow a collection role to call a standalone role by default (#69102) 5 years ago
a.statichost.yml
aliases Address compat issue for collection loading on py26 (#68219) 5 years ago
cache.statichost.yml fix using inventory and cache plugins in a collection (#56469) 5 years ago
check_populated_inventory.yml fix using inventory and cache plugins in a collection (#56469) 5 years ago
includeme.yml
invocation_tests.yml Action module xross coll (#68080) 5 years ago
posix.yml Make sure collection is a list if a str is given (#69081) 5 years ago
runme.sh fix using inventory and cache plugins in a collection (#56469) 5 years ago
vars_plugin_tests.sh Inventory CLI - Ignore settings for when vars plugins should run (#65073) 5 years ago
windows.yml Change collection PS util import pattern (#61307) 5 years ago