Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 0 additions & 57 deletions test/functional/ProgramCallFunctional.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,63 +83,6 @@ describe('ProgramCall Functional Tests', () => {
});
});


describe('Test ProgramCall()', () => {
it('calls QWCRSVAL program and returns arbitrarily named parameter', (done) => {
const connection = new Connection(config);

const program = new ProgramCall('QWCRSVAL', { lib: 'QSYS' });

const outBuf = {
type: 'ds',
io: 'out',
fields: [
{ type: '10i0', value: 0 },
{ type: '10i0', value: 0 },
{ type: '36h', value: '' },
{ type: '10A', value: '' },
{ type: '1A', value: '' },
{ type: '1A', value: '' },
{ type: '10i0', value: 0 },
{ type: '10i0', value: 0 },
],
};

const errno = {
name: 'errno',
type: 'ds',
io: 'both',
len: 'rec2',
fields: [
{
name: 'bytes_provided',
type: '10i0',
value: 0,
setlen: 'rec2',
},
{ name: 'bytes_available', type: '10i0', value: 0 },
{ name: 'msgid', type: '7A', value: '' },
{ type: '1A', value: '' },
],
};

program.addParam(outBuf);
program.addParam({ type: '10i0', value: 66 });
program.addParam({ type: '10i0', value: 1 });
program.addParam({ type: '10A', value: 'QCCSID' });
program.addParam(errno);
connection.add(program);
connection.run((error, xmlOut) => {
expect(error).to.equal(null);
parseString(xmlOut, (parseError, result) => {
expect(parseError).to.equal(null);
expect(result.myscript.pgm[0].success[0]).to.include('+++ success QSYS QWCRSVAL');
done();
});
});
});
});

describe.skip('Test ProgramCall()', () => {
// ZZSRV6 program requires XMLSERVICE built with tests
// Skip for now, we need to add before hook to check ZZSRV6 is available
Expand Down
35 changes: 0 additions & 35 deletions test/functional/deprecated/iPgmFunctional.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,41 +80,6 @@ describe('iPgm Functional Tests', () => {
});
});


describe('Test iPgm()', () => {
it('calls QWCRSVAL program and returns arbitrarily named parameter', (done) => {
const connection = new iConn(database, username, password, restOptions);

const program = new iPgm('QWCRSVAL', { lib: 'QSYS' });

const outBuf = [
[0, '10i0'],
[0, '10i0'],
['', '36h'],
['', '10A'],
['', '1A'],
['', '1A'],
[0, '10i0'],
[0, '10i0'],
];
program.addParam(outBuf, { io: 'out' });
program.addParam(66, '10i0');
program.addParam(1, '10i0');
program.addParam('QCCSID', '10A');
const paramValue = 'errno';

program.addParam(this.errno, { io: 'both', len: 'rec2', name: paramValue });
connection.add(program);
connection.run((xmlOut) => {
parseString(xmlOut, (parseError, result) => {
expect(parseError).to.equal(null);
expect(result.myscript.pgm[0].success[0]).to.include('+++ success QSYS QWCRSVAL');
done();
});
});
});
});

describe.skip('Test iPgm()', () => {
// ZZSRV6 program requires XMLSERVICE built with tests
// Skip for now, we need to add before hook to check if ZZSRV6 is available
Expand Down