Skip to content

Commit f169a8f

Browse files
committed
Integration test updates for feedback support
Updated IT tests to check additional feedback information now available in cmci failure response
1 parent 0143b8a commit f169a8f

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

tests/integration/targets/cics_cmci/playbooks/cmci_create_pipeline_failure.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535
assert:
3636
that:
3737
- result.failed is false
38-
# This will need updating when we pull out more specific error messages from the CMCI response.
39-
# Expecting the error to contain 'Attribute Configuration File (CONFIGFILE) Error(PIPEDEF_INV_DATA)'
40-
- result.msg == "CMCI request failed with response \"TABLEERROR\" reason \"DATAERROR\""
38+
- result.msg == "CMCI request failed with response \"TABLEERROR\" reason \"DATAERROR\""
39+
- result.cpsm_reason == 'DATAERROR'
40+
- result.cpsm_response == 'TABLEERROR'
41+
42+
- result.feedback[0].action == 'CREATE'
43+
- result.feedback[0].attribute1 == 'CONFIGFILE'
44+
- result.feedback[0].errorcode == '1' #(PIPEDEF_INV_DATA)

tests/integration/targets/cics_cmci/playbooks/cmci_install_bundle_failure.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,21 @@
101101
assert:
102102
that:
103103
- result.failed is false
104-
# This will need updating when we pull out more specific error messages from the CMCI response.
105-
# Expecting the error to contain 'EXEC CICS command(CSD INSTALL) RESP(INVREQ) RESP2(633)'
106-
# Where RESP2(633) is 'Installation of BUNDLE resource resource failed because the resource had no manifest'
107104
- result.msg == "CMCI request failed with response \"TABLEERROR\" reason \"DATAERROR\""
105+
- result.cpsm_reason == 'DATAERROR'
106+
- result.cpsm_response == 'TABLEERROR'
107+
108+
- result.feedback[0].action == 'CSDINSTALL'
109+
- result.feedback[0].attribute1 == 'NAME'
110+
- result.feedback[0].errorcode == '31'
111+
112+
- result.feedback[1].action == 'CSDINSTALL'
113+
- result.feedback[1].eibfn == 'A20E'
114+
- result.feedback[1].eibfn_alt == 'CSD INSTALL'
115+
- result.feedback[1].eyu_cicsname == cmci_scope
116+
- result.feedback[1].resp == '16'
117+
- result.feedback[1].resp2 == '633' #'Installation of BUNDLE resource resource failed because the resource had no manifest'
118+
- result.feedback[1].resp_alt == 'INVREQ'
108119

109120

110121
- name: 'delete bundle def'

0 commit comments

Comments
 (0)