ccc63abc8e
* Add explicit tests for ansible.module_utils.common.network.is_mac * Test missing ANSIBLE_CONFIG * Add explicit inventory script tests * Add explicit tests for _consume_options * Adjust perms, remove extra file * ci_complete ci_coverage * remove incidental_inventory_vmware_vm_inventory * ci_complete ci_coverage * Remove incidental_script_inventory_vmware_inventory * ci_complete ci_coverage * Remove incidental_vmware_guest * ci_complete ci_coverage * Remove incidental_vmware_host_hyperthreading and incidental_vmware_prepare_tests * ci_complete ci_coverage * newline and comment about what the test is doing * ci_complete ci_coverage
17 lines
775 B
Bash
Executable file
17 lines
775 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -eux
|
|
|
|
# ignore empty env var and use default
|
|
# shellcheck disable=SC1007
|
|
ANSIBLE_TIMEOUT= ansible -m ping testhost -i ../../inventory "$@"
|
|
|
|
# env var is wrong type, this should be a fatal error pointing at the setting
|
|
ANSIBLE_TIMEOUT='lola' ansible -m ping testhost -i ../../inventory "$@" 2>&1|grep 'Invalid type for configuration option setting: DEFAULT_TIMEOUT'
|
|
|
|
# https://github.com/ansible/ansible/issues/69577
|
|
ANSIBLE_REMOTE_TMP="$HOME/.ansible/directory_with_no_space" ansible -m ping testhost -i ../../inventory "$@"
|
|
|
|
ANSIBLE_REMOTE_TMP="$HOME/.ansible/directory with space" ansible -m ping testhost -i ../../inventory "$@"
|
|
|
|
ANSIBLE_CONFIG=nonexistent.cfg ansible-config dump --only-changed -v | grep 'No config file found; using defaults'
|