@itentialopensource/adapter-f5_bigiq 0.5.6 → 0.5.8
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 +612 -0
- package/adapter.js +11310 -0
- package/entities/BIGIPAuthentication/action.json +106 -0
- package/entities/BIGIPAuthentication/schema.json +23 -0
- package/entities/BIGIPConfigurationManagement/action.json +310 -0
- package/entities/BIGIPConfigurationManagement/schema.json +33 -0
- package/entities/BIGIPLocalTrafficManager/action.json +1042 -0
- package/entities/BIGIPLocalTrafficManager/schema.json +69 -0
- package/entities/BIGIPNetwork/action.json +432 -0
- package/entities/BIGIPNetwork/schema.json +39 -0
- package/entities/BIGIPSystem/action.json +209 -0
- package/entities/BIGIPSystem/schema.json +28 -0
- package/package.json +2 -2
- package/pronghorn.json +5958 -0
- package/report/adapterInfo.json +7 -7
- package/test/integration/adapterTestIntegration.js +2596 -0
- package/test/unit/adapterTestUnit.js +4795 -1
|
@@ -10355,5 +10355,2601 @@ describe('[integration] F5BigIQ Adapter Test', () => {
|
|
|
10355
10355
|
}
|
|
10356
10356
|
}).timeout(attemptTimeout);
|
|
10357
10357
|
});
|
|
10358
|
+
|
|
10359
|
+
describe('#getNetVlans - errors', () => {
|
|
10360
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
10361
|
+
try {
|
|
10362
|
+
a.getNetVlans('fakedata', null, null, (data, error) => {
|
|
10363
|
+
try {
|
|
10364
|
+
if (stub) {
|
|
10365
|
+
const displayE = 'Error 400 received on request';
|
|
10366
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
10367
|
+
} else {
|
|
10368
|
+
runCommonAsserts(data, error);
|
|
10369
|
+
}
|
|
10370
|
+
saveMockData('BIGIPNetwork', 'getNetVlans', 'default', data);
|
|
10371
|
+
done();
|
|
10372
|
+
} catch (err) {
|
|
10373
|
+
log.error(`Test Failure: ${err}`);
|
|
10374
|
+
done(err);
|
|
10375
|
+
}
|
|
10376
|
+
});
|
|
10377
|
+
} catch (error) {
|
|
10378
|
+
log.error(`Adapter Exception: ${error}`);
|
|
10379
|
+
done(error);
|
|
10380
|
+
}
|
|
10381
|
+
}).timeout(attemptTimeout);
|
|
10382
|
+
});
|
|
10383
|
+
|
|
10384
|
+
const bIGIPNetworkCreateNetVlanBodyParam = {};
|
|
10385
|
+
describe('#createNetVlan - errors', () => {
|
|
10386
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
10387
|
+
try {
|
|
10388
|
+
a.createNetVlan('fakedata', bIGIPNetworkCreateNetVlanBodyParam, null, (data, error) => {
|
|
10389
|
+
try {
|
|
10390
|
+
if (stub) {
|
|
10391
|
+
const displayE = 'Error 400 received on request';
|
|
10392
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
10393
|
+
} else {
|
|
10394
|
+
runCommonAsserts(data, error);
|
|
10395
|
+
}
|
|
10396
|
+
saveMockData('BIGIPNetwork', 'createNetVlan', 'default', data);
|
|
10397
|
+
done();
|
|
10398
|
+
} catch (err) {
|
|
10399
|
+
log.error(`Test Failure: ${err}`);
|
|
10400
|
+
done(err);
|
|
10401
|
+
}
|
|
10402
|
+
});
|
|
10403
|
+
} catch (error) {
|
|
10404
|
+
log.error(`Adapter Exception: ${error}`);
|
|
10405
|
+
done(error);
|
|
10406
|
+
}
|
|
10407
|
+
}).timeout(attemptTimeout);
|
|
10408
|
+
});
|
|
10409
|
+
|
|
10410
|
+
describe('#getNetVlanById - errors', () => {
|
|
10411
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
10412
|
+
try {
|
|
10413
|
+
a.getNetVlanById('fakedata', 'fakedata', null, null, (data, error) => {
|
|
10414
|
+
try {
|
|
10415
|
+
if (stub) {
|
|
10416
|
+
const displayE = 'Error 400 received on request';
|
|
10417
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
10418
|
+
} else {
|
|
10419
|
+
runCommonAsserts(data, error);
|
|
10420
|
+
}
|
|
10421
|
+
saveMockData('BIGIPNetwork', 'getNetVlanById', 'default', data);
|
|
10422
|
+
done();
|
|
10423
|
+
} catch (err) {
|
|
10424
|
+
log.error(`Test Failure: ${err}`);
|
|
10425
|
+
done(err);
|
|
10426
|
+
}
|
|
10427
|
+
});
|
|
10428
|
+
} catch (error) {
|
|
10429
|
+
log.error(`Adapter Exception: ${error}`);
|
|
10430
|
+
done(error);
|
|
10431
|
+
}
|
|
10432
|
+
}).timeout(attemptTimeout);
|
|
10433
|
+
});
|
|
10434
|
+
|
|
10435
|
+
const bIGIPNetworkUpdateNetVlanBodyParam = {};
|
|
10436
|
+
describe('#updateNetVlan - errors', () => {
|
|
10437
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
10438
|
+
try {
|
|
10439
|
+
a.updateNetVlan('fakedata', 'fakedata', bIGIPNetworkUpdateNetVlanBodyParam, null, (data, error) => {
|
|
10440
|
+
try {
|
|
10441
|
+
if (stub) {
|
|
10442
|
+
const displayE = 'Error 400 received on request';
|
|
10443
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
10444
|
+
} else {
|
|
10445
|
+
runCommonAsserts(data, error);
|
|
10446
|
+
}
|
|
10447
|
+
saveMockData('BIGIPNetwork', 'updateNetVlan', 'default', data);
|
|
10448
|
+
done();
|
|
10449
|
+
} catch (err) {
|
|
10450
|
+
log.error(`Test Failure: ${err}`);
|
|
10451
|
+
done(err);
|
|
10452
|
+
}
|
|
10453
|
+
});
|
|
10454
|
+
} catch (error) {
|
|
10455
|
+
log.error(`Adapter Exception: ${error}`);
|
|
10456
|
+
done(error);
|
|
10457
|
+
}
|
|
10458
|
+
}).timeout(attemptTimeout);
|
|
10459
|
+
});
|
|
10460
|
+
|
|
10461
|
+
describe('#deleteNetVlan - errors', () => {
|
|
10462
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
10463
|
+
try {
|
|
10464
|
+
a.deleteNetVlan('fakedata', 'fakedata', null, (data, error) => {
|
|
10465
|
+
try {
|
|
10466
|
+
if (stub) {
|
|
10467
|
+
const displayE = 'Error 400 received on request';
|
|
10468
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
10469
|
+
} else {
|
|
10470
|
+
runCommonAsserts(data, error);
|
|
10471
|
+
}
|
|
10472
|
+
saveMockData('BIGIPNetwork', 'deleteNetVlan', 'default', data);
|
|
10473
|
+
done();
|
|
10474
|
+
} catch (err) {
|
|
10475
|
+
log.error(`Test Failure: ${err}`);
|
|
10476
|
+
done(err);
|
|
10477
|
+
}
|
|
10478
|
+
});
|
|
10479
|
+
} catch (error) {
|
|
10480
|
+
log.error(`Adapter Exception: ${error}`);
|
|
10481
|
+
done(error);
|
|
10482
|
+
}
|
|
10483
|
+
}).timeout(attemptTimeout);
|
|
10484
|
+
});
|
|
10485
|
+
|
|
10486
|
+
const bIGIPNetworkPatchNetVlanBodyParam = {};
|
|
10487
|
+
describe('#patchNetVlan - errors', () => {
|
|
10488
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
10489
|
+
try {
|
|
10490
|
+
a.patchNetVlan('fakedata', 'fakedata', bIGIPNetworkPatchNetVlanBodyParam, null, (data, error) => {
|
|
10491
|
+
try {
|
|
10492
|
+
if (stub) {
|
|
10493
|
+
const displayE = 'Error 400 received on request';
|
|
10494
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
10495
|
+
} else {
|
|
10496
|
+
runCommonAsserts(data, error);
|
|
10497
|
+
}
|
|
10498
|
+
saveMockData('BIGIPNetwork', 'patchNetVlan', 'default', data);
|
|
10499
|
+
done();
|
|
10500
|
+
} catch (err) {
|
|
10501
|
+
log.error(`Test Failure: ${err}`);
|
|
10502
|
+
done(err);
|
|
10503
|
+
}
|
|
10504
|
+
});
|
|
10505
|
+
} catch (error) {
|
|
10506
|
+
log.error(`Adapter Exception: ${error}`);
|
|
10507
|
+
done(error);
|
|
10508
|
+
}
|
|
10509
|
+
}).timeout(attemptTimeout);
|
|
10510
|
+
});
|
|
10511
|
+
|
|
10512
|
+
describe('#getAllNetSelfIPs - errors', () => {
|
|
10513
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
10514
|
+
try {
|
|
10515
|
+
a.getAllNetSelfIPs('fakedata', null, null, (data, error) => {
|
|
10516
|
+
try {
|
|
10517
|
+
if (stub) {
|
|
10518
|
+
const displayE = 'Error 400 received on request';
|
|
10519
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
10520
|
+
} else {
|
|
10521
|
+
runCommonAsserts(data, error);
|
|
10522
|
+
}
|
|
10523
|
+
saveMockData('BIGIPNetwork', 'getAllNetSelfIPs', 'default', data);
|
|
10524
|
+
done();
|
|
10525
|
+
} catch (err) {
|
|
10526
|
+
log.error(`Test Failure: ${err}`);
|
|
10527
|
+
done(err);
|
|
10528
|
+
}
|
|
10529
|
+
});
|
|
10530
|
+
} catch (error) {
|
|
10531
|
+
log.error(`Adapter Exception: ${error}`);
|
|
10532
|
+
done(error);
|
|
10533
|
+
}
|
|
10534
|
+
}).timeout(attemptTimeout);
|
|
10535
|
+
});
|
|
10536
|
+
|
|
10537
|
+
const bIGIPNetworkCreateNetSelfIPBodyParam = {};
|
|
10538
|
+
describe('#createNetSelfIP - errors', () => {
|
|
10539
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
10540
|
+
try {
|
|
10541
|
+
a.createNetSelfIP('fakedata', bIGIPNetworkCreateNetSelfIPBodyParam, null, (data, error) => {
|
|
10542
|
+
try {
|
|
10543
|
+
if (stub) {
|
|
10544
|
+
const displayE = 'Error 400 received on request';
|
|
10545
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
10546
|
+
} else {
|
|
10547
|
+
runCommonAsserts(data, error);
|
|
10548
|
+
}
|
|
10549
|
+
saveMockData('BIGIPNetwork', 'createNetSelfIP', 'default', data);
|
|
10550
|
+
done();
|
|
10551
|
+
} catch (err) {
|
|
10552
|
+
log.error(`Test Failure: ${err}`);
|
|
10553
|
+
done(err);
|
|
10554
|
+
}
|
|
10555
|
+
});
|
|
10556
|
+
} catch (error) {
|
|
10557
|
+
log.error(`Adapter Exception: ${error}`);
|
|
10558
|
+
done(error);
|
|
10559
|
+
}
|
|
10560
|
+
}).timeout(attemptTimeout);
|
|
10561
|
+
});
|
|
10562
|
+
|
|
10563
|
+
describe('#getNetSelfIPByName - errors', () => {
|
|
10564
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
10565
|
+
try {
|
|
10566
|
+
a.getNetSelfIPByName('fakedata', 'fakedata', null, null, (data, error) => {
|
|
10567
|
+
try {
|
|
10568
|
+
if (stub) {
|
|
10569
|
+
const displayE = 'Error 400 received on request';
|
|
10570
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
10571
|
+
} else {
|
|
10572
|
+
runCommonAsserts(data, error);
|
|
10573
|
+
}
|
|
10574
|
+
saveMockData('BIGIPNetwork', 'getNetSelfIPByName', 'default', data);
|
|
10575
|
+
done();
|
|
10576
|
+
} catch (err) {
|
|
10577
|
+
log.error(`Test Failure: ${err}`);
|
|
10578
|
+
done(err);
|
|
10579
|
+
}
|
|
10580
|
+
});
|
|
10581
|
+
} catch (error) {
|
|
10582
|
+
log.error(`Adapter Exception: ${error}`);
|
|
10583
|
+
done(error);
|
|
10584
|
+
}
|
|
10585
|
+
}).timeout(attemptTimeout);
|
|
10586
|
+
});
|
|
10587
|
+
|
|
10588
|
+
const bIGIPNetworkUpdateNetSelfIPBodyParam = {};
|
|
10589
|
+
describe('#updateNetSelfIP - errors', () => {
|
|
10590
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
10591
|
+
try {
|
|
10592
|
+
a.updateNetSelfIP('fakedata', 'fakedata', bIGIPNetworkUpdateNetSelfIPBodyParam, null, (data, error) => {
|
|
10593
|
+
try {
|
|
10594
|
+
if (stub) {
|
|
10595
|
+
const displayE = 'Error 400 received on request';
|
|
10596
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
10597
|
+
} else {
|
|
10598
|
+
runCommonAsserts(data, error);
|
|
10599
|
+
}
|
|
10600
|
+
saveMockData('BIGIPNetwork', 'updateNetSelfIP', 'default', data);
|
|
10601
|
+
done();
|
|
10602
|
+
} catch (err) {
|
|
10603
|
+
log.error(`Test Failure: ${err}`);
|
|
10604
|
+
done(err);
|
|
10605
|
+
}
|
|
10606
|
+
});
|
|
10607
|
+
} catch (error) {
|
|
10608
|
+
log.error(`Adapter Exception: ${error}`);
|
|
10609
|
+
done(error);
|
|
10610
|
+
}
|
|
10611
|
+
}).timeout(attemptTimeout);
|
|
10612
|
+
});
|
|
10613
|
+
|
|
10614
|
+
describe('#deleteNetSelfIP - errors', () => {
|
|
10615
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
10616
|
+
try {
|
|
10617
|
+
a.deleteNetSelfIP('fakedata', 'fakedata', null, (data, error) => {
|
|
10618
|
+
try {
|
|
10619
|
+
if (stub) {
|
|
10620
|
+
const displayE = 'Error 400 received on request';
|
|
10621
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
10622
|
+
} else {
|
|
10623
|
+
runCommonAsserts(data, error);
|
|
10624
|
+
}
|
|
10625
|
+
saveMockData('BIGIPNetwork', 'deleteNetSelfIP', 'default', data);
|
|
10626
|
+
done();
|
|
10627
|
+
} catch (err) {
|
|
10628
|
+
log.error(`Test Failure: ${err}`);
|
|
10629
|
+
done(err);
|
|
10630
|
+
}
|
|
10631
|
+
});
|
|
10632
|
+
} catch (error) {
|
|
10633
|
+
log.error(`Adapter Exception: ${error}`);
|
|
10634
|
+
done(error);
|
|
10635
|
+
}
|
|
10636
|
+
}).timeout(attemptTimeout);
|
|
10637
|
+
});
|
|
10638
|
+
|
|
10639
|
+
const bIGIPNetworkPatchNetSelfIPBodyParam = {};
|
|
10640
|
+
describe('#patchNetSelfIP - errors', () => {
|
|
10641
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
10642
|
+
try {
|
|
10643
|
+
a.patchNetSelfIP('fakedata', 'fakedata', bIGIPNetworkPatchNetSelfIPBodyParam, null, (data, error) => {
|
|
10644
|
+
try {
|
|
10645
|
+
if (stub) {
|
|
10646
|
+
const displayE = 'Error 400 received on request';
|
|
10647
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
10648
|
+
} else {
|
|
10649
|
+
runCommonAsserts(data, error);
|
|
10650
|
+
}
|
|
10651
|
+
saveMockData('BIGIPNetwork', 'patchNetSelfIP', 'default', data);
|
|
10652
|
+
done();
|
|
10653
|
+
} catch (err) {
|
|
10654
|
+
log.error(`Test Failure: ${err}`);
|
|
10655
|
+
done(err);
|
|
10656
|
+
}
|
|
10657
|
+
});
|
|
10658
|
+
} catch (error) {
|
|
10659
|
+
log.error(`Adapter Exception: ${error}`);
|
|
10660
|
+
done(error);
|
|
10661
|
+
}
|
|
10662
|
+
}).timeout(attemptTimeout);
|
|
10663
|
+
});
|
|
10664
|
+
|
|
10665
|
+
describe('#getNetRoutes - errors', () => {
|
|
10666
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
10667
|
+
try {
|
|
10668
|
+
a.getNetRoutes('fakedata', null, null, (data, error) => {
|
|
10669
|
+
try {
|
|
10670
|
+
if (stub) {
|
|
10671
|
+
const displayE = 'Error 400 received on request';
|
|
10672
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
10673
|
+
} else {
|
|
10674
|
+
runCommonAsserts(data, error);
|
|
10675
|
+
}
|
|
10676
|
+
saveMockData('BIGIPNetwork', 'getNetRoutes', 'default', data);
|
|
10677
|
+
done();
|
|
10678
|
+
} catch (err) {
|
|
10679
|
+
log.error(`Test Failure: ${err}`);
|
|
10680
|
+
done(err);
|
|
10681
|
+
}
|
|
10682
|
+
});
|
|
10683
|
+
} catch (error) {
|
|
10684
|
+
log.error(`Adapter Exception: ${error}`);
|
|
10685
|
+
done(error);
|
|
10686
|
+
}
|
|
10687
|
+
}).timeout(attemptTimeout);
|
|
10688
|
+
});
|
|
10689
|
+
|
|
10690
|
+
const bIGIPNetworkCreateNetRouteBodyParam = {};
|
|
10691
|
+
describe('#createNetRoute - errors', () => {
|
|
10692
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
10693
|
+
try {
|
|
10694
|
+
a.createNetRoute('fakedata', bIGIPNetworkCreateNetRouteBodyParam, null, (data, error) => {
|
|
10695
|
+
try {
|
|
10696
|
+
if (stub) {
|
|
10697
|
+
const displayE = 'Error 400 received on request';
|
|
10698
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
10699
|
+
} else {
|
|
10700
|
+
runCommonAsserts(data, error);
|
|
10701
|
+
}
|
|
10702
|
+
saveMockData('BIGIPNetwork', 'createNetRoute', 'default', data);
|
|
10703
|
+
done();
|
|
10704
|
+
} catch (err) {
|
|
10705
|
+
log.error(`Test Failure: ${err}`);
|
|
10706
|
+
done(err);
|
|
10707
|
+
}
|
|
10708
|
+
});
|
|
10709
|
+
} catch (error) {
|
|
10710
|
+
log.error(`Adapter Exception: ${error}`);
|
|
10711
|
+
done(error);
|
|
10712
|
+
}
|
|
10713
|
+
}).timeout(attemptTimeout);
|
|
10714
|
+
});
|
|
10715
|
+
|
|
10716
|
+
describe('#getNetRouteByName - errors', () => {
|
|
10717
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
10718
|
+
try {
|
|
10719
|
+
a.getNetRouteByName('fakedata', 'fakedata', null, null, (data, error) => {
|
|
10720
|
+
try {
|
|
10721
|
+
if (stub) {
|
|
10722
|
+
const displayE = 'Error 400 received on request';
|
|
10723
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
10724
|
+
} else {
|
|
10725
|
+
runCommonAsserts(data, error);
|
|
10726
|
+
}
|
|
10727
|
+
saveMockData('BIGIPNetwork', 'getNetRouteByName', 'default', data);
|
|
10728
|
+
done();
|
|
10729
|
+
} catch (err) {
|
|
10730
|
+
log.error(`Test Failure: ${err}`);
|
|
10731
|
+
done(err);
|
|
10732
|
+
}
|
|
10733
|
+
});
|
|
10734
|
+
} catch (error) {
|
|
10735
|
+
log.error(`Adapter Exception: ${error}`);
|
|
10736
|
+
done(error);
|
|
10737
|
+
}
|
|
10738
|
+
}).timeout(attemptTimeout);
|
|
10739
|
+
});
|
|
10740
|
+
|
|
10741
|
+
const bIGIPNetworkUpdateNetRouteBodyParam = {};
|
|
10742
|
+
describe('#updateNetRoute - errors', () => {
|
|
10743
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
10744
|
+
try {
|
|
10745
|
+
a.updateNetRoute('fakedata', 'fakedata', bIGIPNetworkUpdateNetRouteBodyParam, null, (data, error) => {
|
|
10746
|
+
try {
|
|
10747
|
+
if (stub) {
|
|
10748
|
+
const displayE = 'Error 400 received on request';
|
|
10749
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
10750
|
+
} else {
|
|
10751
|
+
runCommonAsserts(data, error);
|
|
10752
|
+
}
|
|
10753
|
+
saveMockData('BIGIPNetwork', 'updateNetRoute', 'default', data);
|
|
10754
|
+
done();
|
|
10755
|
+
} catch (err) {
|
|
10756
|
+
log.error(`Test Failure: ${err}`);
|
|
10757
|
+
done(err);
|
|
10758
|
+
}
|
|
10759
|
+
});
|
|
10760
|
+
} catch (error) {
|
|
10761
|
+
log.error(`Adapter Exception: ${error}`);
|
|
10762
|
+
done(error);
|
|
10763
|
+
}
|
|
10764
|
+
}).timeout(attemptTimeout);
|
|
10765
|
+
});
|
|
10766
|
+
|
|
10767
|
+
describe('#deleteNetRoute - errors', () => {
|
|
10768
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
10769
|
+
try {
|
|
10770
|
+
a.deleteNetRoute('fakedata', 'fakedata', null, (data, error) => {
|
|
10771
|
+
try {
|
|
10772
|
+
if (stub) {
|
|
10773
|
+
const displayE = 'Error 400 received on request';
|
|
10774
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
10775
|
+
} else {
|
|
10776
|
+
runCommonAsserts(data, error);
|
|
10777
|
+
}
|
|
10778
|
+
saveMockData('BIGIPNetwork', 'deleteNetRoute', 'default', data);
|
|
10779
|
+
done();
|
|
10780
|
+
} catch (err) {
|
|
10781
|
+
log.error(`Test Failure: ${err}`);
|
|
10782
|
+
done(err);
|
|
10783
|
+
}
|
|
10784
|
+
});
|
|
10785
|
+
} catch (error) {
|
|
10786
|
+
log.error(`Adapter Exception: ${error}`);
|
|
10787
|
+
done(error);
|
|
10788
|
+
}
|
|
10789
|
+
}).timeout(attemptTimeout);
|
|
10790
|
+
});
|
|
10791
|
+
|
|
10792
|
+
const bIGIPNetworkPatchNetRouteBodyParam = {};
|
|
10793
|
+
describe('#patchNetRoute - errors', () => {
|
|
10794
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
10795
|
+
try {
|
|
10796
|
+
a.patchNetRoute('fakedata', 'fakedata', bIGIPNetworkPatchNetRouteBodyParam, null, (data, error) => {
|
|
10797
|
+
try {
|
|
10798
|
+
if (stub) {
|
|
10799
|
+
const displayE = 'Error 400 received on request';
|
|
10800
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
10801
|
+
} else {
|
|
10802
|
+
runCommonAsserts(data, error);
|
|
10803
|
+
}
|
|
10804
|
+
saveMockData('BIGIPNetwork', 'patchNetRoute', 'default', data);
|
|
10805
|
+
done();
|
|
10806
|
+
} catch (err) {
|
|
10807
|
+
log.error(`Test Failure: ${err}`);
|
|
10808
|
+
done(err);
|
|
10809
|
+
}
|
|
10810
|
+
});
|
|
10811
|
+
} catch (error) {
|
|
10812
|
+
log.error(`Adapter Exception: ${error}`);
|
|
10813
|
+
done(error);
|
|
10814
|
+
}
|
|
10815
|
+
}).timeout(attemptTimeout);
|
|
10816
|
+
});
|
|
10817
|
+
|
|
10818
|
+
describe('#getNetInterfaces - errors', () => {
|
|
10819
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
10820
|
+
try {
|
|
10821
|
+
a.getNetInterfaces('fakedata', null, null, (data, error) => {
|
|
10822
|
+
try {
|
|
10823
|
+
if (stub) {
|
|
10824
|
+
const displayE = 'Error 400 received on request';
|
|
10825
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
10826
|
+
} else {
|
|
10827
|
+
runCommonAsserts(data, error);
|
|
10828
|
+
}
|
|
10829
|
+
saveMockData('BIGIPNetwork', 'getNetInterfaces', 'default', data);
|
|
10830
|
+
done();
|
|
10831
|
+
} catch (err) {
|
|
10832
|
+
log.error(`Test Failure: ${err}`);
|
|
10833
|
+
done(err);
|
|
10834
|
+
}
|
|
10835
|
+
});
|
|
10836
|
+
} catch (error) {
|
|
10837
|
+
log.error(`Adapter Exception: ${error}`);
|
|
10838
|
+
done(error);
|
|
10839
|
+
}
|
|
10840
|
+
}).timeout(attemptTimeout);
|
|
10841
|
+
});
|
|
10842
|
+
|
|
10843
|
+
describe('#getNetInterfaceByName - errors', () => {
|
|
10844
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
10845
|
+
try {
|
|
10846
|
+
a.getNetInterfaceByName('fakedata', 'fakedata', null, null, (data, error) => {
|
|
10847
|
+
try {
|
|
10848
|
+
if (stub) {
|
|
10849
|
+
const displayE = 'Error 400 received on request';
|
|
10850
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
10851
|
+
} else {
|
|
10852
|
+
runCommonAsserts(data, error);
|
|
10853
|
+
}
|
|
10854
|
+
saveMockData('BIGIPNetwork', 'getNetInterfaceByName', 'default', data);
|
|
10855
|
+
done();
|
|
10856
|
+
} catch (err) {
|
|
10857
|
+
log.error(`Test Failure: ${err}`);
|
|
10858
|
+
done(err);
|
|
10859
|
+
}
|
|
10860
|
+
});
|
|
10861
|
+
} catch (error) {
|
|
10862
|
+
log.error(`Adapter Exception: ${error}`);
|
|
10863
|
+
done(error);
|
|
10864
|
+
}
|
|
10865
|
+
}).timeout(attemptTimeout);
|
|
10866
|
+
});
|
|
10867
|
+
|
|
10868
|
+
const bIGIPNetworkUpdateNetInterfaceBodyParam = {};
|
|
10869
|
+
describe('#updateNetInterface - errors', () => {
|
|
10870
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
10871
|
+
try {
|
|
10872
|
+
a.updateNetInterface('fakedata', 'fakedata', bIGIPNetworkUpdateNetInterfaceBodyParam, null, (data, error) => {
|
|
10873
|
+
try {
|
|
10874
|
+
if (stub) {
|
|
10875
|
+
const displayE = 'Error 400 received on request';
|
|
10876
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
10877
|
+
} else {
|
|
10878
|
+
runCommonAsserts(data, error);
|
|
10879
|
+
}
|
|
10880
|
+
saveMockData('BIGIPNetwork', 'updateNetInterface', 'default', data);
|
|
10881
|
+
done();
|
|
10882
|
+
} catch (err) {
|
|
10883
|
+
log.error(`Test Failure: ${err}`);
|
|
10884
|
+
done(err);
|
|
10885
|
+
}
|
|
10886
|
+
});
|
|
10887
|
+
} catch (error) {
|
|
10888
|
+
log.error(`Adapter Exception: ${error}`);
|
|
10889
|
+
done(error);
|
|
10890
|
+
}
|
|
10891
|
+
}).timeout(attemptTimeout);
|
|
10892
|
+
});
|
|
10893
|
+
|
|
10894
|
+
describe('#getlTMNodes - errors', () => {
|
|
10895
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
10896
|
+
try {
|
|
10897
|
+
a.getlTMNodes('fakedata', null, null, (data, error) => {
|
|
10898
|
+
try {
|
|
10899
|
+
if (stub) {
|
|
10900
|
+
const displayE = 'Error 400 received on request';
|
|
10901
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
10902
|
+
} else {
|
|
10903
|
+
runCommonAsserts(data, error);
|
|
10904
|
+
}
|
|
10905
|
+
saveMockData('BIGIPLocalTrafficManager', 'getlTMNodes', 'default', data);
|
|
10906
|
+
done();
|
|
10907
|
+
} catch (err) {
|
|
10908
|
+
log.error(`Test Failure: ${err}`);
|
|
10909
|
+
done(err);
|
|
10910
|
+
}
|
|
10911
|
+
});
|
|
10912
|
+
} catch (error) {
|
|
10913
|
+
log.error(`Adapter Exception: ${error}`);
|
|
10914
|
+
done(error);
|
|
10915
|
+
}
|
|
10916
|
+
}).timeout(attemptTimeout);
|
|
10917
|
+
});
|
|
10918
|
+
|
|
10919
|
+
const bIGIPLocalTrafficManagerCreateLtmNodeBodyParam = {};
|
|
10920
|
+
describe('#createLtmNode - errors', () => {
|
|
10921
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
10922
|
+
try {
|
|
10923
|
+
a.createLtmNode('fakedata', bIGIPLocalTrafficManagerCreateLtmNodeBodyParam, null, (data, error) => {
|
|
10924
|
+
try {
|
|
10925
|
+
if (stub) {
|
|
10926
|
+
const displayE = 'Error 400 received on request';
|
|
10927
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
10928
|
+
} else {
|
|
10929
|
+
runCommonAsserts(data, error);
|
|
10930
|
+
}
|
|
10931
|
+
saveMockData('BIGIPLocalTrafficManager', 'createLtmNode', 'default', data);
|
|
10932
|
+
done();
|
|
10933
|
+
} catch (err) {
|
|
10934
|
+
log.error(`Test Failure: ${err}`);
|
|
10935
|
+
done(err);
|
|
10936
|
+
}
|
|
10937
|
+
});
|
|
10938
|
+
} catch (error) {
|
|
10939
|
+
log.error(`Adapter Exception: ${error}`);
|
|
10940
|
+
done(error);
|
|
10941
|
+
}
|
|
10942
|
+
}).timeout(attemptTimeout);
|
|
10943
|
+
});
|
|
10944
|
+
|
|
10945
|
+
describe('#getLtmNodeById - errors', () => {
|
|
10946
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
10947
|
+
try {
|
|
10948
|
+
a.getLtmNodeById('fakedata', 'fakedata', null, null, (data, error) => {
|
|
10949
|
+
try {
|
|
10950
|
+
if (stub) {
|
|
10951
|
+
const displayE = 'Error 400 received on request';
|
|
10952
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
10953
|
+
} else {
|
|
10954
|
+
runCommonAsserts(data, error);
|
|
10955
|
+
}
|
|
10956
|
+
saveMockData('BIGIPLocalTrafficManager', 'getLtmNodeById', 'default', data);
|
|
10957
|
+
done();
|
|
10958
|
+
} catch (err) {
|
|
10959
|
+
log.error(`Test Failure: ${err}`);
|
|
10960
|
+
done(err);
|
|
10961
|
+
}
|
|
10962
|
+
});
|
|
10963
|
+
} catch (error) {
|
|
10964
|
+
log.error(`Adapter Exception: ${error}`);
|
|
10965
|
+
done(error);
|
|
10966
|
+
}
|
|
10967
|
+
}).timeout(attemptTimeout);
|
|
10968
|
+
});
|
|
10969
|
+
|
|
10970
|
+
const bIGIPLocalTrafficManagerUpdateLtmNodeBodyParam = {};
|
|
10971
|
+
describe('#updateLtmNode - errors', () => {
|
|
10972
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
10973
|
+
try {
|
|
10974
|
+
a.updateLtmNode('fakedata', 'fakedata', bIGIPLocalTrafficManagerUpdateLtmNodeBodyParam, null, (data, error) => {
|
|
10975
|
+
try {
|
|
10976
|
+
if (stub) {
|
|
10977
|
+
const displayE = 'Error 400 received on request';
|
|
10978
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
10979
|
+
} else {
|
|
10980
|
+
runCommonAsserts(data, error);
|
|
10981
|
+
}
|
|
10982
|
+
saveMockData('BIGIPLocalTrafficManager', 'updateLtmNode', 'default', data);
|
|
10983
|
+
done();
|
|
10984
|
+
} catch (err) {
|
|
10985
|
+
log.error(`Test Failure: ${err}`);
|
|
10986
|
+
done(err);
|
|
10987
|
+
}
|
|
10988
|
+
});
|
|
10989
|
+
} catch (error) {
|
|
10990
|
+
log.error(`Adapter Exception: ${error}`);
|
|
10991
|
+
done(error);
|
|
10992
|
+
}
|
|
10993
|
+
}).timeout(attemptTimeout);
|
|
10994
|
+
});
|
|
10995
|
+
|
|
10996
|
+
describe('#deleteLtmNode - errors', () => {
|
|
10997
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
10998
|
+
try {
|
|
10999
|
+
a.deleteLtmNode('fakedata', 'fakedata', null, (data, error) => {
|
|
11000
|
+
try {
|
|
11001
|
+
if (stub) {
|
|
11002
|
+
const displayE = 'Error 400 received on request';
|
|
11003
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11004
|
+
} else {
|
|
11005
|
+
runCommonAsserts(data, error);
|
|
11006
|
+
}
|
|
11007
|
+
saveMockData('BIGIPLocalTrafficManager', 'deleteLtmNode', 'default', data);
|
|
11008
|
+
done();
|
|
11009
|
+
} catch (err) {
|
|
11010
|
+
log.error(`Test Failure: ${err}`);
|
|
11011
|
+
done(err);
|
|
11012
|
+
}
|
|
11013
|
+
});
|
|
11014
|
+
} catch (error) {
|
|
11015
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11016
|
+
done(error);
|
|
11017
|
+
}
|
|
11018
|
+
}).timeout(attemptTimeout);
|
|
11019
|
+
});
|
|
11020
|
+
|
|
11021
|
+
const bIGIPLocalTrafficManagerPatchLtmNodeBodyParam = {};
|
|
11022
|
+
describe('#patchLtmNode - errors', () => {
|
|
11023
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11024
|
+
try {
|
|
11025
|
+
a.patchLtmNode('fakedata', 'fakedata', bIGIPLocalTrafficManagerPatchLtmNodeBodyParam, null, (data, error) => {
|
|
11026
|
+
try {
|
|
11027
|
+
if (stub) {
|
|
11028
|
+
const displayE = 'Error 400 received on request';
|
|
11029
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11030
|
+
} else {
|
|
11031
|
+
runCommonAsserts(data, error);
|
|
11032
|
+
}
|
|
11033
|
+
saveMockData('BIGIPLocalTrafficManager', 'patchLtmNode', 'default', data);
|
|
11034
|
+
done();
|
|
11035
|
+
} catch (err) {
|
|
11036
|
+
log.error(`Test Failure: ${err}`);
|
|
11037
|
+
done(err);
|
|
11038
|
+
}
|
|
11039
|
+
});
|
|
11040
|
+
} catch (error) {
|
|
11041
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11042
|
+
done(error);
|
|
11043
|
+
}
|
|
11044
|
+
}).timeout(attemptTimeout);
|
|
11045
|
+
});
|
|
11046
|
+
|
|
11047
|
+
describe('#getLtmVirtualServers - errors', () => {
|
|
11048
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11049
|
+
try {
|
|
11050
|
+
a.getLtmVirtualServers('fakedata', null, null, (data, error) => {
|
|
11051
|
+
try {
|
|
11052
|
+
if (stub) {
|
|
11053
|
+
const displayE = 'Error 400 received on request';
|
|
11054
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11055
|
+
} else {
|
|
11056
|
+
runCommonAsserts(data, error);
|
|
11057
|
+
}
|
|
11058
|
+
saveMockData('BIGIPLocalTrafficManager', 'getLtmVirtualServers', 'default', data);
|
|
11059
|
+
done();
|
|
11060
|
+
} catch (err) {
|
|
11061
|
+
log.error(`Test Failure: ${err}`);
|
|
11062
|
+
done(err);
|
|
11063
|
+
}
|
|
11064
|
+
});
|
|
11065
|
+
} catch (error) {
|
|
11066
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11067
|
+
done(error);
|
|
11068
|
+
}
|
|
11069
|
+
}).timeout(attemptTimeout);
|
|
11070
|
+
});
|
|
11071
|
+
|
|
11072
|
+
const bIGIPLocalTrafficManagerCreateLtmVirtualServerBodyParam = {};
|
|
11073
|
+
describe('#createLtmVirtualServer - errors', () => {
|
|
11074
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11075
|
+
try {
|
|
11076
|
+
a.createLtmVirtualServer('fakedata', bIGIPLocalTrafficManagerCreateLtmVirtualServerBodyParam, null, (data, error) => {
|
|
11077
|
+
try {
|
|
11078
|
+
if (stub) {
|
|
11079
|
+
const displayE = 'Error 400 received on request';
|
|
11080
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11081
|
+
} else {
|
|
11082
|
+
runCommonAsserts(data, error);
|
|
11083
|
+
}
|
|
11084
|
+
saveMockData('BIGIPLocalTrafficManager', 'createLtmVirtualServer', 'default', data);
|
|
11085
|
+
done();
|
|
11086
|
+
} catch (err) {
|
|
11087
|
+
log.error(`Test Failure: ${err}`);
|
|
11088
|
+
done(err);
|
|
11089
|
+
}
|
|
11090
|
+
});
|
|
11091
|
+
} catch (error) {
|
|
11092
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11093
|
+
done(error);
|
|
11094
|
+
}
|
|
11095
|
+
}).timeout(attemptTimeout);
|
|
11096
|
+
});
|
|
11097
|
+
|
|
11098
|
+
describe('#getLtmVirtualServerById - errors', () => {
|
|
11099
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11100
|
+
try {
|
|
11101
|
+
a.getLtmVirtualServerById('fakedata', 'fakedata', null, null, (data, error) => {
|
|
11102
|
+
try {
|
|
11103
|
+
if (stub) {
|
|
11104
|
+
const displayE = 'Error 400 received on request';
|
|
11105
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11106
|
+
} else {
|
|
11107
|
+
runCommonAsserts(data, error);
|
|
11108
|
+
}
|
|
11109
|
+
saveMockData('BIGIPLocalTrafficManager', 'getLtmVirtualServerById', 'default', data);
|
|
11110
|
+
done();
|
|
11111
|
+
} catch (err) {
|
|
11112
|
+
log.error(`Test Failure: ${err}`);
|
|
11113
|
+
done(err);
|
|
11114
|
+
}
|
|
11115
|
+
});
|
|
11116
|
+
} catch (error) {
|
|
11117
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11118
|
+
done(error);
|
|
11119
|
+
}
|
|
11120
|
+
}).timeout(attemptTimeout);
|
|
11121
|
+
});
|
|
11122
|
+
|
|
11123
|
+
const bIGIPLocalTrafficManagerUpdateLtmVirtualServerBodyParam = {};
|
|
11124
|
+
describe('#updateLtmVirtualServer - errors', () => {
|
|
11125
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11126
|
+
try {
|
|
11127
|
+
a.updateLtmVirtualServer('fakedata', 'fakedata', bIGIPLocalTrafficManagerUpdateLtmVirtualServerBodyParam, null, (data, error) => {
|
|
11128
|
+
try {
|
|
11129
|
+
if (stub) {
|
|
11130
|
+
const displayE = 'Error 400 received on request';
|
|
11131
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11132
|
+
} else {
|
|
11133
|
+
runCommonAsserts(data, error);
|
|
11134
|
+
}
|
|
11135
|
+
saveMockData('BIGIPLocalTrafficManager', 'updateLtmVirtualServer', 'default', data);
|
|
11136
|
+
done();
|
|
11137
|
+
} catch (err) {
|
|
11138
|
+
log.error(`Test Failure: ${err}`);
|
|
11139
|
+
done(err);
|
|
11140
|
+
}
|
|
11141
|
+
});
|
|
11142
|
+
} catch (error) {
|
|
11143
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11144
|
+
done(error);
|
|
11145
|
+
}
|
|
11146
|
+
}).timeout(attemptTimeout);
|
|
11147
|
+
});
|
|
11148
|
+
|
|
11149
|
+
const bIGIPLocalTrafficManagerPatchLtmVirtualServerBodyParam = {};
|
|
11150
|
+
describe('#patchLtmVirtualServer - errors', () => {
|
|
11151
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11152
|
+
try {
|
|
11153
|
+
a.patchLtmVirtualServer('fakedata', 'fakedata', bIGIPLocalTrafficManagerPatchLtmVirtualServerBodyParam, null, (data, error) => {
|
|
11154
|
+
try {
|
|
11155
|
+
if (stub) {
|
|
11156
|
+
const displayE = 'Error 400 received on request';
|
|
11157
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11158
|
+
} else {
|
|
11159
|
+
runCommonAsserts(data, error);
|
|
11160
|
+
}
|
|
11161
|
+
saveMockData('BIGIPLocalTrafficManager', 'patchLtmVirtualServer', 'default', data);
|
|
11162
|
+
done();
|
|
11163
|
+
} catch (err) {
|
|
11164
|
+
log.error(`Test Failure: ${err}`);
|
|
11165
|
+
done(err);
|
|
11166
|
+
}
|
|
11167
|
+
});
|
|
11168
|
+
} catch (error) {
|
|
11169
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11170
|
+
done(error);
|
|
11171
|
+
}
|
|
11172
|
+
}).timeout(attemptTimeout);
|
|
11173
|
+
});
|
|
11174
|
+
|
|
11175
|
+
describe('#deleteLtmVirtualServerById - errors', () => {
|
|
11176
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11177
|
+
try {
|
|
11178
|
+
a.deleteLtmVirtualServerById('fakedata', 'fakedata', null, (data, error) => {
|
|
11179
|
+
try {
|
|
11180
|
+
if (stub) {
|
|
11181
|
+
const displayE = 'Error 400 received on request';
|
|
11182
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11183
|
+
} else {
|
|
11184
|
+
runCommonAsserts(data, error);
|
|
11185
|
+
}
|
|
11186
|
+
saveMockData('BIGIPLocalTrafficManager', 'deleteLtmVirtualServerById', 'default', data);
|
|
11187
|
+
done();
|
|
11188
|
+
} catch (err) {
|
|
11189
|
+
log.error(`Test Failure: ${err}`);
|
|
11190
|
+
done(err);
|
|
11191
|
+
}
|
|
11192
|
+
});
|
|
11193
|
+
} catch (error) {
|
|
11194
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11195
|
+
done(error);
|
|
11196
|
+
}
|
|
11197
|
+
}).timeout(attemptTimeout);
|
|
11198
|
+
});
|
|
11199
|
+
|
|
11200
|
+
describe('#getLtmVirtualAddresses - errors', () => {
|
|
11201
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11202
|
+
try {
|
|
11203
|
+
a.getLtmVirtualAddresses('fakedata', null, null, (data, error) => {
|
|
11204
|
+
try {
|
|
11205
|
+
if (stub) {
|
|
11206
|
+
const displayE = 'Error 400 received on request';
|
|
11207
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11208
|
+
} else {
|
|
11209
|
+
runCommonAsserts(data, error);
|
|
11210
|
+
}
|
|
11211
|
+
saveMockData('BIGIPLocalTrafficManager', 'getLtmVirtualAddresses', 'default', data);
|
|
11212
|
+
done();
|
|
11213
|
+
} catch (err) {
|
|
11214
|
+
log.error(`Test Failure: ${err}`);
|
|
11215
|
+
done(err);
|
|
11216
|
+
}
|
|
11217
|
+
});
|
|
11218
|
+
} catch (error) {
|
|
11219
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11220
|
+
done(error);
|
|
11221
|
+
}
|
|
11222
|
+
}).timeout(attemptTimeout);
|
|
11223
|
+
});
|
|
11224
|
+
|
|
11225
|
+
const bIGIPLocalTrafficManagerCreateLtmVirtualAddressBodyParam = {};
|
|
11226
|
+
describe('#createLtmVirtualAddress - errors', () => {
|
|
11227
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11228
|
+
try {
|
|
11229
|
+
a.createLtmVirtualAddress('fakedata', bIGIPLocalTrafficManagerCreateLtmVirtualAddressBodyParam, null, (data, error) => {
|
|
11230
|
+
try {
|
|
11231
|
+
if (stub) {
|
|
11232
|
+
const displayE = 'Error 400 received on request';
|
|
11233
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11234
|
+
} else {
|
|
11235
|
+
runCommonAsserts(data, error);
|
|
11236
|
+
}
|
|
11237
|
+
saveMockData('BIGIPLocalTrafficManager', 'createLtmVirtualAddress', 'default', data);
|
|
11238
|
+
done();
|
|
11239
|
+
} catch (err) {
|
|
11240
|
+
log.error(`Test Failure: ${err}`);
|
|
11241
|
+
done(err);
|
|
11242
|
+
}
|
|
11243
|
+
});
|
|
11244
|
+
} catch (error) {
|
|
11245
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11246
|
+
done(error);
|
|
11247
|
+
}
|
|
11248
|
+
}).timeout(attemptTimeout);
|
|
11249
|
+
});
|
|
11250
|
+
|
|
11251
|
+
describe('#getLtmVirtualAddressById - errors', () => {
|
|
11252
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11253
|
+
try {
|
|
11254
|
+
a.getLtmVirtualAddressById('fakedata', 'fakedata', null, null, (data, error) => {
|
|
11255
|
+
try {
|
|
11256
|
+
if (stub) {
|
|
11257
|
+
const displayE = 'Error 400 received on request';
|
|
11258
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11259
|
+
} else {
|
|
11260
|
+
runCommonAsserts(data, error);
|
|
11261
|
+
}
|
|
11262
|
+
saveMockData('BIGIPLocalTrafficManager', 'getLtmVirtualAddressById', 'default', data);
|
|
11263
|
+
done();
|
|
11264
|
+
} catch (err) {
|
|
11265
|
+
log.error(`Test Failure: ${err}`);
|
|
11266
|
+
done(err);
|
|
11267
|
+
}
|
|
11268
|
+
});
|
|
11269
|
+
} catch (error) {
|
|
11270
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11271
|
+
done(error);
|
|
11272
|
+
}
|
|
11273
|
+
}).timeout(attemptTimeout);
|
|
11274
|
+
});
|
|
11275
|
+
|
|
11276
|
+
const bIGIPLocalTrafficManagerUpdateLtmVirtualAddressBodyParam = {};
|
|
11277
|
+
describe('#updateLtmVirtualAddress - errors', () => {
|
|
11278
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11279
|
+
try {
|
|
11280
|
+
a.updateLtmVirtualAddress('fakedata', 'fakedata', bIGIPLocalTrafficManagerUpdateLtmVirtualAddressBodyParam, null, (data, error) => {
|
|
11281
|
+
try {
|
|
11282
|
+
if (stub) {
|
|
11283
|
+
const displayE = 'Error 400 received on request';
|
|
11284
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11285
|
+
} else {
|
|
11286
|
+
runCommonAsserts(data, error);
|
|
11287
|
+
}
|
|
11288
|
+
saveMockData('BIGIPLocalTrafficManager', 'updateLtmVirtualAddress', 'default', data);
|
|
11289
|
+
done();
|
|
11290
|
+
} catch (err) {
|
|
11291
|
+
log.error(`Test Failure: ${err}`);
|
|
11292
|
+
done(err);
|
|
11293
|
+
}
|
|
11294
|
+
});
|
|
11295
|
+
} catch (error) {
|
|
11296
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11297
|
+
done(error);
|
|
11298
|
+
}
|
|
11299
|
+
}).timeout(attemptTimeout);
|
|
11300
|
+
});
|
|
11301
|
+
|
|
11302
|
+
describe('#deleteLtmVirtualAddress - errors', () => {
|
|
11303
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11304
|
+
try {
|
|
11305
|
+
a.deleteLtmVirtualAddress('fakedata', 'fakedata', null, (data, error) => {
|
|
11306
|
+
try {
|
|
11307
|
+
if (stub) {
|
|
11308
|
+
const displayE = 'Error 400 received on request';
|
|
11309
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11310
|
+
} else {
|
|
11311
|
+
runCommonAsserts(data, error);
|
|
11312
|
+
}
|
|
11313
|
+
saveMockData('BIGIPLocalTrafficManager', 'deleteLtmVirtualAddress', 'default', data);
|
|
11314
|
+
done();
|
|
11315
|
+
} catch (err) {
|
|
11316
|
+
log.error(`Test Failure: ${err}`);
|
|
11317
|
+
done(err);
|
|
11318
|
+
}
|
|
11319
|
+
});
|
|
11320
|
+
} catch (error) {
|
|
11321
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11322
|
+
done(error);
|
|
11323
|
+
}
|
|
11324
|
+
}).timeout(attemptTimeout);
|
|
11325
|
+
});
|
|
11326
|
+
|
|
11327
|
+
const bIGIPLocalTrafficManagerPatchLtmVirtualAddressBodyParam = {};
|
|
11328
|
+
describe('#patchLtmVirtualAddress - errors', () => {
|
|
11329
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11330
|
+
try {
|
|
11331
|
+
a.patchLtmVirtualAddress('fakedata', 'fakedata', bIGIPLocalTrafficManagerPatchLtmVirtualAddressBodyParam, null, (data, error) => {
|
|
11332
|
+
try {
|
|
11333
|
+
if (stub) {
|
|
11334
|
+
const displayE = 'Error 400 received on request';
|
|
11335
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11336
|
+
} else {
|
|
11337
|
+
runCommonAsserts(data, error);
|
|
11338
|
+
}
|
|
11339
|
+
saveMockData('BIGIPLocalTrafficManager', 'patchLtmVirtualAddress', 'default', data);
|
|
11340
|
+
done();
|
|
11341
|
+
} catch (err) {
|
|
11342
|
+
log.error(`Test Failure: ${err}`);
|
|
11343
|
+
done(err);
|
|
11344
|
+
}
|
|
11345
|
+
});
|
|
11346
|
+
} catch (error) {
|
|
11347
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11348
|
+
done(error);
|
|
11349
|
+
}
|
|
11350
|
+
}).timeout(attemptTimeout);
|
|
11351
|
+
});
|
|
11352
|
+
|
|
11353
|
+
describe('#getLtmPools - errors', () => {
|
|
11354
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11355
|
+
try {
|
|
11356
|
+
a.getLtmPools('fakedata', null, null, (data, error) => {
|
|
11357
|
+
try {
|
|
11358
|
+
if (stub) {
|
|
11359
|
+
const displayE = 'Error 400 received on request';
|
|
11360
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11361
|
+
} else {
|
|
11362
|
+
runCommonAsserts(data, error);
|
|
11363
|
+
}
|
|
11364
|
+
saveMockData('BIGIPLocalTrafficManager', 'getLtmPools', 'default', data);
|
|
11365
|
+
done();
|
|
11366
|
+
} catch (err) {
|
|
11367
|
+
log.error(`Test Failure: ${err}`);
|
|
11368
|
+
done(err);
|
|
11369
|
+
}
|
|
11370
|
+
});
|
|
11371
|
+
} catch (error) {
|
|
11372
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11373
|
+
done(error);
|
|
11374
|
+
}
|
|
11375
|
+
}).timeout(attemptTimeout);
|
|
11376
|
+
});
|
|
11377
|
+
|
|
11378
|
+
const bIGIPLocalTrafficManagerCreateLtmPoolBodyParam = {};
|
|
11379
|
+
describe('#createLtmPool - errors', () => {
|
|
11380
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11381
|
+
try {
|
|
11382
|
+
a.createLtmPool('fakedata', bIGIPLocalTrafficManagerCreateLtmPoolBodyParam, null, (data, error) => {
|
|
11383
|
+
try {
|
|
11384
|
+
if (stub) {
|
|
11385
|
+
const displayE = 'Error 400 received on request';
|
|
11386
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11387
|
+
} else {
|
|
11388
|
+
runCommonAsserts(data, error);
|
|
11389
|
+
}
|
|
11390
|
+
saveMockData('BIGIPLocalTrafficManager', 'createLtmPool', 'default', data);
|
|
11391
|
+
done();
|
|
11392
|
+
} catch (err) {
|
|
11393
|
+
log.error(`Test Failure: ${err}`);
|
|
11394
|
+
done(err);
|
|
11395
|
+
}
|
|
11396
|
+
});
|
|
11397
|
+
} catch (error) {
|
|
11398
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11399
|
+
done(error);
|
|
11400
|
+
}
|
|
11401
|
+
}).timeout(attemptTimeout);
|
|
11402
|
+
});
|
|
11403
|
+
|
|
11404
|
+
const bIGIPLocalTrafficManagerUpdateLtmPoolBodyParam = {};
|
|
11405
|
+
describe('#updateLtmPool - errors', () => {
|
|
11406
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11407
|
+
try {
|
|
11408
|
+
a.updateLtmPool('fakedata', 'fakedata', bIGIPLocalTrafficManagerUpdateLtmPoolBodyParam, null, (data, error) => {
|
|
11409
|
+
try {
|
|
11410
|
+
if (stub) {
|
|
11411
|
+
const displayE = 'Error 400 received on request';
|
|
11412
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11413
|
+
} else {
|
|
11414
|
+
runCommonAsserts(data, error);
|
|
11415
|
+
}
|
|
11416
|
+
saveMockData('BIGIPLocalTrafficManager', 'updateLtmPool', 'default', data);
|
|
11417
|
+
done();
|
|
11418
|
+
} catch (err) {
|
|
11419
|
+
log.error(`Test Failure: ${err}`);
|
|
11420
|
+
done(err);
|
|
11421
|
+
}
|
|
11422
|
+
});
|
|
11423
|
+
} catch (error) {
|
|
11424
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11425
|
+
done(error);
|
|
11426
|
+
}
|
|
11427
|
+
}).timeout(attemptTimeout);
|
|
11428
|
+
});
|
|
11429
|
+
|
|
11430
|
+
describe('#getLtmPoolById - errors', () => {
|
|
11431
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11432
|
+
try {
|
|
11433
|
+
a.getLtmPoolById('fakedata', 'fakedata', null, null, (data, error) => {
|
|
11434
|
+
try {
|
|
11435
|
+
if (stub) {
|
|
11436
|
+
const displayE = 'Error 400 received on request';
|
|
11437
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11438
|
+
} else {
|
|
11439
|
+
runCommonAsserts(data, error);
|
|
11440
|
+
}
|
|
11441
|
+
saveMockData('BIGIPLocalTrafficManager', 'getLtmPoolById', 'default', data);
|
|
11442
|
+
done();
|
|
11443
|
+
} catch (err) {
|
|
11444
|
+
log.error(`Test Failure: ${err}`);
|
|
11445
|
+
done(err);
|
|
11446
|
+
}
|
|
11447
|
+
});
|
|
11448
|
+
} catch (error) {
|
|
11449
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11450
|
+
done(error);
|
|
11451
|
+
}
|
|
11452
|
+
}).timeout(attemptTimeout);
|
|
11453
|
+
});
|
|
11454
|
+
|
|
11455
|
+
describe('#deleteLtmPool - errors', () => {
|
|
11456
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11457
|
+
try {
|
|
11458
|
+
a.deleteLtmPool('fakedata', 'fakedata', null, (data, error) => {
|
|
11459
|
+
try {
|
|
11460
|
+
if (stub) {
|
|
11461
|
+
const displayE = 'Error 400 received on request';
|
|
11462
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11463
|
+
} else {
|
|
11464
|
+
runCommonAsserts(data, error);
|
|
11465
|
+
}
|
|
11466
|
+
saveMockData('BIGIPLocalTrafficManager', 'deleteLtmPool', 'default', data);
|
|
11467
|
+
done();
|
|
11468
|
+
} catch (err) {
|
|
11469
|
+
log.error(`Test Failure: ${err}`);
|
|
11470
|
+
done(err);
|
|
11471
|
+
}
|
|
11472
|
+
});
|
|
11473
|
+
} catch (error) {
|
|
11474
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11475
|
+
done(error);
|
|
11476
|
+
}
|
|
11477
|
+
}).timeout(attemptTimeout);
|
|
11478
|
+
});
|
|
11479
|
+
|
|
11480
|
+
const bIGIPLocalTrafficManagerPatchLtmPoolBodyParam = {};
|
|
11481
|
+
describe('#patchLtmPool - errors', () => {
|
|
11482
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11483
|
+
try {
|
|
11484
|
+
a.patchLtmPool('fakedata', 'fakedata', bIGIPLocalTrafficManagerPatchLtmPoolBodyParam, null, (data, error) => {
|
|
11485
|
+
try {
|
|
11486
|
+
if (stub) {
|
|
11487
|
+
const displayE = 'Error 400 received on request';
|
|
11488
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11489
|
+
} else {
|
|
11490
|
+
runCommonAsserts(data, error);
|
|
11491
|
+
}
|
|
11492
|
+
saveMockData('BIGIPLocalTrafficManager', 'patchLtmPool', 'default', data);
|
|
11493
|
+
done();
|
|
11494
|
+
} catch (err) {
|
|
11495
|
+
log.error(`Test Failure: ${err}`);
|
|
11496
|
+
done(err);
|
|
11497
|
+
}
|
|
11498
|
+
});
|
|
11499
|
+
} catch (error) {
|
|
11500
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11501
|
+
done(error);
|
|
11502
|
+
}
|
|
11503
|
+
}).timeout(attemptTimeout);
|
|
11504
|
+
});
|
|
11505
|
+
|
|
11506
|
+
describe('#getLtmIRules - errors', () => {
|
|
11507
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11508
|
+
try {
|
|
11509
|
+
a.getLtmIRules('fakedata', null, null, (data, error) => {
|
|
11510
|
+
try {
|
|
11511
|
+
if (stub) {
|
|
11512
|
+
const displayE = 'Error 400 received on request';
|
|
11513
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11514
|
+
} else {
|
|
11515
|
+
runCommonAsserts(data, error);
|
|
11516
|
+
}
|
|
11517
|
+
saveMockData('BIGIPLocalTrafficManager', 'getLtmIRules', 'default', data);
|
|
11518
|
+
done();
|
|
11519
|
+
} catch (err) {
|
|
11520
|
+
log.error(`Test Failure: ${err}`);
|
|
11521
|
+
done(err);
|
|
11522
|
+
}
|
|
11523
|
+
});
|
|
11524
|
+
} catch (error) {
|
|
11525
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11526
|
+
done(error);
|
|
11527
|
+
}
|
|
11528
|
+
}).timeout(attemptTimeout);
|
|
11529
|
+
});
|
|
11530
|
+
|
|
11531
|
+
const bIGIPLocalTrafficManagerCreateLtmIRuleBodyParam = {};
|
|
11532
|
+
describe('#createLtmIRule - errors', () => {
|
|
11533
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11534
|
+
try {
|
|
11535
|
+
a.createLtmIRule('fakedata', bIGIPLocalTrafficManagerCreateLtmIRuleBodyParam, null, (data, error) => {
|
|
11536
|
+
try {
|
|
11537
|
+
if (stub) {
|
|
11538
|
+
const displayE = 'Error 400 received on request';
|
|
11539
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11540
|
+
} else {
|
|
11541
|
+
runCommonAsserts(data, error);
|
|
11542
|
+
}
|
|
11543
|
+
saveMockData('BIGIPLocalTrafficManager', 'createLtmIRule', 'default', data);
|
|
11544
|
+
done();
|
|
11545
|
+
} catch (err) {
|
|
11546
|
+
log.error(`Test Failure: ${err}`);
|
|
11547
|
+
done(err);
|
|
11548
|
+
}
|
|
11549
|
+
});
|
|
11550
|
+
} catch (error) {
|
|
11551
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11552
|
+
done(error);
|
|
11553
|
+
}
|
|
11554
|
+
}).timeout(attemptTimeout);
|
|
11555
|
+
});
|
|
11556
|
+
|
|
11557
|
+
describe('#getLtmIRuleByid - errors', () => {
|
|
11558
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11559
|
+
try {
|
|
11560
|
+
a.getLtmIRuleByid('fakedata', 'fakedata', null, null, (data, error) => {
|
|
11561
|
+
try {
|
|
11562
|
+
if (stub) {
|
|
11563
|
+
const displayE = 'Error 400 received on request';
|
|
11564
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11565
|
+
} else {
|
|
11566
|
+
runCommonAsserts(data, error);
|
|
11567
|
+
}
|
|
11568
|
+
saveMockData('BIGIPLocalTrafficManager', 'getLtmIRuleByid', 'default', data);
|
|
11569
|
+
done();
|
|
11570
|
+
} catch (err) {
|
|
11571
|
+
log.error(`Test Failure: ${err}`);
|
|
11572
|
+
done(err);
|
|
11573
|
+
}
|
|
11574
|
+
});
|
|
11575
|
+
} catch (error) {
|
|
11576
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11577
|
+
done(error);
|
|
11578
|
+
}
|
|
11579
|
+
}).timeout(attemptTimeout);
|
|
11580
|
+
});
|
|
11581
|
+
|
|
11582
|
+
const bIGIPLocalTrafficManagerUpdateLtmIRuleBodyParam = {};
|
|
11583
|
+
describe('#updateLtmIRule - errors', () => {
|
|
11584
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11585
|
+
try {
|
|
11586
|
+
a.updateLtmIRule('fakedata', 'fakedata', bIGIPLocalTrafficManagerUpdateLtmIRuleBodyParam, null, (data, error) => {
|
|
11587
|
+
try {
|
|
11588
|
+
if (stub) {
|
|
11589
|
+
const displayE = 'Error 400 received on request';
|
|
11590
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11591
|
+
} else {
|
|
11592
|
+
runCommonAsserts(data, error);
|
|
11593
|
+
}
|
|
11594
|
+
saveMockData('BIGIPLocalTrafficManager', 'updateLtmIRule', 'default', data);
|
|
11595
|
+
done();
|
|
11596
|
+
} catch (err) {
|
|
11597
|
+
log.error(`Test Failure: ${err}`);
|
|
11598
|
+
done(err);
|
|
11599
|
+
}
|
|
11600
|
+
});
|
|
11601
|
+
} catch (error) {
|
|
11602
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11603
|
+
done(error);
|
|
11604
|
+
}
|
|
11605
|
+
}).timeout(attemptTimeout);
|
|
11606
|
+
});
|
|
11607
|
+
|
|
11608
|
+
describe('#deleteLtmIRule - errors', () => {
|
|
11609
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11610
|
+
try {
|
|
11611
|
+
a.deleteLtmIRule('fakedata', 'fakedata', null, (data, error) => {
|
|
11612
|
+
try {
|
|
11613
|
+
if (stub) {
|
|
11614
|
+
const displayE = 'Error 400 received on request';
|
|
11615
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11616
|
+
} else {
|
|
11617
|
+
runCommonAsserts(data, error);
|
|
11618
|
+
}
|
|
11619
|
+
saveMockData('BIGIPLocalTrafficManager', 'deleteLtmIRule', 'default', data);
|
|
11620
|
+
done();
|
|
11621
|
+
} catch (err) {
|
|
11622
|
+
log.error(`Test Failure: ${err}`);
|
|
11623
|
+
done(err);
|
|
11624
|
+
}
|
|
11625
|
+
});
|
|
11626
|
+
} catch (error) {
|
|
11627
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11628
|
+
done(error);
|
|
11629
|
+
}
|
|
11630
|
+
}).timeout(attemptTimeout);
|
|
11631
|
+
});
|
|
11632
|
+
|
|
11633
|
+
const bIGIPLocalTrafficManagerPatchLtmIRuleBodyParam = {};
|
|
11634
|
+
describe('#patchLtmIRule - errors', () => {
|
|
11635
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11636
|
+
try {
|
|
11637
|
+
a.patchLtmIRule('fakedata', 'fakedata', bIGIPLocalTrafficManagerPatchLtmIRuleBodyParam, null, (data, error) => {
|
|
11638
|
+
try {
|
|
11639
|
+
if (stub) {
|
|
11640
|
+
const displayE = 'Error 400 received on request';
|
|
11641
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11642
|
+
} else {
|
|
11643
|
+
runCommonAsserts(data, error);
|
|
11644
|
+
}
|
|
11645
|
+
saveMockData('BIGIPLocalTrafficManager', 'patchLtmIRule', 'default', data);
|
|
11646
|
+
done();
|
|
11647
|
+
} catch (err) {
|
|
11648
|
+
log.error(`Test Failure: ${err}`);
|
|
11649
|
+
done(err);
|
|
11650
|
+
}
|
|
11651
|
+
});
|
|
11652
|
+
} catch (error) {
|
|
11653
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11654
|
+
done(error);
|
|
11655
|
+
}
|
|
11656
|
+
}).timeout(attemptTimeout);
|
|
11657
|
+
});
|
|
11658
|
+
|
|
11659
|
+
describe('#getLtmPolicies - errors', () => {
|
|
11660
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11661
|
+
try {
|
|
11662
|
+
a.getLtmPolicies('fakedata', null, null, (data, error) => {
|
|
11663
|
+
try {
|
|
11664
|
+
if (stub) {
|
|
11665
|
+
const displayE = 'Error 400 received on request';
|
|
11666
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11667
|
+
} else {
|
|
11668
|
+
runCommonAsserts(data, error);
|
|
11669
|
+
}
|
|
11670
|
+
saveMockData('BIGIPLocalTrafficManager', 'getLtmPolicies', 'default', data);
|
|
11671
|
+
done();
|
|
11672
|
+
} catch (err) {
|
|
11673
|
+
log.error(`Test Failure: ${err}`);
|
|
11674
|
+
done(err);
|
|
11675
|
+
}
|
|
11676
|
+
});
|
|
11677
|
+
} catch (error) {
|
|
11678
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11679
|
+
done(error);
|
|
11680
|
+
}
|
|
11681
|
+
}).timeout(attemptTimeout);
|
|
11682
|
+
});
|
|
11683
|
+
|
|
11684
|
+
const bIGIPLocalTrafficManagerCreateLtmPolicyBodyParam = {};
|
|
11685
|
+
describe('#createLtmPolicy - errors', () => {
|
|
11686
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11687
|
+
try {
|
|
11688
|
+
a.createLtmPolicy('fakedata', bIGIPLocalTrafficManagerCreateLtmPolicyBodyParam, null, (data, error) => {
|
|
11689
|
+
try {
|
|
11690
|
+
if (stub) {
|
|
11691
|
+
const displayE = 'Error 400 received on request';
|
|
11692
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11693
|
+
} else {
|
|
11694
|
+
runCommonAsserts(data, error);
|
|
11695
|
+
}
|
|
11696
|
+
saveMockData('BIGIPLocalTrafficManager', 'createLtmPolicy', 'default', data);
|
|
11697
|
+
done();
|
|
11698
|
+
} catch (err) {
|
|
11699
|
+
log.error(`Test Failure: ${err}`);
|
|
11700
|
+
done(err);
|
|
11701
|
+
}
|
|
11702
|
+
});
|
|
11703
|
+
} catch (error) {
|
|
11704
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11705
|
+
done(error);
|
|
11706
|
+
}
|
|
11707
|
+
}).timeout(attemptTimeout);
|
|
11708
|
+
});
|
|
11709
|
+
|
|
11710
|
+
describe('#getLtmPolicyById - errors', () => {
|
|
11711
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11712
|
+
try {
|
|
11713
|
+
a.getLtmPolicyById('fakedata', 'fakedata', null, null, (data, error) => {
|
|
11714
|
+
try {
|
|
11715
|
+
if (stub) {
|
|
11716
|
+
const displayE = 'Error 400 received on request';
|
|
11717
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11718
|
+
} else {
|
|
11719
|
+
runCommonAsserts(data, error);
|
|
11720
|
+
}
|
|
11721
|
+
saveMockData('BIGIPLocalTrafficManager', 'getLtmPolicyById', 'default', data);
|
|
11722
|
+
done();
|
|
11723
|
+
} catch (err) {
|
|
11724
|
+
log.error(`Test Failure: ${err}`);
|
|
11725
|
+
done(err);
|
|
11726
|
+
}
|
|
11727
|
+
});
|
|
11728
|
+
} catch (error) {
|
|
11729
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11730
|
+
done(error);
|
|
11731
|
+
}
|
|
11732
|
+
}).timeout(attemptTimeout);
|
|
11733
|
+
});
|
|
11734
|
+
|
|
11735
|
+
const bIGIPLocalTrafficManagerUpdateLtmPolicyBodyParam = {};
|
|
11736
|
+
describe('#updateLtmPolicy - errors', () => {
|
|
11737
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11738
|
+
try {
|
|
11739
|
+
a.updateLtmPolicy('fakedata', 'fakedata', bIGIPLocalTrafficManagerUpdateLtmPolicyBodyParam, null, (data, error) => {
|
|
11740
|
+
try {
|
|
11741
|
+
if (stub) {
|
|
11742
|
+
const displayE = 'Error 400 received on request';
|
|
11743
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11744
|
+
} else {
|
|
11745
|
+
runCommonAsserts(data, error);
|
|
11746
|
+
}
|
|
11747
|
+
saveMockData('BIGIPLocalTrafficManager', 'updateLtmPolicy', 'default', data);
|
|
11748
|
+
done();
|
|
11749
|
+
} catch (err) {
|
|
11750
|
+
log.error(`Test Failure: ${err}`);
|
|
11751
|
+
done(err);
|
|
11752
|
+
}
|
|
11753
|
+
});
|
|
11754
|
+
} catch (error) {
|
|
11755
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11756
|
+
done(error);
|
|
11757
|
+
}
|
|
11758
|
+
}).timeout(attemptTimeout);
|
|
11759
|
+
});
|
|
11760
|
+
|
|
11761
|
+
describe('#deleteLtmPolicy - errors', () => {
|
|
11762
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11763
|
+
try {
|
|
11764
|
+
a.deleteLtmPolicy('fakedata', 'fakedata', null, (data, error) => {
|
|
11765
|
+
try {
|
|
11766
|
+
if (stub) {
|
|
11767
|
+
const displayE = 'Error 400 received on request';
|
|
11768
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11769
|
+
} else {
|
|
11770
|
+
runCommonAsserts(data, error);
|
|
11771
|
+
}
|
|
11772
|
+
saveMockData('BIGIPLocalTrafficManager', 'deleteLtmPolicy', 'default', data);
|
|
11773
|
+
done();
|
|
11774
|
+
} catch (err) {
|
|
11775
|
+
log.error(`Test Failure: ${err}`);
|
|
11776
|
+
done(err);
|
|
11777
|
+
}
|
|
11778
|
+
});
|
|
11779
|
+
} catch (error) {
|
|
11780
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11781
|
+
done(error);
|
|
11782
|
+
}
|
|
11783
|
+
}).timeout(attemptTimeout);
|
|
11784
|
+
});
|
|
11785
|
+
|
|
11786
|
+
const bIGIPLocalTrafficManagerPatchLtmPolicyBodyParam = {};
|
|
11787
|
+
describe('#patchLtmPolicy - errors', () => {
|
|
11788
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11789
|
+
try {
|
|
11790
|
+
a.patchLtmPolicy('fakedata', 'fakedata', bIGIPLocalTrafficManagerPatchLtmPolicyBodyParam, null, (data, error) => {
|
|
11791
|
+
try {
|
|
11792
|
+
if (stub) {
|
|
11793
|
+
const displayE = 'Error 400 received on request';
|
|
11794
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11795
|
+
} else {
|
|
11796
|
+
runCommonAsserts(data, error);
|
|
11797
|
+
}
|
|
11798
|
+
saveMockData('BIGIPLocalTrafficManager', 'patchLtmPolicy', 'default', data);
|
|
11799
|
+
done();
|
|
11800
|
+
} catch (err) {
|
|
11801
|
+
log.error(`Test Failure: ${err}`);
|
|
11802
|
+
done(err);
|
|
11803
|
+
}
|
|
11804
|
+
});
|
|
11805
|
+
} catch (error) {
|
|
11806
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11807
|
+
done(error);
|
|
11808
|
+
}
|
|
11809
|
+
}).timeout(attemptTimeout);
|
|
11810
|
+
});
|
|
11811
|
+
|
|
11812
|
+
describe('#getLtmSnats - errors', () => {
|
|
11813
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11814
|
+
try {
|
|
11815
|
+
a.getLtmSnats('fakedata', null, null, (data, error) => {
|
|
11816
|
+
try {
|
|
11817
|
+
if (stub) {
|
|
11818
|
+
const displayE = 'Error 400 received on request';
|
|
11819
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11820
|
+
} else {
|
|
11821
|
+
runCommonAsserts(data, error);
|
|
11822
|
+
}
|
|
11823
|
+
saveMockData('BIGIPLocalTrafficManager', 'getLtmSnats', 'default', data);
|
|
11824
|
+
done();
|
|
11825
|
+
} catch (err) {
|
|
11826
|
+
log.error(`Test Failure: ${err}`);
|
|
11827
|
+
done(err);
|
|
11828
|
+
}
|
|
11829
|
+
});
|
|
11830
|
+
} catch (error) {
|
|
11831
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11832
|
+
done(error);
|
|
11833
|
+
}
|
|
11834
|
+
}).timeout(attemptTimeout);
|
|
11835
|
+
});
|
|
11836
|
+
|
|
11837
|
+
const bIGIPLocalTrafficManagerCreateLtmSnatBodyParam = {};
|
|
11838
|
+
describe('#createLtmSnat - errors', () => {
|
|
11839
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11840
|
+
try {
|
|
11841
|
+
a.createLtmSnat('fakedata', bIGIPLocalTrafficManagerCreateLtmSnatBodyParam, null, (data, error) => {
|
|
11842
|
+
try {
|
|
11843
|
+
if (stub) {
|
|
11844
|
+
const displayE = 'Error 400 received on request';
|
|
11845
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11846
|
+
} else {
|
|
11847
|
+
runCommonAsserts(data, error);
|
|
11848
|
+
}
|
|
11849
|
+
saveMockData('BIGIPLocalTrafficManager', 'createLtmSnat', 'default', data);
|
|
11850
|
+
done();
|
|
11851
|
+
} catch (err) {
|
|
11852
|
+
log.error(`Test Failure: ${err}`);
|
|
11853
|
+
done(err);
|
|
11854
|
+
}
|
|
11855
|
+
});
|
|
11856
|
+
} catch (error) {
|
|
11857
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11858
|
+
done(error);
|
|
11859
|
+
}
|
|
11860
|
+
}).timeout(attemptTimeout);
|
|
11861
|
+
});
|
|
11862
|
+
|
|
11863
|
+
describe('#getLtmSnatByName - errors', () => {
|
|
11864
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11865
|
+
try {
|
|
11866
|
+
a.getLtmSnatByName('fakedata', 'fakedata', null, null, (data, error) => {
|
|
11867
|
+
try {
|
|
11868
|
+
if (stub) {
|
|
11869
|
+
const displayE = 'Error 400 received on request';
|
|
11870
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11871
|
+
} else {
|
|
11872
|
+
runCommonAsserts(data, error);
|
|
11873
|
+
}
|
|
11874
|
+
saveMockData('BIGIPLocalTrafficManager', 'getLtmSnatByName', 'default', data);
|
|
11875
|
+
done();
|
|
11876
|
+
} catch (err) {
|
|
11877
|
+
log.error(`Test Failure: ${err}`);
|
|
11878
|
+
done(err);
|
|
11879
|
+
}
|
|
11880
|
+
});
|
|
11881
|
+
} catch (error) {
|
|
11882
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11883
|
+
done(error);
|
|
11884
|
+
}
|
|
11885
|
+
}).timeout(attemptTimeout);
|
|
11886
|
+
});
|
|
11887
|
+
|
|
11888
|
+
const bIGIPLocalTrafficManagerUpdateLtmSnatBodyParam = {};
|
|
11889
|
+
describe('#updateLtmSnat - errors', () => {
|
|
11890
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11891
|
+
try {
|
|
11892
|
+
a.updateLtmSnat('fakedata', 'fakedata', bIGIPLocalTrafficManagerUpdateLtmSnatBodyParam, null, (data, error) => {
|
|
11893
|
+
try {
|
|
11894
|
+
if (stub) {
|
|
11895
|
+
const displayE = 'Error 400 received on request';
|
|
11896
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11897
|
+
} else {
|
|
11898
|
+
runCommonAsserts(data, error);
|
|
11899
|
+
}
|
|
11900
|
+
saveMockData('BIGIPLocalTrafficManager', 'updateLtmSnat', 'default', data);
|
|
11901
|
+
done();
|
|
11902
|
+
} catch (err) {
|
|
11903
|
+
log.error(`Test Failure: ${err}`);
|
|
11904
|
+
done(err);
|
|
11905
|
+
}
|
|
11906
|
+
});
|
|
11907
|
+
} catch (error) {
|
|
11908
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11909
|
+
done(error);
|
|
11910
|
+
}
|
|
11911
|
+
}).timeout(attemptTimeout);
|
|
11912
|
+
});
|
|
11913
|
+
|
|
11914
|
+
describe('#deleteLtmSnat - errors', () => {
|
|
11915
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11916
|
+
try {
|
|
11917
|
+
a.deleteLtmSnat('fakedata', 'fakedata', null, (data, error) => {
|
|
11918
|
+
try {
|
|
11919
|
+
if (stub) {
|
|
11920
|
+
const displayE = 'Error 400 received on request';
|
|
11921
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11922
|
+
} else {
|
|
11923
|
+
runCommonAsserts(data, error);
|
|
11924
|
+
}
|
|
11925
|
+
saveMockData('BIGIPLocalTrafficManager', 'deleteLtmSnat', 'default', data);
|
|
11926
|
+
done();
|
|
11927
|
+
} catch (err) {
|
|
11928
|
+
log.error(`Test Failure: ${err}`);
|
|
11929
|
+
done(err);
|
|
11930
|
+
}
|
|
11931
|
+
});
|
|
11932
|
+
} catch (error) {
|
|
11933
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11934
|
+
done(error);
|
|
11935
|
+
}
|
|
11936
|
+
}).timeout(attemptTimeout);
|
|
11937
|
+
});
|
|
11938
|
+
|
|
11939
|
+
describe('#getLtmSnatPools - errors', () => {
|
|
11940
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11941
|
+
try {
|
|
11942
|
+
a.getLtmSnatPools('fakedata', null, null, (data, error) => {
|
|
11943
|
+
try {
|
|
11944
|
+
if (stub) {
|
|
11945
|
+
const displayE = 'Error 400 received on request';
|
|
11946
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11947
|
+
} else {
|
|
11948
|
+
runCommonAsserts(data, error);
|
|
11949
|
+
}
|
|
11950
|
+
saveMockData('BIGIPLocalTrafficManager', 'getLtmSnatPools', 'default', data);
|
|
11951
|
+
done();
|
|
11952
|
+
} catch (err) {
|
|
11953
|
+
log.error(`Test Failure: ${err}`);
|
|
11954
|
+
done(err);
|
|
11955
|
+
}
|
|
11956
|
+
});
|
|
11957
|
+
} catch (error) {
|
|
11958
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11959
|
+
done(error);
|
|
11960
|
+
}
|
|
11961
|
+
}).timeout(attemptTimeout);
|
|
11962
|
+
});
|
|
11963
|
+
|
|
11964
|
+
const bIGIPLocalTrafficManagerCreateLtmSnatPoolBodyParam = {};
|
|
11965
|
+
describe('#createLtmSnatPool - errors', () => {
|
|
11966
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11967
|
+
try {
|
|
11968
|
+
a.createLtmSnatPool('fakedata', bIGIPLocalTrafficManagerCreateLtmSnatPoolBodyParam, null, (data, error) => {
|
|
11969
|
+
try {
|
|
11970
|
+
if (stub) {
|
|
11971
|
+
const displayE = 'Error 400 received on request';
|
|
11972
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11973
|
+
} else {
|
|
11974
|
+
runCommonAsserts(data, error);
|
|
11975
|
+
}
|
|
11976
|
+
saveMockData('BIGIPLocalTrafficManager', 'createLtmSnatPool', 'default', data);
|
|
11977
|
+
done();
|
|
11978
|
+
} catch (err) {
|
|
11979
|
+
log.error(`Test Failure: ${err}`);
|
|
11980
|
+
done(err);
|
|
11981
|
+
}
|
|
11982
|
+
});
|
|
11983
|
+
} catch (error) {
|
|
11984
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11985
|
+
done(error);
|
|
11986
|
+
}
|
|
11987
|
+
}).timeout(attemptTimeout);
|
|
11988
|
+
});
|
|
11989
|
+
|
|
11990
|
+
describe('#getLtmSnatPoolByName - errors', () => {
|
|
11991
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
11992
|
+
try {
|
|
11993
|
+
a.getLtmSnatPoolByName('fakedata', 'fakedata', null, null, (data, error) => {
|
|
11994
|
+
try {
|
|
11995
|
+
if (stub) {
|
|
11996
|
+
const displayE = 'Error 400 received on request';
|
|
11997
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
11998
|
+
} else {
|
|
11999
|
+
runCommonAsserts(data, error);
|
|
12000
|
+
}
|
|
12001
|
+
saveMockData('BIGIPLocalTrafficManager', 'getLtmSnatPoolByName', 'default', data);
|
|
12002
|
+
done();
|
|
12003
|
+
} catch (err) {
|
|
12004
|
+
log.error(`Test Failure: ${err}`);
|
|
12005
|
+
done(err);
|
|
12006
|
+
}
|
|
12007
|
+
});
|
|
12008
|
+
} catch (error) {
|
|
12009
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12010
|
+
done(error);
|
|
12011
|
+
}
|
|
12012
|
+
}).timeout(attemptTimeout);
|
|
12013
|
+
});
|
|
12014
|
+
|
|
12015
|
+
const bIGIPLocalTrafficManagerUpdateLtmSnatPoolBodyParam = {};
|
|
12016
|
+
describe('#updateLtmSnatPool - errors', () => {
|
|
12017
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12018
|
+
try {
|
|
12019
|
+
a.updateLtmSnatPool('fakedata', 'fakedata', bIGIPLocalTrafficManagerUpdateLtmSnatPoolBodyParam, null, (data, error) => {
|
|
12020
|
+
try {
|
|
12021
|
+
if (stub) {
|
|
12022
|
+
const displayE = 'Error 400 received on request';
|
|
12023
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12024
|
+
} else {
|
|
12025
|
+
runCommonAsserts(data, error);
|
|
12026
|
+
}
|
|
12027
|
+
saveMockData('BIGIPLocalTrafficManager', 'updateLtmSnatPool', 'default', data);
|
|
12028
|
+
done();
|
|
12029
|
+
} catch (err) {
|
|
12030
|
+
log.error(`Test Failure: ${err}`);
|
|
12031
|
+
done(err);
|
|
12032
|
+
}
|
|
12033
|
+
});
|
|
12034
|
+
} catch (error) {
|
|
12035
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12036
|
+
done(error);
|
|
12037
|
+
}
|
|
12038
|
+
}).timeout(attemptTimeout);
|
|
12039
|
+
});
|
|
12040
|
+
|
|
12041
|
+
describe('#deleteLtmSnatPool - errors', () => {
|
|
12042
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12043
|
+
try {
|
|
12044
|
+
a.deleteLtmSnatPool('fakedata', 'fakedata', null, (data, error) => {
|
|
12045
|
+
try {
|
|
12046
|
+
if (stub) {
|
|
12047
|
+
const displayE = 'Error 400 received on request';
|
|
12048
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12049
|
+
} else {
|
|
12050
|
+
runCommonAsserts(data, error);
|
|
12051
|
+
}
|
|
12052
|
+
saveMockData('BIGIPLocalTrafficManager', 'deleteLtmSnatPool', 'default', data);
|
|
12053
|
+
done();
|
|
12054
|
+
} catch (err) {
|
|
12055
|
+
log.error(`Test Failure: ${err}`);
|
|
12056
|
+
done(err);
|
|
12057
|
+
}
|
|
12058
|
+
});
|
|
12059
|
+
} catch (error) {
|
|
12060
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12061
|
+
done(error);
|
|
12062
|
+
}
|
|
12063
|
+
}).timeout(attemptTimeout);
|
|
12064
|
+
});
|
|
12065
|
+
|
|
12066
|
+
describe('#getLtmNats - errors', () => {
|
|
12067
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12068
|
+
try {
|
|
12069
|
+
a.getLtmNats('fakedata', null, null, (data, error) => {
|
|
12070
|
+
try {
|
|
12071
|
+
if (stub) {
|
|
12072
|
+
const displayE = 'Error 400 received on request';
|
|
12073
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12074
|
+
} else {
|
|
12075
|
+
runCommonAsserts(data, error);
|
|
12076
|
+
}
|
|
12077
|
+
saveMockData('BIGIPLocalTrafficManager', 'getLtmNats', 'default', data);
|
|
12078
|
+
done();
|
|
12079
|
+
} catch (err) {
|
|
12080
|
+
log.error(`Test Failure: ${err}`);
|
|
12081
|
+
done(err);
|
|
12082
|
+
}
|
|
12083
|
+
});
|
|
12084
|
+
} catch (error) {
|
|
12085
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12086
|
+
done(error);
|
|
12087
|
+
}
|
|
12088
|
+
}).timeout(attemptTimeout);
|
|
12089
|
+
});
|
|
12090
|
+
|
|
12091
|
+
const bIGIPLocalTrafficManagerCreateLtmNatBodyParam = {};
|
|
12092
|
+
describe('#createLtmNat - errors', () => {
|
|
12093
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12094
|
+
try {
|
|
12095
|
+
a.createLtmNat('fakedata', bIGIPLocalTrafficManagerCreateLtmNatBodyParam, null, (data, error) => {
|
|
12096
|
+
try {
|
|
12097
|
+
if (stub) {
|
|
12098
|
+
const displayE = 'Error 400 received on request';
|
|
12099
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12100
|
+
} else {
|
|
12101
|
+
runCommonAsserts(data, error);
|
|
12102
|
+
}
|
|
12103
|
+
saveMockData('BIGIPLocalTrafficManager', 'createLtmNat', 'default', data);
|
|
12104
|
+
done();
|
|
12105
|
+
} catch (err) {
|
|
12106
|
+
log.error(`Test Failure: ${err}`);
|
|
12107
|
+
done(err);
|
|
12108
|
+
}
|
|
12109
|
+
});
|
|
12110
|
+
} catch (error) {
|
|
12111
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12112
|
+
done(error);
|
|
12113
|
+
}
|
|
12114
|
+
}).timeout(attemptTimeout);
|
|
12115
|
+
});
|
|
12116
|
+
|
|
12117
|
+
describe('#getLtmNatByName - errors', () => {
|
|
12118
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12119
|
+
try {
|
|
12120
|
+
a.getLtmNatByName('fakedata', 'fakedata', null, null, (data, error) => {
|
|
12121
|
+
try {
|
|
12122
|
+
if (stub) {
|
|
12123
|
+
const displayE = 'Error 400 received on request';
|
|
12124
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12125
|
+
} else {
|
|
12126
|
+
runCommonAsserts(data, error);
|
|
12127
|
+
}
|
|
12128
|
+
saveMockData('BIGIPLocalTrafficManager', 'getLtmNatByName', 'default', data);
|
|
12129
|
+
done();
|
|
12130
|
+
} catch (err) {
|
|
12131
|
+
log.error(`Test Failure: ${err}`);
|
|
12132
|
+
done(err);
|
|
12133
|
+
}
|
|
12134
|
+
});
|
|
12135
|
+
} catch (error) {
|
|
12136
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12137
|
+
done(error);
|
|
12138
|
+
}
|
|
12139
|
+
}).timeout(attemptTimeout);
|
|
12140
|
+
});
|
|
12141
|
+
|
|
12142
|
+
const bIGIPLocalTrafficManagerUpdateLtmNatBodyParam = {};
|
|
12143
|
+
describe('#updateLtmNat - errors', () => {
|
|
12144
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12145
|
+
try {
|
|
12146
|
+
a.updateLtmNat('fakedata', 'fakedata', bIGIPLocalTrafficManagerUpdateLtmNatBodyParam, null, (data, error) => {
|
|
12147
|
+
try {
|
|
12148
|
+
if (stub) {
|
|
12149
|
+
const displayE = 'Error 400 received on request';
|
|
12150
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12151
|
+
} else {
|
|
12152
|
+
runCommonAsserts(data, error);
|
|
12153
|
+
}
|
|
12154
|
+
saveMockData('BIGIPLocalTrafficManager', 'updateLtmNat', 'default', data);
|
|
12155
|
+
done();
|
|
12156
|
+
} catch (err) {
|
|
12157
|
+
log.error(`Test Failure: ${err}`);
|
|
12158
|
+
done(err);
|
|
12159
|
+
}
|
|
12160
|
+
});
|
|
12161
|
+
} catch (error) {
|
|
12162
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12163
|
+
done(error);
|
|
12164
|
+
}
|
|
12165
|
+
}).timeout(attemptTimeout);
|
|
12166
|
+
});
|
|
12167
|
+
|
|
12168
|
+
describe('#deleteLtmNat - errors', () => {
|
|
12169
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12170
|
+
try {
|
|
12171
|
+
a.deleteLtmNat('fakedata', 'fakedata', null, (data, error) => {
|
|
12172
|
+
try {
|
|
12173
|
+
if (stub) {
|
|
12174
|
+
const displayE = 'Error 400 received on request';
|
|
12175
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12176
|
+
} else {
|
|
12177
|
+
runCommonAsserts(data, error);
|
|
12178
|
+
}
|
|
12179
|
+
saveMockData('BIGIPLocalTrafficManager', 'deleteLtmNat', 'default', data);
|
|
12180
|
+
done();
|
|
12181
|
+
} catch (err) {
|
|
12182
|
+
log.error(`Test Failure: ${err}`);
|
|
12183
|
+
done(err);
|
|
12184
|
+
}
|
|
12185
|
+
});
|
|
12186
|
+
} catch (error) {
|
|
12187
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12188
|
+
done(error);
|
|
12189
|
+
}
|
|
12190
|
+
}).timeout(attemptTimeout);
|
|
12191
|
+
});
|
|
12192
|
+
|
|
12193
|
+
describe('#getSysGlobalSettings - errors', () => {
|
|
12194
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12195
|
+
try {
|
|
12196
|
+
a.getSysGlobalSettings('fakedata', null, null, (data, error) => {
|
|
12197
|
+
try {
|
|
12198
|
+
if (stub) {
|
|
12199
|
+
const displayE = 'Error 400 received on request';
|
|
12200
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12201
|
+
} else {
|
|
12202
|
+
runCommonAsserts(data, error);
|
|
12203
|
+
}
|
|
12204
|
+
saveMockData('BIGIPSystem', 'getSysGlobalSettings', 'default', data);
|
|
12205
|
+
done();
|
|
12206
|
+
} catch (err) {
|
|
12207
|
+
log.error(`Test Failure: ${err}`);
|
|
12208
|
+
done(err);
|
|
12209
|
+
}
|
|
12210
|
+
});
|
|
12211
|
+
} catch (error) {
|
|
12212
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12213
|
+
done(error);
|
|
12214
|
+
}
|
|
12215
|
+
}).timeout(attemptTimeout);
|
|
12216
|
+
});
|
|
12217
|
+
|
|
12218
|
+
const bIGIPSystemUpdateSysGlobalSettingsBodyParam = {};
|
|
12219
|
+
describe('#updateSysGlobalSettings - errors', () => {
|
|
12220
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12221
|
+
try {
|
|
12222
|
+
a.updateSysGlobalSettings('fakedata', bIGIPSystemUpdateSysGlobalSettingsBodyParam, null, (data, error) => {
|
|
12223
|
+
try {
|
|
12224
|
+
if (stub) {
|
|
12225
|
+
const displayE = 'Error 400 received on request';
|
|
12226
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12227
|
+
} else {
|
|
12228
|
+
runCommonAsserts(data, error);
|
|
12229
|
+
}
|
|
12230
|
+
saveMockData('BIGIPSystem', 'updateSysGlobalSettings', 'default', data);
|
|
12231
|
+
done();
|
|
12232
|
+
} catch (err) {
|
|
12233
|
+
log.error(`Test Failure: ${err}`);
|
|
12234
|
+
done(err);
|
|
12235
|
+
}
|
|
12236
|
+
});
|
|
12237
|
+
} catch (error) {
|
|
12238
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12239
|
+
done(error);
|
|
12240
|
+
}
|
|
12241
|
+
}).timeout(attemptTimeout);
|
|
12242
|
+
});
|
|
12243
|
+
|
|
12244
|
+
const bIGIPSystemPatchSysGlobalSettingsBodyParam = {};
|
|
12245
|
+
describe('#patchSysGlobalSettings - errors', () => {
|
|
12246
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12247
|
+
try {
|
|
12248
|
+
a.patchSysGlobalSettings('fakedata', bIGIPSystemPatchSysGlobalSettingsBodyParam, null, (data, error) => {
|
|
12249
|
+
try {
|
|
12250
|
+
if (stub) {
|
|
12251
|
+
const displayE = 'Error 400 received on request';
|
|
12252
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12253
|
+
} else {
|
|
12254
|
+
runCommonAsserts(data, error);
|
|
12255
|
+
}
|
|
12256
|
+
saveMockData('BIGIPSystem', 'patchSysGlobalSettings', 'default', data);
|
|
12257
|
+
done();
|
|
12258
|
+
} catch (err) {
|
|
12259
|
+
log.error(`Test Failure: ${err}`);
|
|
12260
|
+
done(err);
|
|
12261
|
+
}
|
|
12262
|
+
});
|
|
12263
|
+
} catch (error) {
|
|
12264
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12265
|
+
done(error);
|
|
12266
|
+
}
|
|
12267
|
+
}).timeout(attemptTimeout);
|
|
12268
|
+
});
|
|
12269
|
+
|
|
12270
|
+
describe('#getSysNTPSettings - errors', () => {
|
|
12271
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12272
|
+
try {
|
|
12273
|
+
a.getSysNTPSettings('fakedata', null, null, (data, error) => {
|
|
12274
|
+
try {
|
|
12275
|
+
if (stub) {
|
|
12276
|
+
const displayE = 'Error 400 received on request';
|
|
12277
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12278
|
+
} else {
|
|
12279
|
+
runCommonAsserts(data, error);
|
|
12280
|
+
}
|
|
12281
|
+
saveMockData('BIGIPSystem', 'getSysNTPSettings', 'default', data);
|
|
12282
|
+
done();
|
|
12283
|
+
} catch (err) {
|
|
12284
|
+
log.error(`Test Failure: ${err}`);
|
|
12285
|
+
done(err);
|
|
12286
|
+
}
|
|
12287
|
+
});
|
|
12288
|
+
} catch (error) {
|
|
12289
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12290
|
+
done(error);
|
|
12291
|
+
}
|
|
12292
|
+
}).timeout(attemptTimeout);
|
|
12293
|
+
});
|
|
12294
|
+
|
|
12295
|
+
const bIGIPSystemSetSysNTPSettingsBodyParam = {};
|
|
12296
|
+
describe('#setSysNTPSettings - errors', () => {
|
|
12297
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12298
|
+
try {
|
|
12299
|
+
a.setSysNTPSettings('fakedata', bIGIPSystemSetSysNTPSettingsBodyParam, null, (data, error) => {
|
|
12300
|
+
try {
|
|
12301
|
+
if (stub) {
|
|
12302
|
+
const displayE = 'Error 400 received on request';
|
|
12303
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12304
|
+
} else {
|
|
12305
|
+
runCommonAsserts(data, error);
|
|
12306
|
+
}
|
|
12307
|
+
saveMockData('BIGIPSystem', 'setSysNTPSettings', 'default', data);
|
|
12308
|
+
done();
|
|
12309
|
+
} catch (err) {
|
|
12310
|
+
log.error(`Test Failure: ${err}`);
|
|
12311
|
+
done(err);
|
|
12312
|
+
}
|
|
12313
|
+
});
|
|
12314
|
+
} catch (error) {
|
|
12315
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12316
|
+
done(error);
|
|
12317
|
+
}
|
|
12318
|
+
}).timeout(attemptTimeout);
|
|
12319
|
+
});
|
|
12320
|
+
|
|
12321
|
+
describe('#getSysSoftwareImages - errors', () => {
|
|
12322
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12323
|
+
try {
|
|
12324
|
+
a.getSysSoftwareImages('fakedata', null, null, (data, error) => {
|
|
12325
|
+
try {
|
|
12326
|
+
if (stub) {
|
|
12327
|
+
const displayE = 'Error 400 received on request';
|
|
12328
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12329
|
+
} else {
|
|
12330
|
+
runCommonAsserts(data, error);
|
|
12331
|
+
}
|
|
12332
|
+
saveMockData('BIGIPSystem', 'getSysSoftwareImages', 'default', data);
|
|
12333
|
+
done();
|
|
12334
|
+
} catch (err) {
|
|
12335
|
+
log.error(`Test Failure: ${err}`);
|
|
12336
|
+
done(err);
|
|
12337
|
+
}
|
|
12338
|
+
});
|
|
12339
|
+
} catch (error) {
|
|
12340
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12341
|
+
done(error);
|
|
12342
|
+
}
|
|
12343
|
+
}).timeout(attemptTimeout);
|
|
12344
|
+
});
|
|
12345
|
+
|
|
12346
|
+
describe('#deleteSysSoftwareVolume - errors', () => {
|
|
12347
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12348
|
+
try {
|
|
12349
|
+
a.deleteSysSoftwareVolume('fakedata', 'fakedata', null, (data, error) => {
|
|
12350
|
+
try {
|
|
12351
|
+
if (stub) {
|
|
12352
|
+
const displayE = 'Error 400 received on request';
|
|
12353
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12354
|
+
} else {
|
|
12355
|
+
runCommonAsserts(data, error);
|
|
12356
|
+
}
|
|
12357
|
+
saveMockData('BIGIPSystem', 'deleteSysSoftwareVolume', 'default', data);
|
|
12358
|
+
done();
|
|
12359
|
+
} catch (err) {
|
|
12360
|
+
log.error(`Test Failure: ${err}`);
|
|
12361
|
+
done(err);
|
|
12362
|
+
}
|
|
12363
|
+
});
|
|
12364
|
+
} catch (error) {
|
|
12365
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12366
|
+
done(error);
|
|
12367
|
+
}
|
|
12368
|
+
}).timeout(attemptTimeout);
|
|
12369
|
+
});
|
|
12370
|
+
|
|
12371
|
+
describe('#getSysSoftwareVolumeByName - errors', () => {
|
|
12372
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12373
|
+
try {
|
|
12374
|
+
a.getSysSoftwareVolumeByName('fakedata', 'fakedata', null, null, (data, error) => {
|
|
12375
|
+
try {
|
|
12376
|
+
if (stub) {
|
|
12377
|
+
const displayE = 'Error 400 received on request';
|
|
12378
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12379
|
+
} else {
|
|
12380
|
+
runCommonAsserts(data, error);
|
|
12381
|
+
}
|
|
12382
|
+
saveMockData('BIGIPSystem', 'getSysSoftwareVolumeByName', 'default', data);
|
|
12383
|
+
done();
|
|
12384
|
+
} catch (err) {
|
|
12385
|
+
log.error(`Test Failure: ${err}`);
|
|
12386
|
+
done(err);
|
|
12387
|
+
}
|
|
12388
|
+
});
|
|
12389
|
+
} catch (error) {
|
|
12390
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12391
|
+
done(error);
|
|
12392
|
+
}
|
|
12393
|
+
}).timeout(attemptTimeout);
|
|
12394
|
+
});
|
|
12395
|
+
|
|
12396
|
+
describe('#getSysDnsSettings - errors', () => {
|
|
12397
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12398
|
+
try {
|
|
12399
|
+
a.getSysDnsSettings('fakedata', null, null, (data, error) => {
|
|
12400
|
+
try {
|
|
12401
|
+
if (stub) {
|
|
12402
|
+
const displayE = 'Error 400 received on request';
|
|
12403
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12404
|
+
} else {
|
|
12405
|
+
runCommonAsserts(data, error);
|
|
12406
|
+
}
|
|
12407
|
+
saveMockData('BIGIPSystem', 'getSysDnsSettings', 'default', data);
|
|
12408
|
+
done();
|
|
12409
|
+
} catch (err) {
|
|
12410
|
+
log.error(`Test Failure: ${err}`);
|
|
12411
|
+
done(err);
|
|
12412
|
+
}
|
|
12413
|
+
});
|
|
12414
|
+
} catch (error) {
|
|
12415
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12416
|
+
done(error);
|
|
12417
|
+
}
|
|
12418
|
+
}).timeout(attemptTimeout);
|
|
12419
|
+
});
|
|
12420
|
+
|
|
12421
|
+
const bIGIPSystemSetSysDnsSettingsBodyParam = {};
|
|
12422
|
+
describe('#setSysDnsSettings - errors', () => {
|
|
12423
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12424
|
+
try {
|
|
12425
|
+
a.setSysDnsSettings('fakedata', bIGIPSystemSetSysDnsSettingsBodyParam, null, (data, error) => {
|
|
12426
|
+
try {
|
|
12427
|
+
if (stub) {
|
|
12428
|
+
const displayE = 'Error 400 received on request';
|
|
12429
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12430
|
+
} else {
|
|
12431
|
+
runCommonAsserts(data, error);
|
|
12432
|
+
}
|
|
12433
|
+
saveMockData('BIGIPSystem', 'setSysDnsSettings', 'default', data);
|
|
12434
|
+
done();
|
|
12435
|
+
} catch (err) {
|
|
12436
|
+
log.error(`Test Failure: ${err}`);
|
|
12437
|
+
done(err);
|
|
12438
|
+
}
|
|
12439
|
+
});
|
|
12440
|
+
} catch (error) {
|
|
12441
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12442
|
+
done(error);
|
|
12443
|
+
}
|
|
12444
|
+
}).timeout(attemptTimeout);
|
|
12445
|
+
});
|
|
12446
|
+
|
|
12447
|
+
describe('#getCmTrafficGroups - errors', () => {
|
|
12448
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12449
|
+
try {
|
|
12450
|
+
a.getCmTrafficGroups('fakedata', null, null, (data, error) => {
|
|
12451
|
+
try {
|
|
12452
|
+
if (stub) {
|
|
12453
|
+
const displayE = 'Error 400 received on request';
|
|
12454
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12455
|
+
} else {
|
|
12456
|
+
runCommonAsserts(data, error);
|
|
12457
|
+
}
|
|
12458
|
+
saveMockData('BIGIPConfigurationManagement', 'getCmTrafficGroups', 'default', data);
|
|
12459
|
+
done();
|
|
12460
|
+
} catch (err) {
|
|
12461
|
+
log.error(`Test Failure: ${err}`);
|
|
12462
|
+
done(err);
|
|
12463
|
+
}
|
|
12464
|
+
});
|
|
12465
|
+
} catch (error) {
|
|
12466
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12467
|
+
done(error);
|
|
12468
|
+
}
|
|
12469
|
+
}).timeout(attemptTimeout);
|
|
12470
|
+
});
|
|
12471
|
+
|
|
12472
|
+
const bIGIPConfigurationManagementCreateCmTrafficGroupBodyParam = {};
|
|
12473
|
+
describe('#createCmTrafficGroup - errors', () => {
|
|
12474
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12475
|
+
try {
|
|
12476
|
+
a.createCmTrafficGroup('fakedata', bIGIPConfigurationManagementCreateCmTrafficGroupBodyParam, null, (data, error) => {
|
|
12477
|
+
try {
|
|
12478
|
+
if (stub) {
|
|
12479
|
+
const displayE = 'Error 400 received on request';
|
|
12480
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12481
|
+
} else {
|
|
12482
|
+
runCommonAsserts(data, error);
|
|
12483
|
+
}
|
|
12484
|
+
saveMockData('BIGIPConfigurationManagement', 'createCmTrafficGroup', 'default', data);
|
|
12485
|
+
done();
|
|
12486
|
+
} catch (err) {
|
|
12487
|
+
log.error(`Test Failure: ${err}`);
|
|
12488
|
+
done(err);
|
|
12489
|
+
}
|
|
12490
|
+
});
|
|
12491
|
+
} catch (error) {
|
|
12492
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12493
|
+
done(error);
|
|
12494
|
+
}
|
|
12495
|
+
}).timeout(attemptTimeout);
|
|
12496
|
+
});
|
|
12497
|
+
|
|
12498
|
+
describe('#getCmTrafficGroupByName - errors', () => {
|
|
12499
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12500
|
+
try {
|
|
12501
|
+
a.getCmTrafficGroupByName('fakedata', 'fakedata', null, null, (data, error) => {
|
|
12502
|
+
try {
|
|
12503
|
+
if (stub) {
|
|
12504
|
+
const displayE = 'Error 400 received on request';
|
|
12505
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12506
|
+
} else {
|
|
12507
|
+
runCommonAsserts(data, error);
|
|
12508
|
+
}
|
|
12509
|
+
saveMockData('BIGIPConfigurationManagement', 'getCmTrafficGroupByName', 'default', data);
|
|
12510
|
+
done();
|
|
12511
|
+
} catch (err) {
|
|
12512
|
+
log.error(`Test Failure: ${err}`);
|
|
12513
|
+
done(err);
|
|
12514
|
+
}
|
|
12515
|
+
});
|
|
12516
|
+
} catch (error) {
|
|
12517
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12518
|
+
done(error);
|
|
12519
|
+
}
|
|
12520
|
+
}).timeout(attemptTimeout);
|
|
12521
|
+
});
|
|
12522
|
+
|
|
12523
|
+
const bIGIPConfigurationManagementUpdateCmTrafficGroupBodyParam = {};
|
|
12524
|
+
describe('#updateCmTrafficGroup - errors', () => {
|
|
12525
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12526
|
+
try {
|
|
12527
|
+
a.updateCmTrafficGroup('fakedata', 'fakedata', bIGIPConfigurationManagementUpdateCmTrafficGroupBodyParam, null, (data, error) => {
|
|
12528
|
+
try {
|
|
12529
|
+
if (stub) {
|
|
12530
|
+
const displayE = 'Error 400 received on request';
|
|
12531
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12532
|
+
} else {
|
|
12533
|
+
runCommonAsserts(data, error);
|
|
12534
|
+
}
|
|
12535
|
+
saveMockData('BIGIPConfigurationManagement', 'updateCmTrafficGroup', 'default', data);
|
|
12536
|
+
done();
|
|
12537
|
+
} catch (err) {
|
|
12538
|
+
log.error(`Test Failure: ${err}`);
|
|
12539
|
+
done(err);
|
|
12540
|
+
}
|
|
12541
|
+
});
|
|
12542
|
+
} catch (error) {
|
|
12543
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12544
|
+
done(error);
|
|
12545
|
+
}
|
|
12546
|
+
}).timeout(attemptTimeout);
|
|
12547
|
+
});
|
|
12548
|
+
|
|
12549
|
+
describe('#deleteCmTrafficGroup - errors', () => {
|
|
12550
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12551
|
+
try {
|
|
12552
|
+
a.deleteCmTrafficGroup('fakedata', 'fakedata', null, (data, error) => {
|
|
12553
|
+
try {
|
|
12554
|
+
if (stub) {
|
|
12555
|
+
const displayE = 'Error 400 received on request';
|
|
12556
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12557
|
+
} else {
|
|
12558
|
+
runCommonAsserts(data, error);
|
|
12559
|
+
}
|
|
12560
|
+
saveMockData('BIGIPConfigurationManagement', 'deleteCmTrafficGroup', 'default', data);
|
|
12561
|
+
done();
|
|
12562
|
+
} catch (err) {
|
|
12563
|
+
log.error(`Test Failure: ${err}`);
|
|
12564
|
+
done(err);
|
|
12565
|
+
}
|
|
12566
|
+
});
|
|
12567
|
+
} catch (error) {
|
|
12568
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12569
|
+
done(error);
|
|
12570
|
+
}
|
|
12571
|
+
}).timeout(attemptTimeout);
|
|
12572
|
+
});
|
|
12573
|
+
|
|
12574
|
+
const bIGIPConfigurationManagementPatchCmTrafficGroupBodyParam = {};
|
|
12575
|
+
describe('#patchCmTrafficGroup - errors', () => {
|
|
12576
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12577
|
+
try {
|
|
12578
|
+
a.patchCmTrafficGroup('fakedata', 'fakedata', bIGIPConfigurationManagementPatchCmTrafficGroupBodyParam, null, (data, error) => {
|
|
12579
|
+
try {
|
|
12580
|
+
if (stub) {
|
|
12581
|
+
const displayE = 'Error 400 received on request';
|
|
12582
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12583
|
+
} else {
|
|
12584
|
+
runCommonAsserts(data, error);
|
|
12585
|
+
}
|
|
12586
|
+
saveMockData('BIGIPConfigurationManagement', 'patchCmTrafficGroup', 'default', data);
|
|
12587
|
+
done();
|
|
12588
|
+
} catch (err) {
|
|
12589
|
+
log.error(`Test Failure: ${err}`);
|
|
12590
|
+
done(err);
|
|
12591
|
+
}
|
|
12592
|
+
});
|
|
12593
|
+
} catch (error) {
|
|
12594
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12595
|
+
done(error);
|
|
12596
|
+
}
|
|
12597
|
+
}).timeout(attemptTimeout);
|
|
12598
|
+
});
|
|
12599
|
+
|
|
12600
|
+
describe('#getCmDevices - errors', () => {
|
|
12601
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12602
|
+
try {
|
|
12603
|
+
a.getCmDevices('fakedata', null, null, (data, error) => {
|
|
12604
|
+
try {
|
|
12605
|
+
if (stub) {
|
|
12606
|
+
const displayE = 'Error 400 received on request';
|
|
12607
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12608
|
+
} else {
|
|
12609
|
+
runCommonAsserts(data, error);
|
|
12610
|
+
}
|
|
12611
|
+
saveMockData('BIGIPConfigurationManagement', 'getCmDevices', 'default', data);
|
|
12612
|
+
done();
|
|
12613
|
+
} catch (err) {
|
|
12614
|
+
log.error(`Test Failure: ${err}`);
|
|
12615
|
+
done(err);
|
|
12616
|
+
}
|
|
12617
|
+
});
|
|
12618
|
+
} catch (error) {
|
|
12619
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12620
|
+
done(error);
|
|
12621
|
+
}
|
|
12622
|
+
}).timeout(attemptTimeout);
|
|
12623
|
+
});
|
|
12624
|
+
|
|
12625
|
+
describe('#getCmDeviceByName - errors', () => {
|
|
12626
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12627
|
+
try {
|
|
12628
|
+
a.getCmDeviceByName('fakedata', 'fakedata', null, null, (data, error) => {
|
|
12629
|
+
try {
|
|
12630
|
+
if (stub) {
|
|
12631
|
+
const displayE = 'Error 400 received on request';
|
|
12632
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12633
|
+
} else {
|
|
12634
|
+
runCommonAsserts(data, error);
|
|
12635
|
+
}
|
|
12636
|
+
saveMockData('BIGIPConfigurationManagement', 'getCmDeviceByName', 'default', data);
|
|
12637
|
+
done();
|
|
12638
|
+
} catch (err) {
|
|
12639
|
+
log.error(`Test Failure: ${err}`);
|
|
12640
|
+
done(err);
|
|
12641
|
+
}
|
|
12642
|
+
});
|
|
12643
|
+
} catch (error) {
|
|
12644
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12645
|
+
done(error);
|
|
12646
|
+
}
|
|
12647
|
+
}).timeout(attemptTimeout);
|
|
12648
|
+
});
|
|
12649
|
+
|
|
12650
|
+
const bIGIPConfigurationManagementUpdateCmDeviceBodyParam = {};
|
|
12651
|
+
describe('#updateCmDevice - errors', () => {
|
|
12652
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12653
|
+
try {
|
|
12654
|
+
a.updateCmDevice('fakedata', 'fakedata', bIGIPConfigurationManagementUpdateCmDeviceBodyParam, null, (data, error) => {
|
|
12655
|
+
try {
|
|
12656
|
+
if (stub) {
|
|
12657
|
+
const displayE = 'Error 400 received on request';
|
|
12658
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12659
|
+
} else {
|
|
12660
|
+
runCommonAsserts(data, error);
|
|
12661
|
+
}
|
|
12662
|
+
saveMockData('BIGIPConfigurationManagement', 'updateCmDevice', 'default', data);
|
|
12663
|
+
done();
|
|
12664
|
+
} catch (err) {
|
|
12665
|
+
log.error(`Test Failure: ${err}`);
|
|
12666
|
+
done(err);
|
|
12667
|
+
}
|
|
12668
|
+
});
|
|
12669
|
+
} catch (error) {
|
|
12670
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12671
|
+
done(error);
|
|
12672
|
+
}
|
|
12673
|
+
}).timeout(attemptTimeout);
|
|
12674
|
+
});
|
|
12675
|
+
|
|
12676
|
+
describe('#deleteCmDevice - errors', () => {
|
|
12677
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12678
|
+
try {
|
|
12679
|
+
a.deleteCmDevice('fakedata', 'fakedata', null, (data, error) => {
|
|
12680
|
+
try {
|
|
12681
|
+
if (stub) {
|
|
12682
|
+
const displayE = 'Error 400 received on request';
|
|
12683
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12684
|
+
} else {
|
|
12685
|
+
runCommonAsserts(data, error);
|
|
12686
|
+
}
|
|
12687
|
+
saveMockData('BIGIPConfigurationManagement', 'deleteCmDevice', 'default', data);
|
|
12688
|
+
done();
|
|
12689
|
+
} catch (err) {
|
|
12690
|
+
log.error(`Test Failure: ${err}`);
|
|
12691
|
+
done(err);
|
|
12692
|
+
}
|
|
12693
|
+
});
|
|
12694
|
+
} catch (error) {
|
|
12695
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12696
|
+
done(error);
|
|
12697
|
+
}
|
|
12698
|
+
}).timeout(attemptTimeout);
|
|
12699
|
+
});
|
|
12700
|
+
|
|
12701
|
+
describe('#getCmDeviceGroups - errors', () => {
|
|
12702
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12703
|
+
try {
|
|
12704
|
+
a.getCmDeviceGroups('fakedata', null, null, (data, error) => {
|
|
12705
|
+
try {
|
|
12706
|
+
if (stub) {
|
|
12707
|
+
const displayE = 'Error 400 received on request';
|
|
12708
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12709
|
+
} else {
|
|
12710
|
+
runCommonAsserts(data, error);
|
|
12711
|
+
}
|
|
12712
|
+
saveMockData('BIGIPConfigurationManagement', 'getCmDeviceGroups', 'default', data);
|
|
12713
|
+
done();
|
|
12714
|
+
} catch (err) {
|
|
12715
|
+
log.error(`Test Failure: ${err}`);
|
|
12716
|
+
done(err);
|
|
12717
|
+
}
|
|
12718
|
+
});
|
|
12719
|
+
} catch (error) {
|
|
12720
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12721
|
+
done(error);
|
|
12722
|
+
}
|
|
12723
|
+
}).timeout(attemptTimeout);
|
|
12724
|
+
});
|
|
12725
|
+
|
|
12726
|
+
const bIGIPConfigurationManagementCreateCmDeviceGroupBodyParam = {};
|
|
12727
|
+
describe('#createCmDeviceGroup - errors', () => {
|
|
12728
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12729
|
+
try {
|
|
12730
|
+
a.createCmDeviceGroup('fakedata', bIGIPConfigurationManagementCreateCmDeviceGroupBodyParam, null, (data, error) => {
|
|
12731
|
+
try {
|
|
12732
|
+
if (stub) {
|
|
12733
|
+
const displayE = 'Error 400 received on request';
|
|
12734
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12735
|
+
} else {
|
|
12736
|
+
runCommonAsserts(data, error);
|
|
12737
|
+
}
|
|
12738
|
+
saveMockData('BIGIPConfigurationManagement', 'createCmDeviceGroup', 'default', data);
|
|
12739
|
+
done();
|
|
12740
|
+
} catch (err) {
|
|
12741
|
+
log.error(`Test Failure: ${err}`);
|
|
12742
|
+
done(err);
|
|
12743
|
+
}
|
|
12744
|
+
});
|
|
12745
|
+
} catch (error) {
|
|
12746
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12747
|
+
done(error);
|
|
12748
|
+
}
|
|
12749
|
+
}).timeout(attemptTimeout);
|
|
12750
|
+
});
|
|
12751
|
+
|
|
12752
|
+
describe('#getCmDeviceGroupByName - errors', () => {
|
|
12753
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12754
|
+
try {
|
|
12755
|
+
a.getCmDeviceGroupByName('fakedata', 'fakedata', null, null, (data, error) => {
|
|
12756
|
+
try {
|
|
12757
|
+
if (stub) {
|
|
12758
|
+
const displayE = 'Error 400 received on request';
|
|
12759
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12760
|
+
} else {
|
|
12761
|
+
runCommonAsserts(data, error);
|
|
12762
|
+
}
|
|
12763
|
+
saveMockData('BIGIPConfigurationManagement', 'getCmDeviceGroupByName', 'default', data);
|
|
12764
|
+
done();
|
|
12765
|
+
} catch (err) {
|
|
12766
|
+
log.error(`Test Failure: ${err}`);
|
|
12767
|
+
done(err);
|
|
12768
|
+
}
|
|
12769
|
+
});
|
|
12770
|
+
} catch (error) {
|
|
12771
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12772
|
+
done(error);
|
|
12773
|
+
}
|
|
12774
|
+
}).timeout(attemptTimeout);
|
|
12775
|
+
});
|
|
12776
|
+
|
|
12777
|
+
const bIGIPConfigurationManagementUpdateCmDeviceGroupBodyParam = {};
|
|
12778
|
+
describe('#updateCmDeviceGroup - errors', () => {
|
|
12779
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12780
|
+
try {
|
|
12781
|
+
a.updateCmDeviceGroup('fakedata', 'fakedata', bIGIPConfigurationManagementUpdateCmDeviceGroupBodyParam, null, (data, error) => {
|
|
12782
|
+
try {
|
|
12783
|
+
if (stub) {
|
|
12784
|
+
const displayE = 'Error 400 received on request';
|
|
12785
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12786
|
+
} else {
|
|
12787
|
+
runCommonAsserts(data, error);
|
|
12788
|
+
}
|
|
12789
|
+
saveMockData('BIGIPConfigurationManagement', 'updateCmDeviceGroup', 'default', data);
|
|
12790
|
+
done();
|
|
12791
|
+
} catch (err) {
|
|
12792
|
+
log.error(`Test Failure: ${err}`);
|
|
12793
|
+
done(err);
|
|
12794
|
+
}
|
|
12795
|
+
});
|
|
12796
|
+
} catch (error) {
|
|
12797
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12798
|
+
done(error);
|
|
12799
|
+
}
|
|
12800
|
+
}).timeout(attemptTimeout);
|
|
12801
|
+
});
|
|
12802
|
+
|
|
12803
|
+
describe('#deleteCmDeviceGroup - errors', () => {
|
|
12804
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12805
|
+
try {
|
|
12806
|
+
a.deleteCmDeviceGroup('fakedata', 'fakedata', null, (data, error) => {
|
|
12807
|
+
try {
|
|
12808
|
+
if (stub) {
|
|
12809
|
+
const displayE = 'Error 400 received on request';
|
|
12810
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12811
|
+
} else {
|
|
12812
|
+
runCommonAsserts(data, error);
|
|
12813
|
+
}
|
|
12814
|
+
saveMockData('BIGIPConfigurationManagement', 'deleteCmDeviceGroup', 'default', data);
|
|
12815
|
+
done();
|
|
12816
|
+
} catch (err) {
|
|
12817
|
+
log.error(`Test Failure: ${err}`);
|
|
12818
|
+
done(err);
|
|
12819
|
+
}
|
|
12820
|
+
});
|
|
12821
|
+
} catch (error) {
|
|
12822
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12823
|
+
done(error);
|
|
12824
|
+
}
|
|
12825
|
+
}).timeout(attemptTimeout);
|
|
12826
|
+
});
|
|
12827
|
+
|
|
12828
|
+
describe('#getAuthUsers - errors', () => {
|
|
12829
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12830
|
+
try {
|
|
12831
|
+
a.getAuthUsers('fakedata', null, null, (data, error) => {
|
|
12832
|
+
try {
|
|
12833
|
+
if (stub) {
|
|
12834
|
+
const displayE = 'Error 400 received on request';
|
|
12835
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12836
|
+
} else {
|
|
12837
|
+
runCommonAsserts(data, error);
|
|
12838
|
+
}
|
|
12839
|
+
saveMockData('BIGIPAuthentication', 'getAuthUsers', 'default', data);
|
|
12840
|
+
done();
|
|
12841
|
+
} catch (err) {
|
|
12842
|
+
log.error(`Test Failure: ${err}`);
|
|
12843
|
+
done(err);
|
|
12844
|
+
}
|
|
12845
|
+
});
|
|
12846
|
+
} catch (error) {
|
|
12847
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12848
|
+
done(error);
|
|
12849
|
+
}
|
|
12850
|
+
}).timeout(attemptTimeout);
|
|
12851
|
+
});
|
|
12852
|
+
|
|
12853
|
+
const bIGIPAuthenticationCreateAuthUserBodyParam = {};
|
|
12854
|
+
describe('#createAuthUser - errors', () => {
|
|
12855
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12856
|
+
try {
|
|
12857
|
+
a.createAuthUser('fakedata', bIGIPAuthenticationCreateAuthUserBodyParam, null, (data, error) => {
|
|
12858
|
+
try {
|
|
12859
|
+
if (stub) {
|
|
12860
|
+
const displayE = 'Error 400 received on request';
|
|
12861
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12862
|
+
} else {
|
|
12863
|
+
runCommonAsserts(data, error);
|
|
12864
|
+
}
|
|
12865
|
+
saveMockData('BIGIPAuthentication', 'createAuthUser', 'default', data);
|
|
12866
|
+
done();
|
|
12867
|
+
} catch (err) {
|
|
12868
|
+
log.error(`Test Failure: ${err}`);
|
|
12869
|
+
done(err);
|
|
12870
|
+
}
|
|
12871
|
+
});
|
|
12872
|
+
} catch (error) {
|
|
12873
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12874
|
+
done(error);
|
|
12875
|
+
}
|
|
12876
|
+
}).timeout(attemptTimeout);
|
|
12877
|
+
});
|
|
12878
|
+
|
|
12879
|
+
describe('#getAuthUserByName - errors', () => {
|
|
12880
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12881
|
+
try {
|
|
12882
|
+
a.getAuthUserByName('fakedata', 'fakedata', null, null, (data, error) => {
|
|
12883
|
+
try {
|
|
12884
|
+
if (stub) {
|
|
12885
|
+
const displayE = 'Error 400 received on request';
|
|
12886
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12887
|
+
} else {
|
|
12888
|
+
runCommonAsserts(data, error);
|
|
12889
|
+
}
|
|
12890
|
+
saveMockData('BIGIPAuthentication', 'getAuthUserByName', 'default', data);
|
|
12891
|
+
done();
|
|
12892
|
+
} catch (err) {
|
|
12893
|
+
log.error(`Test Failure: ${err}`);
|
|
12894
|
+
done(err);
|
|
12895
|
+
}
|
|
12896
|
+
});
|
|
12897
|
+
} catch (error) {
|
|
12898
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12899
|
+
done(error);
|
|
12900
|
+
}
|
|
12901
|
+
}).timeout(attemptTimeout);
|
|
12902
|
+
});
|
|
12903
|
+
|
|
12904
|
+
const bIGIPAuthenticationUpdateAuthUserBodyParam = {};
|
|
12905
|
+
describe('#updateAuthUser - errors', () => {
|
|
12906
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12907
|
+
try {
|
|
12908
|
+
a.updateAuthUser('fakedata', 'fakedata', bIGIPAuthenticationUpdateAuthUserBodyParam, null, (data, error) => {
|
|
12909
|
+
try {
|
|
12910
|
+
if (stub) {
|
|
12911
|
+
const displayE = 'Error 400 received on request';
|
|
12912
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12913
|
+
} else {
|
|
12914
|
+
runCommonAsserts(data, error);
|
|
12915
|
+
}
|
|
12916
|
+
saveMockData('BIGIPAuthentication', 'updateAuthUser', 'default', data);
|
|
12917
|
+
done();
|
|
12918
|
+
} catch (err) {
|
|
12919
|
+
log.error(`Test Failure: ${err}`);
|
|
12920
|
+
done(err);
|
|
12921
|
+
}
|
|
12922
|
+
});
|
|
12923
|
+
} catch (error) {
|
|
12924
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12925
|
+
done(error);
|
|
12926
|
+
}
|
|
12927
|
+
}).timeout(attemptTimeout);
|
|
12928
|
+
});
|
|
12929
|
+
|
|
12930
|
+
describe('#deleteAuthUser - errors', () => {
|
|
12931
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
12932
|
+
try {
|
|
12933
|
+
a.deleteAuthUser('fakedata', 'fakedata', null, (data, error) => {
|
|
12934
|
+
try {
|
|
12935
|
+
if (stub) {
|
|
12936
|
+
const displayE = 'Error 400 received on request';
|
|
12937
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-f5_bigiq-connectorRest-handleEndResponse', displayE);
|
|
12938
|
+
} else {
|
|
12939
|
+
runCommonAsserts(data, error);
|
|
12940
|
+
}
|
|
12941
|
+
saveMockData('BIGIPAuthentication', 'deleteAuthUser', 'default', data);
|
|
12942
|
+
done();
|
|
12943
|
+
} catch (err) {
|
|
12944
|
+
log.error(`Test Failure: ${err}`);
|
|
12945
|
+
done(err);
|
|
12946
|
+
}
|
|
12947
|
+
});
|
|
12948
|
+
} catch (error) {
|
|
12949
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12950
|
+
done(error);
|
|
12951
|
+
}
|
|
12952
|
+
}).timeout(attemptTimeout);
|
|
12953
|
+
});
|
|
10358
12954
|
});
|
|
10359
12955
|
});
|