Skip to content

Commit b1f3818

Browse files
authored
test: Remove redundant ProgramCall test (#284)
1 parent 2056229 commit b1f3818

File tree

2 files changed

+0
-92
lines changed

2 files changed

+0
-92
lines changed

test/functional/ProgramCallFunctional.js

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -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

test/functional/deprecated/iPgmFunctional.js

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -80,41 +80,6 @@ describe('iPgm Functional Tests', () => {
8080
});
8181
});
8282

83-
84-
describe('Test iPgm()', () => {
85-
it('calls QWCRSVAL program and returns arbitrarily named parameter', (done) => {
86-
const connection = new iConn(database, username, password, restOptions);
87-
88-
const program = new iPgm('QWCRSVAL', { lib: 'QSYS' });
89-
90-
const outBuf = [
91-
[0, '10i0'],
92-
[0, '10i0'],
93-
['', '36h'],
94-
['', '10A'],
95-
['', '1A'],
96-
['', '1A'],
97-
[0, '10i0'],
98-
[0, '10i0'],
99-
];
100-
program.addParam(outBuf, { io: 'out' });
101-
program.addParam(66, '10i0');
102-
program.addParam(1, '10i0');
103-
program.addParam('QCCSID', '10A');
104-
const paramValue = 'errno';
105-
106-
program.addParam(this.errno, { io: 'both', len: 'rec2', name: paramValue });
107-
connection.add(program);
108-
connection.run((xmlOut) => {
109-
parseString(xmlOut, (parseError, result) => {
110-
expect(parseError).to.equal(null);
111-
expect(result.myscript.pgm[0].success[0]).to.include('+++ success QSYS QWCRSVAL');
112-
done();
113-
});
114-
});
115-
});
116-
});
117-
11883
describe.skip('Test iPgm()', () => {
11984
// ZZSRV6 program requires XMLSERVICE built with tests
12085
// Skip for now, we need to add before hook to check if ZZSRV6 is available

0 commit comments

Comments
 (0)