ansible/test/integration/targets
Sam Doran 7352457e7b
hostname - add macOS (#54439)
* Add DarwinStrategy class and integration tests

macOS has three seprate hostname params that need to be set. One of those params, LocalHostName, has more stringent requirements than the other two, which accept special characters and spaces. Create a method to scrub the hostname to ensure it works well with the system requirements.

* Update documentation

* Account for virtualization type returned on Azure Pipelines

* Do not be dependent on order of self.name_types

Use the scrubbed name when the name type is LocalHostName
2020-10-27 17:30:54 -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 Make it so callback plugins can act on implicit/explicit meta tasks (#71009) 2020-08-18 16:56:48 -05:00
ansible-doc ansible-doc: include collection name in text output (#70401) 2020-07-10 22:52:47 +02:00
ansible-galaxy Updates to Integration tests to pass against Alpine (#70946) 2020-08-07 14:28:10 -05:00
ansible-galaxy-collection Add tests for ignore functionality of collection build (#69345) 2020-09-01 11:51:35 -04:00
ansible-galaxy-collection-scm Updates to Integration tests to pass against Alpine (#70946) 2020-08-07 14:28:10 -05:00
ansible-runner Test changes to allow using "macos" test image (#71849) 2020-09-22 09:10:36 -04: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 Adds argspec tests for required, required_one_of and required_by (#72245) 2020-10-22 14:05:59 -05: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 blockinfile - properly insert block when no trailing new line exists (#72350) 2020-10-27 10:34: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 Ensure we call action_loader.get with collection_list (#72206) 2020-10-19 09:54:24 -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_shell Deprecate command warnings feature (#70504) 2020-07-07 18:40:38 -05:00
conditionals
config Fix missing quoting for remote_tmp in second mkdir of shell module. Issue #69577 (#69578) 2020-07-20 11:25:29 -05: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
delegate_to Ensure delegate vars calculation has correct loop context. Fixes #37132 (#71477) 2020-10-12 14:21:15 -05:00
dict_transformations Add test to replace exclusive incidental_cloudformation coverage (#72137) 2020-10-07 12:54:21 -04:00
dnf [tests/dnf] work around dnf packaging issue (#72249) 2020-10-19 09:52:33 -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 Let get_file_attributes() work without lsattr -v (#71845) 2020-09-22 16:15:47 -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: Allow reading whole file for contains regex (#71083) 2020-08-04 12:49:45 -05:00
gathering
gathering_facts Allow list of filters for the setup module (#68551) 2020-09-09 20:40:48 +02:00
get_url Add support for GSSAPI/Kerberos to urls.py (#72113) 2020-10-13 14:16:07 +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_cs_role_permission
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_inventory_vmware_vm_inventory
incidental_ios_file
incidental_k8s Fix code coverage in tests. 2020-03-26 22:41:12 -07:00
incidental_mongodb_parameter Test changes to allow using "macos" test image (#71849) 2020-09-22 09:10:36 -04:00
incidental_script_inventory_vmware_inventory More boilerplate fixes. (#70224) 2020-06-22 19:05:30 -07:00
incidental_setup_docker [tests] Make setup_docker clean up better (#71949) 2020-09-25 18:07:38 -05:00
incidental_setup_ec2
incidental_setup_mongodb
incidental_setup_rabbitmq
incidental_setup_tls
incidental_sts_assume_role
incidental_tower_credential_type
incidental_tower_receive
incidental_vmware_guest
incidental_vmware_host_hyperthreading
incidental_vmware_prepare_tests ansible-test: vcenter initialize group/vmware (#70011) 2020-06-11 12:21:44 -04:00
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 Updates to Integration tests to pass against Alpine (#70946) 2020-08-07 14:28:10 -05: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 More boilerplate fixes. (#70224) 2020-06-22 19:05:30 -07:00
interpreter_discovery_python Changes required for macOS 10.15 (#71841) 2020-09-25 15:30:47 -04: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_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 coverage for lookup_config (#68566) 2020-03-31 09:57:50 -05: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 Add skip_reason to meta task skips (#71355) 2020-08-20 13:48:10 -05: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 refactor Python module_utils locator (#70610) 2020-07-16 17:57:47 -07: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 More boilerplate fixes. (#70224) 2020-06-22 19:05:30 -07:00
ping
pip Changes required for macOS 10.15 (#71841) 2020-09-25 15:30:47 -04: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 Allow cache_timeout=0 to reach inv. cache plugins (#70977) 2020-08-04 11:54:28 -05: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 Add support for GSSAPI/Kerberos to urls.py (#72113) 2020-10-13 14:16:07 +10: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
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 Ensure native jinja is off for non-native tests (#71914) 2020-09-24 15:52:06 -04: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 Changes required for macOS 10.15 (#71841) 2020-09-25 15:30:47 -04: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 Add semver support to the jinja2 version test (#71600) 2020-09-08 08:52:27 -05: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] work on older RHEL with group: <gid> (#72098) 2020-10-06 11:25:03 -04: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 Add support for GSSAPI/Kerberos to urls.py (#72113) 2020-10-13 14:16:07 +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 Add intentional coverage for incidental_ec2_instance (#72028) 2020-10-06 11:10:03 -05: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 Add more include and yaml parsing tests (#70506) 2020-08-04 11:24:52 -07:00
yum Test changes to allow using "macos" test image (#71849) 2020-09-22 09:10:36 -04:00
yum_repository Add new option for YUM4/DNF repositories (#70042) 2020-06-30 15:48:36 -04:00