@@ -83,63 +83,6 @@ describe('ProgramCall Functional Tests', () => {
8383 } ) ;
8484 } ) ;
8585
86-
87- describe ( 'Test ProgramCall()' , ( ) => {
88- it ( 'calls QWCRSVAL program and returns arbitrarily named parameter' , ( done ) => {
89- const connection = new Connection ( config ) ;
90-
91- const program = new ProgramCall ( 'QWCRSVAL' , { lib : 'QSYS' } ) ;
92-
93- const outBuf = {
94- type : 'ds' ,
95- io : 'out' ,
96- fields : [
97- { type : '10i0' , value : 0 } ,
98- { type : '10i0' , value : 0 } ,
99- { type : '36h' , value : '' } ,
100- { type : '10A' , value : '' } ,
101- { type : '1A' , value : '' } ,
102- { type : '1A' , value : '' } ,
103- { type : '10i0' , value : 0 } ,
104- { type : '10i0' , value : 0 } ,
105- ] ,
106- } ;
107-
108- const errno = {
109- name : 'errno' ,
110- type : 'ds' ,
111- io : 'both' ,
112- len : 'rec2' ,
113- fields : [
114- {
115- name : 'bytes_provided' ,
116- type : '10i0' ,
117- value : 0 ,
118- setlen : 'rec2' ,
119- } ,
120- { name : 'bytes_available' , type : '10i0' , value : 0 } ,
121- { name : 'msgid' , type : '7A' , value : '' } ,
122- { type : '1A' , value : '' } ,
123- ] ,
124- } ;
125-
126- program . addParam ( outBuf ) ;
127- program . addParam ( { type : '10i0' , value : 66 } ) ;
128- program . addParam ( { type : '10i0' , value : 1 } ) ;
129- program . addParam ( { type : '10A' , value : 'QCCSID' } ) ;
130- program . addParam ( errno ) ;
131- connection . add ( program ) ;
132- connection . run ( ( error , xmlOut ) => {
133- expect ( error ) . to . equal ( null ) ;
134- parseString ( xmlOut , ( parseError , result ) => {
135- expect ( parseError ) . to . equal ( null ) ;
136- expect ( result . myscript . pgm [ 0 ] . success [ 0 ] ) . to . include ( '+++ success QSYS QWCRSVAL' ) ;
137- done ( ) ;
138- } ) ;
139- } ) ;
140- } ) ;
141- } ) ;
142-
14386 describe . skip ( 'Test ProgramCall()' , ( ) => {
14487 // ZZSRV6 program requires XMLSERVICE built with tests
14588 // Skip for now, we need to add before hook to check ZZSRV6 is available
0 commit comments