issue #297: test fixes to match fixed CWD.

pull/298/head
David Wilson 6 years ago
parent d8e0c9e12c
commit 0b1f92b59f

@ -4,7 +4,14 @@
hosts: test-targets
tasks:
- connection: local
command: ansible -vvv -i "{{inventory_file}}" test-targets -m custom_python_detect_environment -e ansible_user=mitogen__slow_user -e ansible_password=slow_user_password
command: |
ansible -vvv
-i "{{inventory_file}}"
test-targets
-m custom_python_detect_environment
-e ansible_user=mitogen__slow_user -e ansible_password=slow_user_password
args:
chdir: ../..
register: out
ignore_errors: true
when: is_mitogen

@ -21,6 +21,8 @@
ansible -m shell -a whoami -i "{{inventory_file}}" test-targets
-e ansible_ssh_user=mitogen__has_sudo
-e ansible_ssh_pass=has_sudo_password
args:
chdir: ../..
register: out
when: is_mitogen
@ -30,6 +32,8 @@
ansible -m shell -a whoami -i "{{inventory_file}}" test-targets
-e ansible_ssh_user=mitogen__has_sudo
-e ansible_ssh_pass=wrong_password
args:
chdir: ../..
register: out
ignore_errors: true
when: is_mitogen
@ -46,6 +50,8 @@
ansible -m shell -a whoami -i "{{inventory_file}}" test-targets
-e ansible_user=mitogen__has_sudo
-e ansible_ssh_pass=has_sudo_password
args:
chdir: ../..
register: out
when: is_mitogen
@ -55,6 +61,8 @@
ansible -m shell -a whoami -i "{{inventory_file}}" test-targets
-e ansible_user=mitogen__has_sudo
-e ansible_ssh_pass=wrong_password
args:
chdir: ../..
register: out
ignore_errors: true
when: is_mitogen
@ -71,6 +79,8 @@
ansible -m shell -a whoami -i "{{inventory_file}}" test-targets
-e ansible_user=mitogen__has_sudo
-e ansible_password=has_sudo_password
args:
chdir: ../..
register: out
when: is_mitogen
@ -80,6 +90,8 @@
ansible -m shell -a whoami -i "{{inventory_file}}" test-targets
-e ansible_user=mitogen__has_sudo
-e ansible_password=wrong_password
args:
chdir: ../..
register: out
ignore_errors: true
when: is_mitogen
@ -96,6 +108,8 @@
ansible -m shell -a whoami -i "{{inventory_file}}" test-targets
-e ansible_user=mitogen__has_sudo_pubkey
-e ansible_ssh_private_key_file=../data/docker/mitogen__has_sudo_pubkey.key
args:
chdir: ../..
register: out
when: is_mitogen
@ -105,6 +119,8 @@
ansible -m shell -a whoami -i "{{inventory_file}}" test-targets
-e ansible_user=mitogen__has_sudo
-e ansible_ssh_private_key_file=/dev/null
args:
chdir: ../..
register: out
ignore_errors: true
when: is_mitogen

Loading…
Cancel
Save