Skip to content

Commit 412c1fa

Browse files
KyeMaloy97GitHub Enterprise
authored andcommitted
updated expected fails to stay failed (ansible-collections#143)
Signed-off-by: Kye Maloy <[email protected]>
1 parent c316279 commit 412c1fa

File tree

13 files changed

+25
-26
lines changed

13 files changed

+25
-26
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ docs/build/
55
__pycache__
66
venv*
77
.venv
8+
core
89
tests/output
910
ibm-ibm_zos_cics-*.tar.gz
1011
tests/integration/inventory

tests/integration/targets/cics_auxiliary_temp/playbooks/check_bad_temp_location.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
ibm.ibm_zos_cics.auxiliary_temp:
2828
state: "initial"
2929
register: res
30-
failed_when: false
30+
ignore_errors: true
3131

3232
- name: Debug
3333
ansible.builtin.debug:
@@ -36,7 +36,7 @@
3636
- name: Assert Failure
3737
ansible.builtin.assert:
3838
that:
39-
- res.failed is false
39+
- res.failed is true
4040
- res.changed is false
4141
- res.rc == 1
4242
- "'exception' in res"

tests/integration/targets/cics_auxiliary_temp/playbooks/check_uppercase_location.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
ibm.ibm_zos_cics.auxiliary_temp:
4545
state: "initial"
4646
register: result
47-
failed_when: false
4847

4948
- name: Debug
5049
ansible.builtin.debug:

tests/integration/targets/cics_global_catalog/playbooks/check_bad_gcd_location.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
ibm.ibm_zos_cics.global_catalog:
3131
state: "initial"
3232
register: res
33-
failed_when: false
33+
ignore_errors: true
3434

3535
- name: Debug
3636
ansible.builtin.debug:
@@ -39,7 +39,7 @@
3939
- name: Assert Failure
4040
ansible.builtin.assert:
4141
that:
42-
- res.failed is false
42+
- res.failed is true
4343
- res.changed is false
4444
- res.rc == 1
4545
- "'exception' in res"

tests/integration/targets/cics_global_catalog/playbooks/check_uppercase_location.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
ibm.ibm_zos_cics.global_catalog:
4747
state: "initial"
4848
register: result
49-
failed_when: false
5049

5150
- name: Debug
5251
ansible.builtin.debug:

tests/integration/targets/cics_intrapartition/playbooks/check_bad_intra_location.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
ibm.ibm_zos_cics.intrapartition:
3030
state: "initial"
3131
register: res
32-
failed_when: false
32+
ignore_errors: true
3333

3434
- name: Debug
3535
ansible.builtin.debug:
@@ -38,7 +38,7 @@
3838
- name: Assert Failure
3939
ansible.builtin.assert:
4040
that:
41-
- res.failed is false
41+
- res.failed is true
4242
- res.changed is false
4343
- res.rc == 1
4444
- "'exception' in res"

tests/integration/targets/cics_intrapartition/playbooks/check_uppercase_location.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
ibm.ibm_zos_cics.intrapartition:
4747
state: "initial"
4848
register: result
49-
failed_when: false
5049

5150
- name: Debug
5251
ansible.builtin.debug:

tests/integration/targets/cics_local_catalog/playbooks/check_bad_lcd_location.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
dfhlcd:
2828
dsn: "{{ region_dataset_path }}..."
2929
register: res
30-
failed_when: false
30+
ignore_errors: true
3131

3232
- name: Debug
3333
ansible.builtin.debug:
@@ -36,7 +36,7 @@
3636
- name: Assert Failure
3737
ansible.builtin.assert:
3838
that:
39-
- res.failed is false
39+
- res.failed is true
4040
- res.changed is false
4141
- res.rc == 1
4242
- "'exception' in res"

tests/integration/targets/cics_local_catalog/playbooks/check_uppercase_location.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
space_type: "M"
4545
state: "initial"
4646
register: result
47-
failed_when: false
4847

4948
- name: Debug
5049
ansible.builtin.debug:

tests/integration/targets/cics_local_request_queue/playbooks/check_bad_lrq_location.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
ibm.ibm_zos_cics.local_request_queue:
2828
state: "initial"
2929
register: res
30-
failed_when: false
30+
ignore_errors: true
3131

3232
- name: Debug
3333
ansible.builtin.debug:
@@ -36,7 +36,7 @@
3636
- name: Assert Failure
3737
ansible.builtin.assert:
3838
that:
39-
- res.failed is false
39+
- res.failed is true
4040
- res.changed is false
4141
- res.rc == 1
4242
- "'exception' in res"

0 commit comments

Comments
 (0)