ansible/test/integration/targets
Sijis Aviles 034e9b0252
unarchive - add include option (#40522)
This should allow users to extract specific files from an archive as
desired.

Fixes #16130, #27081.

* Rebase and make a few minor changes
* Add changelog
* Improve tests

- move to separate tasks file
- change assertions to check for exactly one file
- use remote_tmp_dir for output dir

* Make exclude and include mutually exclusive
* Don't remove files needed by other tasks
* Fix sanity tests
* Improve feature documentation
* Skip tests that use map() on CentOS 6
* Use fnmatch on include for zip archives
  This matches the behavior of exclude

Co-authored-by: Sam Doran <sdoran@redhat.com>
2020-12-07 12:49:41 -05: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 ansible-doc role arg spec support (#72120) 2020-11-17 12:58:19 -05:00
ansible-galaxy Updates to Integration tests to pass against Alpine (#70946) 2020-08-07 14:28:10 -05:00
ansible-galaxy-collection ansible-galaxy - source deps from all servers and not just parent (#72576) 2020-11-20 04:54:40 +10:00
ansible-galaxy-collection-scm Updates to Integration tests to pass against Alpine (#70946) 2020-08-07 14:28:10 -05:00
ansible-runner Update ansible-runner tests version and deps (#72197) 2020-11-18 11:00:04 -05:00
ansible-test Support collection constraints in ansible-test. 2020-10-08 12:20:19 -07:00
ansible-test-docker Update ansible-test integration tests. (#69970) 2020-06-09 11:16:48 -07:00
any_errors_fatal
apt Remove incidental_zabbix_host (#72142) 2020-10-08 13:32:59 -05: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_unprivileged Allow macOS ACLs to work for unpriv -> unpriv (#70785) 2020-08-04 14:32:48 -04:00
binary
binary_modules Add new arches/OSes for binary_modules tests (#69052) 2020-04-21 00:52:23 -07:00
binary_modules_posix Add new arches/OSes for binary_modules tests (#69052) 2020-04-21 00:52:23 -07:00
binary_modules_winrm
blockinfile Ensure blockinfile correctly returns backupfile (#72544) 2020-11-09 14:45:09 -05:00
blocks _check_failed_state: always use the current/nested state (#71347) 2020-08-26 07:07:34 +02: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 Fix ansible -K become_pass regression (#69629) 2020-05-22 09:34:26 -04:00
collections Rename to ansible-core (#72594) 2020-11-13 15:42:10 -06: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_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 Do not add connection vars to the output results (#70853) 2020-07-24 09:53:08 +10: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 preserve json parsing error (#58461) 2020-05-01 15:03:07 -04:00
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 actual min changes needed for rhel8 (#72477) 2020-11-16 15:43:05 -05:00
dpkg_selections Test changes to allow using "macos" test image (#71849) 2020-09-22 09:10:36 -04:00
egg-info Fix references to old egg-info directory. 2020-03-30 13:56:43 -07:00
embedded_module
environment
error_from_connection Fix transport defs in test connection plugins. 2020-06-18 11:50:51 -07:00
expect More boilerplate fixes. (#70224) 2020-06-22 19:05:30 -07: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 fixed fetch traversal from slurp (#68720) 2020-04-08 14:28:51 -04:00
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 coverage for filter/urls.py, including fallback to custom implementations (#68412) 2020-03-25 16:23:14 -05:00
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 Fix FreeBSD HTTP Kerberos setup (#72595) 2020-11-12 13:40:59 +10:00
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
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 [tests] Make setup_docker clean up better (#71949) 2020-09-25 18:07:38 -05: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
incidental_setup_rabbitmq
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 Fix missing ansible.builtin FQCNs in hardcoded action names (#71824) 2020-11-03 08:51:31 -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 Add dynamic and static include tests. (#68200) 2020-03-23 11:14:21 -05:00
include_when_parent_is_static Add dynamic and static include tests. (#68200) 2020-03-23 11:14:21 -05:00
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 add extra vars to inventory plugins (#70970) 2020-08-19 12:56:28 -04: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 typos (#72072) 2020-10-02 10:32:03 -04: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 coverage for lookup_list (#68683) 2020-04-06 13:39:18 -05:00
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 added unvault lookup plugin (#69087) 2020-05-14 11:19:19 -04:00
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
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 Enable passing tests on power. 2020-04-20 10:07:54 -07:00
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 - do not hang if run in the background (#72065) 2020-11-12 12:22:57 -05:00
ping
pip Test pip fix 2020-11-30 12:02:26 -08:00
play_iterator Fix --start-at-task when skipping tasks with no name (#68951) 2020-04-21 09:39:17 +02:00
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 update ActionBase._low_level_execute_command to honor executable (#68315) 2020-04-22 11:56:35 -05:00
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
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 fix paramiko deps for freebsd/12.2 2020-11-09 12:09:53 -06:00
setup_passlib/tasks
setup_pexpect/tasks
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 Fix subversion_pacakges name (#72138) 2020-10-08 15:22:04 -04:00
systemd Remove incidental_zabbix_host (#72142) 2020-10-08 13:32:59 -05:00
tags Allow meta tasks to use tags (#67508) 2020-08-21 11:08:49 -04:00
task_ordering
tasks Add more integration tests. (#68972) 2020-04-16 00:53:08 -07:00
template Provide more information in AnsibleUndefinedVariable (#71666) 2020-09-22 09:38:53 -04: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
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 - allow local users with an expiry date to be created (#72022) 2020-10-02 15:38:27 -04: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 windows - fix up env var quoting for unicode single quotes (#68968) 2020-04-16 20:24:23 +10:00
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