ansible/test/integration/targets
David Shrewsbury 0ae4dac65a
Fix copy module file perms with remote_src (#69993)
When using 'remote_src: yes' and 'mode: preserve', the code handling
the file modes has to be handled on the remote node because it's
the one that has access to the source files. This means that the
copy module itself must handle this, rather than the copy action
plugin (which is where all that logic exists). The copy module
handles this when we copy a single file over. But when it is a
directory as the src parameter value, the mode of the files
beneath it are not considered. Subdirectories are copied with
shutil.copytree() which will preserve permissions automatically.
Individual files are copied with shutil.copyfile() which does NOT
preserve permissions. We need to add some calls to shutil.copymode()
to correct that.

Note: This *always* retains individial file permissions. Specifying
a 'mode' other than 'preserve' when giving a source directory for
the 'src' param does not make sense so will be ignored in that case
only.

Fixes #69783

* Add changelog and test
2020-06-11 15:18:59 -04:00
..
add_host Add intg test to repro #36045 (add_host traceback) (#69912) 2020-06-09 15:25:56 -04:00
ansiballz_python
ansible adhoc: Load callbacks before sending v2_playbook_on_start (#67673) 2020-02-25 17:00:08 -05:00
ansible-doc Plugin/module docs: parse return values, add collection names in them (version_added_collection), and format them nicely in ansible-doc (#69796) 2020-06-11 11:03:43 -07:00
ansible-galaxy config: singular ANSIBLE_COLLECTIONS_PATH (#70007) 2020-06-11 11:40:13 -07:00
ansible-galaxy-collection config: singular ANSIBLE_COLLECTIONS_PATH (#70007) 2020-06-11 11:40:13 -07:00
ansible-galaxy-collection-scm Add support to install collections from git repositories (#69154) 2020-05-29 13:33:32 -04:00
ansible-runner adhoc: Load callbacks before sending v2_playbook_on_start (#67673) 2020-02-25 17:00:08 -05:00
ansible-test Split out and install sanity test requirements. (#69971) 2020-06-09 13:38:36 -07:00
ansible-test-docker Update ansible-test integration tests. (#69970) 2020-06-09 11:16:48 -07:00
any_errors_fatal
apt Test installing a .deb that has deps, from a URL (#68332) 2020-03-24 13:59:42 -05:00
apt_key
apt_repository Revert "stricter permissions on atomic_move when creating new file (#68970)" (#68983) 2020-04-16 12:52:15 -04:00
args
assemble
assert
async
async_extra_data
async_fail
become
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 blockinfile - fix line end regression (#69734) 2020-05-27 16:54:38 -04:00
blocks
builtin_vars_prompt Rename tests (#68356) 2020-03-23 11:14:21 -05:00
callback_default Fix label lookup in the default callback for includes (#68822) 2020-04-09 13:27:58 -05:00
changed_when
check_mode
cli Fix ansible -K become_pass regression (#69629) 2020-05-22 09:34:26 -04:00
collections config: singular ANSIBLE_COLLECTIONS_PATH (#70007) 2020-06-11 11:40:13 -07: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
conditionals
config
connection
connection_local
connection_paramiko_ssh
connection_posix
connection_psrp
connection_ssh [ssh] Add new sshpass_prompt option (#68874) 2020-05-26 19:58:31 -05:00
connection_windows_ssh
connection_winrm
copy Fix copy module file perms with remote_src (#69993) 2020-06-11 15:18:59 -04:00
cron
dataloader preserve json parsing error (#58461) 2020-05-01 15:03:07 -04:00
debconf
debug
delegate_to fix delegated interpreter discovery (#69604) 2020-05-22 09:31:34 -04:00
dnf Enable logging using setup_loggers() API in dnf-4.2.17-6 or later 2020-05-30 20:37:27 -05:00
dpkg_selections
egg-info Fix references to old egg-info directory. 2020-03-30 13:56:43 -07:00
embedded_module
environment
error_from_connection
expect
facts_d
failed_when
fetch fixed fetch traversal from slurp (#68720) 2020-04-08 14:28:51 -04:00
file file - return 'state': 'absent' when a file does not exist (#66503) 2020-05-21 16:35:45 -04:00
fileglob Fix fileglob plugin with non-existent subdirectory (#69451) 2020-05-12 09:12:21 -04:00
filter_core Make AnsibleVaultEncryptedUnicode work more like a string (#67823) 2020-06-08 16:30:14 -05:00
filter_mathstuff [mathstuff] Get coverage into the 90% range (#68395) 2020-03-25 15:33:37 -05: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
gathering
gathering_facts correctly merge multiple facts results (#68987) 2020-05-20 18:53:37 -04:00
get_url wait_for simplehttpserver to come up online 2020-04-28 09:43:07 -07:00
getent
git [git] make force=True apply to git fetches (#68691) 2020-04-06 15:25:24 -05:00
group Test system users and groups. 2020-02-27 21:45:18 -08:00
group_by return changed for group_by (#32057) 2020-06-03 12:46:40 -04:00
groupby_filter
handler_race Split regular and handler results into their own queues (#69498) 2020-05-21 15:55:08 -05:00
handlers
hash
hosts_field
ignore_errors
ignore_unreachable
incidental_aws_codebuild Second batch of incidental integration tests. (#67765) 2020-02-25 23:18:50 -08:00
incidental_aws_step_functions_state_machine support hard coded module_defaults.yml groups for collections (#69919) 2020-06-09 15:38:57 -07:00
incidental_azure_rm_mariadbserver Second batch of incidental integration tests. (#67765) 2020-02-25 23:18:50 -08:00
incidental_azure_rm_resource Second batch of incidental integration tests. (#67765) 2020-02-25 23:18:50 -08:00
incidental_cloud_init_data_facts Fourth batch of incidental integration tests. (#67873) 2020-02-28 20:37:50 -08:00
incidental_cloudformation support hard coded module_defaults.yml groups for collections (#69919) 2020-06-09 15:38:57 -07:00
incidental_connection_chroot Fourth batch of incidental integration tests. (#67873) 2020-02-28 20:37:50 -08:00
incidental_consul Testing: Add support for CentOS Linux On Power platform (#68130) 2020-04-15 16:22:17 -07:00
incidental_cs_common Second batch of incidental integration tests. (#67765) 2020-02-25 23:18:50 -08:00
incidental_cs_role_permission Second batch of incidental integration tests. (#67765) 2020-02-25 23:18:50 -08:00
incidental_cs_service_offering Second batch of incidental integration tests. (#67765) 2020-02-25 23:18:50 -08:00
incidental_deploy_helper Fourth batch of incidental integration tests. (#67873) 2020-02-28 20:37:50 -08:00
incidental_ec2_instance support hard coded module_defaults.yml groups for collections (#69919) 2020-06-09 15:38:57 -07:00
incidental_flatpak_remote Fourth batch of incidental integration tests. (#67873) 2020-02-28 20:37:50 -08:00
incidental_hcloud_server Second batch of incidental integration tests. (#67765) 2020-02-25 23:18:50 -08:00
incidental_inventory_aws_ec2 Second batch of incidental integration tests. (#67765) 2020-02-25 23:18:50 -08:00
incidental_inventory_docker_swarm Testing: Add support for CentOS Linux On Power platform (#68130) 2020-04-15 16:22:17 -07:00
incidental_inventory_foreman Second batch of incidental integration tests. (#67765) 2020-02-25 23:18:50 -08:00
incidental_inventory_vmware_vm_inventory Second batch of incidental integration tests. (#67765) 2020-02-25 23:18:50 -08:00
incidental_ios_file First batch of incidental integration tests. (#67717) 2020-02-24 17:31:14 -08:00
incidental_k8s Fix code coverage in tests. 2020-03-26 22:41:12 -07:00
incidental_lookup_hashi_vault Testing: Add support for CentOS Linux On Power platform (#68130) 2020-04-15 16:22:17 -07:00
incidental_lookup_rabbitmq Fourth batch of incidental integration tests. (#67873) 2020-02-28 20:37:50 -08:00
incidental_lvg Fourth batch of incidental integration tests. (#67873) 2020-02-28 20:37:50 -08:00
incidental_mongodb_parameter Fourth batch of incidental integration tests. (#67873) 2020-02-28 20:37:50 -08:00
incidental_nios_prepare_tests Second batch of incidental integration tests. (#67765) 2020-02-25 23:18:50 -08:00
incidental_nios_txt_record Second batch of incidental integration tests. (#67765) 2020-02-25 23:18:50 -08:00
incidental_postgresql_user Fourth batch of incidental integration tests. (#67873) 2020-02-28 20:37:50 -08:00
incidental_script_inventory_vmware_inventory Second batch of incidental integration tests. (#67765) 2020-02-25 23:18:50 -08:00
incidental_selinux Fourth batch of incidental integration tests. (#67873) 2020-02-28 20:37:50 -08:00
incidental_setup_docker Pin Docker version at 19.03.1 2020-05-20 15:10:41 -07:00
incidental_setup_ec2 Second batch of incidental integration tests. (#67765) 2020-02-25 23:18:50 -08:00
incidental_setup_flatpak_remote Fourth batch of incidental integration tests. (#67873) 2020-02-28 20:37:50 -08:00
incidental_setup_mongodb Skip mongodb tests on all centos versions. 2020-03-01 10:33:42 -08:00
incidental_setup_mysql_db Update docker.txt to use the OpenSUSE 15.1 container image (devel edition) (#68785) 2020-04-09 00:26:59 -07:00
incidental_setup_openssl Revert "Cap cryptography version for macOS openssl test (#69083)" (#69126) 2020-04-23 08:49:09 -05:00
incidental_setup_postgresql_db Fourth batch of incidental integration tests. (#67873) 2020-02-28 20:37:50 -08:00
incidental_setup_rabbitmq Fourth batch of incidental integration tests. (#67873) 2020-02-28 20:37:50 -08:00
incidental_setup_tls Fourth batch of incidental integration tests. (#67873) 2020-02-28 20:37:50 -08:00
incidental_setup_zabbix Fourth batch of incidental integration tests. (#67873) 2020-02-28 20:37:50 -08:00
incidental_sts_assume_role Second batch of incidental integration tests. (#67765) 2020-02-25 23:18:50 -08:00
incidental_synchronize Fourth batch of incidental integration tests. (#67873) 2020-02-28 20:37:50 -08:00
incidental_timezone Add Fedora 32 to CI (#69222) 2020-05-08 18:59:43 -05:00
incidental_tower_credential_type Second batch of incidental integration tests. (#67765) 2020-02-25 23:18:50 -08:00
incidental_tower_receive Second batch of incidental integration tests. (#67765) 2020-02-25 23:18:50 -08:00
incidental_ufw Testing: Add support for CentOS Linux On Power platform (#68130) 2020-04-15 16:22:17 -07:00
incidental_vmware_guest Second batch of incidental integration tests. (#67765) 2020-02-25 23:18:50 -08:00
incidental_vmware_guest_custom_attributes Second batch of incidental integration tests. (#67765) 2020-02-25 23:18:50 -08:00
incidental_vmware_host_hyperthreading Second batch of incidental integration tests. (#67765) 2020-02-25 23:18:50 -08:00
incidental_vmware_prepare_tests ansible-test: vcenter initialize group/vmware (#70011) 2020-06-11 12:21:44 -04:00
incidental_vyos_config First batch of incidental integration tests. (#67717) 2020-02-24 17:31:14 -08:00
incidental_vyos_lldp_interfaces First batch of incidental integration tests. (#67717) 2020-02-24 17:31:14 -08:00
incidental_vyos_logging First batch of incidental integration tests. (#67717) 2020-02-24 17:31:14 -08:00
incidental_vyos_prepare_tests First batch of incidental integration tests. (#67717) 2020-02-24 17:31:14 -08:00
incidental_vyos_static_route First batch of incidental integration tests. (#67717) 2020-02-24 17:31:14 -08:00
incidental_win_copy Third batch of incidental integration tests. (#67830) 2020-02-27 16:05:47 -08:00
incidental_win_data_deduplication Third batch of incidental integration tests. (#67830) 2020-02-27 16:05:47 -08:00
incidental_win_dsc Third batch of incidental integration tests. (#67830) 2020-02-27 16:05:47 -08:00
incidental_win_hosts Third batch of incidental integration tests. (#67830) 2020-02-27 16:05:47 -08:00
incidental_win_lineinfile Third batch of incidental integration tests. (#67830) 2020-02-27 16:05:47 -08:00
incidental_win_ping Third batch of incidental integration tests. (#67830) 2020-02-27 16:05:47 -08:00
incidental_win_prepare_tests Third batch of incidental integration tests. (#67830) 2020-02-27 16:05:47 -08:00
incidental_win_psexec Third batch of incidental integration tests. (#67830) 2020-02-27 16:05:47 -08:00
incidental_win_reboot Third batch of incidental integration tests. (#67830) 2020-02-27 16:05:47 -08:00
incidental_win_security_policy Third batch of incidental integration tests. (#67830) 2020-02-27 16:05:47 -08:00
incidental_xml Deprecation revisited (#69926) 2020-06-09 15:21:19 -07:00
incidental_zabbix_host Fourth batch of incidental integration tests. (#67873) 2020-02-28 20:37:50 -08:00
include_import Raise Warning when import_playbook receives additional parameters (#64156) 2020-06-10 13:22:40 -04:00
include_parent_role_vars
include_vars
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
includes_race Fix IncludedFile equality check (#69524) 2020-06-04 10:41:46 -05:00
infra Flatten the directory hierarchy of modules (#68966) 2020-05-13 19:14:53 -07:00
interpreter_discovery_python
inventory
inventory_yaml
jinja2_native_types native types: literal_eval all the things (#68938) 2020-04-17 14:59:52 +02:00
known_hosts
limit_inventory
lineinfile
lookup_config coverage for lookup_config (#68566) 2020-03-31 09:57:50 -05:00
lookup_dict Skip lookup tests on Python 2.6. 2020-03-02 00:06:18 -08:00
lookup_env Skip lookup tests on Python 2.6. 2020-03-02 00:06:18 -08:00
lookup_file Skip lookup tests on Python 2.6. 2020-03-02 00:06:18 -08:00
lookup_first_found Skip lookup tests on Python 2.6. 2020-03-02 00:06:18 -08:00
lookup_indexed_items Skip lookup tests on Python 2.6. 2020-03-02 00:06:18 -08:00
lookup_ini Skip lookup tests on Python 2.6. 2020-03-02 00:06:18 -08:00
lookup_inventory_hostnames Skip lookup tests on Python 2.6. 2020-03-02 00:06:18 -08:00
lookup_items Skip lookup tests on Python 2.6. 2020-03-02 00:06:18 -08:00
lookup_lines Skip lookup tests on Python 2.6. 2020-03-02 00:06:18 -08:00
lookup_list coverage for lookup_list (#68683) 2020-04-06 13:39:18 -05:00
lookup_nested Skip lookup tests on Python 2.6. 2020-03-02 00:06:18 -08:00
lookup_password Skip lookup tests on Python 2.6. 2020-03-02 00:06:18 -08:00
lookup_pipe Skip lookup tests on Python 2.6. 2020-03-02 00:06:18 -08:00
lookup_random_choice Skip lookup tests on Python 2.6. 2020-03-02 00:06:18 -08:00
lookup_sequence Skip lookup tests on Python 2.6. 2020-03-02 00:06:18 -08:00
lookup_subelements Skip lookup tests on Python 2.6. 2020-03-02 00:06:18 -08:00
lookup_template Skip lookup tests on Python 2.6. 2020-03-02 00:06:18 -08:00
lookup_together Skip lookup tests on Python 2.6. 2020-03-02 00:06:18 -08:00
lookup_unvault added unvault lookup plugin (#69087) 2020-05-14 11:19:19 -04:00
lookup_url Skip lookup tests on Python 2.6. 2020-03-02 00:06:18 -08:00
lookup_vars Skip lookup tests on Python 2.6. 2020-03-02 00:06:18 -08:00
loop_control
loops
meta_tasks
module_defaults support hard coded module_defaults.yml groups for collections (#69919) 2020-06-09 15:38:57 -07:00
module_no_log Add more integration tests. (#68972) 2020-04-16 00:53:08 -07:00
module_precedence Filter BLACKLIST_EXTS in PluginLoader (#69029) 2020-04-22 17:20:12 -05:00
module_tracebacks
module_utils
module_utils_Ansible.AccessToken Split C# module utils to their own test target (#67910) 2020-03-02 15:16:31 +10:00
module_utils_Ansible.Basic Deprecation revisited (#69926) 2020-06-09 15:21:19 -07:00
module_utils_Ansible.Become Split C# module utils to their own test target (#67910) 2020-03-02 15:16:31 +10:00
module_utils_Ansible.ModuleUtils.AddType Separated ps module_util test targets, added WebRequest tests (#67914) 2020-03-02 16:12:08 +10:00
module_utils_Ansible.ModuleUtils.ArgvParser Separated ps module_util test targets, added WebRequest tests (#67914) 2020-03-02 16:12:08 +10:00
module_utils_Ansible.ModuleUtils.Backup Separated ps module_util test targets, added WebRequest tests (#67914) 2020-03-02 16:12:08 +10:00
module_utils_Ansible.ModuleUtils.CamelConversion Separated ps module_util test targets, added WebRequest tests (#67914) 2020-03-02 16:12:08 +10:00
module_utils_Ansible.ModuleUtils.CommandUtil Separated ps module_util test targets, added WebRequest tests (#67914) 2020-03-02 16:12:08 +10:00
module_utils_Ansible.ModuleUtils.FileUtil Separated ps module_util test targets, added WebRequest tests (#67914) 2020-03-02 16:12:08 +10:00
module_utils_Ansible.ModuleUtils.Legacy Separated ps module_util test targets, added WebRequest tests (#67914) 2020-03-02 16:12:08 +10:00
module_utils_Ansible.ModuleUtils.LinkUtil Separated ps module_util test targets, added WebRequest tests (#67914) 2020-03-02 16:12:08 +10:00
module_utils_Ansible.ModuleUtils.PrivilegeUtil Separated ps module_util test targets, added WebRequest tests (#67914) 2020-03-02 16:12:08 +10:00
module_utils_Ansible.ModuleUtils.SID Separated ps module_util test targets, added WebRequest tests (#67914) 2020-03-02 16:12:08 +10:00
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 Split C# module utils to their own test target (#67910) 2020-03-02 15:16:31 +10:00
module_utils_Ansible.Process Split C# module utils to their own test target (#67910) 2020-03-02 15:16:31 +10:00
module_utils_Ansible.Service Split C# module utils to their own test target (#67910) 2020-03-02 15:16:31 +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
old_style_modules_posix
omit
order
package Enable passing tests on power. 2020-04-20 10:07:54 -07:00
package_facts
parsing
path_lookups
path_with_comma_in_inventory
pause
ping
pip [pip] Enable virtualenv_command to have arguments 2020-04-23 18:13:30 +02:00
play_iterator Fix --start-at-task when skipping tasks with no name (#68951) 2020-04-21 09:39:17 +02:00
playbook added 'task timeout' feature (#69284) 2020-05-19 17:20:08 -04:00
plugin_config_for_inventory
plugin_filtering
plugin_loader
plugin_namespace
prepare_http_tests
prepare_tests/tasks
pull
raw update ActionBase._low_level_execute_command to honor executable (#68315) 2020-04-22 11:56:35 -05:00
reboot
rel_plugin_loading
remote_tmp
replace
retry_task_name_in_callback
roles
rpm_key
run_modules
script
service systemd: should fail in check_mode when service not found on host (#68136) 2020-06-02 11:52:12 -04:00
service_facts Handle disabled service units (#69349) 2020-06-01 09:40:52 -04:00
set_fact implemented 'prefix' for file based cache (#69872) 2020-06-11 10:40:25 -04:00
setup_cron
setup_deb_repo
setup_epel/tasks
setup_nobody
setup_paramiko
setup_passlib/tasks
setup_pexpect/tasks
setup_remote_constraints
setup_remote_tmp_dir
setup_rpm_repo Fix yum test case on ppc64le 2020-04-23 14:48:30 -07:00
setup_win_printargv Separated ps module_util test targets, added WebRequest tests (#67914) 2020-03-02 16:12:08 +10:00
shell
slurp
special_vars
stat
strategy_linear
subversion Enable passing tests on power. 2020-04-20 10:07:54 -07:00
systemd systemd: should fail in check_mode when service not found on host (#68136) 2020-06-02 11:52:12 -04:00
tags
task_ordering
tasks Add more integration tests. (#68972) 2020-04-16 00:53:08 -07:00
template Prevent templating unused variables for {%include%} (#68749) 2020-04-14 10:27:02 +02:00
template_jinja2_latest
templating_lookups Properly handle unicode in safe_eval (#68576) 2020-05-20 12:08:50 -04:00
templating_settings
test_core Rename tests (#68356) 2020-03-23 11:14:21 -05:00
throttle
unarchive Enable passing tests on power. 2020-04-20 10:07:54 -07:00
unicode Ensure --version works with non-ascii project path (#66624) 2020-05-29 14:42:44 -04:00
until
uri do not return the body even if it failed (#69706) 2020-06-01 09:55:38 -04:00
user Test system users and groups. 2020-02-27 21:45:18 -08:00
var_blending
var_precedence
var_templating
vault Make AnsibleVaultEncryptedUnicode work more like a string (#67823) 2020-06-08 16:30:14 -05:00
wait_for
wait_for_connection Test the delay option in wait_for_connection. 2020-02-25 19:27:18 -08:00
want_json_modules_posix
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 Consolidate Windows tests to one group. 2020-03-23 11:14:21 -05:00
win_module_utils Separated ps module_util test targets, added WebRequest tests (#67914) 2020-03-02 16:12:08 +10:00
win_raw
win_script
windows-minimal Create a dedicated windows-minimal test target. (#67987) 2020-03-03 18:36:37 -08:00
windows-paths
yum [yum] Make package removal confirmation strict (#69592) 2020-05-26 14:47:39 -04:00
yum_repository Ignore GPG key checks on test repo 2020-04-23 14:48:55 -07:00