itoolkit 1.0.0-rc.1 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +37 -11
- package/CHANGELOG.md +76 -2
- package/README.md +8 -8
- package/lib/Connection.js +0 -1
- package/lib/Deprecated.js +3 -4
- package/lib/ProgramCall.js +2 -2
- package/lib/transports/httpTransport.js +2 -2
- package/lib/transports/idbTransport.js +23 -11
- package/lib/transports/odbcTransport.js +16 -2
- package/lib/transports/sshTransport.js +4 -5
- package/package.json +15 -14
- package/test/README.md +2 -4
- package/test/functional/CommandCallFunctional.js +20 -12
- package/test/functional/ProgramCallFunctional.js +6 -66
- package/test/functional/checkObjectExists.js +12 -1
- package/test/functional/checkVersion.js +17 -0
- package/test/functional/deprecated/commandsFunctional.js +20 -11
- package/test/functional/deprecated/iDataQueueFunctional.js +10 -11
- package/test/functional/deprecated/iNetworkFunctional.js +8 -9
- package/test/functional/deprecated/iObjFunctional.js +18 -19
- package/test/functional/deprecated/iPgmFunctional.js +6 -42
- package/test/functional/deprecated/iProdFunctional.js +10 -11
- package/test/functional/deprecated/iSqlFunctional.js +30 -32
- package/test/functional/deprecated/iUserSpaceFunctional.js +29 -18
- package/test/functional/deprecated/iWorkFunctional.js +61 -59
- package/test/functional/iDataQueueFunctional.js +8 -9
- package/test/functional/iNetworkFunctional.js +6 -8
- package/test/functional/iObjFunctional.js +16 -17
- package/test/functional/iProdFunctional.js +8 -9
- package/test/functional/iSqlFunctional.js +30 -31
- package/test/functional/iUserSpaceFunctional.js +27 -16
- package/test/functional/iWorkFunctional.js +29 -33
- package/test/unit/CommandCallUnit.js +10 -11
- package/test/unit/ConnectionUnit.js +12 -19
- package/test/unit/ProgamCallUnit.js +27 -25
- package/test/unit/deprecated/commandsUnit.js +10 -11
- package/test/unit/deprecated/iConnUnit.js +12 -16
- package/test/unit/deprecated/iPgmUnit.js +25 -21
- package/test/unit/deprecated/iSqlUnit.js +69 -70
- package/test/unit/deprecated/xmlToJsonUnit.js +6 -9
- package/docs/CommandCall.rst +0 -22
- package/docs/Connection.rst +0 -133
- package/docs/Makefile +0 -20
- package/docs/ProgramCall.rst +0 -30
- package/docs/conf.py +0 -63
- package/docs/deprecated/examples/addQuery.js +0 -27
- package/docs/deprecated/examples/addToLibraryList.js +0 -15
- package/docs/deprecated/examples/callProcedure.js +0 -28
- package/docs/deprecated/examples/clearDataQueue.js +0 -15
- package/docs/deprecated/examples/createUserSpace.js +0 -15
- package/docs/deprecated/examples/deleteUserSpace.js +0 -15
- package/docs/deprecated/examples/getDataArea.js +0 -15
- package/docs/deprecated/examples/getInstalledProducts.js +0 -15
- package/docs/deprecated/examples/getJobInfo.js +0 -15
- package/docs/deprecated/examples/getJobStatus.js +0 -15
- package/docs/deprecated/examples/getNetInterfaceData.js +0 -15
- package/docs/deprecated/examples/getPTFInfo.js +0 -15
- package/docs/deprecated/examples/getProductInfo.js +0 -15
- package/docs/deprecated/examples/getSysStatus.js +0 -15
- package/docs/deprecated/examples/getSysStatusExt.js +0 -15
- package/docs/deprecated/examples/getSysValue.js +0 -15
- package/docs/deprecated/examples/getTCPIPAttr.js +0 -15
- package/docs/deprecated/examples/getUserSpaceData.js +0 -15
- package/docs/deprecated/examples/receiveFromDataQueue.js +0 -15
- package/docs/deprecated/examples/retrCmdInfo.js +0 -15
- package/docs/deprecated/examples/retrPgmInfo.js +0 -15
- package/docs/deprecated/examples/retrSrvPgmInfo.js +0 -16
- package/docs/deprecated/examples/retrUserAuthToObj.js +0 -15
- package/docs/deprecated/examples/retrUserInfo.js +0 -15
- package/docs/deprecated/examples/retrUsrAuth.js +0 -15
- package/docs/deprecated/examples/sendToDataQueue.js +0 -15
- package/docs/deprecated/examples/setUserSpaceData.js +0 -15
- package/docs/deprecated/iCmd.rst +0 -7
- package/docs/deprecated/iConn.rst +0 -9
- package/docs/deprecated/iDataQueue.rst +0 -33
- package/docs/deprecated/iNetwork.rst +0 -27
- package/docs/deprecated/iObj.rst +0 -64
- package/docs/deprecated/iPgm.rst +0 -9
- package/docs/deprecated/iProd.rst +0 -36
- package/docs/deprecated/iQsh.rst +0 -7
- package/docs/deprecated/iSh.rst +0 -7
- package/docs/deprecated/iSql.rst +0 -30
- package/docs/deprecated/iUserSpace.rst +0 -38
- package/docs/deprecated/iWork.rst +0 -58
- package/docs/deprecated.rst +0 -21
- package/docs/examples/cosine.js +0 -27
- package/docs/examples/qusrobjd.js +0 -80
- package/docs/examples/rtvjoba.js +0 -24
- package/docs/features.rst +0 -12
- package/docs/index.rst +0 -71
- package/docs/migratation-guide-v1.0.rst +0 -325
- package/docs/requirements.txt +0 -1
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
16
16
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
17
17
|
|
|
18
|
-
/* eslint-env mocha */
|
|
19
18
|
/* eslint-disable new-cap */
|
|
20
19
|
|
|
21
20
|
const { expect } = require('chai');
|
|
@@ -44,13 +43,13 @@ if (config.transport === 'rest') {
|
|
|
44
43
|
|
|
45
44
|
const lib = 'NODETKTEST';
|
|
46
45
|
|
|
47
|
-
describe('iUserSpace Functional Tests', ()
|
|
48
|
-
before(()
|
|
46
|
+
describe('iUserSpace Functional Tests', function () {
|
|
47
|
+
before(function () {
|
|
49
48
|
printConfig();
|
|
50
49
|
});
|
|
51
50
|
|
|
52
|
-
describe('constructor', ()
|
|
53
|
-
it('returns an instance of iUserSpace', ()
|
|
51
|
+
describe('constructor', function () {
|
|
52
|
+
it('returns an instance of iUserSpace', function () {
|
|
54
53
|
const connection = new iConn(database, config.user, password);
|
|
55
54
|
|
|
56
55
|
const userSpace = new iUserSpace(connection);
|
|
@@ -59,8 +58,8 @@ describe('iUserSpace Functional Tests', () => {
|
|
|
59
58
|
});
|
|
60
59
|
});
|
|
61
60
|
|
|
62
|
-
describe('createUserSpace', ()
|
|
63
|
-
it('creates a user space', (done)
|
|
61
|
+
describe('createUserSpace', function () {
|
|
62
|
+
it('creates a user space', function (done) {
|
|
64
63
|
const connection = new iConn(database, username, password, restOptions);
|
|
65
64
|
|
|
66
65
|
const userSpace = new iUserSpace(connection);
|
|
@@ -69,16 +68,23 @@ describe('iUserSpace Functional Tests', () => {
|
|
|
69
68
|
|
|
70
69
|
const userSpaceName = `USP${(config.transport).toUpperCase()}`;
|
|
71
70
|
|
|
72
|
-
userSpace.createUserSpace(
|
|
73
|
-
|
|
71
|
+
userSpace.createUserSpace(
|
|
72
|
+
userSpaceName,
|
|
73
|
+
lib,
|
|
74
|
+
'LOG',
|
|
75
|
+
50,
|
|
76
|
+
'*EXCLUDE',
|
|
77
|
+
description,
|
|
78
|
+
(output) => {
|
|
74
79
|
expect(output).to.be.a('boolean').and.to.equal(true);
|
|
75
80
|
done();
|
|
76
|
-
}
|
|
81
|
+
},
|
|
82
|
+
);
|
|
77
83
|
});
|
|
78
84
|
});
|
|
79
85
|
|
|
80
|
-
describe('setUserSpaceData', ()
|
|
81
|
-
it('sets data within the user space', (done)
|
|
86
|
+
describe('setUserSpaceData', function () {
|
|
87
|
+
it('sets data within the user space', function (done) {
|
|
82
88
|
const connection = new iConn(database, username, password, restOptions);
|
|
83
89
|
|
|
84
90
|
const userSpace = new iUserSpace(connection);
|
|
@@ -87,16 +93,21 @@ describe('iUserSpace Functional Tests', () => {
|
|
|
87
93
|
|
|
88
94
|
const userSpaceName = `USP${(config.transport).toUpperCase()}`;
|
|
89
95
|
|
|
90
|
-
userSpace.setUserSpaceData(
|
|
96
|
+
userSpace.setUserSpaceData(
|
|
97
|
+
userSpaceName,
|
|
98
|
+
lib,
|
|
99
|
+
msg.length,
|
|
100
|
+
msg,
|
|
91
101
|
(output) => {
|
|
92
102
|
expect(output).to.be.a('boolean').and.to.equal(true);
|
|
93
103
|
done();
|
|
94
|
-
}
|
|
104
|
+
},
|
|
105
|
+
);
|
|
95
106
|
});
|
|
96
107
|
});
|
|
97
108
|
|
|
98
|
-
describe('getUserSpaceData', ()
|
|
99
|
-
it('returns specified length of data', (done)
|
|
109
|
+
describe('getUserSpaceData', function () {
|
|
110
|
+
it('returns specified length of data', function (done) {
|
|
100
111
|
const connection = new iConn(database, username, password, restOptions);
|
|
101
112
|
|
|
102
113
|
const userSpace = new iUserSpace(connection);
|
|
@@ -110,8 +121,8 @@ describe('iUserSpace Functional Tests', () => {
|
|
|
110
121
|
});
|
|
111
122
|
});
|
|
112
123
|
|
|
113
|
-
describe('deleteUserSpace', ()
|
|
114
|
-
it('removes a user space', (done)
|
|
124
|
+
describe('deleteUserSpace', function () {
|
|
125
|
+
it('removes a user space', function (done) {
|
|
115
126
|
const connection = new iConn(database, username, password, restOptions);
|
|
116
127
|
|
|
117
128
|
const userSpace = new iUserSpace(connection);
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
16
16
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
17
17
|
|
|
18
|
-
/* eslint-env mocha */
|
|
19
18
|
/* eslint-disable new-cap */
|
|
20
19
|
|
|
21
20
|
const { expect } = require('chai');
|
|
@@ -43,13 +42,13 @@ if (config.transport === 'rest') {
|
|
|
43
42
|
};
|
|
44
43
|
}
|
|
45
44
|
|
|
46
|
-
describe('iWork Functional Tests', ()
|
|
47
|
-
before(()
|
|
45
|
+
describe('iWork Functional Tests', function () {
|
|
46
|
+
before(function () {
|
|
48
47
|
printConfig();
|
|
49
48
|
});
|
|
50
49
|
|
|
51
|
-
describe('constructor', ()
|
|
52
|
-
it('creates and returns an instance of iWork', ()
|
|
50
|
+
describe('constructor', function () {
|
|
51
|
+
it('creates and returns an instance of iWork', function () {
|
|
53
52
|
const connection = new iConn(database, config.user, password);
|
|
54
53
|
|
|
55
54
|
const work = new iWork(connection);
|
|
@@ -58,8 +57,8 @@ describe('iWork Functional Tests', () => {
|
|
|
58
57
|
});
|
|
59
58
|
});
|
|
60
59
|
|
|
61
|
-
describe('getSysValue', ()
|
|
62
|
-
it('returns the value of system variable', (done)
|
|
60
|
+
describe('getSysValue', function () {
|
|
61
|
+
it('returns the value of system variable', function (done) {
|
|
63
62
|
const connection = new iConn(database, username, password, restOptions);
|
|
64
63
|
|
|
65
64
|
const work = new iWork(connection);
|
|
@@ -71,39 +70,42 @@ describe('iWork Functional Tests', () => {
|
|
|
71
70
|
});
|
|
72
71
|
});
|
|
73
72
|
|
|
74
|
-
describe('getSysStatus', ()
|
|
75
|
-
it(
|
|
73
|
+
describe('getSysStatus', function () {
|
|
74
|
+
it(
|
|
75
|
+
'returns basic system status information about the signed-on users '
|
|
76
76
|
+ 'and batch jobs',
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
function (done) {
|
|
78
|
+
const connection = new iConn(database, username, password, restOptions);
|
|
79
|
+
const work = new iWork(connection);
|
|
80
80
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
81
|
+
work.getSysStatus((output) => {
|
|
82
|
+
expect(output).to.be.an('Object');
|
|
83
|
+
expect(output).to.have.a.property('Current_date_and_time');
|
|
84
|
+
expect(output).to.have.a.property('System_name');
|
|
85
|
+
expect(output).to.have.a.property('Users_currently_signed_on');
|
|
86
|
+
expect(output).to.have.a.property('Users_temporarily_signed_off_(disconnected)');
|
|
87
|
+
expect(output).to.have.a.property('Users_suspended_by_system_request');
|
|
88
|
+
expect(output).to.have.a.property('Users_suspended_by_group_jobs');
|
|
89
|
+
expect(output).to.have.a.property('Users_signed_off_with_printer_output_waiting_to_print');
|
|
90
|
+
expect(output).to.have.a.property('Batch_jobs_waiting_for_messages');
|
|
91
|
+
expect(output).to.have.a.property('Batch_jobs_running');
|
|
92
|
+
expect(output).to.have.a.property('Batch_jobs_held_while_running');
|
|
93
|
+
expect(output).to.have.a.property('Batch_jobs_ending');
|
|
94
|
+
expect(output).to.have.a.property('Batch_jobs_waiting_to_run_or_already_scheduled');
|
|
95
|
+
expect(output).to.have.a.property('Batch_jobs_held_on_a_job_queue');
|
|
96
|
+
expect(output).to.have.a.property('Batch_jobs_on_a_held_job_queue');
|
|
97
|
+
expect(output).to.have.a.property('Batch_jobs_on_an_unassigned_job_queue');
|
|
98
|
+
expect(output).to.have.a.property('Batch_jobs_ended_with_printer_output_waiting_to_print');
|
|
99
|
+
done();
|
|
100
|
+
});
|
|
101
|
+
},
|
|
102
|
+
);
|
|
102
103
|
});
|
|
103
104
|
|
|
104
|
-
describe('getSysStatusExt', ()
|
|
105
|
-
it(
|
|
106
|
-
|
|
105
|
+
describe('getSysStatusExt', function () {
|
|
106
|
+
it(
|
|
107
|
+
'returns more detailed system status info',
|
|
108
|
+
function (done) {
|
|
107
109
|
const connection = new iConn(database, username, password, restOptions);
|
|
108
110
|
|
|
109
111
|
const work = new iWork(connection);
|
|
@@ -143,12 +145,14 @@ describe('iWork Functional Tests', () => {
|
|
|
143
145
|
expect(output).to.have.a.property('Main_storage_size_(long)');
|
|
144
146
|
done();
|
|
145
147
|
});
|
|
146
|
-
}
|
|
148
|
+
},
|
|
149
|
+
);
|
|
147
150
|
});
|
|
148
151
|
|
|
149
|
-
describe('getJobStatus', ()
|
|
150
|
-
it(
|
|
151
|
-
|
|
152
|
+
describe('getJobStatus', function () {
|
|
153
|
+
it(
|
|
154
|
+
'returns status of specified job',
|
|
155
|
+
function (done) {
|
|
152
156
|
const connection = new iConn(database, username, password, restOptions);
|
|
153
157
|
|
|
154
158
|
const work = new iWork(connection);
|
|
@@ -159,11 +163,12 @@ describe('iWork Functional Tests', () => {
|
|
|
159
163
|
expect(output).to.have.a.property('Fully_qualified_job_name');
|
|
160
164
|
done();
|
|
161
165
|
});
|
|
162
|
-
}
|
|
166
|
+
},
|
|
167
|
+
);
|
|
163
168
|
});
|
|
164
169
|
|
|
165
|
-
describe('getJobInfo', ()
|
|
166
|
-
it('returns info on specfed job', (done)
|
|
170
|
+
describe('getJobInfo', function () {
|
|
171
|
+
it('returns info on specfed job', function (done) {
|
|
167
172
|
const connection = new iConn(database, username, password, restOptions);
|
|
168
173
|
|
|
169
174
|
const work = new iWork(connection);
|
|
@@ -210,26 +215,23 @@ describe('iWork Functional Tests', () => {
|
|
|
210
215
|
});
|
|
211
216
|
});
|
|
212
217
|
|
|
213
|
-
describe('getDataArea', ()
|
|
214
|
-
|
|
218
|
+
describe('getDataArea', function () {
|
|
219
|
+
it('returns contents of a data area', function (done) {
|
|
215
220
|
checkObjectExists(config, 'TESTDA', '*DTAARA', (error) => {
|
|
216
221
|
if (error) { throw error; }
|
|
217
|
-
|
|
218
|
-
});
|
|
219
|
-
});
|
|
220
|
-
it('returns contents of a data area', (done) => {
|
|
221
|
-
const connection = new iConn(database, username, password, restOptions);
|
|
222
|
+
const connection = new iConn(database, username, password, restOptions);
|
|
222
223
|
|
|
223
|
-
|
|
224
|
+
const work = new iWork(connection);
|
|
224
225
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
226
|
+
work.getDataArea('NODETKTEST', 'TESTDA', 20, (output) => {
|
|
227
|
+
expect(output).to.be.an('Object');
|
|
228
|
+
expect(output).to.have.a.property('Type_of_value_returned');
|
|
229
|
+
expect(output).to.have.a.property('Library_name');
|
|
230
|
+
expect(output).to.have.a.property('Length_of_value_returned');
|
|
231
|
+
expect(output).to.have.a.property('Number_of_decimal_positions');
|
|
232
|
+
expect(output).to.have.a.property('Value');
|
|
233
|
+
done();
|
|
234
|
+
});
|
|
233
235
|
});
|
|
234
236
|
});
|
|
235
237
|
});
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
16
16
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
17
17
|
|
|
18
|
-
/* eslint-env mocha */
|
|
19
18
|
/* eslint-disable new-cap */
|
|
20
19
|
|
|
21
20
|
const { expect } = require('chai');
|
|
@@ -25,11 +24,11 @@ const { checkObjectExists } = require('./checkObjectExists');
|
|
|
25
24
|
|
|
26
25
|
const lib = 'NODETKTEST';
|
|
27
26
|
|
|
28
|
-
describe('DataQueue Functional Tests', ()
|
|
27
|
+
describe('DataQueue Functional Tests', function () {
|
|
29
28
|
const dqName = 'TESTQ';
|
|
30
29
|
const dqName2 = 'TESTQ2';
|
|
31
30
|
|
|
32
|
-
before('check if data queue exists for tests', (done)
|
|
31
|
+
before('check if data queue exists for tests', function (done) {
|
|
33
32
|
printConfig();
|
|
34
33
|
checkObjectExists(config, dqName, '*DTAQ', (error) => {
|
|
35
34
|
if (error) { throw error; }
|
|
@@ -40,8 +39,8 @@ describe('DataQueue Functional Tests', () => {
|
|
|
40
39
|
});
|
|
41
40
|
});
|
|
42
41
|
});
|
|
43
|
-
describe('sendToDataQueue', ()
|
|
44
|
-
it('sends data to specified DQ', (done)
|
|
42
|
+
describe('sendToDataQueue', function () {
|
|
43
|
+
it('sends data to specified DQ', function (done) {
|
|
45
44
|
const connection = new Connection(config);
|
|
46
45
|
|
|
47
46
|
const dq = new iDataQueue(connection);
|
|
@@ -54,8 +53,8 @@ describe('DataQueue Functional Tests', () => {
|
|
|
54
53
|
});
|
|
55
54
|
});
|
|
56
55
|
|
|
57
|
-
describe('receiveFromDataQueue', ()
|
|
58
|
-
it('receives data from specfied DQ', (done)
|
|
56
|
+
describe('receiveFromDataQueue', function () {
|
|
57
|
+
it('receives data from specfied DQ', function (done) {
|
|
59
58
|
const connection = new Connection(config);
|
|
60
59
|
|
|
61
60
|
const dq = new iDataQueue(connection);
|
|
@@ -68,8 +67,8 @@ describe('DataQueue Functional Tests', () => {
|
|
|
68
67
|
});
|
|
69
68
|
});
|
|
70
69
|
|
|
71
|
-
describe('clearDataQueue', ()
|
|
72
|
-
it('clears the specifed DQ', (done)
|
|
70
|
+
describe('clearDataQueue', function () {
|
|
71
|
+
it('clears the specifed DQ', function (done) {
|
|
73
72
|
const connection = new Connection(config);
|
|
74
73
|
|
|
75
74
|
const dq = new iDataQueue(connection);
|
|
@@ -15,21 +15,19 @@
|
|
|
15
15
|
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
16
16
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
17
17
|
|
|
18
|
-
/* eslint-env mocha */
|
|
19
18
|
/* eslint-disable new-cap */
|
|
20
19
|
|
|
21
20
|
const { expect } = require('chai');
|
|
22
21
|
const { Connection, iNetwork } = require('../../lib/itoolkit');
|
|
23
22
|
const { config, printConfig } = require('./config');
|
|
24
23
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
before(() => {
|
|
24
|
+
describe('iNetwork Functional Tests', function () {
|
|
25
|
+
before(function () {
|
|
28
26
|
printConfig();
|
|
29
27
|
});
|
|
30
28
|
|
|
31
|
-
describe('getTCPIPAttr', ()
|
|
32
|
-
it('retrieves TCP/IP Attributes', (done)
|
|
29
|
+
describe('getTCPIPAttr', function () {
|
|
30
|
+
it('retrieves TCP/IP Attributes', function (done) {
|
|
33
31
|
const connection = new Connection(config);
|
|
34
32
|
|
|
35
33
|
const net = new iNetwork(connection);
|
|
@@ -71,8 +69,8 @@ describe('iNetwork Functional Tests', () => {
|
|
|
71
69
|
});
|
|
72
70
|
});
|
|
73
71
|
|
|
74
|
-
describe('getNetInterfaceData', ()
|
|
75
|
-
it('retrieves IPv4 network interface info', (done)
|
|
72
|
+
describe('getNetInterfaceData', function () {
|
|
73
|
+
it('retrieves IPv4 network interface info', function (done) {
|
|
76
74
|
const connection = new Connection(config);
|
|
77
75
|
|
|
78
76
|
const net = new iNetwork(connection);
|
|
@@ -15,20 +15,19 @@
|
|
|
15
15
|
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
16
16
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
17
17
|
|
|
18
|
-
/* eslint-env mocha */
|
|
19
18
|
/* eslint-disable new-cap */
|
|
20
19
|
|
|
21
20
|
const { expect } = require('chai');
|
|
22
21
|
const { Connection, iObj } = require('../../lib/itoolkit');
|
|
23
22
|
const { config, printConfig } = require('./config');
|
|
24
23
|
|
|
25
|
-
describe('iObj Functional Tests', ()
|
|
26
|
-
before(()
|
|
24
|
+
describe('iObj Functional Tests', function () {
|
|
25
|
+
before(function () {
|
|
27
26
|
printConfig();
|
|
28
27
|
});
|
|
29
28
|
|
|
30
|
-
describe('retrUsrAuth', ()
|
|
31
|
-
it('returns uses\'s authority for an object ', (done)
|
|
29
|
+
describe('retrUsrAuth', function () {
|
|
30
|
+
it('returns uses\'s authority for an object ', function (done) {
|
|
32
31
|
const connection = new Connection(config);
|
|
33
32
|
|
|
34
33
|
const obj = new iObj(connection);
|
|
@@ -72,8 +71,8 @@ describe('iObj Functional Tests', () => {
|
|
|
72
71
|
});
|
|
73
72
|
});
|
|
74
73
|
|
|
75
|
-
describe('rtrCmdInfo', ()
|
|
76
|
-
it('returns command info', (done)
|
|
74
|
+
describe('rtrCmdInfo', function () {
|
|
75
|
+
it('returns command info', function (done) {
|
|
77
76
|
const connection = new Connection(config);
|
|
78
77
|
|
|
79
78
|
const obj = new iObj(connection);
|
|
@@ -125,8 +124,8 @@ describe('iObj Functional Tests', () => {
|
|
|
125
124
|
});
|
|
126
125
|
});
|
|
127
126
|
|
|
128
|
-
describe('retrPgmInfo', ()
|
|
129
|
-
it('returns program info', (done)
|
|
127
|
+
describe('retrPgmInfo', function () {
|
|
128
|
+
it('returns program info', function (done) {
|
|
130
129
|
const connection = new Connection(config);
|
|
131
130
|
|
|
132
131
|
const obj = new iObj(connection);
|
|
@@ -200,8 +199,8 @@ describe('iObj Functional Tests', () => {
|
|
|
200
199
|
});
|
|
201
200
|
});
|
|
202
201
|
|
|
203
|
-
describe('retrSrvPgmInfo', ()
|
|
204
|
-
it('returns service program info', (done)
|
|
202
|
+
describe('retrSrvPgmInfo', function () {
|
|
203
|
+
it('returns service program info', function (done) {
|
|
205
204
|
const connection = new Connection(config);
|
|
206
205
|
|
|
207
206
|
const obj = new iObj(connection);
|
|
@@ -256,8 +255,8 @@ describe('iObj Functional Tests', () => {
|
|
|
256
255
|
});
|
|
257
256
|
});
|
|
258
257
|
|
|
259
|
-
describe('retrUserInfo', ()
|
|
260
|
-
it('returns specified user profile info', (done)
|
|
258
|
+
describe('retrUserInfo', function () {
|
|
259
|
+
it('returns specified user profile info', function (done) {
|
|
261
260
|
const connection = new Connection(config);
|
|
262
261
|
|
|
263
262
|
const obj = new iObj(connection);
|
|
@@ -283,8 +282,8 @@ describe('iObj Functional Tests', () => {
|
|
|
283
282
|
});
|
|
284
283
|
});
|
|
285
284
|
|
|
286
|
-
describe('retrUsrAuthToObj', ()
|
|
287
|
-
it(`retrieves info for users who are authorized to an object using ${config.transport} transpsort`, (done)
|
|
285
|
+
describe('retrUsrAuthToObj', function () {
|
|
286
|
+
it(`retrieves info for users who are authorized to an object using ${config.transport} transpsort`, function (done) {
|
|
288
287
|
const connection = new Connection(config);
|
|
289
288
|
|
|
290
289
|
const obj = new iObj(connection);
|
|
@@ -311,8 +310,8 @@ describe('iObj Functional Tests', () => {
|
|
|
311
310
|
});
|
|
312
311
|
});
|
|
313
312
|
|
|
314
|
-
describe('addToLibraryList', ()
|
|
315
|
-
it('appends lib to user\'s lib list', (done)
|
|
313
|
+
describe('addToLibraryList', function () {
|
|
314
|
+
it('appends lib to user\'s lib list', function (done) {
|
|
316
315
|
const connection = new Connection(config);
|
|
317
316
|
|
|
318
317
|
const obj = new iObj(connection);
|
|
@@ -15,20 +15,19 @@
|
|
|
15
15
|
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
16
16
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
17
17
|
|
|
18
|
-
/* eslint-env mocha */
|
|
19
18
|
/* eslint-disable new-cap */
|
|
20
19
|
|
|
21
20
|
const { expect } = require('chai');
|
|
22
21
|
const { Connection, iProd } = require('../../lib/itoolkit');
|
|
23
22
|
const { config, printConfig } = require('./config');
|
|
24
23
|
|
|
25
|
-
describe('iProd Functional Tests', ()
|
|
26
|
-
before(()
|
|
24
|
+
describe('iProd Functional Tests', function () {
|
|
25
|
+
before(function () {
|
|
27
26
|
printConfig();
|
|
28
27
|
});
|
|
29
28
|
|
|
30
|
-
describe('getPTFInfo', ()
|
|
31
|
-
it('returns info for specified ptf', (done)
|
|
29
|
+
describe('getPTFInfo', function () {
|
|
30
|
+
it('returns info for specified ptf', function (done) {
|
|
32
31
|
const connection = new Connection(config);
|
|
33
32
|
|
|
34
33
|
const prod = new iProd(connection);
|
|
@@ -70,8 +69,8 @@ describe('iProd Functional Tests', () => {
|
|
|
70
69
|
});
|
|
71
70
|
});
|
|
72
71
|
|
|
73
|
-
describe('getProductInfo', ()
|
|
74
|
-
it('returns info for specified product', (done)
|
|
72
|
+
describe('getProductInfo', function () {
|
|
73
|
+
it('returns info for specified product', function (done) {
|
|
75
74
|
const connection = new Connection(config);
|
|
76
75
|
|
|
77
76
|
const prod = new iProd(connection);
|
|
@@ -102,9 +101,9 @@ describe('iProd Functional Tests', () => {
|
|
|
102
101
|
|
|
103
102
|
// REST transport currently failing with 414 URI Too Long response code
|
|
104
103
|
// The requested URL's length exceeds the capacity limit for this server
|
|
105
|
-
describe('getInstalledProducts', ()
|
|
104
|
+
describe('getInstalledProducts', function () {
|
|
106
105
|
// eslint-disable-next-line func-names
|
|
107
|
-
it('returns info for installed products', (done)
|
|
106
|
+
it('returns info for installed products', function (done) {
|
|
108
107
|
const connection = new Connection(config);
|
|
109
108
|
|
|
110
109
|
const prod = new iProd(connection);
|