Skip to content

Commit 6e509e7

Browse files
committed
handle start module changes in tests
Signed-off-by: Andrew Twydell <[email protected]>
1 parent 25bf081 commit 6e509e7

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

tests/integration/targets/cics_start_stop/playbooks/provisioning_and_deprovisioning.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
always:
3838
- name: Delete job
3939
ansible.builtin.command:
40-
cmd: "jcan P {{ start_region_applid }} {{ start_result.job_id }}"
40+
cmd: "jcan P {{ start_region_applid }} {{ start_result.stdout }}"
4141
ignore_errors: true
4242

4343
- name: Warm Immediate
@@ -58,7 +58,7 @@
5858
always:
5959
- name: Delete job
6060
ansible.builtin.command:
61-
cmd: "jcan P {{ start_region_applid }} {{ start_result.job_id }}"
61+
cmd: "jcan P {{ start_region_applid }} {{ start_result.stdout }}"
6262
ignore_errors: true
6363

6464
- name: Normal Cancel
@@ -74,7 +74,7 @@
7474
always:
7575
- name: Delete job
7676
ansible.builtin.command:
77-
cmd: "jcan P {{ start_region_applid }} {{ start_result.job_id }}"
77+
cmd: "jcan P {{ start_region_applid }} {{ start_result.stdout }}"
7878
ignore_errors: true
7979

8080
always:

tests/integration/targets/cics_start_stop/playbooks/stop_args.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
- name: Issue shutdown command (with job_id and job_name)
6969
ibm.ibm_zos_cics.stop_region:
7070
job_name: "{{ start_region_applid }}"
71-
job_id: "{{ start_result.job_id }}"
71+
job_id: "{{ start_result.stdout }}"
7272
mode: normal
7373
timeout: 120
7474
register: stop_result
@@ -96,7 +96,7 @@
9696
always:
9797
- name: Delete job
9898
ansible.builtin.command:
99-
cmd: "jcan P {{ start_region_applid }} {{ start_result.job_id }}"
99+
cmd: "jcan P {{ start_region_applid }} {{ start_result.stdout }}"
100100
ignore_errors: true
101101

102102
- name: Stop job no timeout
@@ -107,7 +107,7 @@
107107
- name: Issue shutdown command (with job_id and job_name)
108108
ibm.ibm_zos_cics.stop_region:
109109
job_name: "{{ start_region_applid }}"
110-
job_id: "{{ start_result.job_id }}"
110+
job_id: "{{ start_result.stdout }}"
111111
mode: normal
112112
timeout: -1
113113
register: stop_result
@@ -159,7 +159,7 @@
159159
- name: Issue shutdown command (wrong name)
160160
ibm.ibm_zos_cics.stop_region:
161161
job_name: "NONJOB"
162-
job_id: "{{ start_result.job_id }}"
162+
job_id: "{{ start_result.stdout }}"
163163
register: stop_result
164164
timeout: 300
165165
ignore_errors: true
@@ -172,11 +172,11 @@
172172
ansible.builtin.assert:
173173
that:
174174
- stop_result.failed == true
175-
- stop_result.msg == "No jobs found with name NONJOB and ID {{ start_result.job_id }}"
175+
- stop_result.msg == "No jobs found with name NONJOB and ID {{ start_result.stdout }}"
176176
always:
177177
- name: Delete job
178178
ansible.builtin.command:
179-
cmd: "jcan C {{ start_region_applid }} {{ start_result.job_id }}"
179+
cmd: "jcan C {{ start_region_applid }} {{ start_result.stdout }}"
180180
ignore_errors: true
181181

182182
- name: Stop job already stopped
@@ -193,7 +193,7 @@
193193
- stop_result.msg == ""
194194
- name: Issue shutdown command with ID
195195
ibm.ibm_zos_cics.stop_region:
196-
job_id: "{{ start_result.job_id }}"
196+
job_id: "{{ start_result.stdout }}"
197197
register: stop_result
198198
- name: Assert CICS stop did not fail
199199
ansible.builtin.assert:
@@ -203,7 +203,7 @@
203203
- stop_result.msg == ""
204204
- name: Issue shutdown command with ID and name
205205
ibm.ibm_zos_cics.stop_region:
206-
job_id: "{{ start_result.job_id }}"
206+
job_id: "{{ start_result.stdout }}"
207207
job_name: "{{ start_region_applid }}"
208208
register: stop_result
209209
- name: Assert CICS stop did not fail
@@ -215,7 +215,7 @@
215215

216216
- name: Issue shutdown command with mismatched name and id (wrong name)
217217
ibm.ibm_zos_cics.stop_region:
218-
job_id: "{{ start_result.job_id }}"
218+
job_id: "{{ start_result.stdout }}"
219219
job_name: "NONJOB"
220220
register: stop_result
221221
ignore_errors: true
@@ -224,7 +224,7 @@
224224
that:
225225
- stop_result.failed == true
226226
- stop_result.changed == false
227-
- stop_result.msg == "No jobs found with name NONJOB and ID {{ start_result.job_id }}"
227+
- stop_result.msg == "No jobs found with name NONJOB and ID {{ start_result.stdout }}"
228228
- name: Issue shutdown command with mismatched name and id (wrong id)
229229
ibm.ibm_zos_cics.stop_region:
230230
job_id: "NONJOB"
@@ -241,7 +241,7 @@
241241
always:
242242
- name: Delete job
243243
ansible.builtin.command:
244-
cmd: "jcan P {{ start_region_applid }} {{ start_result.job_id }}"
244+
cmd: "jcan P {{ start_region_applid }} {{ start_result.stdout }}"
245245
ignore_errors: true
246246
- name: Delete data sets
247247
ansible.builtin.import_tasks: ../repeatable_tasks/data_sets.yml

tests/integration/targets/cics_start_stop/repeatable_tasks/stop_region.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
- jobid is not defined or jobid is true
4646
ibm.ibm_zos_cics.stop_region:
4747
job_name: "{{ start_region_applid }}"
48-
job_id: "{{ start_result.job_id }}"
48+
job_id: "{{ start_result.stdout }}"
4949
mode: "{{ mode }}"
5050
register: stop_result
5151
timeout: 300

0 commit comments

Comments
 (0)