diff --git a/test/functional/CommandCallFunctional.js b/test/functional/CommandCallFunctional.js index 0a19d3fb..fe77c5ed 100644 --- a/test/functional/CommandCallFunctional.js +++ b/test/functional/CommandCallFunctional.js @@ -27,6 +27,7 @@ describe('CommandCall Functional Tests', function () { }); describe('CL command tests', function () { + this.slow(1840); it('calls CL command', function (done) { const connection = new Connection(config); connection.add(new CommandCall({ command: 'RTVJOBA USRLIBL(?) SYSLIBL(?)', type: 'cl' })); @@ -42,6 +43,7 @@ describe('CommandCall Functional Tests', function () { }); describe('SH command tests', function () { + this.slow(2985); it('calls PASE shell command', function (done) { const connection = new Connection(config); connection.add(new CommandCall({ command: 'system -i wrksyssts', type: 'sh' })); @@ -59,6 +61,7 @@ describe('CommandCall Functional Tests', function () { }); describe('QSH command tests', function () { + this.slow(3300); it('calls QSH command', function (done) { const connection = new Connection(config); connection.add(new CommandCall({ command: 'system wrksyssts', type: 'qsh' })); diff --git a/test/functional/ProgramCallFunctional.js b/test/functional/ProgramCallFunctional.js index 77f4b7e4..d7d4a799 100644 --- a/test/functional/ProgramCallFunctional.js +++ b/test/functional/ProgramCallFunctional.js @@ -27,6 +27,7 @@ describe('ProgramCall Functional Tests', function () { }); describe('Test ProgramCall()', function () { + this.slow(1400); it('calls QWCRSVAL program checks if it ran successfully', function (done) { const connection = new Connection(config); diff --git a/test/functional/deprecated/commandsFunctional.js b/test/functional/deprecated/commandsFunctional.js index 36e8815d..65a4676a 100644 --- a/test/functional/deprecated/commandsFunctional.js +++ b/test/functional/deprecated/commandsFunctional.js @@ -50,6 +50,7 @@ describe('iSh, iCmd, iQsh, Functional Tests', function () { }); describe('iCmd()', function () { + this.slow(562); it('calls CL command', function (done) { const connection = new iConn(database, username, password, restOptions); connection.add(iCmd('RTVJOBA USRLIBL(?) SYSLIBL(?)')); @@ -64,6 +65,7 @@ describe('iSh, iCmd, iQsh, Functional Tests', function () { }); describe('iSh()', function () { + this.slow(1725); it('calls PASE shell command', function (done) { const connection = new iConn(database, username, password, restOptions); connection.add(iSh('system -i wrksyssts')); @@ -80,6 +82,7 @@ describe('iSh, iCmd, iQsh, Functional Tests', function () { }); describe('iQsh()', function () { + this.slow(3122); it('calls QSH command', function (done) { const connection = new iConn(database, username, password, restOptions); connection.add(iQsh('system wrksyssts')); diff --git a/test/functional/deprecated/iDataQueueFunctional.js b/test/functional/deprecated/iDataQueueFunctional.js index eb10a070..0f0df1cc 100644 --- a/test/functional/deprecated/iDataQueueFunctional.js +++ b/test/functional/deprecated/iDataQueueFunctional.js @@ -54,6 +54,7 @@ describe('iDataQueue Functional Tests', function () { }); describe('constructor', function () { + this.slow(1); it('creates and returns an instance of iDataQueue', function () { const connection = new iConn(database, config.user, password); @@ -63,6 +64,7 @@ describe('iDataQueue Functional Tests', function () { }); describe('sendToDataQueue', function () { + this.slow(348); it('sends data to specified DQ', function (done) { const connection = new iConn(database, username, password, restOptions); @@ -76,6 +78,7 @@ describe('iDataQueue Functional Tests', function () { }); describe('receiveFromDataQueue', function () { + this.slow(356); it('receives data from specfied DQ', function (done) { const connection = new iConn(database, username, password, restOptions); @@ -89,6 +92,7 @@ describe('iDataQueue Functional Tests', function () { }); describe('clearDataQueue', function () { + this.slow(360); it('clears the specifed DQ', function (done) { const connection = new iConn(database, username, password, restOptions); diff --git a/test/functional/deprecated/iNetworkFunctional.js b/test/functional/deprecated/iNetworkFunctional.js index 42884b1d..359f4697 100644 --- a/test/functional/deprecated/iNetworkFunctional.js +++ b/test/functional/deprecated/iNetworkFunctional.js @@ -47,6 +47,7 @@ describe('iNetwork Functional Tests', function () { }); describe('constructor', function () { + this.slow(1); it('creates and returns an instance of iNetwork', function () { const connection = new iConn(database, config.user, password); @@ -57,6 +58,7 @@ describe('iNetwork Functional Tests', function () { }); describe('getTCPIPAttr', function () { + this.slow(407); it('retrieves TCP/IP Attributes', function (done) { const connection = new iConn(database, username, password, restOptions); @@ -99,6 +101,7 @@ describe('iNetwork Functional Tests', function () { }); describe('getNetInterfaceData', function () { + this.slow(405); it('retrieves IPv4 network interface info', function (done) { const connection = new iConn(database, username, password, restOptions); diff --git a/test/functional/deprecated/iObjFunctional.js b/test/functional/deprecated/iObjFunctional.js index b3c538d2..69d68cb1 100644 --- a/test/functional/deprecated/iObjFunctional.js +++ b/test/functional/deprecated/iObjFunctional.js @@ -47,6 +47,7 @@ describe('iObj Functional Tests', function () { }); describe('constructor', function () { + this.slow(1); it('creates and returns an instance of iObj', function () { const connection = new iConn(database, config.user, password); @@ -57,6 +58,7 @@ describe('iObj Functional Tests', function () { }); describe('retrUsrAuth', function () { + this.slow(326); it(`returns uses's authority for an object using ${config.transport} tranport`, function (done) { const connection = new iConn(database, username, password, restOptions); @@ -101,6 +103,7 @@ describe('iObj Functional Tests', function () { }); describe('rtrCmdInfo', function () { + this.slow(320); it('returns command info', function (done) { const connection = new iConn(database, username, password, restOptions); @@ -153,6 +156,7 @@ describe('iObj Functional Tests', function () { }); describe('retrPgmInfo', function () { + this.slow(357); it('returns program info', function (done) { const connection = new iConn(database, username, password, restOptions); @@ -227,6 +231,7 @@ describe('iObj Functional Tests', function () { }); describe('retrSrvPgmInfo', function () { + this.slow(343); it('returns service program info', function (done) { const connection = new iConn(database, username, password, restOptions); @@ -282,6 +287,7 @@ describe('iObj Functional Tests', function () { }); describe('retrUserInfo', function () { + this.slow(356); it('returns specified user profile info', function (done) { const connection = new iConn(database, username, password, restOptions); @@ -308,6 +314,7 @@ describe('iObj Functional Tests', function () { }); describe('retrUsrAuthToObj', function () { + this.slow(324); it(`retrieves info for users who are authorized to an object using ${config.transport} transpsort`, function (done) { const connection = new iConn(database, username, password, restOptions); @@ -335,6 +342,7 @@ describe('iObj Functional Tests', function () { }); describe('addToLibraryList', function () { + this.slow(317); it('appends lib to user\'s lib list', function (done) { const connection = new iConn(database, username, password, restOptions); diff --git a/test/functional/deprecated/iPgmFunctional.js b/test/functional/deprecated/iPgmFunctional.js index 70ece28b..74d73104 100644 --- a/test/functional/deprecated/iPgmFunctional.js +++ b/test/functional/deprecated/iPgmFunctional.js @@ -48,6 +48,7 @@ describe('iPgm Functional Tests', function () { }); describe('Test iPgm()', function () { + this.slow(335); it('calls QWCRSVAL program checks if it ran successfully', function (done) { const connection = new iConn(database, username, password, restOptions); diff --git a/test/functional/deprecated/iProdFunctional.js b/test/functional/deprecated/iProdFunctional.js index fce1bfa1..cf7e3d5d 100644 --- a/test/functional/deprecated/iProdFunctional.js +++ b/test/functional/deprecated/iProdFunctional.js @@ -47,6 +47,7 @@ describe('iProd Functional Tests', function () { }); describe('constructor', function () { + this.slow(1); it('creates and returns an instance of iProd', function () { const connection = new iConn(database, config.user, password); @@ -57,6 +58,7 @@ describe('iProd Functional Tests', function () { }); describe('getPTFInfo', function () { + this.slow(348); it('returns info for specified ptf', function (done) { const connection = new iConn(database, username, password, restOptions); @@ -99,6 +101,7 @@ describe('iProd Functional Tests', function () { }); describe('getProductInfo', function () { + this.slow(318); it('returns info for specified product', function (done) { const connection = new iConn(database, username, password, restOptions); @@ -130,6 +133,7 @@ describe('iProd Functional Tests', function () { // REST transport currently failing with 414 URI Too Long response code // The requested URL's length exceeds the capacity limit for this server describe('getInstalledProducts', function () { + this.slow(1783); it('returns info for installed products', function (done) { const connection = new iConn(database, username, password, restOptions); diff --git a/test/functional/deprecated/iSqlFunctional.js b/test/functional/deprecated/iSqlFunctional.js index 60d8b5d0..015c4169 100644 --- a/test/functional/deprecated/iSqlFunctional.js +++ b/test/functional/deprecated/iSqlFunctional.js @@ -48,6 +48,7 @@ describe('iSql Functional Tests', function () { }); describe('prepare & execute', function () { + this.slow(685); it('prepares & executes stored procedure then fetch results', function (done) { const connection = new iConn(database, username, password, restOptions); @@ -80,6 +81,7 @@ describe('iSql Functional Tests', function () { }); describe('addQuery & fetch', function () { + this.slow(463); it('runs a query and fetches results', function (done) { const connection = new iConn(database, username, password, restOptions); @@ -105,6 +107,7 @@ describe('iSql Functional Tests', function () { }); describe('added test to ensure issue #11 was resolved', function () { + this.slow(576); it('should parse SQL result set empty data tags correctly', function (done) { const connection = new iConn(database, username, password, restOptions); @@ -131,6 +134,7 @@ describe('iSql Functional Tests', function () { }); describe('tables', function () { + this.slow(477); it('returns meta data for specified table', function (done) { const connection = new iConn(database, username, password, restOptions); @@ -155,6 +159,7 @@ describe('iSql Functional Tests', function () { }); describe('tablePriv', function () { + this.slow(489); it('returns privilege data for a table', function (done) { const connection = new iConn(database, username, password, restOptions); @@ -181,6 +186,7 @@ describe('iSql Functional Tests', function () { }); describe('columns', function () { + this.slow(519); it('returns meta data for a column', function (done) { const connection = new iConn(database, username, password, restOptions); @@ -218,6 +224,7 @@ describe('iSql Functional Tests', function () { }); describe('columnPriv', function () { + this.slow(476); it('returns privilege data for a column', function (done) { const connection = new iConn(database, username, password, restOptions); @@ -246,6 +253,7 @@ describe('iSql Functional Tests', function () { }); describe('procedures', function () { + this.slow(474); it('returns meta data on for a procedure', function (done) { const connection = new iConn(database, username, password, restOptions); @@ -273,6 +281,7 @@ describe('iSql Functional Tests', function () { }); describe('pColumns', function () { + this.slow(485); it('returns meta data for procedure column', function (done) { const connection = new iConn(database, username, password, restOptions); @@ -311,6 +320,7 @@ describe('iSql Functional Tests', function () { }); describe('primaryKeys', function () { + this.slow(468); it('returns meta data for a primary key', function (done) { const connection = new iConn(database, username, password, restOptions); @@ -336,6 +346,7 @@ describe('iSql Functional Tests', function () { }); describe('foreignKeys', function () { + this.slow(467); it('returns meta data for a foreign key', function (done) { const connection = new iConn(database, username, password, restOptions); @@ -370,6 +381,7 @@ describe('iSql Functional Tests', function () { }); describe('statistics', function () { + this.slow(848); it('returns stats info for table', function (done) { const connection = new iConn(database, username, password, restOptions); diff --git a/test/functional/deprecated/iUserSpaceFunctional.js b/test/functional/deprecated/iUserSpaceFunctional.js index 2d94c791..15665cf9 100644 --- a/test/functional/deprecated/iUserSpaceFunctional.js +++ b/test/functional/deprecated/iUserSpaceFunctional.js @@ -49,6 +49,7 @@ describe('iUserSpace Functional Tests', function () { }); describe('constructor', function () { + this.slow(1); it('returns an instance of iUserSpace', function () { const connection = new iConn(database, config.user, password); @@ -59,6 +60,7 @@ describe('iUserSpace Functional Tests', function () { }); describe('createUserSpace', function () { + this.slow(351); it('creates a user space', function (done) { const connection = new iConn(database, username, password, restOptions); @@ -77,6 +79,7 @@ describe('iUserSpace Functional Tests', function () { }); describe('setUserSpaceData', function () { + this.slow(316); it('sets data within the user space', function (done) { const connection = new iConn(database, username, password, restOptions); @@ -95,6 +98,7 @@ describe('iUserSpace Functional Tests', function () { }); describe('getUserSpaceData', function () { + this.slow(316); it('returns specified length of data', function (done) { const connection = new iConn(database, username, password, restOptions); @@ -110,6 +114,7 @@ describe('iUserSpace Functional Tests', function () { }); describe('deleteUserSpace', function () { + this.slow(314); it('removes a user space', function (done) { const connection = new iConn(database, username, password, restOptions); diff --git a/test/functional/deprecated/iWorkFunctional.js b/test/functional/deprecated/iWorkFunctional.js index 816f9691..2885d1c9 100644 --- a/test/functional/deprecated/iWorkFunctional.js +++ b/test/functional/deprecated/iWorkFunctional.js @@ -48,6 +48,7 @@ describe('iWork Functional Tests', function () { }); describe('constructor', function () { + this.slow(1); it('creates and returns an instance of iWork', function () { const connection = new iConn(database, config.user, password); @@ -58,6 +59,7 @@ describe('iWork Functional Tests', function () { }); describe('getSysValue', function () { + this.slow(326); it('returns the value of system variable', function (done) { const connection = new iConn(database, username, password, restOptions); @@ -71,6 +73,7 @@ describe('iWork Functional Tests', function () { }); describe('getSysStatus', function () { + this.slow(372); it('returns basic system status information about the signed-on users ' + 'and batch jobs', function (done) { @@ -101,6 +104,7 @@ describe('iWork Functional Tests', function () { }); describe('getSysStatusExt', function () { + this.slow(1419); it('returns more detailed system status info', function (done) { const connection = new iConn(database, username, password, restOptions); @@ -146,6 +150,7 @@ describe('iWork Functional Tests', function () { }); describe('getJobStatus', function () { + this.slow(312); it('returns status of specified job', function (done) { const connection = new iConn(database, username, password, restOptions); @@ -162,6 +167,7 @@ describe('iWork Functional Tests', function () { }); describe('getJobInfo', function () { + this.slow(323); it('returns info on specfed job', function (done) { const connection = new iConn(database, username, password, restOptions); @@ -216,6 +222,7 @@ describe('iWork Functional Tests', function () { done(); }); }); + this.slow(336); it('returns contents of a data area', function (done) { const connection = new iConn(database, username, password, restOptions); diff --git a/test/functional/iDataQueueFunctional.js b/test/functional/iDataQueueFunctional.js index 3ac0cf84..6ca42a12 100644 --- a/test/functional/iDataQueueFunctional.js +++ b/test/functional/iDataQueueFunctional.js @@ -40,6 +40,7 @@ describe('DataQueue Functional Tests', function () { }); }); describe('sendToDataQueue', function () { + this.slow(1396); it('sends data to specified DQ', function (done) { const connection = new Connection(config); @@ -54,6 +55,7 @@ describe('DataQueue Functional Tests', function () { }); describe('receiveFromDataQueue', function () { + this.slow(1388); it('receives data from specfied DQ', function (done) { const connection = new Connection(config); @@ -68,6 +70,7 @@ describe('DataQueue Functional Tests', function () { }); describe('clearDataQueue', function () { + this.slow(1415); it('clears the specifed DQ', function (done) { const connection = new Connection(config); diff --git a/test/functional/iNetworkFunctional.js b/test/functional/iNetworkFunctional.js index 70a7aed5..2d0ab3e0 100644 --- a/test/functional/iNetworkFunctional.js +++ b/test/functional/iNetworkFunctional.js @@ -28,6 +28,7 @@ describe('iNetwork Functional Tests', function () { }); describe('getTCPIPAttr', function () { + this.slow(1638); it('retrieves TCP/IP Attributes', function (done) { const connection = new Connection(config); @@ -71,6 +72,7 @@ describe('iNetwork Functional Tests', function () { }); describe('getNetInterfaceData', function () { + this.slow(1509); it('retrieves IPv4 network interface info', function (done) { const connection = new Connection(config); diff --git a/test/functional/iObjFunctional.js b/test/functional/iObjFunctional.js index ef48ccee..627032b5 100644 --- a/test/functional/iObjFunctional.js +++ b/test/functional/iObjFunctional.js @@ -27,6 +27,7 @@ describe('iObj Functional Tests', function () { }); describe('retrUsrAuth', function () { + this.slow(1515); it('returns uses\'s authority for an object ', function (done) { const connection = new Connection(config); @@ -72,6 +73,7 @@ describe('iObj Functional Tests', function () { }); describe('rtrCmdInfo', function () { + this.slow(1482); it('returns command info', function (done) { const connection = new Connection(config); @@ -125,6 +127,7 @@ describe('iObj Functional Tests', function () { }); describe('retrPgmInfo', function () { + this.slow(1869); it('returns program info', function (done) { const connection = new Connection(config); @@ -200,6 +203,7 @@ describe('iObj Functional Tests', function () { }); describe('retrSrvPgmInfo', function () { + this.slow(1473); it('returns service program info', function (done) { const connection = new Connection(config); @@ -256,6 +260,7 @@ describe('iObj Functional Tests', function () { }); describe('retrUserInfo', function () { + this.slow(1378); it('returns specified user profile info', function (done) { const connection = new Connection(config); @@ -283,6 +288,7 @@ describe('iObj Functional Tests', function () { }); describe('retrUsrAuthToObj', function () { + this.slow(1346); it(`retrieves info for users who are authorized to an object using ${config.transport} transpsort`, function (done) { const connection = new Connection(config); @@ -311,6 +317,7 @@ describe('iObj Functional Tests', function () { }); describe('addToLibraryList', function () { + this.slow(1339); it('appends lib to user\'s lib list', function (done) { const connection = new Connection(config); diff --git a/test/functional/iProdFunctional.js b/test/functional/iProdFunctional.js index f9d0a94a..5d219aab 100644 --- a/test/functional/iProdFunctional.js +++ b/test/functional/iProdFunctional.js @@ -27,6 +27,7 @@ describe('iProd Functional Tests', function () { }); describe('getPTFInfo', function () { + this.slow(1500); it('returns info for specified ptf', function (done) { const connection = new Connection(config); @@ -70,6 +71,7 @@ describe('iProd Functional Tests', function () { }); describe('getProductInfo', function () { + this.slow(1335); it('returns info for specified product', function (done) { const connection = new Connection(config); @@ -102,7 +104,7 @@ describe('iProd Functional Tests', function () { // REST transport currently failing with 414 URI Too Long response code // The requested URL's length exceeds the capacity limit for this server describe('getInstalledProducts', function () { - // eslint-disable-next-line func-names + this.slow(2484); it('returns info for installed products', function (done) { const connection = new Connection(config); diff --git a/test/functional/iSqlFunctional.js b/test/functional/iSqlFunctional.js index d2debda0..f155ed8b 100644 --- a/test/functional/iSqlFunctional.js +++ b/test/functional/iSqlFunctional.js @@ -28,6 +28,7 @@ describe('iSql Functional Tests', function () { }); describe('prepare & execute', function () { + this.slow(2138); it('prepares & executes stored procedure then fetch results', function (done) { const connection = new Connection(config); @@ -62,6 +63,7 @@ describe('iSql Functional Tests', function () { }); describe('addQuery & fetch', function () { + this.slow(1777); it('runs a query and fetches results', function (done) { const connection = new Connection(config); @@ -88,6 +90,7 @@ describe('iSql Functional Tests', function () { }); describe('added test to ensure issue #11 was resolved', function () { + this.slow(1592); it('should parse SQL result set empty data tags correctly', function (done) { const connection = new Connection(config); @@ -115,6 +118,7 @@ describe('iSql Functional Tests', function () { }); describe('tables', function () { + this.slow(2036); it('returns meta data for specified table', function (done) { const connection = new Connection(config); @@ -140,6 +144,7 @@ describe('iSql Functional Tests', function () { }); describe('tablePriv', function () { + this.slow(1832); it('returns privilege data for a table', function (done) { const connection = new Connection(config); @@ -167,6 +172,7 @@ describe('iSql Functional Tests', function () { }); describe('columns', function () { + this.slow(1868); it('returns meta data for a column', function (done) { const connection = new Connection(config); @@ -205,6 +211,7 @@ describe('iSql Functional Tests', function () { }); describe('columnPriv', function () { + this.slow(2076); it('returns privilege data for a column', function (done) { const connection = new Connection(config); @@ -234,6 +241,7 @@ describe('iSql Functional Tests', function () { }); describe('procedures', function () { + this.slow(1693); it('returns meta data on for a procedure', function (done) { const connection = new Connection(config); @@ -262,6 +270,7 @@ describe('iSql Functional Tests', function () { }); describe('pColumns', function () { + this.slow(1803); it('returns meta data for procedure column', function (done) { const connection = new Connection(config); @@ -301,6 +310,7 @@ describe('iSql Functional Tests', function () { }); describe('primaryKeys', function () { + this.slow(2087); it('returns meta data for a primary key', function (done) { const connection = new Connection(config); @@ -327,6 +337,7 @@ describe('iSql Functional Tests', function () { }); describe('foreignKeys', function () { + this.slow(2019); it('returns meta data for a foreign key', function (done) { const connection = new Connection(config); @@ -362,6 +373,7 @@ describe('iSql Functional Tests', function () { }); describe('statistics', function () { + this.slow(2390); it('returns stats info for table', function (done) { const connection = new Connection(config); diff --git a/test/functional/iUserSpaceFunctional.js b/test/functional/iUserSpaceFunctional.js index 72f0bd91..a4d2168c 100644 --- a/test/functional/iUserSpaceFunctional.js +++ b/test/functional/iUserSpaceFunctional.js @@ -45,6 +45,7 @@ describe('UserSpace Functional Tests', function () { let userSpaceName; describe('createUserSpace', function () { + this.slow(1458); it('creates a user space', function (done) { const connection = new Connection(config); @@ -65,6 +66,7 @@ describe('UserSpace Functional Tests', function () { }); describe('setUserSpaceData', function () { + this.slow(1350); it('sets data within the user space', function (done) { if (!userSpaceName) { this.skip(); @@ -86,6 +88,7 @@ describe('UserSpace Functional Tests', function () { }); describe('getUserSpaceData', function () { + this.slow(1322); it('returns specified length of data', function (done) { if (!userSpaceName) { this.skip(); @@ -104,6 +107,7 @@ describe('UserSpace Functional Tests', function () { }); describe('deleteUserSpace', function () { + this.slow(1328); it('removes a user space', function (done) { if (!userSpaceName) { this.skip(); diff --git a/test/functional/iWorkFunctional.js b/test/functional/iWorkFunctional.js index 52b1d755..2fd717df 100644 --- a/test/functional/iWorkFunctional.js +++ b/test/functional/iWorkFunctional.js @@ -28,6 +28,7 @@ describe('iWork Functional Tests', function () { }); describe('getSysValue', function () { + this.slow(1401); it('returns the value of system variable', function (done) { const connection = new Connection(config); @@ -53,6 +54,7 @@ describe('iWork Functional Tests', function () { }); describe('getSysStatus', function () { + this.slow(1752); it('returns basic system status information about the signed-on users and batch jobs', function (done) { const connection = new Connection(config); const work = new iWork(connection); @@ -82,6 +84,7 @@ describe('iWork Functional Tests', function () { }); describe('getSysStatusExt', function () { + this.slow(2407); it('returns more detailed system status info', function (done) { const connection = new Connection(config); @@ -127,6 +130,7 @@ describe('iWork Functional Tests', function () { }); describe('getJobStatus', function () { + this.slow(1329); it('returns status of specified job', function (done) { const connection = new Connection(config); @@ -143,6 +147,7 @@ describe('iWork Functional Tests', function () { }); describe('getJobInfo', function () { + this.slow(1315); it('returns info on specfed job', function (done) { const connection = new Connection(config); @@ -198,6 +203,7 @@ describe('iWork Functional Tests', function () { done(); }); }); + this.slow(1327); it('returns contents of a data area', function (done) { const connection = new Connection(config); diff --git a/test/unit/CommandCallUnit.js b/test/unit/CommandCallUnit.js index e31ab4cb..ddfd1982 100644 --- a/test/unit/CommandCallUnit.js +++ b/test/unit/CommandCallUnit.js @@ -21,6 +21,7 @@ const { CommandCall } = require('../../lib/itoolkit'); describe('Command Call Unit Tests', function () { describe('SH command tests', function () { it('accepts command input and returns XML output', function () { + this.slow(3); const command = new CommandCall({ command: 'ls -lah', type: 'sh' }); const expectedXML = 'ls -lah'; @@ -29,6 +30,7 @@ describe('Command Call Unit Tests', function () { }); it('accepts command input and options returns with optional attributes', function () { + this.slow(1); const options = { error: 'on', before: '65535', after: '37', rows: 'on', }; @@ -43,6 +45,7 @@ describe('Command Call Unit Tests', function () { describe('CL command tests', function () { it('accepts command input and returns XML output', function () { + this.slow(1); const command = new CommandCall({ command: 'RTVJOBA USRLIBL(?) SYSLIBL(?)', type: 'cl' }); const expectedXML = 'RTVJOBA USRLIBL(?) SYSLIBL(?)'; @@ -51,6 +54,7 @@ describe('Command Call Unit Tests', function () { }); it('accepts command input and options returns with optional attributes', function () { + this.slow(1); const options = { exec: 'cmd', error: 'on', before: '65535', after: '37', hex: 'on', }; @@ -66,6 +70,7 @@ describe('Command Call Unit Tests', function () { describe('QSH command tests', function () { it('accepts command input and returns XML output', function () { + this.slow(1); const command = new CommandCall({ command: 'ls -lah', type: 'qsh' }); const expectedXML = 'ls -lah'; @@ -74,6 +79,7 @@ describe('Command Call Unit Tests', function () { }); it('accepts command input and options returns with optional attributes', function () { + this.slow(1); const options = { error: 'on', before: '65535', after: '37', rows: 'on', }; diff --git a/test/unit/ConnectionUnit.js b/test/unit/ConnectionUnit.js index fd27662d..bd0c0d77 100644 --- a/test/unit/ConnectionUnit.js +++ b/test/unit/ConnectionUnit.js @@ -22,6 +22,7 @@ const { Connection, CommandCall } = require('../../lib/itoolkit'); describe('Connection Class Unit Tests', function () { describe('constructor', function () { it('creates and returns an instance of Connection with idb transport', function () { + this.slow(4); const options = { transport: 'idb', transportOptions: { @@ -44,6 +45,7 @@ describe('Connection Class Unit Tests', function () { }); it('creates and returns an instance of Connection with rest transport', function () { + this.slow(2); const options = { transport: 'rest', transportOptions: { @@ -77,6 +79,7 @@ describe('Connection Class Unit Tests', function () { }); describe('add', function () { + this.slow(1); it('appends to xml service request to the command list using Connection class', function () { const options = { transport: 'idb', @@ -96,6 +99,7 @@ describe('Connection Class Unit Tests', function () { describe('debug', function () { + this.slow(1); it('turns verbose mode on/off using Connection class', function () { const options = { transport: 'idb', @@ -116,6 +120,7 @@ describe('Connection Class Unit Tests', function () { describe('getTransportOptions', function () { + this.slow(1); it('returns conn (object) property from Connection instance', function () { const options = { transport: 'rest', @@ -148,6 +153,7 @@ describe('Connection Class Unit Tests', function () { describe('run', function () { + this.slow(2); it('(Connection) invokes transport to execute xml input and returns xml output in callback', function () { const options = { transport: 'idb', diff --git a/test/unit/ProgamCallUnit.js b/test/unit/ProgamCallUnit.js index d57c76af..d9b1662f 100644 --- a/test/unit/ProgamCallUnit.js +++ b/test/unit/ProgamCallUnit.js @@ -37,6 +37,7 @@ const errno = [ describe('ProgramCall Class Unit Tests', function () { describe('constructor', function () { + this.slow(3); it('creates and returns an instance of ProgramCall with lib and function set', function () { const pgm = new ProgramCall('QTOCNETSTS'); expect(pgm).to.be.instanceOf(ProgramCall); @@ -44,6 +45,7 @@ describe('ProgramCall Class Unit Tests', function () { }); describe('toXML', function () { + this.slow(1); it('returns pgm XML', function () { const pgm = new ProgramCall('QTOCNETSTS', { @@ -60,6 +62,7 @@ describe('ProgramCall Class Unit Tests', function () { describe('addParam', function () { it('appends param to pgm xml', function () { + this.slow(1); const pgm = new ProgramCall('QTOCNETSTS', { lib: 'QSYS', @@ -133,6 +136,7 @@ describe('ProgramCall Class Unit Tests', function () { }); it('regular contains by=\'val\'', function () { + this.slow(1); const pgm = new ProgramCall('MYPGM', { lib: 'MYLIB', func: 'MY_PROCEDURE' }); pgm.addParam({ value: '', type: '1A', by: 'val' }); @@ -143,6 +147,8 @@ describe('ProgramCall Class Unit Tests', function () { }); it('data structure contains by=\'val\'', function () { + this.slow(1); + const pgm = new ProgramCall('MYPGM', { lib: 'MYLIB', func: 'MY_PROCEDURE' }); const params = [ @@ -160,6 +166,7 @@ describe('ProgramCall Class Unit Tests', function () { }); it('regular contains by=\'val\', with io=\'both\'', function () { + this.slow(1); const pgm = new ProgramCall('MYPGM', { lib: 'MYLIB', func: 'MY_PROCEDURE' }); pgm.addParam({ @@ -173,6 +180,7 @@ describe('ProgramCall Class Unit Tests', function () { }); it('data structure contains by=\'val\', with io=\'both\'', function () { + this.slow(1); const pgm = new ProgramCall('MYPGM', { lib: 'MYLIB', func: 'MY_PROCEDURE' }); const params = [ @@ -191,6 +199,7 @@ describe('ProgramCall Class Unit Tests', function () { }); it('add nested data structure parameter', function () { + this.slow(1); const pgm = new ProgramCall('MYPGM', { lib: 'MYLIB' }); const nestedDs = { @@ -238,6 +247,7 @@ describe('ProgramCall Class Unit Tests', function () { describe('addReturn', function () { it('appends return to pgm xml', function () { + this.slow(1); const pgm = new ProgramCall('QTOCNETSTS', { lib: 'QSYS', @@ -254,6 +264,7 @@ describe('ProgramCall Class Unit Tests', function () { }); it('appends return with ds to pgm xml', function () { + this.slow(1); const pgm = new ProgramCall('TEST'); const ds = { diff --git a/test/unit/deprecated/commandsUnit.js b/test/unit/deprecated/commandsUnit.js index 1bc7cba1..77769331 100644 --- a/test/unit/deprecated/commandsUnit.js +++ b/test/unit/deprecated/commandsUnit.js @@ -21,6 +21,7 @@ const { iSh, iQsh, iCmd } = require('../../../lib/itoolkit'); describe('iSh, iCmd, iQsh, Unit Tests', function () { describe('iSh function', function () { it('accepts command input and returns XML output', function () { + this.slow(4); const sh = iSh('ls -lah'); const expectedXML = 'ls -lah'; @@ -29,6 +30,7 @@ describe('iSh, iCmd, iQsh, Unit Tests', function () { }); it('accepts command input and options returns with optional attributes', function () { + this.slow(1); const options = { error: 'on', before: '65535', after: '37', rows: 'on', }; @@ -43,6 +45,7 @@ describe('iSh, iCmd, iQsh, Unit Tests', function () { describe('iCmd function', function () { it('accepts command input and returns XML output', function () { + this.slow(1); const cmd = iCmd('RTVJOBA USRLIBL(?) SYSLIBL(?)'); const expectedXML = 'RTVJOBA USRLIBL(?) SYSLIBL(?)'; @@ -51,6 +54,7 @@ describe('iSh, iCmd, iQsh, Unit Tests', function () { }); it('accepts command input and options returns with optional attributes', function () { + this.slow(1); const options = { exec: 'cmd', error: 'on', before: '65535', after: '37', hex: 'on', }; @@ -65,6 +69,7 @@ describe('iSh, iCmd, iQsh, Unit Tests', function () { }); describe('iQsh function', function () { + this.slow(1); it('accepts command input and returns XML output', function () { const qsh = iQsh('RTVJOBA USRLIBL(?) SYSLIBL(?)'); @@ -74,6 +79,7 @@ describe('iSh, iCmd, iQsh, Unit Tests', function () { }); it('accepts command input and options returns with optional attributes', function () { + this.slow(1); const options = { error: 'on', before: '65535', after: '37', rows: 'on', }; diff --git a/test/unit/deprecated/iConnUnit.js b/test/unit/deprecated/iConnUnit.js index 2160c805..8d6db36f 100644 --- a/test/unit/deprecated/iConnUnit.js +++ b/test/unit/deprecated/iConnUnit.js @@ -24,6 +24,7 @@ const { iConn, iSh } = require('../../../lib/itoolkit'); describe('iConn Class Unit Tests', function () { describe('constructor', function () { it('creates and returns an instance of iConn with idb transport', function () { + this.slow(4); const database = process.env.TKDB || '*LOCAL'; const username = process.env.TKUSER || ''; const password = process.env.TKPASS || ''; @@ -42,6 +43,7 @@ describe('iConn Class Unit Tests', function () { }); it('creates and returns an instance of iConn with rest transport', function () { + this.slow(1); const database = process.env.TKDB || '*LOCAL'; const username = process.env.TKUSER || ''; const password = process.env.TKPASS || ''; @@ -73,6 +75,7 @@ describe('iConn Class Unit Tests', function () { }); describe('add', function () { + this.slow(1); it('appends to xml service request to the command list using iConn class', function () { const database = process.env.TKDB || '*LOCAL'; const username = process.env.TKUSER || ''; @@ -87,6 +90,7 @@ describe('iConn Class Unit Tests', function () { describe('debug', function () { + this.slow(1); it('turns verbose mode on/off using iConn class', function () { const database = process.env.TKDB || '*LOCAL'; const username = process.env.TKUSER || ''; @@ -102,6 +106,7 @@ describe('iConn Class Unit Tests', function () { describe('getTransportOptions', function () { + this.slow(1); it('returns conn (object) property from iConn instance', function () { const database = process.env.TKDB || '*LOCAL'; const username = process.env.TKUSER || ''; @@ -121,6 +126,7 @@ describe('iConn Class Unit Tests', function () { describe('run', function () { + this.slow(2); it('(iConn) invokes transport to execute xml input and returns xml output in callback', function () { const database = process.env.TKDB || '*LOCAL'; const username = process.env.TKUSER || ''; diff --git a/test/unit/deprecated/iPgmUnit.js b/test/unit/deprecated/iPgmUnit.js index 08c240d5..814247f1 100644 --- a/test/unit/deprecated/iPgmUnit.js +++ b/test/unit/deprecated/iPgmUnit.js @@ -40,12 +40,14 @@ const errno = [ describe('iPgm Class Unit Tests', function () { describe('constructor', function () { it('creates and returns an instance of iPgm with lib and function set', function () { + this.slow(4); const pgm = new iPgm('QTOCNETSTS'); expect(pgm).to.be.instanceOf(iPgm); }); }); describe('toXML', function () { + this.slow(1); it('returns pgm XML', function () { const pgm = new iPgm('QTOCNETSTS', { @@ -62,6 +64,7 @@ describe('iPgm Class Unit Tests', function () { describe('addParam', function () { it('appends param to pgm xml', function () { + this.slow(2); const pgm = new iPgm('QTOCNETSTS', { lib: 'QSYS', @@ -133,6 +136,7 @@ describe('iPgm Class Unit Tests', function () { }); it('regular contains by=\'val\'', function () { + this.slow(1); const pgm = new iPgm('MYPGM', { lib: 'MYLIB', func: 'MY_PROCEDURE' }); pgm.addParam('', '1A', { by: 'val' }); @@ -143,6 +147,7 @@ describe('iPgm Class Unit Tests', function () { }); it('data structure contains by=\'val\'', function () { + this.slow(1); const pgm = new iPgm('MYPGM', { lib: 'MYLIB', func: 'MY_PROCEDURE' }); const params = [ @@ -158,6 +163,7 @@ describe('iPgm Class Unit Tests', function () { }); it('regular contains by=\'val\', with io=\'both\'', function () { + this.slow(1); const pgm = new iPgm('MYPGM', { lib: 'MYLIB', func: 'MY_PROCEDURE' }); pgm.addParam('', '1A', { by: 'val', io: 'both' }); @@ -169,6 +175,7 @@ describe('iPgm Class Unit Tests', function () { }); it('data structure contains by=\'val\', with io=\'both\'', function () { + this.slow(1); const pgm = new iPgm('MYPGM', { lib: 'MYLIB', func: 'MY_PROCEDURE' }); const params = [ @@ -188,6 +195,7 @@ describe('iPgm Class Unit Tests', function () { describe('addReturn', function () { it('appends return to pgm xml', function () { + this.slow(1); const pgm = new iPgm('QTOCNETSTS', { lib: 'QSYS', diff --git a/test/unit/deprecated/iSqlUnit.js b/test/unit/deprecated/iSqlUnit.js index 49bd6661..f8282684 100644 --- a/test/unit/deprecated/iSqlUnit.js +++ b/test/unit/deprecated/iSqlUnit.js @@ -22,6 +22,7 @@ const { iSql } = require('../../../lib/itoolkit'); describe('iSql Class Unit Tests', function () { describe('constructor', function () { + this.slow(3); it('creates returns an instance of iSql', function () { const sql = new iSql(); @@ -29,6 +30,7 @@ describe('iSql Class Unit Tests', function () { }); }); describe('toXML', function () { + this.slow(1); it('returns current sql XML', function () { const sql = new iSql(); @@ -39,6 +41,7 @@ describe('iSql Class Unit Tests', function () { }); describe('addQuery', function () { it('appends query with error is on to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = 'select * from QIWS.QCUSTCDT'; @@ -48,6 +51,7 @@ describe('iSql Class Unit Tests', function () { expect(sql.toXML()).to.equal(expectedXML); }); it('appends query with options object to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = 'select * from QIWS.QCUSTCDT'; @@ -59,6 +63,7 @@ describe('iSql Class Unit Tests', function () { }); describe('fetch', function () { it('appends fetch without options object to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = ''; @@ -67,6 +72,7 @@ describe('iSql Class Unit Tests', function () { expect(sql.toXML()).to.equal(expectedXML); }); it('appends fetch with block is 10 to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = ''; @@ -75,6 +81,7 @@ describe('iSql Class Unit Tests', function () { expect(sql.toXML()).to.equal(expectedXML); }); it('appends fetch with desc is off to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = ''; @@ -83,6 +90,7 @@ describe('iSql Class Unit Tests', function () { expect(sql.toXML()).to.equal(expectedXML); }); it('appends fetch with error is on to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = ''; @@ -92,6 +100,7 @@ describe('iSql Class Unit Tests', function () { }); }); describe('commit', function () { + this.slow(1); it('appends commit with action commit to sql XML', function () { const sql = new iSql(); @@ -101,6 +110,7 @@ describe('iSql Class Unit Tests', function () { expect(sql.toXML()).to.equal(expectedXML); }); it('appends commit with action rollback to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = ''; @@ -109,6 +119,7 @@ describe('iSql Class Unit Tests', function () { expect(sql.toXML()).to.equal(expectedXML); }); it('appends commit with default action to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = ''; @@ -117,6 +128,7 @@ describe('iSql Class Unit Tests', function () { expect(sql.toXML()).to.equal(expectedXML); }); it('appends commit with error is on to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = ''; @@ -127,6 +139,7 @@ describe('iSql Class Unit Tests', function () { }); describe('prepare', function () { it('appends prepare to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = 'SELECT * FROM QIWS.QCUSTCDT WHERE BALDUE > ?'; @@ -135,6 +148,7 @@ describe('iSql Class Unit Tests', function () { expect(sql.toXML()).to.equal(expectedXML); }); it('appends prepare with error on to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = 'SELECT * FROM QIWS.QCUSTCDT WHERE BALDUE > ?'; @@ -146,6 +160,7 @@ describe('iSql Class Unit Tests', function () { describe('execute', function () { it('appends execute with parameters to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = '30'; @@ -154,6 +169,7 @@ describe('iSql Class Unit Tests', function () { expect(sql.toXML()).to.equal(expectedXML); }); it('appends execute with parameters and error on to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = '30'; @@ -162,6 +178,7 @@ describe('iSql Class Unit Tests', function () { expect(sql.toXML()).to.equal(expectedXML); }); it('appends execute without parameters to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = ''; @@ -170,6 +187,7 @@ describe('iSql Class Unit Tests', function () { expect(sql.toXML()).to.equal(expectedXML); }); it('appends execute without parameters and error on to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = ''; @@ -180,6 +198,7 @@ describe('iSql Class Unit Tests', function () { }); describe('tables', function () { it('appends tables to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = 'QIWS'; @@ -188,6 +207,7 @@ describe('iSql Class Unit Tests', function () { expect(sql.toXML()).to.equal(expectedXML); }); it('appends tables with error on to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = 'QIWS'; @@ -197,6 +217,7 @@ describe('iSql Class Unit Tests', function () { }); }); describe('tablePriv', function () { + this.slow(1); it('appends tablepriv to sql XML', function () { const sql = new iSql(); @@ -206,6 +227,7 @@ describe('iSql Class Unit Tests', function () { expect(sql.toXML()).to.equal(expectedXML); }); it('appends tablepriv with error on to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = 'QIWSQCUSTCDT'; @@ -216,6 +238,7 @@ describe('iSql Class Unit Tests', function () { }); describe('columns', function () { it('appends columns to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = 'QIWSQCUSTCDT'; @@ -224,6 +247,7 @@ describe('iSql Class Unit Tests', function () { expect(sql.toXML()).to.equal(expectedXML); }); it('appends columns with error on to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = 'QIWSQCUSTCDT'; @@ -234,6 +258,7 @@ describe('iSql Class Unit Tests', function () { }); describe('columnPriv', function () { it('appends columnpriv to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = 'QIWSQCUSTCDT'; @@ -242,6 +267,7 @@ describe('iSql Class Unit Tests', function () { expect(sql.toXML()).to.equal(expectedXML); }); it('appends columnpriv with error on to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = 'QIWSQCUSTCDT'; @@ -252,6 +278,7 @@ describe('iSql Class Unit Tests', function () { }); describe('procedures', function () { it('appends procedures to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = 'QSYS2TCPIP_INFO'; @@ -260,6 +287,7 @@ describe('iSql Class Unit Tests', function () { expect(sql.toXML()).to.equal(expectedXML); }); it('appends procedures with error on to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = 'QSYS2TCPIP_INFO'; @@ -270,6 +298,7 @@ describe('iSql Class Unit Tests', function () { }); describe('pColumns', function () { it('appends pColumns to sql XML', function () { + this.slow(1); // procedure columns: const sql = new iSql(); @@ -279,6 +308,7 @@ describe('iSql Class Unit Tests', function () { expect(sql.toXML()).to.equal(expectedXML); }); it('appends pColumns with error on to sql XML', function () { + this.slow(1); // procedure columns: const sql = new iSql(); @@ -290,6 +320,7 @@ describe('iSql Class Unit Tests', function () { }); describe('primaryKeys', function () { it('appends primarykeys to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = 'QUSRSYSQASZRAIRX'; @@ -298,6 +329,7 @@ describe('iSql Class Unit Tests', function () { expect(sql.toXML()).to.equal(expectedXML); }); it('appends primarykeys with error on to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = 'QUSRSYSQASZRAIRX'; @@ -308,6 +340,7 @@ describe('iSql Class Unit Tests', function () { }); describe('foreignKeys', function () { it('appends foreignkeys to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = 'QUSRSYSQASZRAIRCQUSRSYSQASZRAIRX'; @@ -318,6 +351,7 @@ describe('iSql Class Unit Tests', function () { expect(sql.toXML()).to.equal(expectedXML); }); it('appends foreignkeys with error on to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = 'QUSRSYSQASZRAIRCQUSRSYSQASZRAIRX'; @@ -330,6 +364,7 @@ describe('iSql Class Unit Tests', function () { }); describe('statistics', function () { it('appends statistics to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = 'QIWSQCUSTCDTall'; @@ -338,6 +373,7 @@ describe('iSql Class Unit Tests', function () { expect(sql.toXML()).to.equal(expectedXML); }); it('appends statistics with error on to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = 'QIWSQCUSTCDTall'; @@ -348,6 +384,7 @@ describe('iSql Class Unit Tests', function () { }); describe('special', function () { it('appends special to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = 'QIWSQCUSTCDTrowno'; @@ -356,6 +393,7 @@ describe('iSql Class Unit Tests', function () { expect(sql.toXML()).to.equal(expectedXML); }); it('appends special with error on to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = 'QIWSQCUSTCDTrowno'; @@ -366,6 +404,7 @@ describe('iSql Class Unit Tests', function () { }); describe('count', function () { it('appends count to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = ''; @@ -373,6 +412,7 @@ describe('iSql Class Unit Tests', function () { expect(sql.toXML()).to.equal(expectedXML); }); it('appends count without options object to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = ''; @@ -380,6 +420,7 @@ describe('iSql Class Unit Tests', function () { expect(sql.toXML()).to.equal(expectedXML); }); it('appends count with error on to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = ''; @@ -389,6 +430,7 @@ describe('iSql Class Unit Tests', function () { }); describe('rowCount', function () { it('appends rowcount to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = ''; @@ -396,6 +438,7 @@ describe('iSql Class Unit Tests', function () { expect(sql.toXML()).to.equal(expectedXML); }); it('appends rowcount with error on to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = ''; @@ -405,6 +448,7 @@ describe('iSql Class Unit Tests', function () { }); describe('free', function () { it('appends free to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = ''; @@ -414,6 +458,7 @@ describe('iSql Class Unit Tests', function () { }); describe('describe', function () { it('appends describe to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = ''; @@ -422,6 +467,7 @@ describe('iSql Class Unit Tests', function () { expect(sql.toXML()).to.equal(expectedXML); }); it('appends describe without options object to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = ''; @@ -430,6 +476,7 @@ describe('iSql Class Unit Tests', function () { expect(sql.toXML()).to.equal(expectedXML); }); it('appends describe with error on to sql XML', function () { + this.slow(1); const sql = new iSql(); const expectedXML = ''; diff --git a/test/unit/deprecated/xmlToJsonUnit.js b/test/unit/deprecated/xmlToJsonUnit.js index 60d6d728..481ad6a7 100644 --- a/test/unit/deprecated/xmlToJsonUnit.js +++ b/test/unit/deprecated/xmlToJsonUnit.js @@ -20,6 +20,7 @@ const { xmlToJson } = require('../../../lib/itoolkit'); describe('xmlToJson Tests', function () { it('converts CL command XML output to js object', function () { + this.slow(19); const xmlOut = '' + '+++ success RTVJOBA USRLIBL(?) SYSLIBL(?)' + 'QGPL QTEMP QDEVELOP QBLDSYS' @@ -44,6 +45,7 @@ describe('xmlToJson Tests', function () { }); it('converts sh command XML output to js object', function () { + this.slow(2); const xmlOut = '\n' + 'bin\n' + 'ccs\n' @@ -71,6 +73,7 @@ describe('xmlToJson Tests', function () { it('converts qsh command XML output to js object', function () { + this.slow(1); const xmlOut = '\n' + 'bin\n' + 'ccs\n' @@ -97,6 +100,7 @@ describe('xmlToJson Tests', function () { }); it('converts pgm command XML output to js object', function () { + this.slow(4); const xmlOut = ` @@ -151,6 +155,7 @@ describe('xmlToJson Tests', function () { }); it('converts sql command XML output to js object', function () { + this.slow(16); const xmlOut = `