Skip to content

Commit db0ffae

Browse files
committed
tests: Enable stricter error handling, fix resulting failures
1 parent c325772 commit db0ffae

File tree

100 files changed

+55
-121
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+55
-121
lines changed

tests/ansible/ansible.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[defaults]
2+
any_errors_fatal = true
23
inventory = hosts
34
gathering = explicit
45
strategy_plugins = ../../ansible_mitogen/plugins/strategy
@@ -35,6 +36,10 @@ timeout = 10
3536
# On Travis, paramiko check fails due to host key checking enabled.
3637
host_key_checking = False
3738

39+
[inventory]
40+
any_unparsed_is_failed = true
41+
host_pattern_mismatch = error
42+
3843
[callback_profile_tasks]
3944
task_output_limit = 10
4045

tests/ansible/bench/file_transfer.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11

22
- name: bench/file_transfer.yml
33
hosts: test-targets
4-
any_errors_fatal: true
54
tasks:
65

76
- name: Make 32MiB file

tests/ansible/bench/loop-100-copies.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
- name: bench/loop-100-copies.yml
22
hosts: all
3-
any_errors_fatal: true
43
tasks:
54

65
- name: Create file tree

tests/ansible/hosts/transport_config.hosts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,15 @@ tc-remote-addr-explicit-both ansible_ssh_host=a.b.c ansible_host=b.c.d
2222
# password()
2323
tc-password-unset
2424
tc-password-explicit-ssh ansible_ssh_pass=ansi-ssh-pass
25-
tc-password-explicit-user ansible_password=ansi-pass
25+
tc-password-explicit-pass ansible_password=ansi-pass
2626
tc-password-explicit-both ansible_password=a.b.c ansible_ssh_pass=c.b.a
2727

28+
# remote_user()
29+
tc-remote-user-unset # defaults to C.DEFAULT_REMOTE_USER
30+
tc-remote-user-explicit-ssh ansible_ssh_user=ansi-ssh-user
31+
tc-remote-user-explicit-user ansible_user=ansi-user
32+
tc-remote-user-explicit-both ansible_user=a.b.c ansible_ssh_user=c.b.a
33+
2834
# become()
2935
tc-become-unset
3036
tc-become-set

tests/ansible/integration/action/copy.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
- name: integration/action/copy.yml
44
hosts: test-targets
5-
any_errors_fatal: true
65
tasks:
76
- copy:
87
dest: /tmp/copy-tiny-file

tests/ansible/integration/action/fixup_perms2__copy.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
- name: integration/action/fixup_perms2__copy.yml
77
hosts: test-targets
8-
any_errors_fatal: true
98
tasks:
109
#
1110
# copy module (no mode).

tests/ansible/integration/action/low_level_execute_command.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
- name: integration/action/low_level_execute_command.yml
44
hosts: test-targets
5-
any_errors_fatal: true
65
tasks:
76

87
# "echo -en" to test we actually hit bash shell too.

tests/ansible/integration/action/make_tmp_path.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
- name: integration/action/make_tmp_path.yml
1111
hosts: test-targets
12-
any_errors_fatal: true
1312
tasks:
1413
- meta: end_play
1514
when: not is_mitogen

tests/ansible/integration/action/make_tmp_path__double.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# they succeed and are cleaned up correctly.
33

44
- name: integration/action/make_tmp_path__double.yml
5-
hosts: targets
5+
hosts: test-targets
66
tasks:
77
- mitogen_action_script:
88
script: |

tests/ansible/integration/action/remote_expand_user.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
- name: integration/action/remote_expand_user.yml
55
hosts: test-targets
6-
any_errors_fatal: true
76
tasks:
87
- name: "Find out root's homedir."
98
# Runs first because it blats regular Ansible facts with junk, so

0 commit comments

Comments
 (0)