ansible/test/integration/targets
Martin Krizek a2af8432f3
Local vars should have highest precedence in AnsibleJ2Vars (#72830)
Ability to add local variables into AnsibleJ2Vars was added in
18a9eff11f to fix #6653. Local variables
are added using ``AnsibleJ2Vars.add_locals()`` method when creating a
new context - typically when including/importing a template with
context. For that use case local template variables created using
``set`` should override variables from higher contexts - either from the
play or any parent template, or both; Jinja behaves the same way.

Also removes AnsibleJ2Vars.extras instance variable which is not used.

Also adds missing test for #6653.

Fixes #72262
Fixes #72615

ci_complete
2021-01-26 11:37:56 +01:00
..
add_host Add intg test to repro #36045 (add_host traceback) (#69912) 2020-06-09 15:25:56 -04:00
adhoc added timeout options to adhoc and console (#71230) 2020-10-30 10:09:30 -04:00
ansiballz_python
ansible ansible-doc role arg spec support (#72120) 2020-11-17 12:58:19 -05:00
ansible-doc Change role argspec file used by ansible-doc (#72927) 2020-12-14 12:05:40 -05:00
ansible-galaxy Collection list site packages (#70173) 2020-12-11 09:59:33 +10:00
ansible-galaxy-collection Add integration tests to ansible-galaxy-collection for 'ansible-galaxy collection verify' (#73229) 2021-01-14 11:49:53 -05:00
ansible-galaxy-collection-scm [ansible-test] First attempt at freebsd/11.4 (#72655) 2021-01-21 17:12:18 -06:00
ansible-runner Update ansible-runner tests version and deps (#72197) 2020-11-18 11:00:04 -05:00
ansible-test [ansible-test] First attempt at freebsd/11.4 (#72655) 2021-01-21 17:12:18 -06:00
ansible-test-docker Update ansible-test integration tests. (#69970) 2020-06-09 11:16:48 -07:00
any_errors_fatal
apt Add Ubuntu 20.04 to CI and ansible-test (#69161) 2021-01-21 22:58:31 -06:00
apt_key Remove incidental_zabbix_host (#72142) 2020-10-08 13:32:59 -05:00
apt_repository Remove incidental_zabbix_host (#72142) 2020-10-08 13:32:59 -05:00
args
argspec Various intentional tests (#72485) 2020-11-06 08:41:41 -06:00
assemble Fix decrypt argument in assemble module (#70465) 2020-07-09 15:24:12 -04:00
assert
async Allow callbacks from forks (#70501) 2020-08-17 10:51:01 -05:00
async_extra_data
async_fail More boilerplate fixes. (#70224) 2020-06-22 19:05:30 -07:00
become Changes required for macOS 10.15 (#71841) 2020-09-25 15:30:47 -04:00
become_su Use a pty for local connections (#73023) 2021-01-18 16:02:04 -05:00
become_unprivileged Allow macOS ACLs to work for unpriv -> unpriv (#70785) 2020-08-04 14:32:48 -04:00
binary
binary_modules
binary_modules_posix
binary_modules_winrm
blockinfile Ensure blockinfile correctly returns backupfile (#72544) 2020-11-09 14:45:09 -05:00
blocks Add implicit role_complete block instead of role._eor (#72208) 2020-12-09 09:53:01 +01:00
builtin_vars_prompt More boilerplate fixes. (#70224) 2020-06-22 19:05:30 -07:00
callback_default make collection callbacks follow normal flow (#59932) 2020-10-15 15:31:18 -04:00
changed_when Allow changed/failed mgmt on strategy actions (#70919) 2020-07-29 10:44:46 -04:00
check_mode
cli
collections Allow restricting config values to enumerated list (#73162) 2021-01-14 15:11:30 -05:00
collections_plugin_namespace config: singular ANSIBLE_COLLECTIONS_PATH (#70007) 2020-06-11 11:40:13 -07:00
collections_relative_imports config: singular ANSIBLE_COLLECTIONS_PATH (#70007) 2020-06-11 11:40:13 -07:00
collections_runtime_pythonpath config: singular ANSIBLE_COLLECTIONS_PATH (#70007) 2020-06-11 11:40:13 -07:00
command_nonexisting Let command always return stdout & stderr (#73004) 2021-01-22 08:40:53 +01:00
command_shell Deprecate command warnings feature (#70504) 2020-07-07 18:40:38 -05:00
common_network Remove incidental vmware tests (#72420) 2020-11-02 17:00:17 -06:00
conditionals
config Remove incidental vmware tests (#72420) 2020-11-02 17:00:17 -06:00
connection Fix reset_connection paramiko, winrm, psrp (#72688) 2020-12-09 12:57:56 -06:00
connection_delegation Test changes to allow using "macos" test image (#71849) 2020-09-22 09:10:36 -04:00
connection_local
connection_paramiko_ssh
connection_posix
connection_psrp psrp - fix hang when copying an empty file (#71649) 2020-09-05 14:57:15 +10:00
connection_ssh Updates to Integration tests to pass against Alpine (#70946) 2020-08-07 14:28:10 -05:00
connection_windows_ssh
connection_winrm
copy copy - redact 'content' from invocation in check mode (#71033) 2020-08-03 11:41:45 -04:00
cron Test changes to allow using "macos" test image (#71849) 2020-09-22 09:10:36 -04:00
dataloader
debconf
debug Fix missing ansible.builtin FQCNs in hardcoded action names (#71824) 2020-11-03 08:51:31 -05:00
delegate_to ensure local exposes correct user (#72543) 2020-11-09 16:21:17 -05:00
dict_transformations Add test to replace exclusive incidental_cloudformation coverage (#72137) 2020-10-07 12:54:21 -04:00
dnf [dnf] Make "remove" filtering closer to dnf CLI (#73033) 2021-01-07 11:32:06 -06:00
dpkg_selections Test changes to allow using "macos" test image (#71849) 2020-09-22 09:10:36 -04:00
egg-info
embedded_module
environment
error_from_connection Fix transport defs in test connection plugins. 2020-06-18 11:50:51 -07:00
expect Constrain pexpect and ptyprocess (#73109) 2021-01-04 15:53:56 -05:00
facts_d
facts_linux_network Test changes to allow using "macos" test image (#71849) 2020-09-22 09:10:36 -04:00
failed_when
fetch
file AnsibleModule.set_mode_if_different: handle symlink is in a sticky directory (#45198) 2020-12-04 14:21:51 -05:00
filter_core Changes required for macOS 10.15 (#71841) 2020-09-25 15:30:47 -04:00
filter_mathstuff Make filter type errors 'loop friendly' (#70417) 2020-07-10 18:49:57 -04:00
filter_urls
filter_urlsplit
find find will give more specific reasons on skip (#68823) 2020-10-30 10:08:19 -04:00
gathering
gathering_facts Allow list of filters for the setup module (#68551) 2020-09-09 20:40:48 +02:00
get_url [get_url] skip checksum during --check (#66700) 2020-12-22 21:34:42 +05:30
getent Updates to Integration tests to pass against Alpine (#70946) 2020-08-07 14:28:10 -05:00
git Changes required for macOS 10.15 (#71841) 2020-09-25 15:30:47 -04:00
group Add integration coverage to replace hash_vault and consul_session (#71775) 2020-09-16 16:40:26 -05:00
group_by return changed for group_by (#32057) 2020-06-03 12:46:40 -04:00
groupby_filter
handler_race Updates to Integration tests to pass against Alpine (#70946) 2020-08-07 14:28:10 -05:00
handlers
hardware_facts Add intentional coverage for incidental_lvg (#71043) 2020-08-04 12:52:38 -05:00
hash Add tests for merging and replacing vars from inventory sources (#73181) 2021-01-11 17:37:34 -05:00
hostname hostname - add macOS (#54439) 2020-10-27 17:30:54 -04:00
hosts_field
ignore_errors
ignore_unreachable More boilerplate fixes. (#70224) 2020-06-22 19:05:30 -07:00
incidental_cloud_init_data_facts Test changes to allow using "macos" test image (#71849) 2020-09-22 09:10:36 -04:00
incidental_cs_common
incidental_deploy_helper
incidental_inventory_aws_ec2
incidental_inventory_docker_swarm Remove exit code from traps in tests 2020-12-14 09:16:34 -08:00
incidental_inventory_foreman
incidental_ios_file
incidental_mongodb_parameter Test changes to allow using "macos" test image (#71849) 2020-09-22 09:10:36 -04:00
incidental_setup_docker [tests] Make setup_docker clean up better (#71949) 2020-09-25 18:07:38 -05:00
incidental_setup_mongodb Add Ubuntu 20.04 to CI and ansible-test (#69161) 2021-01-21 22:58:31 -06:00
incidental_setup_rabbitmq Add Ubuntu 20.04 to CI and ansible-test (#69161) 2021-01-21 22:58:31 -06:00
incidental_setup_tls
incidental_vyos_config
incidental_vyos_lldp_interfaces
incidental_vyos_prepare_tests
incidental_win_copy
incidental_win_data_deduplication
incidental_win_dsc
incidental_win_lineinfile
incidental_win_ping
incidental_win_prepare_tests
incidental_win_reboot
incidental_win_security_policy
include_import import_playbook - change additional params to deprecation (#72987) 2020-12-17 14:14:58 -05:00
include_parent_role_vars
include_vars Fix missing ansible.builtin FQCNs in hardcoded action names (#71824) 2020-11-03 08:51:31 -05:00
include_vars-ad-hoc
include_when_parent_is_dynamic
include_when_parent_is_static
includes Fix missing ansible.builtin FQCNs in hardcoded action names (#71824) 2020-11-03 08:51:31 -05:00
includes_race Fix IncludedFile equality check (#69524) 2020-06-04 10:41:46 -05:00
infra More boilerplate fixes. (#70224) 2020-06-22 19:05:30 -07:00
interpreter_discovery_python Various intentional tests (#72485) 2020-11-06 08:41:41 -06:00
interpreter_discovery_python_delegate_facts Fix delegate_facts with interpreter not being set (#70293) 2020-06-30 15:49:09 +02:00
inventory fix inventory source parse error handling (#73160) 2021-01-18 09:33:51 -05:00
inventory_constructed Add a toggle for the leading separator for keyed_groups (#60882) 2020-10-23 15:57:44 -04:00
inventory_ini Make sure ansible_become treated as a boolean (#70484) 2020-07-08 14:53:38 -04:00
inventory_script Remove incidental vmware tests (#72420) 2020-11-02 17:00:17 -06:00
inventory_yaml
jinja2_native_types Skip literal_eval for string filters results in native jinja. (#70988) 2020-08-11 10:19:49 +02:00
known_hosts
limit_inventory
lineinfile
lookup_config rethink wording (#70028) 2020-10-30 17:13:12 -04:00
lookup_csvfile Some more coverage for csvfile (#70661) 2020-07-15 14:44:52 -05:00
lookup_dict Add integration coverage to replace hash_vault and consul_session (#71775) 2020-09-16 16:40:26 -05:00
lookup_env
lookup_file
lookup_fileglob Fix fileglob parameter order bug (#72879) 2020-12-08 16:31:34 +01:00
lookup_first_found
lookup_indexed_items
lookup_ini
lookup_inventory_hostnames Use InventoryManager for inventory_hostnames lookup (#71573) 2020-09-02 15:42:09 -05:00
lookup_items Remove incidental_timezone (#72063) 2020-10-02 16:56:31 -05:00
lookup_lines
lookup_list
lookup_nested
lookup_password
lookup_pipe
lookup_random_choice
lookup_sequence
lookup_subelements Set global skipped result flag for looped tasks (#67847) 2020-08-28 08:01:26 +02:00
lookup_template
lookup_together
lookup_unvault
lookup_url Changes required for macOS 10.15 (#71841) 2020-09-25 15:30:47 -04:00
lookup_varnames varnames: add tests, fix exception grammar (#70573) 2020-07-10 21:04:02 -05:00
lookup_vars
loop_control
loops Fix with_dict/with_list being passed incorrect type tests (#71699) 2020-09-11 07:53:10 +02:00
meta_tasks Fix missing ansible.builtin FQCNs in hardcoded action names (#71824) 2020-11-03 08:51:31 -05:00
missing_required_lib Various intentional tests (#72485) 2020-11-06 08:41:41 -06:00
module_defaults support hard coded module_defaults.yml groups for collections (#69919) 2020-06-09 15:38:57 -07:00
module_no_log Test changes to allow using "macos" test image (#71849) 2020-09-22 09:10:36 -04:00
module_precedence More boilerplate fixes. (#70224) 2020-06-22 19:05:30 -07:00
module_tracebacks
module_utils Various intentional tests (#72485) 2020-11-06 08:41:41 -06:00
module_utils_Ansible.AccessToken
module_utils_Ansible.Basic Deprecation revisited (#69926) 2020-06-09 15:21:19 -07:00
module_utils_Ansible.Become
module_utils_Ansible.ModuleUtils.AddType
module_utils_Ansible.ModuleUtils.ArgvParser
module_utils_Ansible.ModuleUtils.Backup
module_utils_Ansible.ModuleUtils.CamelConversion
module_utils_Ansible.ModuleUtils.CommandUtil
module_utils_Ansible.ModuleUtils.FileUtil
module_utils_Ansible.ModuleUtils.Legacy
module_utils_Ansible.ModuleUtils.LinkUtil
module_utils_Ansible.ModuleUtils.PrivilegeUtil
module_utils_Ansible.ModuleUtils.SID
module_utils_Ansible.ModuleUtils.WebRequest Ansible.Basic added generic fragment merger for module options (#69719) 2020-05-29 16:11:38 +10:00
module_utils_Ansible.Privilege
module_utils_Ansible.Process
module_utils_Ansible.Service
module_utils_urls Add support for GSSAPI/Kerberos to urls.py (#72113) 2020-10-13 14:16:07 +10:00
network_cli Fix network_cli test to use a trap for cleanup (#69762) 2020-05-29 15:45:33 -05:00
no_log
noexec Fix async interpreter parsing (#72636) 2020-12-09 11:41:45 -06:00
old_style_cache_plugins Test changes to allow using "macos" test image (#71849) 2020-09-22 09:10:36 -04:00
old_style_modules_posix
omit
order
package
package_facts Test changes to allow using "macos" test image (#71849) 2020-09-22 09:10:36 -04:00
parsing Strip spaces in module names in explicit actions (#71040) 2020-08-03 11:30:45 -04:00
path_lookups
path_with_comma_in_inventory
pause pause - adjust warning when run in background (#73182) 2021-01-14 09:35:39 -05:00
ping
pip Update pip integration test to use venv on py3. 2021-01-07 20:12:39 -08:00
play_iterator
playbook fix internal cases of actions calling unqualified module names (#70818) 2020-07-23 09:02:57 -07:00
plugin_config_for_inventory Remove incidental vmware tests (#72420) 2020-11-02 17:00:17 -06:00
plugin_filtering
plugin_loader Intentional coverage, incidental_azure_rm_resource (#71052) 2020-08-04 12:53:31 -05:00
plugin_namespace
prepare_http_tests Rename to ansible-core (#72594) 2020-11-13 15:42:10 -06:00
prepare_tests/tasks
pull Updates to Integration tests to pass against Alpine (#70946) 2020-08-07 14:28:10 -05:00
raw
reboot reboot - add reboot_command parameter (#69847) 2020-10-28 12:10:59 -04:00
rel_plugin_loading
remote_tmp Changes required for macOS 10.15 (#71841) 2020-09-25 15:30:47 -04:00
replace
retry_task_name_in_callback
roles Add support for argument_specs attribute to RoleMetadata class (#73120) 2021-01-07 11:41:46 -05:00
rpm_key
run_modules More boilerplate fixes. (#70224) 2020-06-22 19:05:30 -07:00
script More boilerplate fixes. (#70224) 2020-06-22 19:05:30 -07:00
service Test changes to allow using "macos" test image (#71849) 2020-09-22 09:10:36 -04:00
service_facts Test changes to allow using "macos" test image (#71849) 2020-09-22 09:10:36 -04:00
set_fact Fix parsing of values when using an empty string as key (#57132) (#72545) 2020-11-20 19:22:55 +01:00
setup_cron Updates to Integration tests to pass against Alpine (#70946) 2020-08-07 14:28:10 -05:00
setup_deb_repo
setup_epel/tasks [tests] fix fallout from dnf gpg fix (#71548) 2020-08-31 18:41:07 -05:00
setup_gnutar Changes required for macOS 10.15 (#71841) 2020-09-25 15:30:47 -04:00
setup_nobody
setup_paramiko [ansible-test] First attempt at freebsd/11.4 (#72655) 2021-01-21 17:12:18 -06:00
setup_passlib/tasks
setup_pexpect Constrain pexpect and ptyprocess (#73109) 2021-01-04 15:53:56 -05:00
setup_remote_constraints
setup_remote_tmp_dir
setup_rpm_repo Update integration tests to support rpmfluff-0.6 (#71155) 2020-08-07 14:09:09 -05:00
setup_win_printargv
shell Fix transport defs in test connection plugins. 2020-06-18 11:50:51 -07:00
slurp
special_vars
stat stat: Handle colon in filename (#70259) 2020-06-25 14:21:50 -05:00
strategy_linear
subversion Add Ubuntu 20.04 to CI and ansible-test (#69161) 2021-01-21 22:58:31 -06:00
systemd systemd - do not overwrite unit name when searching (#72985) 2020-12-17 15:29:22 -05:00
tags Allow meta tasks to use tags (#67508) 2020-08-21 11:08:49 -04:00
task_ordering
tasks
template Local vars should have highest precedence in AnsibleJ2Vars (#72830) 2021-01-26 11:37:56 +01:00
template_jinja2_latest
template_jinja2_non_native Force template module to use non-native Jinja2 (#68560) 2020-09-03 09:01:34 +02:00
templating_lookups Ensure native jinja is off for non-native tests (#71914) 2020-09-24 15:52:06 -04:00
templating_settings
test_core Rename to ansible-core (#72594) 2020-11-13 15:42:10 -06:00
test_files Add integration tests for test plugins. (#70576) 2020-07-10 18:48:51 -07:00
test_mathstuff Add integration tests for test plugins. (#70576) 2020-07-10 18:48:51 -07:00
throttle
unarchive unarchive - add include option (#40522) 2020-12-07 12:49:41 -05:00
undefined Remove incidental tower integration tests (#72461) 2020-11-04 09:46:08 -06:00
unicode Ensure --version works with non-ascii project path (#66624) 2020-05-29 14:42:44 -04:00
unsafe_writes ensure unsafe writes fallback (#70722) 2020-12-21 11:20:52 -05:00
until Remove incidental_win_psexec (#71953) 2020-10-12 14:16:13 -05:00
uri Fix FreeBSD HTTP Kerberos setup (#72595) 2020-11-12 13:40:59 +10:00
user user - properly handle password and password lock when used together (#73016) 2021-01-11 11:42:35 -05:00
var_blending
var_precedence More boilerplate fixes. (#70224) 2020-06-22 19:05:30 -07:00
var_reserved add jinja2 global to reserved names (#71088) 2020-08-05 10:43:31 -04:00
var_templating Fix verbosity for var_templating test (#70943) 2020-07-28 12:02:43 -05:00
vault Allow single vault encrypted values to be used directly as module parameters. Fixes #68275 (#70607) 2020-07-14 11:56:26 -04:00
wait_for wait_for - ignore psutil related errors (#72401) 2020-10-29 21:40:31 -04:00
wait_for_connection
want_json_modules_posix More boilerplate fixes. (#70224) 2020-06-22 19:05:30 -07:00
win_async_wrapper
win_become
win_exec_wrapper
win_fetch powershell - fix quoting values (#71411) 2020-08-26 07:06:51 +10:00
win_module_utils
win_raw
win_script
windows-minimal
windows-paths
yaml_parsing allow any type of unsafe data (#72547) 2020-11-10 10:48:20 -05:00
yum Add RHEL 7.9 - ci_complete (#72558) 2020-11-10 16:53:22 +10:00
yum_repository Fix yum_repository for more centos6 EOL fallout 2020-12-03 01:15:08 -08:00