@itentialopensource/adapter-netbox_v33 0.1.1 → 2.0.0
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/CALLS.md +5231 -0
- package/CHANGELOG.md +16 -1
- package/adapter.js +3821 -0
- package/entities/.system/action.json +1 -1
- package/entities/Dcim/action.json +182 -0
- package/entities/Dcim/mockdatafiles/getDcimVirtualDeviceContexts-default.json +573 -0
- package/entities/Dcim/schema.json +10 -1
- package/entities/Extras/action.json +182 -0
- package/entities/Extras/mockdatafiles/getExtrasSavedFilters-default.json +177 -0
- package/entities/Extras/schema.json +10 -1
- package/entities/Plugins/action.json +550 -0
- package/entities/Plugins/mockdatafiles/getPluginsServicePoolsCandidateConfig-default.json +309 -0
- package/entities/Plugins/mockdatafiles/getPluginsServicePoolsCustomService-default.json +463 -0
- package/entities/Plugins/mockdatafiles/getPluginsServicePoolsServiceOrder-default.json +554 -0
- package/entities/Plugins/schema.json +45 -0
- package/package.json +1 -1
- package/pronghorn.json +6636 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/Netbox_v34.json +92707 -0
- package/report/adapterInfo.json +10 -0
- package/test/integration/adapterTestIntegration.js +1275 -0
- package/test/unit/adapterTestUnit.js +1305 -0
|
@@ -25227,5 +25227,1310 @@ describe('[unit] Netbox_v33 Adapter Test', () => {
|
|
|
25227
25227
|
}
|
|
25228
25228
|
}).timeout(attemptTimeout);
|
|
25229
25229
|
});
|
|
25230
|
+
|
|
25231
|
+
describe('#getDcimVirtualDeviceContexts - errors', () => {
|
|
25232
|
+
it('should have a getDcimVirtualDeviceContexts function', (done) => {
|
|
25233
|
+
try {
|
|
25234
|
+
assert.equal(true, typeof a.getDcimVirtualDeviceContexts === 'function');
|
|
25235
|
+
done();
|
|
25236
|
+
} catch (error) {
|
|
25237
|
+
log.error(`Test Failure: ${error}`);
|
|
25238
|
+
done(error);
|
|
25239
|
+
}
|
|
25240
|
+
}).timeout(attemptTimeout);
|
|
25241
|
+
});
|
|
25242
|
+
|
|
25243
|
+
describe('#postDcimVirtualDeviceContexts - errors', () => {
|
|
25244
|
+
it('should have a postDcimVirtualDeviceContexts function', (done) => {
|
|
25245
|
+
try {
|
|
25246
|
+
assert.equal(true, typeof a.postDcimVirtualDeviceContexts === 'function');
|
|
25247
|
+
done();
|
|
25248
|
+
} catch (error) {
|
|
25249
|
+
log.error(`Test Failure: ${error}`);
|
|
25250
|
+
done(error);
|
|
25251
|
+
}
|
|
25252
|
+
}).timeout(attemptTimeout);
|
|
25253
|
+
it('should error if - missing data', (done) => {
|
|
25254
|
+
try {
|
|
25255
|
+
a.postDcimVirtualDeviceContexts(null, (data, error) => {
|
|
25256
|
+
try {
|
|
25257
|
+
const displayE = 'data is required';
|
|
25258
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-postDcimVirtualDeviceContexts', displayE);
|
|
25259
|
+
done();
|
|
25260
|
+
} catch (err) {
|
|
25261
|
+
log.error(`Test Failure: ${err}`);
|
|
25262
|
+
done(err);
|
|
25263
|
+
}
|
|
25264
|
+
});
|
|
25265
|
+
} catch (error) {
|
|
25266
|
+
log.error(`Adapter Exception: ${error}`);
|
|
25267
|
+
done(error);
|
|
25268
|
+
}
|
|
25269
|
+
}).timeout(attemptTimeout);
|
|
25270
|
+
});
|
|
25271
|
+
|
|
25272
|
+
describe('#putDcimVirtualDeviceContexts - errors', () => {
|
|
25273
|
+
it('should have a putDcimVirtualDeviceContexts function', (done) => {
|
|
25274
|
+
try {
|
|
25275
|
+
assert.equal(true, typeof a.putDcimVirtualDeviceContexts === 'function');
|
|
25276
|
+
done();
|
|
25277
|
+
} catch (error) {
|
|
25278
|
+
log.error(`Test Failure: ${error}`);
|
|
25279
|
+
done(error);
|
|
25280
|
+
}
|
|
25281
|
+
}).timeout(attemptTimeout);
|
|
25282
|
+
it('should error if - missing data', (done) => {
|
|
25283
|
+
try {
|
|
25284
|
+
a.putDcimVirtualDeviceContexts(null, (data, error) => {
|
|
25285
|
+
try {
|
|
25286
|
+
const displayE = 'data is required';
|
|
25287
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-putDcimVirtualDeviceContexts', displayE);
|
|
25288
|
+
done();
|
|
25289
|
+
} catch (err) {
|
|
25290
|
+
log.error(`Test Failure: ${err}`);
|
|
25291
|
+
done(err);
|
|
25292
|
+
}
|
|
25293
|
+
});
|
|
25294
|
+
} catch (error) {
|
|
25295
|
+
log.error(`Adapter Exception: ${error}`);
|
|
25296
|
+
done(error);
|
|
25297
|
+
}
|
|
25298
|
+
}).timeout(attemptTimeout);
|
|
25299
|
+
});
|
|
25300
|
+
|
|
25301
|
+
describe('#patchDcimVirtualDeviceContexts - errors', () => {
|
|
25302
|
+
it('should have a patchDcimVirtualDeviceContexts function', (done) => {
|
|
25303
|
+
try {
|
|
25304
|
+
assert.equal(true, typeof a.patchDcimVirtualDeviceContexts === 'function');
|
|
25305
|
+
done();
|
|
25306
|
+
} catch (error) {
|
|
25307
|
+
log.error(`Test Failure: ${error}`);
|
|
25308
|
+
done(error);
|
|
25309
|
+
}
|
|
25310
|
+
}).timeout(attemptTimeout);
|
|
25311
|
+
it('should error if - missing data', (done) => {
|
|
25312
|
+
try {
|
|
25313
|
+
a.patchDcimVirtualDeviceContexts(null, (data, error) => {
|
|
25314
|
+
try {
|
|
25315
|
+
const displayE = 'data is required';
|
|
25316
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-patchDcimVirtualDeviceContexts', displayE);
|
|
25317
|
+
done();
|
|
25318
|
+
} catch (err) {
|
|
25319
|
+
log.error(`Test Failure: ${err}`);
|
|
25320
|
+
done(err);
|
|
25321
|
+
}
|
|
25322
|
+
});
|
|
25323
|
+
} catch (error) {
|
|
25324
|
+
log.error(`Adapter Exception: ${error}`);
|
|
25325
|
+
done(error);
|
|
25326
|
+
}
|
|
25327
|
+
}).timeout(attemptTimeout);
|
|
25328
|
+
});
|
|
25329
|
+
|
|
25330
|
+
describe('#deleteDcimVirtualDeviceContexts - errors', () => {
|
|
25331
|
+
it('should have a deleteDcimVirtualDeviceContexts function', (done) => {
|
|
25332
|
+
try {
|
|
25333
|
+
assert.equal(true, typeof a.deleteDcimVirtualDeviceContexts === 'function');
|
|
25334
|
+
done();
|
|
25335
|
+
} catch (error) {
|
|
25336
|
+
log.error(`Test Failure: ${error}`);
|
|
25337
|
+
done(error);
|
|
25338
|
+
}
|
|
25339
|
+
}).timeout(attemptTimeout);
|
|
25340
|
+
});
|
|
25341
|
+
|
|
25342
|
+
describe('#getDcimVirtualDeviceContextsId - errors', () => {
|
|
25343
|
+
it('should have a getDcimVirtualDeviceContextsId function', (done) => {
|
|
25344
|
+
try {
|
|
25345
|
+
assert.equal(true, typeof a.getDcimVirtualDeviceContextsId === 'function');
|
|
25346
|
+
done();
|
|
25347
|
+
} catch (error) {
|
|
25348
|
+
log.error(`Test Failure: ${error}`);
|
|
25349
|
+
done(error);
|
|
25350
|
+
}
|
|
25351
|
+
}).timeout(attemptTimeout);
|
|
25352
|
+
it('should error if - missing id', (done) => {
|
|
25353
|
+
try {
|
|
25354
|
+
a.getDcimVirtualDeviceContextsId(null, (data, error) => {
|
|
25355
|
+
try {
|
|
25356
|
+
const displayE = 'id is required';
|
|
25357
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-getDcimVirtualDeviceContextsId', displayE);
|
|
25358
|
+
done();
|
|
25359
|
+
} catch (err) {
|
|
25360
|
+
log.error(`Test Failure: ${err}`);
|
|
25361
|
+
done(err);
|
|
25362
|
+
}
|
|
25363
|
+
});
|
|
25364
|
+
} catch (error) {
|
|
25365
|
+
log.error(`Adapter Exception: ${error}`);
|
|
25366
|
+
done(error);
|
|
25367
|
+
}
|
|
25368
|
+
}).timeout(attemptTimeout);
|
|
25369
|
+
});
|
|
25370
|
+
|
|
25371
|
+
describe('#putDcimVirtualDeviceContextsId - errors', () => {
|
|
25372
|
+
it('should have a putDcimVirtualDeviceContextsId function', (done) => {
|
|
25373
|
+
try {
|
|
25374
|
+
assert.equal(true, typeof a.putDcimVirtualDeviceContextsId === 'function');
|
|
25375
|
+
done();
|
|
25376
|
+
} catch (error) {
|
|
25377
|
+
log.error(`Test Failure: ${error}`);
|
|
25378
|
+
done(error);
|
|
25379
|
+
}
|
|
25380
|
+
}).timeout(attemptTimeout);
|
|
25381
|
+
it('should error if - missing id', (done) => {
|
|
25382
|
+
try {
|
|
25383
|
+
a.putDcimVirtualDeviceContextsId(null, null, (data, error) => {
|
|
25384
|
+
try {
|
|
25385
|
+
const displayE = 'id is required';
|
|
25386
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-putDcimVirtualDeviceContextsId', displayE);
|
|
25387
|
+
done();
|
|
25388
|
+
} catch (err) {
|
|
25389
|
+
log.error(`Test Failure: ${err}`);
|
|
25390
|
+
done(err);
|
|
25391
|
+
}
|
|
25392
|
+
});
|
|
25393
|
+
} catch (error) {
|
|
25394
|
+
log.error(`Adapter Exception: ${error}`);
|
|
25395
|
+
done(error);
|
|
25396
|
+
}
|
|
25397
|
+
}).timeout(attemptTimeout);
|
|
25398
|
+
it('should error if - missing data', (done) => {
|
|
25399
|
+
try {
|
|
25400
|
+
a.putDcimVirtualDeviceContextsId('fakeparam', null, (data, error) => {
|
|
25401
|
+
try {
|
|
25402
|
+
const displayE = 'data is required';
|
|
25403
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-putDcimVirtualDeviceContextsId', displayE);
|
|
25404
|
+
done();
|
|
25405
|
+
} catch (err) {
|
|
25406
|
+
log.error(`Test Failure: ${err}`);
|
|
25407
|
+
done(err);
|
|
25408
|
+
}
|
|
25409
|
+
});
|
|
25410
|
+
} catch (error) {
|
|
25411
|
+
log.error(`Adapter Exception: ${error}`);
|
|
25412
|
+
done(error);
|
|
25413
|
+
}
|
|
25414
|
+
}).timeout(attemptTimeout);
|
|
25415
|
+
});
|
|
25416
|
+
|
|
25417
|
+
describe('#patchDcimVirtualDeviceContextsId - errors', () => {
|
|
25418
|
+
it('should have a patchDcimVirtualDeviceContextsId function', (done) => {
|
|
25419
|
+
try {
|
|
25420
|
+
assert.equal(true, typeof a.patchDcimVirtualDeviceContextsId === 'function');
|
|
25421
|
+
done();
|
|
25422
|
+
} catch (error) {
|
|
25423
|
+
log.error(`Test Failure: ${error}`);
|
|
25424
|
+
done(error);
|
|
25425
|
+
}
|
|
25426
|
+
}).timeout(attemptTimeout);
|
|
25427
|
+
it('should error if - missing id', (done) => {
|
|
25428
|
+
try {
|
|
25429
|
+
a.patchDcimVirtualDeviceContextsId(null, null, (data, error) => {
|
|
25430
|
+
try {
|
|
25431
|
+
const displayE = 'id is required';
|
|
25432
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-patchDcimVirtualDeviceContextsId', displayE);
|
|
25433
|
+
done();
|
|
25434
|
+
} catch (err) {
|
|
25435
|
+
log.error(`Test Failure: ${err}`);
|
|
25436
|
+
done(err);
|
|
25437
|
+
}
|
|
25438
|
+
});
|
|
25439
|
+
} catch (error) {
|
|
25440
|
+
log.error(`Adapter Exception: ${error}`);
|
|
25441
|
+
done(error);
|
|
25442
|
+
}
|
|
25443
|
+
}).timeout(attemptTimeout);
|
|
25444
|
+
it('should error if - missing data', (done) => {
|
|
25445
|
+
try {
|
|
25446
|
+
a.patchDcimVirtualDeviceContextsId('fakeparam', null, (data, error) => {
|
|
25447
|
+
try {
|
|
25448
|
+
const displayE = 'data is required';
|
|
25449
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-patchDcimVirtualDeviceContextsId', displayE);
|
|
25450
|
+
done();
|
|
25451
|
+
} catch (err) {
|
|
25452
|
+
log.error(`Test Failure: ${err}`);
|
|
25453
|
+
done(err);
|
|
25454
|
+
}
|
|
25455
|
+
});
|
|
25456
|
+
} catch (error) {
|
|
25457
|
+
log.error(`Adapter Exception: ${error}`);
|
|
25458
|
+
done(error);
|
|
25459
|
+
}
|
|
25460
|
+
}).timeout(attemptTimeout);
|
|
25461
|
+
});
|
|
25462
|
+
|
|
25463
|
+
describe('#deleteDcimVirtualDeviceContextsId - errors', () => {
|
|
25464
|
+
it('should have a deleteDcimVirtualDeviceContextsId function', (done) => {
|
|
25465
|
+
try {
|
|
25466
|
+
assert.equal(true, typeof a.deleteDcimVirtualDeviceContextsId === 'function');
|
|
25467
|
+
done();
|
|
25468
|
+
} catch (error) {
|
|
25469
|
+
log.error(`Test Failure: ${error}`);
|
|
25470
|
+
done(error);
|
|
25471
|
+
}
|
|
25472
|
+
}).timeout(attemptTimeout);
|
|
25473
|
+
it('should error if - missing id', (done) => {
|
|
25474
|
+
try {
|
|
25475
|
+
a.deleteDcimVirtualDeviceContextsId(null, (data, error) => {
|
|
25476
|
+
try {
|
|
25477
|
+
const displayE = 'id is required';
|
|
25478
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-deleteDcimVirtualDeviceContextsId', displayE);
|
|
25479
|
+
done();
|
|
25480
|
+
} catch (err) {
|
|
25481
|
+
log.error(`Test Failure: ${err}`);
|
|
25482
|
+
done(err);
|
|
25483
|
+
}
|
|
25484
|
+
});
|
|
25485
|
+
} catch (error) {
|
|
25486
|
+
log.error(`Adapter Exception: ${error}`);
|
|
25487
|
+
done(error);
|
|
25488
|
+
}
|
|
25489
|
+
}).timeout(attemptTimeout);
|
|
25490
|
+
});
|
|
25491
|
+
|
|
25492
|
+
describe('#getExtrasSavedFilters - errors', () => {
|
|
25493
|
+
it('should have a getExtrasSavedFilters function', (done) => {
|
|
25494
|
+
try {
|
|
25495
|
+
assert.equal(true, typeof a.getExtrasSavedFilters === 'function');
|
|
25496
|
+
done();
|
|
25497
|
+
} catch (error) {
|
|
25498
|
+
log.error(`Test Failure: ${error}`);
|
|
25499
|
+
done(error);
|
|
25500
|
+
}
|
|
25501
|
+
}).timeout(attemptTimeout);
|
|
25502
|
+
});
|
|
25503
|
+
|
|
25504
|
+
describe('#postExtrasSavedFilters - errors', () => {
|
|
25505
|
+
it('should have a postExtrasSavedFilters function', (done) => {
|
|
25506
|
+
try {
|
|
25507
|
+
assert.equal(true, typeof a.postExtrasSavedFilters === 'function');
|
|
25508
|
+
done();
|
|
25509
|
+
} catch (error) {
|
|
25510
|
+
log.error(`Test Failure: ${error}`);
|
|
25511
|
+
done(error);
|
|
25512
|
+
}
|
|
25513
|
+
}).timeout(attemptTimeout);
|
|
25514
|
+
it('should error if - missing data', (done) => {
|
|
25515
|
+
try {
|
|
25516
|
+
a.postExtrasSavedFilters(null, (data, error) => {
|
|
25517
|
+
try {
|
|
25518
|
+
const displayE = 'data is required';
|
|
25519
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-postExtrasSavedFilters', displayE);
|
|
25520
|
+
done();
|
|
25521
|
+
} catch (err) {
|
|
25522
|
+
log.error(`Test Failure: ${err}`);
|
|
25523
|
+
done(err);
|
|
25524
|
+
}
|
|
25525
|
+
});
|
|
25526
|
+
} catch (error) {
|
|
25527
|
+
log.error(`Adapter Exception: ${error}`);
|
|
25528
|
+
done(error);
|
|
25529
|
+
}
|
|
25530
|
+
}).timeout(attemptTimeout);
|
|
25531
|
+
});
|
|
25532
|
+
|
|
25533
|
+
describe('#putExtrasSavedFilters - errors', () => {
|
|
25534
|
+
it('should have a putExtrasSavedFilters function', (done) => {
|
|
25535
|
+
try {
|
|
25536
|
+
assert.equal(true, typeof a.putExtrasSavedFilters === 'function');
|
|
25537
|
+
done();
|
|
25538
|
+
} catch (error) {
|
|
25539
|
+
log.error(`Test Failure: ${error}`);
|
|
25540
|
+
done(error);
|
|
25541
|
+
}
|
|
25542
|
+
}).timeout(attemptTimeout);
|
|
25543
|
+
it('should error if - missing data', (done) => {
|
|
25544
|
+
try {
|
|
25545
|
+
a.putExtrasSavedFilters(null, (data, error) => {
|
|
25546
|
+
try {
|
|
25547
|
+
const displayE = 'data is required';
|
|
25548
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-putExtrasSavedFilters', displayE);
|
|
25549
|
+
done();
|
|
25550
|
+
} catch (err) {
|
|
25551
|
+
log.error(`Test Failure: ${err}`);
|
|
25552
|
+
done(err);
|
|
25553
|
+
}
|
|
25554
|
+
});
|
|
25555
|
+
} catch (error) {
|
|
25556
|
+
log.error(`Adapter Exception: ${error}`);
|
|
25557
|
+
done(error);
|
|
25558
|
+
}
|
|
25559
|
+
}).timeout(attemptTimeout);
|
|
25560
|
+
});
|
|
25561
|
+
|
|
25562
|
+
describe('#patchExtrasSavedFilters - errors', () => {
|
|
25563
|
+
it('should have a patchExtrasSavedFilters function', (done) => {
|
|
25564
|
+
try {
|
|
25565
|
+
assert.equal(true, typeof a.patchExtrasSavedFilters === 'function');
|
|
25566
|
+
done();
|
|
25567
|
+
} catch (error) {
|
|
25568
|
+
log.error(`Test Failure: ${error}`);
|
|
25569
|
+
done(error);
|
|
25570
|
+
}
|
|
25571
|
+
}).timeout(attemptTimeout);
|
|
25572
|
+
it('should error if - missing data', (done) => {
|
|
25573
|
+
try {
|
|
25574
|
+
a.patchExtrasSavedFilters(null, (data, error) => {
|
|
25575
|
+
try {
|
|
25576
|
+
const displayE = 'data is required';
|
|
25577
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-patchExtrasSavedFilters', displayE);
|
|
25578
|
+
done();
|
|
25579
|
+
} catch (err) {
|
|
25580
|
+
log.error(`Test Failure: ${err}`);
|
|
25581
|
+
done(err);
|
|
25582
|
+
}
|
|
25583
|
+
});
|
|
25584
|
+
} catch (error) {
|
|
25585
|
+
log.error(`Adapter Exception: ${error}`);
|
|
25586
|
+
done(error);
|
|
25587
|
+
}
|
|
25588
|
+
}).timeout(attemptTimeout);
|
|
25589
|
+
});
|
|
25590
|
+
|
|
25591
|
+
describe('#deleteExtrasSavedFilters - errors', () => {
|
|
25592
|
+
it('should have a deleteExtrasSavedFilters function', (done) => {
|
|
25593
|
+
try {
|
|
25594
|
+
assert.equal(true, typeof a.deleteExtrasSavedFilters === 'function');
|
|
25595
|
+
done();
|
|
25596
|
+
} catch (error) {
|
|
25597
|
+
log.error(`Test Failure: ${error}`);
|
|
25598
|
+
done(error);
|
|
25599
|
+
}
|
|
25600
|
+
}).timeout(attemptTimeout);
|
|
25601
|
+
});
|
|
25602
|
+
|
|
25603
|
+
describe('#getExtrasSavedFiltersId - errors', () => {
|
|
25604
|
+
it('should have a getExtrasSavedFiltersId function', (done) => {
|
|
25605
|
+
try {
|
|
25606
|
+
assert.equal(true, typeof a.getExtrasSavedFiltersId === 'function');
|
|
25607
|
+
done();
|
|
25608
|
+
} catch (error) {
|
|
25609
|
+
log.error(`Test Failure: ${error}`);
|
|
25610
|
+
done(error);
|
|
25611
|
+
}
|
|
25612
|
+
}).timeout(attemptTimeout);
|
|
25613
|
+
it('should error if - missing id', (done) => {
|
|
25614
|
+
try {
|
|
25615
|
+
a.getExtrasSavedFiltersId(null, (data, error) => {
|
|
25616
|
+
try {
|
|
25617
|
+
const displayE = 'id is required';
|
|
25618
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-getExtrasSavedFiltersId', displayE);
|
|
25619
|
+
done();
|
|
25620
|
+
} catch (err) {
|
|
25621
|
+
log.error(`Test Failure: ${err}`);
|
|
25622
|
+
done(err);
|
|
25623
|
+
}
|
|
25624
|
+
});
|
|
25625
|
+
} catch (error) {
|
|
25626
|
+
log.error(`Adapter Exception: ${error}`);
|
|
25627
|
+
done(error);
|
|
25628
|
+
}
|
|
25629
|
+
}).timeout(attemptTimeout);
|
|
25630
|
+
});
|
|
25631
|
+
|
|
25632
|
+
describe('#putExtrasSavedFiltersId - errors', () => {
|
|
25633
|
+
it('should have a putExtrasSavedFiltersId function', (done) => {
|
|
25634
|
+
try {
|
|
25635
|
+
assert.equal(true, typeof a.putExtrasSavedFiltersId === 'function');
|
|
25636
|
+
done();
|
|
25637
|
+
} catch (error) {
|
|
25638
|
+
log.error(`Test Failure: ${error}`);
|
|
25639
|
+
done(error);
|
|
25640
|
+
}
|
|
25641
|
+
}).timeout(attemptTimeout);
|
|
25642
|
+
it('should error if - missing id', (done) => {
|
|
25643
|
+
try {
|
|
25644
|
+
a.putExtrasSavedFiltersId(null, null, (data, error) => {
|
|
25645
|
+
try {
|
|
25646
|
+
const displayE = 'id is required';
|
|
25647
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-putExtrasSavedFiltersId', displayE);
|
|
25648
|
+
done();
|
|
25649
|
+
} catch (err) {
|
|
25650
|
+
log.error(`Test Failure: ${err}`);
|
|
25651
|
+
done(err);
|
|
25652
|
+
}
|
|
25653
|
+
});
|
|
25654
|
+
} catch (error) {
|
|
25655
|
+
log.error(`Adapter Exception: ${error}`);
|
|
25656
|
+
done(error);
|
|
25657
|
+
}
|
|
25658
|
+
}).timeout(attemptTimeout);
|
|
25659
|
+
it('should error if - missing data', (done) => {
|
|
25660
|
+
try {
|
|
25661
|
+
a.putExtrasSavedFiltersId('fakeparam', null, (data, error) => {
|
|
25662
|
+
try {
|
|
25663
|
+
const displayE = 'data is required';
|
|
25664
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-putExtrasSavedFiltersId', displayE);
|
|
25665
|
+
done();
|
|
25666
|
+
} catch (err) {
|
|
25667
|
+
log.error(`Test Failure: ${err}`);
|
|
25668
|
+
done(err);
|
|
25669
|
+
}
|
|
25670
|
+
});
|
|
25671
|
+
} catch (error) {
|
|
25672
|
+
log.error(`Adapter Exception: ${error}`);
|
|
25673
|
+
done(error);
|
|
25674
|
+
}
|
|
25675
|
+
}).timeout(attemptTimeout);
|
|
25676
|
+
});
|
|
25677
|
+
|
|
25678
|
+
describe('#patchExtrasSavedFiltersId - errors', () => {
|
|
25679
|
+
it('should have a patchExtrasSavedFiltersId function', (done) => {
|
|
25680
|
+
try {
|
|
25681
|
+
assert.equal(true, typeof a.patchExtrasSavedFiltersId === 'function');
|
|
25682
|
+
done();
|
|
25683
|
+
} catch (error) {
|
|
25684
|
+
log.error(`Test Failure: ${error}`);
|
|
25685
|
+
done(error);
|
|
25686
|
+
}
|
|
25687
|
+
}).timeout(attemptTimeout);
|
|
25688
|
+
it('should error if - missing id', (done) => {
|
|
25689
|
+
try {
|
|
25690
|
+
a.patchExtrasSavedFiltersId(null, null, (data, error) => {
|
|
25691
|
+
try {
|
|
25692
|
+
const displayE = 'id is required';
|
|
25693
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-patchExtrasSavedFiltersId', displayE);
|
|
25694
|
+
done();
|
|
25695
|
+
} catch (err) {
|
|
25696
|
+
log.error(`Test Failure: ${err}`);
|
|
25697
|
+
done(err);
|
|
25698
|
+
}
|
|
25699
|
+
});
|
|
25700
|
+
} catch (error) {
|
|
25701
|
+
log.error(`Adapter Exception: ${error}`);
|
|
25702
|
+
done(error);
|
|
25703
|
+
}
|
|
25704
|
+
}).timeout(attemptTimeout);
|
|
25705
|
+
it('should error if - missing data', (done) => {
|
|
25706
|
+
try {
|
|
25707
|
+
a.patchExtrasSavedFiltersId('fakeparam', null, (data, error) => {
|
|
25708
|
+
try {
|
|
25709
|
+
const displayE = 'data is required';
|
|
25710
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-patchExtrasSavedFiltersId', displayE);
|
|
25711
|
+
done();
|
|
25712
|
+
} catch (err) {
|
|
25713
|
+
log.error(`Test Failure: ${err}`);
|
|
25714
|
+
done(err);
|
|
25715
|
+
}
|
|
25716
|
+
});
|
|
25717
|
+
} catch (error) {
|
|
25718
|
+
log.error(`Adapter Exception: ${error}`);
|
|
25719
|
+
done(error);
|
|
25720
|
+
}
|
|
25721
|
+
}).timeout(attemptTimeout);
|
|
25722
|
+
});
|
|
25723
|
+
|
|
25724
|
+
describe('#deleteExtrasSavedFiltersId - errors', () => {
|
|
25725
|
+
it('should have a deleteExtrasSavedFiltersId function', (done) => {
|
|
25726
|
+
try {
|
|
25727
|
+
assert.equal(true, typeof a.deleteExtrasSavedFiltersId === 'function');
|
|
25728
|
+
done();
|
|
25729
|
+
} catch (error) {
|
|
25730
|
+
log.error(`Test Failure: ${error}`);
|
|
25731
|
+
done(error);
|
|
25732
|
+
}
|
|
25733
|
+
}).timeout(attemptTimeout);
|
|
25734
|
+
it('should error if - missing id', (done) => {
|
|
25735
|
+
try {
|
|
25736
|
+
a.deleteExtrasSavedFiltersId(null, (data, error) => {
|
|
25737
|
+
try {
|
|
25738
|
+
const displayE = 'id is required';
|
|
25739
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-deleteExtrasSavedFiltersId', displayE);
|
|
25740
|
+
done();
|
|
25741
|
+
} catch (err) {
|
|
25742
|
+
log.error(`Test Failure: ${err}`);
|
|
25743
|
+
done(err);
|
|
25744
|
+
}
|
|
25745
|
+
});
|
|
25746
|
+
} catch (error) {
|
|
25747
|
+
log.error(`Adapter Exception: ${error}`);
|
|
25748
|
+
done(error);
|
|
25749
|
+
}
|
|
25750
|
+
}).timeout(attemptTimeout);
|
|
25751
|
+
});
|
|
25752
|
+
|
|
25753
|
+
describe('#getPluginsServicePoolsCandidateConfig - errors', () => {
|
|
25754
|
+
it('should have a getPluginsServicePoolsCandidateConfig function', (done) => {
|
|
25755
|
+
try {
|
|
25756
|
+
assert.equal(true, typeof a.getPluginsServicePoolsCandidateConfig === 'function');
|
|
25757
|
+
done();
|
|
25758
|
+
} catch (error) {
|
|
25759
|
+
log.error(`Test Failure: ${error}`);
|
|
25760
|
+
done(error);
|
|
25761
|
+
}
|
|
25762
|
+
}).timeout(attemptTimeout);
|
|
25763
|
+
});
|
|
25764
|
+
|
|
25765
|
+
describe('#postPluginsServicePoolsCandidateConfig - errors', () => {
|
|
25766
|
+
it('should have a postPluginsServicePoolsCandidateConfig function', (done) => {
|
|
25767
|
+
try {
|
|
25768
|
+
assert.equal(true, typeof a.postPluginsServicePoolsCandidateConfig === 'function');
|
|
25769
|
+
done();
|
|
25770
|
+
} catch (error) {
|
|
25771
|
+
log.error(`Test Failure: ${error}`);
|
|
25772
|
+
done(error);
|
|
25773
|
+
}
|
|
25774
|
+
}).timeout(attemptTimeout);
|
|
25775
|
+
it('should error if - missing data', (done) => {
|
|
25776
|
+
try {
|
|
25777
|
+
a.postPluginsServicePoolsCandidateConfig(null, (data, error) => {
|
|
25778
|
+
try {
|
|
25779
|
+
const displayE = 'data is required';
|
|
25780
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-postPluginsServicePoolsCandidateConfig', displayE);
|
|
25781
|
+
done();
|
|
25782
|
+
} catch (err) {
|
|
25783
|
+
log.error(`Test Failure: ${err}`);
|
|
25784
|
+
done(err);
|
|
25785
|
+
}
|
|
25786
|
+
});
|
|
25787
|
+
} catch (error) {
|
|
25788
|
+
log.error(`Adapter Exception: ${error}`);
|
|
25789
|
+
done(error);
|
|
25790
|
+
}
|
|
25791
|
+
}).timeout(attemptTimeout);
|
|
25792
|
+
});
|
|
25793
|
+
|
|
25794
|
+
describe('#putPluginsServicePoolsCandidateConfig - errors', () => {
|
|
25795
|
+
it('should have a putPluginsServicePoolsCandidateConfig function', (done) => {
|
|
25796
|
+
try {
|
|
25797
|
+
assert.equal(true, typeof a.putPluginsServicePoolsCandidateConfig === 'function');
|
|
25798
|
+
done();
|
|
25799
|
+
} catch (error) {
|
|
25800
|
+
log.error(`Test Failure: ${error}`);
|
|
25801
|
+
done(error);
|
|
25802
|
+
}
|
|
25803
|
+
}).timeout(attemptTimeout);
|
|
25804
|
+
it('should error if - missing data', (done) => {
|
|
25805
|
+
try {
|
|
25806
|
+
a.putPluginsServicePoolsCandidateConfig(null, (data, error) => {
|
|
25807
|
+
try {
|
|
25808
|
+
const displayE = 'data is required';
|
|
25809
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-putPluginsServicePoolsCandidateConfig', displayE);
|
|
25810
|
+
done();
|
|
25811
|
+
} catch (err) {
|
|
25812
|
+
log.error(`Test Failure: ${err}`);
|
|
25813
|
+
done(err);
|
|
25814
|
+
}
|
|
25815
|
+
});
|
|
25816
|
+
} catch (error) {
|
|
25817
|
+
log.error(`Adapter Exception: ${error}`);
|
|
25818
|
+
done(error);
|
|
25819
|
+
}
|
|
25820
|
+
}).timeout(attemptTimeout);
|
|
25821
|
+
});
|
|
25822
|
+
|
|
25823
|
+
describe('#patchPluginsServicePoolsCandidateConfig - errors', () => {
|
|
25824
|
+
it('should have a patchPluginsServicePoolsCandidateConfig function', (done) => {
|
|
25825
|
+
try {
|
|
25826
|
+
assert.equal(true, typeof a.patchPluginsServicePoolsCandidateConfig === 'function');
|
|
25827
|
+
done();
|
|
25828
|
+
} catch (error) {
|
|
25829
|
+
log.error(`Test Failure: ${error}`);
|
|
25830
|
+
done(error);
|
|
25831
|
+
}
|
|
25832
|
+
}).timeout(attemptTimeout);
|
|
25833
|
+
it('should error if - missing data', (done) => {
|
|
25834
|
+
try {
|
|
25835
|
+
a.patchPluginsServicePoolsCandidateConfig(null, (data, error) => {
|
|
25836
|
+
try {
|
|
25837
|
+
const displayE = 'data is required';
|
|
25838
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-patchPluginsServicePoolsCandidateConfig', displayE);
|
|
25839
|
+
done();
|
|
25840
|
+
} catch (err) {
|
|
25841
|
+
log.error(`Test Failure: ${err}`);
|
|
25842
|
+
done(err);
|
|
25843
|
+
}
|
|
25844
|
+
});
|
|
25845
|
+
} catch (error) {
|
|
25846
|
+
log.error(`Adapter Exception: ${error}`);
|
|
25847
|
+
done(error);
|
|
25848
|
+
}
|
|
25849
|
+
}).timeout(attemptTimeout);
|
|
25850
|
+
});
|
|
25851
|
+
|
|
25852
|
+
describe('#deletePluginsServicePoolsCandidateConfig - errors', () => {
|
|
25853
|
+
it('should have a deletePluginsServicePoolsCandidateConfig function', (done) => {
|
|
25854
|
+
try {
|
|
25855
|
+
assert.equal(true, typeof a.deletePluginsServicePoolsCandidateConfig === 'function');
|
|
25856
|
+
done();
|
|
25857
|
+
} catch (error) {
|
|
25858
|
+
log.error(`Test Failure: ${error}`);
|
|
25859
|
+
done(error);
|
|
25860
|
+
}
|
|
25861
|
+
}).timeout(attemptTimeout);
|
|
25862
|
+
});
|
|
25863
|
+
|
|
25864
|
+
describe('#getPluginsServicePoolsCandidateConfigId - errors', () => {
|
|
25865
|
+
it('should have a getPluginsServicePoolsCandidateConfigId function', (done) => {
|
|
25866
|
+
try {
|
|
25867
|
+
assert.equal(true, typeof a.getPluginsServicePoolsCandidateConfigId === 'function');
|
|
25868
|
+
done();
|
|
25869
|
+
} catch (error) {
|
|
25870
|
+
log.error(`Test Failure: ${error}`);
|
|
25871
|
+
done(error);
|
|
25872
|
+
}
|
|
25873
|
+
}).timeout(attemptTimeout);
|
|
25874
|
+
it('should error if - missing id', (done) => {
|
|
25875
|
+
try {
|
|
25876
|
+
a.getPluginsServicePoolsCandidateConfigId(null, (data, error) => {
|
|
25877
|
+
try {
|
|
25878
|
+
const displayE = 'id is required';
|
|
25879
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-getPluginsServicePoolsCandidateConfigId', displayE);
|
|
25880
|
+
done();
|
|
25881
|
+
} catch (err) {
|
|
25882
|
+
log.error(`Test Failure: ${err}`);
|
|
25883
|
+
done(err);
|
|
25884
|
+
}
|
|
25885
|
+
});
|
|
25886
|
+
} catch (error) {
|
|
25887
|
+
log.error(`Adapter Exception: ${error}`);
|
|
25888
|
+
done(error);
|
|
25889
|
+
}
|
|
25890
|
+
}).timeout(attemptTimeout);
|
|
25891
|
+
});
|
|
25892
|
+
|
|
25893
|
+
describe('#putPluginsServicePoolsCandidateConfigId - errors', () => {
|
|
25894
|
+
it('should have a putPluginsServicePoolsCandidateConfigId function', (done) => {
|
|
25895
|
+
try {
|
|
25896
|
+
assert.equal(true, typeof a.putPluginsServicePoolsCandidateConfigId === 'function');
|
|
25897
|
+
done();
|
|
25898
|
+
} catch (error) {
|
|
25899
|
+
log.error(`Test Failure: ${error}`);
|
|
25900
|
+
done(error);
|
|
25901
|
+
}
|
|
25902
|
+
}).timeout(attemptTimeout);
|
|
25903
|
+
it('should error if - missing id', (done) => {
|
|
25904
|
+
try {
|
|
25905
|
+
a.putPluginsServicePoolsCandidateConfigId(null, null, (data, error) => {
|
|
25906
|
+
try {
|
|
25907
|
+
const displayE = 'id is required';
|
|
25908
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-putPluginsServicePoolsCandidateConfigId', displayE);
|
|
25909
|
+
done();
|
|
25910
|
+
} catch (err) {
|
|
25911
|
+
log.error(`Test Failure: ${err}`);
|
|
25912
|
+
done(err);
|
|
25913
|
+
}
|
|
25914
|
+
});
|
|
25915
|
+
} catch (error) {
|
|
25916
|
+
log.error(`Adapter Exception: ${error}`);
|
|
25917
|
+
done(error);
|
|
25918
|
+
}
|
|
25919
|
+
}).timeout(attemptTimeout);
|
|
25920
|
+
it('should error if - missing data', (done) => {
|
|
25921
|
+
try {
|
|
25922
|
+
a.putPluginsServicePoolsCandidateConfigId('fakeparam', null, (data, error) => {
|
|
25923
|
+
try {
|
|
25924
|
+
const displayE = 'data is required';
|
|
25925
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-putPluginsServicePoolsCandidateConfigId', displayE);
|
|
25926
|
+
done();
|
|
25927
|
+
} catch (err) {
|
|
25928
|
+
log.error(`Test Failure: ${err}`);
|
|
25929
|
+
done(err);
|
|
25930
|
+
}
|
|
25931
|
+
});
|
|
25932
|
+
} catch (error) {
|
|
25933
|
+
log.error(`Adapter Exception: ${error}`);
|
|
25934
|
+
done(error);
|
|
25935
|
+
}
|
|
25936
|
+
}).timeout(attemptTimeout);
|
|
25937
|
+
});
|
|
25938
|
+
|
|
25939
|
+
describe('#patchPluginsServicePoolsCandidateConfigId - errors', () => {
|
|
25940
|
+
it('should have a patchPluginsServicePoolsCandidateConfigId function', (done) => {
|
|
25941
|
+
try {
|
|
25942
|
+
assert.equal(true, typeof a.patchPluginsServicePoolsCandidateConfigId === 'function');
|
|
25943
|
+
done();
|
|
25944
|
+
} catch (error) {
|
|
25945
|
+
log.error(`Test Failure: ${error}`);
|
|
25946
|
+
done(error);
|
|
25947
|
+
}
|
|
25948
|
+
}).timeout(attemptTimeout);
|
|
25949
|
+
it('should error if - missing id', (done) => {
|
|
25950
|
+
try {
|
|
25951
|
+
a.patchPluginsServicePoolsCandidateConfigId(null, null, (data, error) => {
|
|
25952
|
+
try {
|
|
25953
|
+
const displayE = 'id is required';
|
|
25954
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-patchPluginsServicePoolsCandidateConfigId', displayE);
|
|
25955
|
+
done();
|
|
25956
|
+
} catch (err) {
|
|
25957
|
+
log.error(`Test Failure: ${err}`);
|
|
25958
|
+
done(err);
|
|
25959
|
+
}
|
|
25960
|
+
});
|
|
25961
|
+
} catch (error) {
|
|
25962
|
+
log.error(`Adapter Exception: ${error}`);
|
|
25963
|
+
done(error);
|
|
25964
|
+
}
|
|
25965
|
+
}).timeout(attemptTimeout);
|
|
25966
|
+
it('should error if - missing data', (done) => {
|
|
25967
|
+
try {
|
|
25968
|
+
a.patchPluginsServicePoolsCandidateConfigId('fakeparam', null, (data, error) => {
|
|
25969
|
+
try {
|
|
25970
|
+
const displayE = 'data is required';
|
|
25971
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-patchPluginsServicePoolsCandidateConfigId', displayE);
|
|
25972
|
+
done();
|
|
25973
|
+
} catch (err) {
|
|
25974
|
+
log.error(`Test Failure: ${err}`);
|
|
25975
|
+
done(err);
|
|
25976
|
+
}
|
|
25977
|
+
});
|
|
25978
|
+
} catch (error) {
|
|
25979
|
+
log.error(`Adapter Exception: ${error}`);
|
|
25980
|
+
done(error);
|
|
25981
|
+
}
|
|
25982
|
+
}).timeout(attemptTimeout);
|
|
25983
|
+
});
|
|
25984
|
+
|
|
25985
|
+
describe('#deletePluginsServicePoolsCandidateConfigId - errors', () => {
|
|
25986
|
+
it('should have a deletePluginsServicePoolsCandidateConfigId function', (done) => {
|
|
25987
|
+
try {
|
|
25988
|
+
assert.equal(true, typeof a.deletePluginsServicePoolsCandidateConfigId === 'function');
|
|
25989
|
+
done();
|
|
25990
|
+
} catch (error) {
|
|
25991
|
+
log.error(`Test Failure: ${error}`);
|
|
25992
|
+
done(error);
|
|
25993
|
+
}
|
|
25994
|
+
}).timeout(attemptTimeout);
|
|
25995
|
+
it('should error if - missing id', (done) => {
|
|
25996
|
+
try {
|
|
25997
|
+
a.deletePluginsServicePoolsCandidateConfigId(null, (data, error) => {
|
|
25998
|
+
try {
|
|
25999
|
+
const displayE = 'id is required';
|
|
26000
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-deletePluginsServicePoolsCandidateConfigId', displayE);
|
|
26001
|
+
done();
|
|
26002
|
+
} catch (err) {
|
|
26003
|
+
log.error(`Test Failure: ${err}`);
|
|
26004
|
+
done(err);
|
|
26005
|
+
}
|
|
26006
|
+
});
|
|
26007
|
+
} catch (error) {
|
|
26008
|
+
log.error(`Adapter Exception: ${error}`);
|
|
26009
|
+
done(error);
|
|
26010
|
+
}
|
|
26011
|
+
}).timeout(attemptTimeout);
|
|
26012
|
+
});
|
|
26013
|
+
|
|
26014
|
+
describe('#getPluginsServicePoolsCustomService - errors', () => {
|
|
26015
|
+
it('should have a getPluginsServicePoolsCustomService function', (done) => {
|
|
26016
|
+
try {
|
|
26017
|
+
assert.equal(true, typeof a.getPluginsServicePoolsCustomService === 'function');
|
|
26018
|
+
done();
|
|
26019
|
+
} catch (error) {
|
|
26020
|
+
log.error(`Test Failure: ${error}`);
|
|
26021
|
+
done(error);
|
|
26022
|
+
}
|
|
26023
|
+
}).timeout(attemptTimeout);
|
|
26024
|
+
});
|
|
26025
|
+
|
|
26026
|
+
describe('#postPluginsServicePoolsCustomService - errors', () => {
|
|
26027
|
+
it('should have a postPluginsServicePoolsCustomService function', (done) => {
|
|
26028
|
+
try {
|
|
26029
|
+
assert.equal(true, typeof a.postPluginsServicePoolsCustomService === 'function');
|
|
26030
|
+
done();
|
|
26031
|
+
} catch (error) {
|
|
26032
|
+
log.error(`Test Failure: ${error}`);
|
|
26033
|
+
done(error);
|
|
26034
|
+
}
|
|
26035
|
+
}).timeout(attemptTimeout);
|
|
26036
|
+
it('should error if - missing data', (done) => {
|
|
26037
|
+
try {
|
|
26038
|
+
a.postPluginsServicePoolsCustomService(null, (data, error) => {
|
|
26039
|
+
try {
|
|
26040
|
+
const displayE = 'data is required';
|
|
26041
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-postPluginsServicePoolsCustomService', displayE);
|
|
26042
|
+
done();
|
|
26043
|
+
} catch (err) {
|
|
26044
|
+
log.error(`Test Failure: ${err}`);
|
|
26045
|
+
done(err);
|
|
26046
|
+
}
|
|
26047
|
+
});
|
|
26048
|
+
} catch (error) {
|
|
26049
|
+
log.error(`Adapter Exception: ${error}`);
|
|
26050
|
+
done(error);
|
|
26051
|
+
}
|
|
26052
|
+
}).timeout(attemptTimeout);
|
|
26053
|
+
});
|
|
26054
|
+
|
|
26055
|
+
describe('#putPluginsServicePoolsCustomService - errors', () => {
|
|
26056
|
+
it('should have a putPluginsServicePoolsCustomService function', (done) => {
|
|
26057
|
+
try {
|
|
26058
|
+
assert.equal(true, typeof a.putPluginsServicePoolsCustomService === 'function');
|
|
26059
|
+
done();
|
|
26060
|
+
} catch (error) {
|
|
26061
|
+
log.error(`Test Failure: ${error}`);
|
|
26062
|
+
done(error);
|
|
26063
|
+
}
|
|
26064
|
+
}).timeout(attemptTimeout);
|
|
26065
|
+
it('should error if - missing data', (done) => {
|
|
26066
|
+
try {
|
|
26067
|
+
a.putPluginsServicePoolsCustomService(null, (data, error) => {
|
|
26068
|
+
try {
|
|
26069
|
+
const displayE = 'data is required';
|
|
26070
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-putPluginsServicePoolsCustomService', displayE);
|
|
26071
|
+
done();
|
|
26072
|
+
} catch (err) {
|
|
26073
|
+
log.error(`Test Failure: ${err}`);
|
|
26074
|
+
done(err);
|
|
26075
|
+
}
|
|
26076
|
+
});
|
|
26077
|
+
} catch (error) {
|
|
26078
|
+
log.error(`Adapter Exception: ${error}`);
|
|
26079
|
+
done(error);
|
|
26080
|
+
}
|
|
26081
|
+
}).timeout(attemptTimeout);
|
|
26082
|
+
});
|
|
26083
|
+
|
|
26084
|
+
describe('#patchPluginsServicePoolsCustomService - errors', () => {
|
|
26085
|
+
it('should have a patchPluginsServicePoolsCustomService function', (done) => {
|
|
26086
|
+
try {
|
|
26087
|
+
assert.equal(true, typeof a.patchPluginsServicePoolsCustomService === 'function');
|
|
26088
|
+
done();
|
|
26089
|
+
} catch (error) {
|
|
26090
|
+
log.error(`Test Failure: ${error}`);
|
|
26091
|
+
done(error);
|
|
26092
|
+
}
|
|
26093
|
+
}).timeout(attemptTimeout);
|
|
26094
|
+
it('should error if - missing data', (done) => {
|
|
26095
|
+
try {
|
|
26096
|
+
a.patchPluginsServicePoolsCustomService(null, (data, error) => {
|
|
26097
|
+
try {
|
|
26098
|
+
const displayE = 'data is required';
|
|
26099
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-patchPluginsServicePoolsCustomService', displayE);
|
|
26100
|
+
done();
|
|
26101
|
+
} catch (err) {
|
|
26102
|
+
log.error(`Test Failure: ${err}`);
|
|
26103
|
+
done(err);
|
|
26104
|
+
}
|
|
26105
|
+
});
|
|
26106
|
+
} catch (error) {
|
|
26107
|
+
log.error(`Adapter Exception: ${error}`);
|
|
26108
|
+
done(error);
|
|
26109
|
+
}
|
|
26110
|
+
}).timeout(attemptTimeout);
|
|
26111
|
+
});
|
|
26112
|
+
|
|
26113
|
+
describe('#deletePluginsServicePoolsCustomService - errors', () => {
|
|
26114
|
+
it('should have a deletePluginsServicePoolsCustomService function', (done) => {
|
|
26115
|
+
try {
|
|
26116
|
+
assert.equal(true, typeof a.deletePluginsServicePoolsCustomService === 'function');
|
|
26117
|
+
done();
|
|
26118
|
+
} catch (error) {
|
|
26119
|
+
log.error(`Test Failure: ${error}`);
|
|
26120
|
+
done(error);
|
|
26121
|
+
}
|
|
26122
|
+
}).timeout(attemptTimeout);
|
|
26123
|
+
});
|
|
26124
|
+
|
|
26125
|
+
describe('#getPluginsServicePoolsCustomServiceId - errors', () => {
|
|
26126
|
+
it('should have a getPluginsServicePoolsCustomServiceId function', (done) => {
|
|
26127
|
+
try {
|
|
26128
|
+
assert.equal(true, typeof a.getPluginsServicePoolsCustomServiceId === 'function');
|
|
26129
|
+
done();
|
|
26130
|
+
} catch (error) {
|
|
26131
|
+
log.error(`Test Failure: ${error}`);
|
|
26132
|
+
done(error);
|
|
26133
|
+
}
|
|
26134
|
+
}).timeout(attemptTimeout);
|
|
26135
|
+
it('should error if - missing id', (done) => {
|
|
26136
|
+
try {
|
|
26137
|
+
a.getPluginsServicePoolsCustomServiceId(null, (data, error) => {
|
|
26138
|
+
try {
|
|
26139
|
+
const displayE = 'id is required';
|
|
26140
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-getPluginsServicePoolsCustomServiceId', displayE);
|
|
26141
|
+
done();
|
|
26142
|
+
} catch (err) {
|
|
26143
|
+
log.error(`Test Failure: ${err}`);
|
|
26144
|
+
done(err);
|
|
26145
|
+
}
|
|
26146
|
+
});
|
|
26147
|
+
} catch (error) {
|
|
26148
|
+
log.error(`Adapter Exception: ${error}`);
|
|
26149
|
+
done(error);
|
|
26150
|
+
}
|
|
26151
|
+
}).timeout(attemptTimeout);
|
|
26152
|
+
});
|
|
26153
|
+
|
|
26154
|
+
describe('#putPluginsServicePoolsCustomServiceId - errors', () => {
|
|
26155
|
+
it('should have a putPluginsServicePoolsCustomServiceId function', (done) => {
|
|
26156
|
+
try {
|
|
26157
|
+
assert.equal(true, typeof a.putPluginsServicePoolsCustomServiceId === 'function');
|
|
26158
|
+
done();
|
|
26159
|
+
} catch (error) {
|
|
26160
|
+
log.error(`Test Failure: ${error}`);
|
|
26161
|
+
done(error);
|
|
26162
|
+
}
|
|
26163
|
+
}).timeout(attemptTimeout);
|
|
26164
|
+
it('should error if - missing id', (done) => {
|
|
26165
|
+
try {
|
|
26166
|
+
a.putPluginsServicePoolsCustomServiceId(null, null, (data, error) => {
|
|
26167
|
+
try {
|
|
26168
|
+
const displayE = 'id is required';
|
|
26169
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-putPluginsServicePoolsCustomServiceId', displayE);
|
|
26170
|
+
done();
|
|
26171
|
+
} catch (err) {
|
|
26172
|
+
log.error(`Test Failure: ${err}`);
|
|
26173
|
+
done(err);
|
|
26174
|
+
}
|
|
26175
|
+
});
|
|
26176
|
+
} catch (error) {
|
|
26177
|
+
log.error(`Adapter Exception: ${error}`);
|
|
26178
|
+
done(error);
|
|
26179
|
+
}
|
|
26180
|
+
}).timeout(attemptTimeout);
|
|
26181
|
+
it('should error if - missing data', (done) => {
|
|
26182
|
+
try {
|
|
26183
|
+
a.putPluginsServicePoolsCustomServiceId('fakeparam', null, (data, error) => {
|
|
26184
|
+
try {
|
|
26185
|
+
const displayE = 'data is required';
|
|
26186
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-putPluginsServicePoolsCustomServiceId', displayE);
|
|
26187
|
+
done();
|
|
26188
|
+
} catch (err) {
|
|
26189
|
+
log.error(`Test Failure: ${err}`);
|
|
26190
|
+
done(err);
|
|
26191
|
+
}
|
|
26192
|
+
});
|
|
26193
|
+
} catch (error) {
|
|
26194
|
+
log.error(`Adapter Exception: ${error}`);
|
|
26195
|
+
done(error);
|
|
26196
|
+
}
|
|
26197
|
+
}).timeout(attemptTimeout);
|
|
26198
|
+
});
|
|
26199
|
+
|
|
26200
|
+
describe('#patchPluginsServicePoolsCustomServiceId - errors', () => {
|
|
26201
|
+
it('should have a patchPluginsServicePoolsCustomServiceId function', (done) => {
|
|
26202
|
+
try {
|
|
26203
|
+
assert.equal(true, typeof a.patchPluginsServicePoolsCustomServiceId === 'function');
|
|
26204
|
+
done();
|
|
26205
|
+
} catch (error) {
|
|
26206
|
+
log.error(`Test Failure: ${error}`);
|
|
26207
|
+
done(error);
|
|
26208
|
+
}
|
|
26209
|
+
}).timeout(attemptTimeout);
|
|
26210
|
+
it('should error if - missing id', (done) => {
|
|
26211
|
+
try {
|
|
26212
|
+
a.patchPluginsServicePoolsCustomServiceId(null, null, (data, error) => {
|
|
26213
|
+
try {
|
|
26214
|
+
const displayE = 'id is required';
|
|
26215
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-patchPluginsServicePoolsCustomServiceId', displayE);
|
|
26216
|
+
done();
|
|
26217
|
+
} catch (err) {
|
|
26218
|
+
log.error(`Test Failure: ${err}`);
|
|
26219
|
+
done(err);
|
|
26220
|
+
}
|
|
26221
|
+
});
|
|
26222
|
+
} catch (error) {
|
|
26223
|
+
log.error(`Adapter Exception: ${error}`);
|
|
26224
|
+
done(error);
|
|
26225
|
+
}
|
|
26226
|
+
}).timeout(attemptTimeout);
|
|
26227
|
+
it('should error if - missing data', (done) => {
|
|
26228
|
+
try {
|
|
26229
|
+
a.patchPluginsServicePoolsCustomServiceId('fakeparam', null, (data, error) => {
|
|
26230
|
+
try {
|
|
26231
|
+
const displayE = 'data is required';
|
|
26232
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-patchPluginsServicePoolsCustomServiceId', displayE);
|
|
26233
|
+
done();
|
|
26234
|
+
} catch (err) {
|
|
26235
|
+
log.error(`Test Failure: ${err}`);
|
|
26236
|
+
done(err);
|
|
26237
|
+
}
|
|
26238
|
+
});
|
|
26239
|
+
} catch (error) {
|
|
26240
|
+
log.error(`Adapter Exception: ${error}`);
|
|
26241
|
+
done(error);
|
|
26242
|
+
}
|
|
26243
|
+
}).timeout(attemptTimeout);
|
|
26244
|
+
});
|
|
26245
|
+
|
|
26246
|
+
describe('#deletePluginsServicePoolsCustomServiceId - errors', () => {
|
|
26247
|
+
it('should have a deletePluginsServicePoolsCustomServiceId function', (done) => {
|
|
26248
|
+
try {
|
|
26249
|
+
assert.equal(true, typeof a.deletePluginsServicePoolsCustomServiceId === 'function');
|
|
26250
|
+
done();
|
|
26251
|
+
} catch (error) {
|
|
26252
|
+
log.error(`Test Failure: ${error}`);
|
|
26253
|
+
done(error);
|
|
26254
|
+
}
|
|
26255
|
+
}).timeout(attemptTimeout);
|
|
26256
|
+
it('should error if - missing id', (done) => {
|
|
26257
|
+
try {
|
|
26258
|
+
a.deletePluginsServicePoolsCustomServiceId(null, (data, error) => {
|
|
26259
|
+
try {
|
|
26260
|
+
const displayE = 'id is required';
|
|
26261
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-deletePluginsServicePoolsCustomServiceId', displayE);
|
|
26262
|
+
done();
|
|
26263
|
+
} catch (err) {
|
|
26264
|
+
log.error(`Test Failure: ${err}`);
|
|
26265
|
+
done(err);
|
|
26266
|
+
}
|
|
26267
|
+
});
|
|
26268
|
+
} catch (error) {
|
|
26269
|
+
log.error(`Adapter Exception: ${error}`);
|
|
26270
|
+
done(error);
|
|
26271
|
+
}
|
|
26272
|
+
}).timeout(attemptTimeout);
|
|
26273
|
+
});
|
|
26274
|
+
|
|
26275
|
+
describe('#getPluginsServicePoolsServiceOrder - errors', () => {
|
|
26276
|
+
it('should have a getPluginsServicePoolsServiceOrder function', (done) => {
|
|
26277
|
+
try {
|
|
26278
|
+
assert.equal(true, typeof a.getPluginsServicePoolsServiceOrder === 'function');
|
|
26279
|
+
done();
|
|
26280
|
+
} catch (error) {
|
|
26281
|
+
log.error(`Test Failure: ${error}`);
|
|
26282
|
+
done(error);
|
|
26283
|
+
}
|
|
26284
|
+
}).timeout(attemptTimeout);
|
|
26285
|
+
});
|
|
26286
|
+
|
|
26287
|
+
describe('#postPluginsServicePoolsServiceOrder - errors', () => {
|
|
26288
|
+
it('should have a postPluginsServicePoolsServiceOrder function', (done) => {
|
|
26289
|
+
try {
|
|
26290
|
+
assert.equal(true, typeof a.postPluginsServicePoolsServiceOrder === 'function');
|
|
26291
|
+
done();
|
|
26292
|
+
} catch (error) {
|
|
26293
|
+
log.error(`Test Failure: ${error}`);
|
|
26294
|
+
done(error);
|
|
26295
|
+
}
|
|
26296
|
+
}).timeout(attemptTimeout);
|
|
26297
|
+
it('should error if - missing data', (done) => {
|
|
26298
|
+
try {
|
|
26299
|
+
a.postPluginsServicePoolsServiceOrder(null, (data, error) => {
|
|
26300
|
+
try {
|
|
26301
|
+
const displayE = 'data is required';
|
|
26302
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-postPluginsServicePoolsServiceOrder', displayE);
|
|
26303
|
+
done();
|
|
26304
|
+
} catch (err) {
|
|
26305
|
+
log.error(`Test Failure: ${err}`);
|
|
26306
|
+
done(err);
|
|
26307
|
+
}
|
|
26308
|
+
});
|
|
26309
|
+
} catch (error) {
|
|
26310
|
+
log.error(`Adapter Exception: ${error}`);
|
|
26311
|
+
done(error);
|
|
26312
|
+
}
|
|
26313
|
+
}).timeout(attemptTimeout);
|
|
26314
|
+
});
|
|
26315
|
+
|
|
26316
|
+
describe('#putPluginsServicePoolsServiceOrder - errors', () => {
|
|
26317
|
+
it('should have a putPluginsServicePoolsServiceOrder function', (done) => {
|
|
26318
|
+
try {
|
|
26319
|
+
assert.equal(true, typeof a.putPluginsServicePoolsServiceOrder === 'function');
|
|
26320
|
+
done();
|
|
26321
|
+
} catch (error) {
|
|
26322
|
+
log.error(`Test Failure: ${error}`);
|
|
26323
|
+
done(error);
|
|
26324
|
+
}
|
|
26325
|
+
}).timeout(attemptTimeout);
|
|
26326
|
+
it('should error if - missing data', (done) => {
|
|
26327
|
+
try {
|
|
26328
|
+
a.putPluginsServicePoolsServiceOrder(null, (data, error) => {
|
|
26329
|
+
try {
|
|
26330
|
+
const displayE = 'data is required';
|
|
26331
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-putPluginsServicePoolsServiceOrder', displayE);
|
|
26332
|
+
done();
|
|
26333
|
+
} catch (err) {
|
|
26334
|
+
log.error(`Test Failure: ${err}`);
|
|
26335
|
+
done(err);
|
|
26336
|
+
}
|
|
26337
|
+
});
|
|
26338
|
+
} catch (error) {
|
|
26339
|
+
log.error(`Adapter Exception: ${error}`);
|
|
26340
|
+
done(error);
|
|
26341
|
+
}
|
|
26342
|
+
}).timeout(attemptTimeout);
|
|
26343
|
+
});
|
|
26344
|
+
|
|
26345
|
+
describe('#patchPluginsServicePoolsServiceOrder - errors', () => {
|
|
26346
|
+
it('should have a patchPluginsServicePoolsServiceOrder function', (done) => {
|
|
26347
|
+
try {
|
|
26348
|
+
assert.equal(true, typeof a.patchPluginsServicePoolsServiceOrder === 'function');
|
|
26349
|
+
done();
|
|
26350
|
+
} catch (error) {
|
|
26351
|
+
log.error(`Test Failure: ${error}`);
|
|
26352
|
+
done(error);
|
|
26353
|
+
}
|
|
26354
|
+
}).timeout(attemptTimeout);
|
|
26355
|
+
it('should error if - missing data', (done) => {
|
|
26356
|
+
try {
|
|
26357
|
+
a.patchPluginsServicePoolsServiceOrder(null, (data, error) => {
|
|
26358
|
+
try {
|
|
26359
|
+
const displayE = 'data is required';
|
|
26360
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-patchPluginsServicePoolsServiceOrder', displayE);
|
|
26361
|
+
done();
|
|
26362
|
+
} catch (err) {
|
|
26363
|
+
log.error(`Test Failure: ${err}`);
|
|
26364
|
+
done(err);
|
|
26365
|
+
}
|
|
26366
|
+
});
|
|
26367
|
+
} catch (error) {
|
|
26368
|
+
log.error(`Adapter Exception: ${error}`);
|
|
26369
|
+
done(error);
|
|
26370
|
+
}
|
|
26371
|
+
}).timeout(attemptTimeout);
|
|
26372
|
+
});
|
|
26373
|
+
|
|
26374
|
+
describe('#deletePluginsServicePoolsServiceOrder - errors', () => {
|
|
26375
|
+
it('should have a deletePluginsServicePoolsServiceOrder function', (done) => {
|
|
26376
|
+
try {
|
|
26377
|
+
assert.equal(true, typeof a.deletePluginsServicePoolsServiceOrder === 'function');
|
|
26378
|
+
done();
|
|
26379
|
+
} catch (error) {
|
|
26380
|
+
log.error(`Test Failure: ${error}`);
|
|
26381
|
+
done(error);
|
|
26382
|
+
}
|
|
26383
|
+
}).timeout(attemptTimeout);
|
|
26384
|
+
});
|
|
26385
|
+
|
|
26386
|
+
describe('#getPluginsServicePoolsServiceOrderId - errors', () => {
|
|
26387
|
+
it('should have a getPluginsServicePoolsServiceOrderId function', (done) => {
|
|
26388
|
+
try {
|
|
26389
|
+
assert.equal(true, typeof a.getPluginsServicePoolsServiceOrderId === 'function');
|
|
26390
|
+
done();
|
|
26391
|
+
} catch (error) {
|
|
26392
|
+
log.error(`Test Failure: ${error}`);
|
|
26393
|
+
done(error);
|
|
26394
|
+
}
|
|
26395
|
+
}).timeout(attemptTimeout);
|
|
26396
|
+
it('should error if - missing id', (done) => {
|
|
26397
|
+
try {
|
|
26398
|
+
a.getPluginsServicePoolsServiceOrderId(null, (data, error) => {
|
|
26399
|
+
try {
|
|
26400
|
+
const displayE = 'id is required';
|
|
26401
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-getPluginsServicePoolsServiceOrderId', displayE);
|
|
26402
|
+
done();
|
|
26403
|
+
} catch (err) {
|
|
26404
|
+
log.error(`Test Failure: ${err}`);
|
|
26405
|
+
done(err);
|
|
26406
|
+
}
|
|
26407
|
+
});
|
|
26408
|
+
} catch (error) {
|
|
26409
|
+
log.error(`Adapter Exception: ${error}`);
|
|
26410
|
+
done(error);
|
|
26411
|
+
}
|
|
26412
|
+
}).timeout(attemptTimeout);
|
|
26413
|
+
});
|
|
26414
|
+
|
|
26415
|
+
describe('#putPluginsServicePoolsServiceOrderId - errors', () => {
|
|
26416
|
+
it('should have a putPluginsServicePoolsServiceOrderId function', (done) => {
|
|
26417
|
+
try {
|
|
26418
|
+
assert.equal(true, typeof a.putPluginsServicePoolsServiceOrderId === 'function');
|
|
26419
|
+
done();
|
|
26420
|
+
} catch (error) {
|
|
26421
|
+
log.error(`Test Failure: ${error}`);
|
|
26422
|
+
done(error);
|
|
26423
|
+
}
|
|
26424
|
+
}).timeout(attemptTimeout);
|
|
26425
|
+
it('should error if - missing id', (done) => {
|
|
26426
|
+
try {
|
|
26427
|
+
a.putPluginsServicePoolsServiceOrderId(null, null, (data, error) => {
|
|
26428
|
+
try {
|
|
26429
|
+
const displayE = 'id is required';
|
|
26430
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-putPluginsServicePoolsServiceOrderId', displayE);
|
|
26431
|
+
done();
|
|
26432
|
+
} catch (err) {
|
|
26433
|
+
log.error(`Test Failure: ${err}`);
|
|
26434
|
+
done(err);
|
|
26435
|
+
}
|
|
26436
|
+
});
|
|
26437
|
+
} catch (error) {
|
|
26438
|
+
log.error(`Adapter Exception: ${error}`);
|
|
26439
|
+
done(error);
|
|
26440
|
+
}
|
|
26441
|
+
}).timeout(attemptTimeout);
|
|
26442
|
+
it('should error if - missing data', (done) => {
|
|
26443
|
+
try {
|
|
26444
|
+
a.putPluginsServicePoolsServiceOrderId('fakeparam', null, (data, error) => {
|
|
26445
|
+
try {
|
|
26446
|
+
const displayE = 'data is required';
|
|
26447
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-putPluginsServicePoolsServiceOrderId', displayE);
|
|
26448
|
+
done();
|
|
26449
|
+
} catch (err) {
|
|
26450
|
+
log.error(`Test Failure: ${err}`);
|
|
26451
|
+
done(err);
|
|
26452
|
+
}
|
|
26453
|
+
});
|
|
26454
|
+
} catch (error) {
|
|
26455
|
+
log.error(`Adapter Exception: ${error}`);
|
|
26456
|
+
done(error);
|
|
26457
|
+
}
|
|
26458
|
+
}).timeout(attemptTimeout);
|
|
26459
|
+
});
|
|
26460
|
+
|
|
26461
|
+
describe('#patchPluginsServicePoolsServiceOrderId - errors', () => {
|
|
26462
|
+
it('should have a patchPluginsServicePoolsServiceOrderId function', (done) => {
|
|
26463
|
+
try {
|
|
26464
|
+
assert.equal(true, typeof a.patchPluginsServicePoolsServiceOrderId === 'function');
|
|
26465
|
+
done();
|
|
26466
|
+
} catch (error) {
|
|
26467
|
+
log.error(`Test Failure: ${error}`);
|
|
26468
|
+
done(error);
|
|
26469
|
+
}
|
|
26470
|
+
}).timeout(attemptTimeout);
|
|
26471
|
+
it('should error if - missing id', (done) => {
|
|
26472
|
+
try {
|
|
26473
|
+
a.patchPluginsServicePoolsServiceOrderId(null, null, (data, error) => {
|
|
26474
|
+
try {
|
|
26475
|
+
const displayE = 'id is required';
|
|
26476
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-patchPluginsServicePoolsServiceOrderId', displayE);
|
|
26477
|
+
done();
|
|
26478
|
+
} catch (err) {
|
|
26479
|
+
log.error(`Test Failure: ${err}`);
|
|
26480
|
+
done(err);
|
|
26481
|
+
}
|
|
26482
|
+
});
|
|
26483
|
+
} catch (error) {
|
|
26484
|
+
log.error(`Adapter Exception: ${error}`);
|
|
26485
|
+
done(error);
|
|
26486
|
+
}
|
|
26487
|
+
}).timeout(attemptTimeout);
|
|
26488
|
+
it('should error if - missing data', (done) => {
|
|
26489
|
+
try {
|
|
26490
|
+
a.patchPluginsServicePoolsServiceOrderId('fakeparam', null, (data, error) => {
|
|
26491
|
+
try {
|
|
26492
|
+
const displayE = 'data is required';
|
|
26493
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-patchPluginsServicePoolsServiceOrderId', displayE);
|
|
26494
|
+
done();
|
|
26495
|
+
} catch (err) {
|
|
26496
|
+
log.error(`Test Failure: ${err}`);
|
|
26497
|
+
done(err);
|
|
26498
|
+
}
|
|
26499
|
+
});
|
|
26500
|
+
} catch (error) {
|
|
26501
|
+
log.error(`Adapter Exception: ${error}`);
|
|
26502
|
+
done(error);
|
|
26503
|
+
}
|
|
26504
|
+
}).timeout(attemptTimeout);
|
|
26505
|
+
});
|
|
26506
|
+
|
|
26507
|
+
describe('#deletePluginsServicePoolsServiceOrderId - errors', () => {
|
|
26508
|
+
it('should have a deletePluginsServicePoolsServiceOrderId function', (done) => {
|
|
26509
|
+
try {
|
|
26510
|
+
assert.equal(true, typeof a.deletePluginsServicePoolsServiceOrderId === 'function');
|
|
26511
|
+
done();
|
|
26512
|
+
} catch (error) {
|
|
26513
|
+
log.error(`Test Failure: ${error}`);
|
|
26514
|
+
done(error);
|
|
26515
|
+
}
|
|
26516
|
+
}).timeout(attemptTimeout);
|
|
26517
|
+
it('should error if - missing id', (done) => {
|
|
26518
|
+
try {
|
|
26519
|
+
a.deletePluginsServicePoolsServiceOrderId(null, (data, error) => {
|
|
26520
|
+
try {
|
|
26521
|
+
const displayE = 'id is required';
|
|
26522
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-netbox_v33-adapter-deletePluginsServicePoolsServiceOrderId', displayE);
|
|
26523
|
+
done();
|
|
26524
|
+
} catch (err) {
|
|
26525
|
+
log.error(`Test Failure: ${err}`);
|
|
26526
|
+
done(err);
|
|
26527
|
+
}
|
|
26528
|
+
});
|
|
26529
|
+
} catch (error) {
|
|
26530
|
+
log.error(`Adapter Exception: ${error}`);
|
|
26531
|
+
done(error);
|
|
26532
|
+
}
|
|
26533
|
+
}).timeout(attemptTimeout);
|
|
26534
|
+
});
|
|
25230
26535
|
});
|
|
25231
26536
|
});
|