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
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
..
add_host
ansiballz_python Testing: Add support for AIX platform (#65802) 5 years ago
ansible adhoc: Load callbacks before sending v2_playbook_on_start (#67673) 5 years ago
ansible-doc Nuke all removed_module stubs (#67139) 5 years ago
ansible-galaxy Update ansible-galaxy to handle role requirements (#68288) 5 years ago
ansible-galaxy-collection ansible-galaxy - Fix tar path traversal issue during install - CVE-2020-10691 (#68596) 5 years ago
ansible-runner adhoc: Load callbacks before sending v2_playbook_on_start (#67673) 5 years ago
ansible-test Fix ansible-test submodule handling. (#68759) 5 years ago
any_errors_fatal Clean up unused config usage in integration tests. 5 years ago
apt Test installing a .deb that has deps, from a URL (#68332) 5 years ago
apt_key Testing: Add support for AIX platform (#65802) 5 years ago
apt_repository Revert "stricter permissions on atomic_move when creating new file (#68970)" (#68983) 5 years ago
args
assemble
assert Testing: Add support for AIX platform (#65802) 5 years ago
async Testing: Add support for AIX platform (#65802) 5 years ago
async_extra_data Expand Shippable test matrix. (#66912) 5 years ago
async_fail
become Testing: Add support for AIX platform (#65802) 5 years ago
binary
binary_modules Add new arches/OSes for binary_modules tests (#69052) 5 years ago
binary_modules_posix Add new arches/OSes for binary_modules tests (#69052) 5 years ago
binary_modules_winrm
blockinfile
blocks Fix ansible_failed_{task,result} undefined in rescue (#64831) 5 years ago
builtin_vars_prompt Rename tests (#68356) 5 years ago
callback_default Fix label lookup in the default callback for includes (#68822) 5 years ago
changed_when
check_mode
cli Wrap CLI Passwords with AnsibleUnsafeText, ensure unsafe context is not lost during encode/decode (#63351) 5 years ago
collections Make sure collection is a list if a str is given (#69081) 5 years ago
collections_plugin_namespace Address compat issue for collection loading on py26 (#68219) 5 years ago
collections_relative_imports Add relative module_util support for powershell (#68321) 5 years ago
collections_runtime_pythonpath Merge pull request #67093 from sivel/acd-content-dir 5 years ago
command_shell Testing: Add support for AIX platform (#65802) 5 years ago
conditionals
config
connection Simplify ansible-test target processing. (#61506) 5 years ago
connection_local
connection_paramiko_ssh Testing: Add support for AIX platform (#65802) 5 years ago
connection_posix Simplify ansible-test target processing. (#61506) 5 years ago
connection_psrp Update ansible-test --windows inventory creation. (#60911) 5 years ago
connection_ssh Testing: Add support for AIX platform (#65802) 5 years ago
connection_windows_ssh Update ansible-test --windows inventory creation. (#60911) 5 years ago
connection_winrm Update ansible-test --windows inventory creation. (#60911) 5 years ago
copy [copy] Add some test coverage for check_mode (#68895) 5 years ago
cron Removing a cron file when the 'name' parameter is specified is now allowed (#57471). Added integration tests to validate new behavior. (#65640) 5 years ago
debconf Testing: Add support for AIX platform (#65802) 5 years ago
debug
delegate_to Testing: Add support for AIX platform (#65802) 5 years ago
dnf Testing: Add support for CentOS Linux On Power platform (#68130) 5 years ago
dpkg_selections Testing: Add support for AIX platform (#65802) 5 years ago
egg-info Fix references to old egg-info directory. 5 years ago
embedded_module
environment
error_from_connection
expect Fix incorrect assumptions in integration tests. (#58365) 5 years ago
facts_d
failed_when
fetch fixed fetch traversal from slurp (#68720) 5 years ago
file Pull timezone's incidental file coverage into file tests (#68247) 5 years ago
fileglob Fix fileglob when using 'file*' vs 'stuff/file*' (#68945) 5 years ago
filter_core add test coverage for core filters (#68518) 5 years ago
filter_mathstuff [mathstuff] Get coverage into the 90% range (#68395) 5 years ago
filter_urls coverage for filter/urls.py, including fallback to custom implementations (#68412) 5 years ago
filter_urlsplit Split up filter integration tests. (#66962) 5 years ago
find
gathering
gathering_facts prevent ansible_facts injection (#68431) 5 years ago
get_url Testing: Add support for AIX platform (#65802) 5 years ago
getent Testing: Add support for AIX platform (#65802) 5 years ago
git [git] make force=True apply to git fetches (#68691) 5 years ago
group Test system users and groups. 5 years ago
group_by
groupby_filter
handlers Integration tests for notify with variable list (#66423) 5 years ago
hash
hosts_field
ignore_errors
ignore_unreachable
incidental_aws_codebuild Second batch of incidental integration tests. (#67765) 5 years ago
incidental_aws_step_functions_state_machine Fix incidental test stability. (#68125) 5 years ago
incidental_azure_rm_functionapp Second batch of incidental integration tests. (#67765) 5 years ago
incidental_azure_rm_mariadbserver Second batch of incidental integration tests. (#67765) 5 years ago
incidental_azure_rm_resource Second batch of incidental integration tests. (#67765) 5 years ago
incidental_azure_rm_webapp Second batch of incidental integration tests. (#67765) 5 years ago
incidental_cloud_init_data_facts Fourth batch of incidental integration tests. (#67873) 5 years ago
incidental_cloudformation Second batch of incidental integration tests. (#67765) 5 years ago
incidental_connection_chroot Fourth batch of incidental integration tests. (#67873) 5 years ago
incidental_consul Testing: Add support for CentOS Linux On Power platform (#68130) 5 years ago
incidental_cs_common Second batch of incidental integration tests. (#67765) 5 years ago
incidental_cs_role_permission Second batch of incidental integration tests. (#67765) 5 years ago
incidental_cs_service_offering Second batch of incidental integration tests. (#67765) 5 years ago
incidental_deploy_helper Fourth batch of incidental integration tests. (#67873) 5 years ago
incidental_ec2_instance Fix code coverage in tests. 5 years ago
incidental_flatpak_remote Fourth batch of incidental integration tests. (#67873) 5 years ago
incidental_hcloud_server Second batch of incidental integration tests. (#67765) 5 years ago
incidental_inventory_aws_ec2 Second batch of incidental integration tests. (#67765) 5 years ago
incidental_inventory_docker_swarm Testing: Add support for CentOS Linux On Power platform (#68130) 5 years ago
incidental_inventory_foreman Second batch of incidental integration tests. (#67765) 5 years ago
incidental_inventory_vmware_vm_inventory Second batch of incidental integration tests. (#67765) 5 years ago
incidental_ios_file First batch of incidental integration tests. (#67717) 5 years ago
incidental_k8s Fix code coverage in tests. 5 years ago
incidental_lookup_hashi_vault Testing: Add support for CentOS Linux On Power platform (#68130) 5 years ago
incidental_lookup_rabbitmq Fourth batch of incidental integration tests. (#67873) 5 years ago
incidental_lvg Fourth batch of incidental integration tests. (#67873) 5 years ago
incidental_mongodb_parameter Fourth batch of incidental integration tests. (#67873) 5 years ago
incidental_nios_prepare_tests Second batch of incidental integration tests. (#67765) 5 years ago
incidental_nios_txt_record Second batch of incidental integration tests. (#67765) 5 years ago
incidental_postgresql_user Fourth batch of incidental integration tests. (#67873) 5 years ago
incidental_script_inventory_vmware_inventory Second batch of incidental integration tests. (#67765) 5 years ago
incidental_selinux Fourth batch of incidental integration tests. (#67873) 5 years ago
incidental_setup_docker Update tests to use RHEL 7.8. (#68787) 5 years ago
incidental_setup_ec2 Second batch of incidental integration tests. (#67765) 5 years ago
incidental_setup_flatpak_remote Fourth batch of incidental integration tests. (#67873) 5 years ago
incidental_setup_mongodb Skip mongodb tests on all centos versions. 5 years ago
incidental_setup_mysql_db Update docker.txt to use the OpenSUSE 15.1 container image (devel edition) (#68785) 5 years ago
incidental_setup_openssl Revert "Cap cryptography version for macOS openssl test (#69083)" (#69126) 5 years ago
incidental_setup_postgresql_db Fourth batch of incidental integration tests. (#67873) 5 years ago
incidental_setup_rabbitmq Fourth batch of incidental integration tests. (#67873) 5 years ago
incidental_setup_tls Fourth batch of incidental integration tests. (#67873) 5 years ago
incidental_setup_zabbix Fourth batch of incidental integration tests. (#67873) 5 years ago
incidental_sts_assume_role Second batch of incidental integration tests. (#67765) 5 years ago
incidental_synchronize Fourth batch of incidental integration tests. (#67873) 5 years ago
incidental_timezone Fourth batch of incidental integration tests. (#67873) 5 years ago
incidental_tower_credential_type Second batch of incidental integration tests. (#67765) 5 years ago
incidental_tower_receive Second batch of incidental integration tests. (#67765) 5 years ago
incidental_ufw Testing: Add support for CentOS Linux On Power platform (#68130) 5 years ago
incidental_vmware_guest Second batch of incidental integration tests. (#67765) 5 years ago
incidental_vmware_guest_custom_attributes Second batch of incidental integration tests. (#67765) 5 years ago
incidental_vmware_host_hyperthreading Second batch of incidental integration tests. (#67765) 5 years ago
incidental_vmware_prepare_tests Second batch of incidental integration tests. (#67765) 5 years ago
incidental_vyos_config First batch of incidental integration tests. (#67717) 5 years ago
incidental_vyos_lldp_interfaces First batch of incidental integration tests. (#67717) 5 years ago
incidental_vyos_logging First batch of incidental integration tests. (#67717) 5 years ago
incidental_vyos_prepare_tests First batch of incidental integration tests. (#67717) 5 years ago
incidental_vyos_static_route First batch of incidental integration tests. (#67717) 5 years ago
incidental_win_copy Third batch of incidental integration tests. (#67830) 5 years ago
incidental_win_data_deduplication Third batch of incidental integration tests. (#67830) 5 years ago
incidental_win_dsc Third batch of incidental integration tests. (#67830) 5 years ago
incidental_win_hosts Third batch of incidental integration tests. (#67830) 5 years ago
incidental_win_lineinfile Third batch of incidental integration tests. (#67830) 5 years ago
incidental_win_ping Third batch of incidental integration tests. (#67830) 5 years ago
incidental_win_prepare_tests Third batch of incidental integration tests. (#67830) 5 years ago
incidental_win_psexec Third batch of incidental integration tests. (#67830) 5 years ago
incidental_win_reboot Third batch of incidental integration tests. (#67830) 5 years ago
incidental_win_security_policy Third batch of incidental integration tests. (#67830) 5 years ago
incidental_xml Testing: Add support for CentOS Linux On Power platform (#68130) 5 years ago
incidental_zabbix_host Fourth batch of incidental integration tests. (#67873) 5 years ago
include_import include_role: Strictly check string datatype for *_from (#68958) 5 years ago
include_parent_role_vars
include_vars include_vars: Check NoneType for raw_params (#64979) 5 years ago
include_vars-ad-hoc include_vars - fix stack trace when run ad-hoc with dirs parameter (#66581) 5 years ago
include_when_parent_is_dynamic Add dynamic and static include tests. (#68200) 5 years ago
include_when_parent_is_static Add dynamic and static include tests. (#68200) 5 years ago
includes
infra Rename tests (#68356) 5 years ago
interpreter_discovery_python Default to python3 on Debian 10 (#63097) 5 years ago
inventory inventory: Fail on non-existing limit file (#59758) 5 years ago
inventory_yaml Testing: Add support for AIX platform (#65802) 5 years ago
jinja2_native_types native types: literal_eval all the things (#68938) 5 years ago
known_hosts
limit_inventory Rename some integration tests. 5 years ago
lineinfile lineinfile - don't run os.makedirs on empty dir path (#63921) 5 years ago
lookup_config coverage for lookup_config (#68566) 5 years ago
lookup_dict Skip lookup tests on Python 2.6. 5 years ago
lookup_env Skip lookup tests on Python 2.6. 5 years ago
lookup_file Skip lookup tests on Python 2.6. 5 years ago
lookup_first_found Skip lookup tests on Python 2.6. 5 years ago
lookup_indexed_items Skip lookup tests on Python 2.6. 5 years ago
lookup_ini Skip lookup tests on Python 2.6. 5 years ago
lookup_inventory_hostnames Skip lookup tests on Python 2.6. 5 years ago
lookup_items Skip lookup tests on Python 2.6. 5 years ago
lookup_lines Skip lookup tests on Python 2.6. 5 years ago
lookup_list coverage for lookup_list (#68683) 5 years ago
lookup_nested Skip lookup tests on Python 2.6. 5 years ago
lookup_password Skip lookup tests on Python 2.6. 5 years ago
lookup_pipe Skip lookup tests on Python 2.6. 5 years ago
lookup_random_choice Skip lookup tests on Python 2.6. 5 years ago
lookup_sequence Skip lookup tests on Python 2.6. 5 years ago
lookup_subelements Skip lookup tests on Python 2.6. 5 years ago
lookup_template Skip lookup tests on Python 2.6. 5 years ago
lookup_together Skip lookup tests on Python 2.6. 5 years ago
lookup_url Skip lookup tests on Python 2.6. 5 years ago
lookup_vars Skip lookup tests on Python 2.6. 5 years ago
loop_control Fix extended loop_control with includes (#61231) 5 years ago
loops Testing: Add support for AIX platform (#65802) 5 years ago
meta_tasks Add test for meta: end_play (#59118) 5 years ago
module_defaults Use a custom test module for module_defaults test. 5 years ago
module_no_log Add more integration tests. (#68972) 5 years ago
module_precedence Filter BLACKLIST_EXTS in PluginLoader (#69029) 5 years ago
module_tracebacks Testing: Add support for AIX platform (#65802) 5 years ago
module_utils Add tests for new alias deprecation functionality (#61476) 5 years ago
module_utils_Ansible.AccessToken Split C# module utils to their own test target (#67910) 5 years ago
module_utils_Ansible.Basic Split C# module utils to their own test target (#67910) 5 years ago
module_utils_Ansible.Become Split C# module utils to their own test target (#67910) 5 years ago
module_utils_Ansible.ModuleUtils.AddType Separated ps module_util test targets, added WebRequest tests (#67914) 5 years ago
module_utils_Ansible.ModuleUtils.ArgvParser Separated ps module_util test targets, added WebRequest tests (#67914) 5 years ago
module_utils_Ansible.ModuleUtils.Backup Separated ps module_util test targets, added WebRequest tests (#67914) 5 years ago
module_utils_Ansible.ModuleUtils.CamelConversion Separated ps module_util test targets, added WebRequest tests (#67914) 5 years ago
module_utils_Ansible.ModuleUtils.CommandUtil Separated ps module_util test targets, added WebRequest tests (#67914) 5 years ago
module_utils_Ansible.ModuleUtils.FileUtil Separated ps module_util test targets, added WebRequest tests (#67914) 5 years ago
module_utils_Ansible.ModuleUtils.Legacy Separated ps module_util test targets, added WebRequest tests (#67914) 5 years ago
module_utils_Ansible.ModuleUtils.LinkUtil Separated ps module_util test targets, added WebRequest tests (#67914) 5 years ago
module_utils_Ansible.ModuleUtils.PrivilegeUtil Separated ps module_util test targets, added WebRequest tests (#67914) 5 years ago
module_utils_Ansible.ModuleUtils.SID Separated ps module_util test targets, added WebRequest tests (#67914) 5 years ago
module_utils_Ansible.ModuleUtils.WebRequest WebRequest - Fix use_proxy: no on module options (#68603) 5 years ago
module_utils_Ansible.Privilege Split C# module utils to their own test target (#67910) 5 years ago
module_utils_Ansible.Process Split C# module utils to their own test target (#67910) 5 years ago
module_utils_Ansible.Service Split C# module utils to their own test target (#67910) 5 years ago
no_log Expand Shippable test matrix. (#66912) 5 years ago
old_style_cache_plugins
old_style_modules_posix
omit
order
package Enable passing tests on power. 5 years ago
package_facts Testing: Add support for AIX platform (#65802) 5 years ago
parsing
path_lookups Split up lookup integration tests. (#67294) 5 years ago
path_with_comma_in_inventory Rename some integration tests. 5 years ago
pause Testing: Add support for AIX platform (#65802) 5 years ago
ping
pip [pip] Enable virtualenv_command to have arguments 5 years ago
play_iterator Fix --start-at-task when skipping tasks with no name (#68951) 5 years ago
plugin_config_for_inventory Rename some integration tests. 5 years ago
plugin_filtering
plugin_loader
plugin_namespace Fix plugin names when loading all plugins. (#59950) 5 years ago
prepare_http_tests Split tasks for prepare_http_tests. 5 years ago
prepare_tests/tasks
pull Use `package` for `pkgng` and `zypper` in tests. 5 years ago
raw update ActionBase._low_level_execute_command to honor executable (#68315) 5 years ago
reboot
rel_plugin_loading
remote_tmp Testing: Add support for AIX platform (#65802) 5 years ago
replace
retry_task_name_in_callback Rename callback_retry_task_name test. 5 years ago
roles
rpm_key Testing: Add support for AIX platform (#65802) 5 years ago
run_modules
script
service Enable service integration tests for FreeBSD (#68980) 5 years ago
service_facts Testing: Add support for AIX platform (#65802) 5 years ago
set_fact Testing: Add support for AIX platform (#65802) 5 years ago
setup_cron cronvar - use correct binary name (#63279) 5 years ago
setup_deb_repo
setup_epel/tasks Fix iso_extract tests for CentOS 8 (#64861) 5 years ago
setup_nobody
setup_paramiko Fix paramiko_ssh test (#64857) 5 years ago
setup_passlib/tasks
setup_pexpect/tasks
setup_remote_constraints Relocate ansible-test code. (#60147) 5 years ago
setup_remote_tmp_dir Split handler tasks for setup_remote_tmp_dir. 5 years ago
setup_rpm_repo Fix yum test case on ppc64le 5 years ago
setup_win_printargv Separated ps module_util test targets, added WebRequest tests (#67914) 5 years ago
shell Improve test compatibility with ansible-base. (#67325) 5 years ago
slurp
special_vars Misc typo fixes (#66120) 5 years ago
stat
strategy_linear
subversion Enable passing tests on power. 5 years ago
systemd Testing: Add support for AIX platform (#65802) 5 years ago
tags Testing: Add support for AIX platform (#65802) 5 years ago
task_ordering
tasks Add more integration tests. (#68972) 5 years ago
template Prevent templating unused variables for {%include%} (#68749) 5 years ago
template_jinja2_latest Testing: Add support for AIX platform (#65802) 5 years ago
templating_lookups Templating: make sure only one variable results are cached (#67429) 5 years ago
templating_settings
test_core Rename tests (#68356) 5 years ago
throttle throttle: fix linear based strategies (#65422) 5 years ago
unarchive Enable passing tests on power. 5 years ago
unicode
until
uri Testing: Add support for AIX platform (#65802) 5 years ago
user Test system users and groups. 5 years ago
var_blending Clean up various integration tests. (#60613) 5 years ago
var_precedence
var_templating Use templating in HostVarsVars __repr__ (#64282) 5 years ago
vault fix vault temp file handling (#68433) 5 years ago
wait_for
wait_for_connection Test the delay option in wait_for_connection. 5 years ago
want_json_modules_posix
win_async_wrapper
win_become become - stop using play context in more places (#62373) 5 years ago
win_exec_wrapper windows - fix up env var quoting for unicode single quotes (#68968) 5 years ago
win_fetch Consolidate Windows tests to one group. 5 years ago
win_module_utils Separated ps module_util test targets, added WebRequest tests (#67914) 5 years ago
win_raw
win_script
windows-minimal Create a dedicated windows-minimal test target. (#67987) 5 years ago
windows-paths
yum Fix yum test case on ppc64le 5 years ago
yum_repository Ignore GPG key checks on test repo 5 years ago