@itentialopensource/adapter-dna_center 0.9.0 → 0.9.2
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 +270 -0
- package/CHANGELOG.md +16 -0
- package/adapter.js +3751 -0
- package/entities/SDA/action.json +920 -0
- package/entities/SDA/schema.json +63 -0
- package/package.json +1 -1
- package/pronghorn.json +1797 -2
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +7 -7
- package/test/integration/adapterTestIntegration.js +1639 -0
- package/test/unit/adapterTestUnit.js +1475 -0
|
@@ -7415,5 +7415,1480 @@ describe('[unit] Dna_center Adapter Test', () => {
|
|
|
7415
7415
|
}
|
|
7416
7416
|
}).timeout(attemptTimeout);
|
|
7417
7417
|
});
|
|
7418
|
+
|
|
7419
|
+
describe('#deletePortAssignmentForAccessPointInSDAFabric - errors', () => {
|
|
7420
|
+
it('should have a deletePortAssignmentForAccessPointInSDAFabric function', (done) => {
|
|
7421
|
+
try {
|
|
7422
|
+
assert.equal(true, typeof a.deletePortAssignmentForAccessPointInSDAFabric === 'function');
|
|
7423
|
+
done();
|
|
7424
|
+
} catch (error) {
|
|
7425
|
+
log.error(`Test Failure: ${error}`);
|
|
7426
|
+
done(error);
|
|
7427
|
+
}
|
|
7428
|
+
}).timeout(attemptTimeout);
|
|
7429
|
+
it('should error if - missing deviceManagementIpAddress', (done) => {
|
|
7430
|
+
try {
|
|
7431
|
+
a.deletePortAssignmentForAccessPointInSDAFabric(null, null, (data, error) => {
|
|
7432
|
+
try {
|
|
7433
|
+
const displayE = 'deviceManagementIpAddress is required';
|
|
7434
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-deletePortAssignmentForAccessPointInSDAFabric', displayE);
|
|
7435
|
+
done();
|
|
7436
|
+
} catch (err) {
|
|
7437
|
+
log.error(`Test Failure: ${err}`);
|
|
7438
|
+
done(err);
|
|
7439
|
+
}
|
|
7440
|
+
});
|
|
7441
|
+
} catch (error) {
|
|
7442
|
+
log.error(`Adapter Exception: ${error}`);
|
|
7443
|
+
done(error);
|
|
7444
|
+
}
|
|
7445
|
+
}).timeout(attemptTimeout);
|
|
7446
|
+
it('should error if - missing interfaceName', (done) => {
|
|
7447
|
+
try {
|
|
7448
|
+
a.deletePortAssignmentForAccessPointInSDAFabric('fakeparam', null, (data, error) => {
|
|
7449
|
+
try {
|
|
7450
|
+
const displayE = 'interfaceName is required';
|
|
7451
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-deletePortAssignmentForAccessPointInSDAFabric', displayE);
|
|
7452
|
+
done();
|
|
7453
|
+
} catch (err) {
|
|
7454
|
+
log.error(`Test Failure: ${err}`);
|
|
7455
|
+
done(err);
|
|
7456
|
+
}
|
|
7457
|
+
});
|
|
7458
|
+
} catch (error) {
|
|
7459
|
+
log.error(`Adapter Exception: ${error}`);
|
|
7460
|
+
done(error);
|
|
7461
|
+
}
|
|
7462
|
+
}).timeout(attemptTimeout);
|
|
7463
|
+
});
|
|
7464
|
+
|
|
7465
|
+
describe('#getPortAssignmentForAccessPointInSDAFabric - errors', () => {
|
|
7466
|
+
it('should have a getPortAssignmentForAccessPointInSDAFabric function', (done) => {
|
|
7467
|
+
try {
|
|
7468
|
+
assert.equal(true, typeof a.getPortAssignmentForAccessPointInSDAFabric === 'function');
|
|
7469
|
+
done();
|
|
7470
|
+
} catch (error) {
|
|
7471
|
+
log.error(`Test Failure: ${error}`);
|
|
7472
|
+
done(error);
|
|
7473
|
+
}
|
|
7474
|
+
}).timeout(attemptTimeout);
|
|
7475
|
+
it('should error if - missing deviceManagementIpAddress', (done) => {
|
|
7476
|
+
try {
|
|
7477
|
+
a.getPortAssignmentForAccessPointInSDAFabric(null, null, (data, error) => {
|
|
7478
|
+
try {
|
|
7479
|
+
const displayE = 'deviceManagementIpAddress is required';
|
|
7480
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-getPortAssignmentForAccessPointInSDAFabric', displayE);
|
|
7481
|
+
done();
|
|
7482
|
+
} catch (err) {
|
|
7483
|
+
log.error(`Test Failure: ${err}`);
|
|
7484
|
+
done(err);
|
|
7485
|
+
}
|
|
7486
|
+
});
|
|
7487
|
+
} catch (error) {
|
|
7488
|
+
log.error(`Adapter Exception: ${error}`);
|
|
7489
|
+
done(error);
|
|
7490
|
+
}
|
|
7491
|
+
}).timeout(attemptTimeout);
|
|
7492
|
+
it('should error if - missing interfaceName', (done) => {
|
|
7493
|
+
try {
|
|
7494
|
+
a.getPortAssignmentForAccessPointInSDAFabric('fakeparam', null, (data, error) => {
|
|
7495
|
+
try {
|
|
7496
|
+
const displayE = 'interfaceName is required';
|
|
7497
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-getPortAssignmentForAccessPointInSDAFabric', displayE);
|
|
7498
|
+
done();
|
|
7499
|
+
} catch (err) {
|
|
7500
|
+
log.error(`Test Failure: ${err}`);
|
|
7501
|
+
done(err);
|
|
7502
|
+
}
|
|
7503
|
+
});
|
|
7504
|
+
} catch (error) {
|
|
7505
|
+
log.error(`Adapter Exception: ${error}`);
|
|
7506
|
+
done(error);
|
|
7507
|
+
}
|
|
7508
|
+
}).timeout(attemptTimeout);
|
|
7509
|
+
});
|
|
7510
|
+
|
|
7511
|
+
describe('#addPortAssignmentForAccessPointInSDAFabric - errors', () => {
|
|
7512
|
+
it('should have a addPortAssignmentForAccessPointInSDAFabric function', (done) => {
|
|
7513
|
+
try {
|
|
7514
|
+
assert.equal(true, typeof a.addPortAssignmentForAccessPointInSDAFabric === 'function');
|
|
7515
|
+
done();
|
|
7516
|
+
} catch (error) {
|
|
7517
|
+
log.error(`Test Failure: ${error}`);
|
|
7518
|
+
done(error);
|
|
7519
|
+
}
|
|
7520
|
+
}).timeout(attemptTimeout);
|
|
7521
|
+
it('should error if - missing request', (done) => {
|
|
7522
|
+
try {
|
|
7523
|
+
a.addPortAssignmentForAccessPointInSDAFabric(null, (data, error) => {
|
|
7524
|
+
try {
|
|
7525
|
+
const displayE = 'request is required';
|
|
7526
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-addPortAssignmentForAccessPointInSDAFabric', displayE);
|
|
7527
|
+
done();
|
|
7528
|
+
} catch (err) {
|
|
7529
|
+
log.error(`Test Failure: ${err}`);
|
|
7530
|
+
done(err);
|
|
7531
|
+
}
|
|
7532
|
+
});
|
|
7533
|
+
} catch (error) {
|
|
7534
|
+
log.error(`Adapter Exception: ${error}`);
|
|
7535
|
+
done(error);
|
|
7536
|
+
}
|
|
7537
|
+
}).timeout(attemptTimeout);
|
|
7538
|
+
});
|
|
7539
|
+
|
|
7540
|
+
describe('#getDeviceInfoFromSDAFabric - errors', () => {
|
|
7541
|
+
it('should have a getDeviceInfoFromSDAFabric function', (done) => {
|
|
7542
|
+
try {
|
|
7543
|
+
assert.equal(true, typeof a.getDeviceInfoFromSDAFabric === 'function');
|
|
7544
|
+
done();
|
|
7545
|
+
} catch (error) {
|
|
7546
|
+
log.error(`Test Failure: ${error}`);
|
|
7547
|
+
done(error);
|
|
7548
|
+
}
|
|
7549
|
+
}).timeout(attemptTimeout);
|
|
7550
|
+
it('should error if - missing deviceManagementIpAddress', (done) => {
|
|
7551
|
+
try {
|
|
7552
|
+
a.getDeviceInfoFromSDAFabric(null, (data, error) => {
|
|
7553
|
+
try {
|
|
7554
|
+
const displayE = 'deviceManagementIpAddress is required';
|
|
7555
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-getDeviceInfoFromSDAFabric', displayE);
|
|
7556
|
+
done();
|
|
7557
|
+
} catch (err) {
|
|
7558
|
+
log.error(`Test Failure: ${err}`);
|
|
7559
|
+
done(err);
|
|
7560
|
+
}
|
|
7561
|
+
});
|
|
7562
|
+
} catch (error) {
|
|
7563
|
+
log.error(`Adapter Exception: ${error}`);
|
|
7564
|
+
done(error);
|
|
7565
|
+
}
|
|
7566
|
+
}).timeout(attemptTimeout);
|
|
7567
|
+
});
|
|
7568
|
+
|
|
7569
|
+
describe('#getTransitPeerNetworkInfo - errors', () => {
|
|
7570
|
+
it('should have a getTransitPeerNetworkInfo function', (done) => {
|
|
7571
|
+
try {
|
|
7572
|
+
assert.equal(true, typeof a.getTransitPeerNetworkInfo === 'function');
|
|
7573
|
+
done();
|
|
7574
|
+
} catch (error) {
|
|
7575
|
+
log.error(`Test Failure: ${error}`);
|
|
7576
|
+
done(error);
|
|
7577
|
+
}
|
|
7578
|
+
}).timeout(attemptTimeout);
|
|
7579
|
+
it('should error if - missing transitPeerNetworkName', (done) => {
|
|
7580
|
+
try {
|
|
7581
|
+
a.getTransitPeerNetworkInfo(null, (data, error) => {
|
|
7582
|
+
try {
|
|
7583
|
+
const displayE = 'transitPeerNetworkName is required';
|
|
7584
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-getTransitPeerNetworkInfo', displayE);
|
|
7585
|
+
done();
|
|
7586
|
+
} catch (err) {
|
|
7587
|
+
log.error(`Test Failure: ${err}`);
|
|
7588
|
+
done(err);
|
|
7589
|
+
}
|
|
7590
|
+
});
|
|
7591
|
+
} catch (error) {
|
|
7592
|
+
log.error(`Adapter Exception: ${error}`);
|
|
7593
|
+
done(error);
|
|
7594
|
+
}
|
|
7595
|
+
}).timeout(attemptTimeout);
|
|
7596
|
+
});
|
|
7597
|
+
|
|
7598
|
+
describe('#addTransitPeerNetwork - errors', () => {
|
|
7599
|
+
it('should have a addTransitPeerNetwork function', (done) => {
|
|
7600
|
+
try {
|
|
7601
|
+
assert.equal(true, typeof a.addTransitPeerNetwork === 'function');
|
|
7602
|
+
done();
|
|
7603
|
+
} catch (error) {
|
|
7604
|
+
log.error(`Test Failure: ${error}`);
|
|
7605
|
+
done(error);
|
|
7606
|
+
}
|
|
7607
|
+
}).timeout(attemptTimeout);
|
|
7608
|
+
it('should error if - missing request', (done) => {
|
|
7609
|
+
try {
|
|
7610
|
+
a.addTransitPeerNetwork(null, (data, error) => {
|
|
7611
|
+
try {
|
|
7612
|
+
const displayE = 'request is required';
|
|
7613
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-addTransitPeerNetwork', displayE);
|
|
7614
|
+
done();
|
|
7615
|
+
} catch (err) {
|
|
7616
|
+
log.error(`Test Failure: ${err}`);
|
|
7617
|
+
done(err);
|
|
7618
|
+
}
|
|
7619
|
+
});
|
|
7620
|
+
} catch (error) {
|
|
7621
|
+
log.error(`Adapter Exception: ${error}`);
|
|
7622
|
+
done(error);
|
|
7623
|
+
}
|
|
7624
|
+
}).timeout(attemptTimeout);
|
|
7625
|
+
});
|
|
7626
|
+
|
|
7627
|
+
describe('#deleteTransitPeerNetwork - errors', () => {
|
|
7628
|
+
it('should have a deleteTransitPeerNetwork function', (done) => {
|
|
7629
|
+
try {
|
|
7630
|
+
assert.equal(true, typeof a.deleteTransitPeerNetwork === 'function');
|
|
7631
|
+
done();
|
|
7632
|
+
} catch (error) {
|
|
7633
|
+
log.error(`Test Failure: ${error}`);
|
|
7634
|
+
done(error);
|
|
7635
|
+
}
|
|
7636
|
+
}).timeout(attemptTimeout);
|
|
7637
|
+
it('should error if - missing transitPeerNetworkName', (done) => {
|
|
7638
|
+
try {
|
|
7639
|
+
a.deleteTransitPeerNetwork(null, (data, error) => {
|
|
7640
|
+
try {
|
|
7641
|
+
const displayE = 'transitPeerNetworkName is required';
|
|
7642
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-deleteTransitPeerNetwork', displayE);
|
|
7643
|
+
done();
|
|
7644
|
+
} catch (err) {
|
|
7645
|
+
log.error(`Test Failure: ${err}`);
|
|
7646
|
+
done(err);
|
|
7647
|
+
}
|
|
7648
|
+
});
|
|
7649
|
+
} catch (error) {
|
|
7650
|
+
log.error(`Adapter Exception: ${error}`);
|
|
7651
|
+
done(error);
|
|
7652
|
+
}
|
|
7653
|
+
}).timeout(attemptTimeout);
|
|
7654
|
+
});
|
|
7655
|
+
|
|
7656
|
+
describe('#deleteEdgeDeviceFromSDAFabric - errors', () => {
|
|
7657
|
+
it('should have a deleteEdgeDeviceFromSDAFabric function', (done) => {
|
|
7658
|
+
try {
|
|
7659
|
+
assert.equal(true, typeof a.deleteEdgeDeviceFromSDAFabric === 'function');
|
|
7660
|
+
done();
|
|
7661
|
+
} catch (error) {
|
|
7662
|
+
log.error(`Test Failure: ${error}`);
|
|
7663
|
+
done(error);
|
|
7664
|
+
}
|
|
7665
|
+
}).timeout(attemptTimeout);
|
|
7666
|
+
it('should error if - missing deviceManagementIpAddress', (done) => {
|
|
7667
|
+
try {
|
|
7668
|
+
a.deleteEdgeDeviceFromSDAFabric(null, (data, error) => {
|
|
7669
|
+
try {
|
|
7670
|
+
const displayE = 'deviceManagementIpAddress is required';
|
|
7671
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-deleteEdgeDeviceFromSDAFabric', displayE);
|
|
7672
|
+
done();
|
|
7673
|
+
} catch (err) {
|
|
7674
|
+
log.error(`Test Failure: ${err}`);
|
|
7675
|
+
done(err);
|
|
7676
|
+
}
|
|
7677
|
+
});
|
|
7678
|
+
} catch (error) {
|
|
7679
|
+
log.error(`Adapter Exception: ${error}`);
|
|
7680
|
+
done(error);
|
|
7681
|
+
}
|
|
7682
|
+
}).timeout(attemptTimeout);
|
|
7683
|
+
});
|
|
7684
|
+
|
|
7685
|
+
describe('#getEdgeDeviceFromSDAFabric - errors', () => {
|
|
7686
|
+
it('should have a getEdgeDeviceFromSDAFabric function', (done) => {
|
|
7687
|
+
try {
|
|
7688
|
+
assert.equal(true, typeof a.getEdgeDeviceFromSDAFabric === 'function');
|
|
7689
|
+
done();
|
|
7690
|
+
} catch (error) {
|
|
7691
|
+
log.error(`Test Failure: ${error}`);
|
|
7692
|
+
done(error);
|
|
7693
|
+
}
|
|
7694
|
+
}).timeout(attemptTimeout);
|
|
7695
|
+
it('should error if - missing deviceManagementIpAddress', (done) => {
|
|
7696
|
+
try {
|
|
7697
|
+
a.getEdgeDeviceFromSDAFabric(null, (data, error) => {
|
|
7698
|
+
try {
|
|
7699
|
+
const displayE = 'deviceManagementIpAddress is required';
|
|
7700
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-getEdgeDeviceFromSDAFabric', displayE);
|
|
7701
|
+
done();
|
|
7702
|
+
} catch (err) {
|
|
7703
|
+
log.error(`Test Failure: ${err}`);
|
|
7704
|
+
done(err);
|
|
7705
|
+
}
|
|
7706
|
+
});
|
|
7707
|
+
} catch (error) {
|
|
7708
|
+
log.error(`Adapter Exception: ${error}`);
|
|
7709
|
+
done(error);
|
|
7710
|
+
}
|
|
7711
|
+
}).timeout(attemptTimeout);
|
|
7712
|
+
});
|
|
7713
|
+
|
|
7714
|
+
describe('#addEdgeDeviceInSDAFabric - errors', () => {
|
|
7715
|
+
it('should have a addEdgeDeviceInSDAFabric function', (done) => {
|
|
7716
|
+
try {
|
|
7717
|
+
assert.equal(true, typeof a.addEdgeDeviceInSDAFabric === 'function');
|
|
7718
|
+
done();
|
|
7719
|
+
} catch (error) {
|
|
7720
|
+
log.error(`Test Failure: ${error}`);
|
|
7721
|
+
done(error);
|
|
7722
|
+
}
|
|
7723
|
+
}).timeout(attemptTimeout);
|
|
7724
|
+
it('should error if - missing request', (done) => {
|
|
7725
|
+
try {
|
|
7726
|
+
a.addEdgeDeviceInSDAFabric(null, (data, error) => {
|
|
7727
|
+
try {
|
|
7728
|
+
const displayE = 'request is required';
|
|
7729
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-addEdgeDeviceInSDAFabric', displayE);
|
|
7730
|
+
done();
|
|
7731
|
+
} catch (err) {
|
|
7732
|
+
log.error(`Test Failure: ${err}`);
|
|
7733
|
+
done(err);
|
|
7734
|
+
}
|
|
7735
|
+
});
|
|
7736
|
+
} catch (error) {
|
|
7737
|
+
log.error(`Adapter Exception: ${error}`);
|
|
7738
|
+
done(error);
|
|
7739
|
+
}
|
|
7740
|
+
}).timeout(attemptTimeout);
|
|
7741
|
+
});
|
|
7742
|
+
|
|
7743
|
+
describe('#addIPPoolInSDAVirtualNetwork - errors', () => {
|
|
7744
|
+
it('should have a addIPPoolInSDAVirtualNetwork function', (done) => {
|
|
7745
|
+
try {
|
|
7746
|
+
assert.equal(true, typeof a.addIPPoolInSDAVirtualNetwork === 'function');
|
|
7747
|
+
done();
|
|
7748
|
+
} catch (error) {
|
|
7749
|
+
log.error(`Test Failure: ${error}`);
|
|
7750
|
+
done(error);
|
|
7751
|
+
}
|
|
7752
|
+
}).timeout(attemptTimeout);
|
|
7753
|
+
it('should error if - missing request', (done) => {
|
|
7754
|
+
try {
|
|
7755
|
+
a.addIPPoolInSDAVirtualNetwork(null, (data, error) => {
|
|
7756
|
+
try {
|
|
7757
|
+
const displayE = 'request is required';
|
|
7758
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-addIPPoolInSDAVirtualNetwork', displayE);
|
|
7759
|
+
done();
|
|
7760
|
+
} catch (err) {
|
|
7761
|
+
log.error(`Test Failure: ${err}`);
|
|
7762
|
+
done(err);
|
|
7763
|
+
}
|
|
7764
|
+
});
|
|
7765
|
+
} catch (error) {
|
|
7766
|
+
log.error(`Adapter Exception: ${error}`);
|
|
7767
|
+
done(error);
|
|
7768
|
+
}
|
|
7769
|
+
}).timeout(attemptTimeout);
|
|
7770
|
+
});
|
|
7771
|
+
|
|
7772
|
+
describe('#deleteIPPoolFromSDAVirtualNetwork - errors', () => {
|
|
7773
|
+
it('should have a deleteIPPoolFromSDAVirtualNetwork function', (done) => {
|
|
7774
|
+
try {
|
|
7775
|
+
assert.equal(true, typeof a.deleteIPPoolFromSDAVirtualNetwork === 'function');
|
|
7776
|
+
done();
|
|
7777
|
+
} catch (error) {
|
|
7778
|
+
log.error(`Test Failure: ${error}`);
|
|
7779
|
+
done(error);
|
|
7780
|
+
}
|
|
7781
|
+
}).timeout(attemptTimeout);
|
|
7782
|
+
it('should error if - missing siteNameHierarchy', (done) => {
|
|
7783
|
+
try {
|
|
7784
|
+
a.deleteIPPoolFromSDAVirtualNetwork(null, null, null, (data, error) => {
|
|
7785
|
+
try {
|
|
7786
|
+
const displayE = 'siteNameHierarchy is required';
|
|
7787
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-deleteIPPoolFromSDAVirtualNetwork', displayE);
|
|
7788
|
+
done();
|
|
7789
|
+
} catch (err) {
|
|
7790
|
+
log.error(`Test Failure: ${err}`);
|
|
7791
|
+
done(err);
|
|
7792
|
+
}
|
|
7793
|
+
});
|
|
7794
|
+
} catch (error) {
|
|
7795
|
+
log.error(`Adapter Exception: ${error}`);
|
|
7796
|
+
done(error);
|
|
7797
|
+
}
|
|
7798
|
+
}).timeout(attemptTimeout);
|
|
7799
|
+
it('should error if - missing virtualNetworkName', (done) => {
|
|
7800
|
+
try {
|
|
7801
|
+
a.deleteIPPoolFromSDAVirtualNetwork('fakeparam', null, null, (data, error) => {
|
|
7802
|
+
try {
|
|
7803
|
+
const displayE = 'virtualNetworkName is required';
|
|
7804
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-deleteIPPoolFromSDAVirtualNetwork', displayE);
|
|
7805
|
+
done();
|
|
7806
|
+
} catch (err) {
|
|
7807
|
+
log.error(`Test Failure: ${err}`);
|
|
7808
|
+
done(err);
|
|
7809
|
+
}
|
|
7810
|
+
});
|
|
7811
|
+
} catch (error) {
|
|
7812
|
+
log.error(`Adapter Exception: ${error}`);
|
|
7813
|
+
done(error);
|
|
7814
|
+
}
|
|
7815
|
+
}).timeout(attemptTimeout);
|
|
7816
|
+
it('should error if - missing ipPoolName', (done) => {
|
|
7817
|
+
try {
|
|
7818
|
+
a.deleteIPPoolFromSDAVirtualNetwork('fakeparam', 'fakeparam', null, (data, error) => {
|
|
7819
|
+
try {
|
|
7820
|
+
const displayE = 'ipPoolName is required';
|
|
7821
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-deleteIPPoolFromSDAVirtualNetwork', displayE);
|
|
7822
|
+
done();
|
|
7823
|
+
} catch (err) {
|
|
7824
|
+
log.error(`Test Failure: ${err}`);
|
|
7825
|
+
done(err);
|
|
7826
|
+
}
|
|
7827
|
+
});
|
|
7828
|
+
} catch (error) {
|
|
7829
|
+
log.error(`Adapter Exception: ${error}`);
|
|
7830
|
+
done(error);
|
|
7831
|
+
}
|
|
7832
|
+
}).timeout(attemptTimeout);
|
|
7833
|
+
});
|
|
7834
|
+
|
|
7835
|
+
describe('#getIPPoolFromSDAVirtualNetwork - errors', () => {
|
|
7836
|
+
it('should have a getIPPoolFromSDAVirtualNetwork function', (done) => {
|
|
7837
|
+
try {
|
|
7838
|
+
assert.equal(true, typeof a.getIPPoolFromSDAVirtualNetwork === 'function');
|
|
7839
|
+
done();
|
|
7840
|
+
} catch (error) {
|
|
7841
|
+
log.error(`Test Failure: ${error}`);
|
|
7842
|
+
done(error);
|
|
7843
|
+
}
|
|
7844
|
+
}).timeout(attemptTimeout);
|
|
7845
|
+
it('should error if - missing siteNameHierarchy', (done) => {
|
|
7846
|
+
try {
|
|
7847
|
+
a.getIPPoolFromSDAVirtualNetwork(null, null, null, (data, error) => {
|
|
7848
|
+
try {
|
|
7849
|
+
const displayE = 'siteNameHierarchy is required';
|
|
7850
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-getIPPoolFromSDAVirtualNetwork', displayE);
|
|
7851
|
+
done();
|
|
7852
|
+
} catch (err) {
|
|
7853
|
+
log.error(`Test Failure: ${err}`);
|
|
7854
|
+
done(err);
|
|
7855
|
+
}
|
|
7856
|
+
});
|
|
7857
|
+
} catch (error) {
|
|
7858
|
+
log.error(`Adapter Exception: ${error}`);
|
|
7859
|
+
done(error);
|
|
7860
|
+
}
|
|
7861
|
+
}).timeout(attemptTimeout);
|
|
7862
|
+
it('should error if - missing virtualNetworkName', (done) => {
|
|
7863
|
+
try {
|
|
7864
|
+
a.getIPPoolFromSDAVirtualNetwork('fakeparam', null, null, (data, error) => {
|
|
7865
|
+
try {
|
|
7866
|
+
const displayE = 'virtualNetworkName is required';
|
|
7867
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-getIPPoolFromSDAVirtualNetwork', displayE);
|
|
7868
|
+
done();
|
|
7869
|
+
} catch (err) {
|
|
7870
|
+
log.error(`Test Failure: ${err}`);
|
|
7871
|
+
done(err);
|
|
7872
|
+
}
|
|
7873
|
+
});
|
|
7874
|
+
} catch (error) {
|
|
7875
|
+
log.error(`Adapter Exception: ${error}`);
|
|
7876
|
+
done(error);
|
|
7877
|
+
}
|
|
7878
|
+
}).timeout(attemptTimeout);
|
|
7879
|
+
it('should error if - missing ipPoolName', (done) => {
|
|
7880
|
+
try {
|
|
7881
|
+
a.getIPPoolFromSDAVirtualNetwork('fakeparam', 'fakeparam', null, (data, error) => {
|
|
7882
|
+
try {
|
|
7883
|
+
const displayE = 'ipPoolName is required';
|
|
7884
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-getIPPoolFromSDAVirtualNetwork', displayE);
|
|
7885
|
+
done();
|
|
7886
|
+
} catch (err) {
|
|
7887
|
+
log.error(`Test Failure: ${err}`);
|
|
7888
|
+
done(err);
|
|
7889
|
+
}
|
|
7890
|
+
});
|
|
7891
|
+
} catch (error) {
|
|
7892
|
+
log.error(`Adapter Exception: ${error}`);
|
|
7893
|
+
done(error);
|
|
7894
|
+
}
|
|
7895
|
+
}).timeout(attemptTimeout);
|
|
7896
|
+
});
|
|
7897
|
+
|
|
7898
|
+
describe('#deleteMulticastFromSDAFabric - errors', () => {
|
|
7899
|
+
it('should have a deleteMulticastFromSDAFabric function', (done) => {
|
|
7900
|
+
try {
|
|
7901
|
+
assert.equal(true, typeof a.deleteMulticastFromSDAFabric === 'function');
|
|
7902
|
+
done();
|
|
7903
|
+
} catch (error) {
|
|
7904
|
+
log.error(`Test Failure: ${error}`);
|
|
7905
|
+
done(error);
|
|
7906
|
+
}
|
|
7907
|
+
}).timeout(attemptTimeout);
|
|
7908
|
+
it('should error if - missing siteNameHierarchy', (done) => {
|
|
7909
|
+
try {
|
|
7910
|
+
a.deleteMulticastFromSDAFabric(null, (data, error) => {
|
|
7911
|
+
try {
|
|
7912
|
+
const displayE = 'siteNameHierarchy is required';
|
|
7913
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-deleteMulticastFromSDAFabric', displayE);
|
|
7914
|
+
done();
|
|
7915
|
+
} catch (err) {
|
|
7916
|
+
log.error(`Test Failure: ${err}`);
|
|
7917
|
+
done(err);
|
|
7918
|
+
}
|
|
7919
|
+
});
|
|
7920
|
+
} catch (error) {
|
|
7921
|
+
log.error(`Adapter Exception: ${error}`);
|
|
7922
|
+
done(error);
|
|
7923
|
+
}
|
|
7924
|
+
}).timeout(attemptTimeout);
|
|
7925
|
+
});
|
|
7926
|
+
|
|
7927
|
+
describe('#getMulticastDetailsFromSDAFabric - errors', () => {
|
|
7928
|
+
it('should have a getMulticastDetailsFromSDAFabric function', (done) => {
|
|
7929
|
+
try {
|
|
7930
|
+
assert.equal(true, typeof a.getMulticastDetailsFromSDAFabric === 'function');
|
|
7931
|
+
done();
|
|
7932
|
+
} catch (error) {
|
|
7933
|
+
log.error(`Test Failure: ${error}`);
|
|
7934
|
+
done(error);
|
|
7935
|
+
}
|
|
7936
|
+
}).timeout(attemptTimeout);
|
|
7937
|
+
it('should error if - missing siteNameHierarchy', (done) => {
|
|
7938
|
+
try {
|
|
7939
|
+
a.getMulticastDetailsFromSDAFabric(null, (data, error) => {
|
|
7940
|
+
try {
|
|
7941
|
+
const displayE = 'siteNameHierarchy is required';
|
|
7942
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-getMulticastDetailsFromSDAFabric', displayE);
|
|
7943
|
+
done();
|
|
7944
|
+
} catch (err) {
|
|
7945
|
+
log.error(`Test Failure: ${err}`);
|
|
7946
|
+
done(err);
|
|
7947
|
+
}
|
|
7948
|
+
});
|
|
7949
|
+
} catch (error) {
|
|
7950
|
+
log.error(`Adapter Exception: ${error}`);
|
|
7951
|
+
done(error);
|
|
7952
|
+
}
|
|
7953
|
+
}).timeout(attemptTimeout);
|
|
7954
|
+
});
|
|
7955
|
+
|
|
7956
|
+
describe('#addMulticastInSDAFabric - errors', () => {
|
|
7957
|
+
it('should have a addMulticastInSDAFabric function', (done) => {
|
|
7958
|
+
try {
|
|
7959
|
+
assert.equal(true, typeof a.addMulticastInSDAFabric === 'function');
|
|
7960
|
+
done();
|
|
7961
|
+
} catch (error) {
|
|
7962
|
+
log.error(`Test Failure: ${error}`);
|
|
7963
|
+
done(error);
|
|
7964
|
+
}
|
|
7965
|
+
}).timeout(attemptTimeout);
|
|
7966
|
+
it('should error if - missing request', (done) => {
|
|
7967
|
+
try {
|
|
7968
|
+
a.addMulticastInSDAFabric(null, (data, error) => {
|
|
7969
|
+
try {
|
|
7970
|
+
const displayE = 'request is required';
|
|
7971
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-addMulticastInSDAFabric', displayE);
|
|
7972
|
+
done();
|
|
7973
|
+
} catch (err) {
|
|
7974
|
+
log.error(`Test Failure: ${err}`);
|
|
7975
|
+
done(err);
|
|
7976
|
+
}
|
|
7977
|
+
});
|
|
7978
|
+
} catch (error) {
|
|
7979
|
+
log.error(`Adapter Exception: ${error}`);
|
|
7980
|
+
done(error);
|
|
7981
|
+
}
|
|
7982
|
+
}).timeout(attemptTimeout);
|
|
7983
|
+
});
|
|
7984
|
+
|
|
7985
|
+
describe('#getVirtualNetworkFromSDAFabric - errors', () => {
|
|
7986
|
+
it('should have a getVirtualNetworkFromSDAFabric function', (done) => {
|
|
7987
|
+
try {
|
|
7988
|
+
assert.equal(true, typeof a.getVirtualNetworkFromSDAFabric === 'function');
|
|
7989
|
+
done();
|
|
7990
|
+
} catch (error) {
|
|
7991
|
+
log.error(`Test Failure: ${error}`);
|
|
7992
|
+
done(error);
|
|
7993
|
+
}
|
|
7994
|
+
}).timeout(attemptTimeout);
|
|
7995
|
+
it('should error if - missing virtualNetworkName', (done) => {
|
|
7996
|
+
try {
|
|
7997
|
+
a.getVirtualNetworkFromSDAFabric(null, null, (data, error) => {
|
|
7998
|
+
try {
|
|
7999
|
+
const displayE = 'virtualNetworkName is required';
|
|
8000
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-getVirtualNetworkFromSDAFabric', displayE);
|
|
8001
|
+
done();
|
|
8002
|
+
} catch (err) {
|
|
8003
|
+
log.error(`Test Failure: ${err}`);
|
|
8004
|
+
done(err);
|
|
8005
|
+
}
|
|
8006
|
+
});
|
|
8007
|
+
} catch (error) {
|
|
8008
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8009
|
+
done(error);
|
|
8010
|
+
}
|
|
8011
|
+
}).timeout(attemptTimeout);
|
|
8012
|
+
it('should error if - missing siteNameHierarchy', (done) => {
|
|
8013
|
+
try {
|
|
8014
|
+
a.getVirtualNetworkFromSDAFabric('fakeparam', null, (data, error) => {
|
|
8015
|
+
try {
|
|
8016
|
+
const displayE = 'siteNameHierarchy is required';
|
|
8017
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-getVirtualNetworkFromSDAFabric', displayE);
|
|
8018
|
+
done();
|
|
8019
|
+
} catch (err) {
|
|
8020
|
+
log.error(`Test Failure: ${err}`);
|
|
8021
|
+
done(err);
|
|
8022
|
+
}
|
|
8023
|
+
});
|
|
8024
|
+
} catch (error) {
|
|
8025
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8026
|
+
done(error);
|
|
8027
|
+
}
|
|
8028
|
+
}).timeout(attemptTimeout);
|
|
8029
|
+
});
|
|
8030
|
+
|
|
8031
|
+
describe('#addVNInFabric - errors', () => {
|
|
8032
|
+
it('should have a addVNInFabric function', (done) => {
|
|
8033
|
+
try {
|
|
8034
|
+
assert.equal(true, typeof a.addVNInFabric === 'function');
|
|
8035
|
+
done();
|
|
8036
|
+
} catch (error) {
|
|
8037
|
+
log.error(`Test Failure: ${error}`);
|
|
8038
|
+
done(error);
|
|
8039
|
+
}
|
|
8040
|
+
}).timeout(attemptTimeout);
|
|
8041
|
+
it('should error if - missing request', (done) => {
|
|
8042
|
+
try {
|
|
8043
|
+
a.addVNInFabric(null, (data, error) => {
|
|
8044
|
+
try {
|
|
8045
|
+
const displayE = 'request is required';
|
|
8046
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-addVNInFabric', displayE);
|
|
8047
|
+
done();
|
|
8048
|
+
} catch (err) {
|
|
8049
|
+
log.error(`Test Failure: ${err}`);
|
|
8050
|
+
done(err);
|
|
8051
|
+
}
|
|
8052
|
+
});
|
|
8053
|
+
} catch (error) {
|
|
8054
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8055
|
+
done(error);
|
|
8056
|
+
}
|
|
8057
|
+
}).timeout(attemptTimeout);
|
|
8058
|
+
});
|
|
8059
|
+
|
|
8060
|
+
describe('#deleteVNFromSDAFabric - errors', () => {
|
|
8061
|
+
it('should have a deleteVNFromSDAFabric function', (done) => {
|
|
8062
|
+
try {
|
|
8063
|
+
assert.equal(true, typeof a.deleteVNFromSDAFabric === 'function');
|
|
8064
|
+
done();
|
|
8065
|
+
} catch (error) {
|
|
8066
|
+
log.error(`Test Failure: ${error}`);
|
|
8067
|
+
done(error);
|
|
8068
|
+
}
|
|
8069
|
+
}).timeout(attemptTimeout);
|
|
8070
|
+
it('should error if - missing virtualNetworkName', (done) => {
|
|
8071
|
+
try {
|
|
8072
|
+
a.deleteVNFromSDAFabric(null, null, (data, error) => {
|
|
8073
|
+
try {
|
|
8074
|
+
const displayE = 'virtualNetworkName is required';
|
|
8075
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-deleteVNFromSDAFabric', displayE);
|
|
8076
|
+
done();
|
|
8077
|
+
} catch (err) {
|
|
8078
|
+
log.error(`Test Failure: ${err}`);
|
|
8079
|
+
done(err);
|
|
8080
|
+
}
|
|
8081
|
+
});
|
|
8082
|
+
} catch (error) {
|
|
8083
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8084
|
+
done(error);
|
|
8085
|
+
}
|
|
8086
|
+
}).timeout(attemptTimeout);
|
|
8087
|
+
it('should error if - missing siteNameHierarchy', (done) => {
|
|
8088
|
+
try {
|
|
8089
|
+
a.deleteVNFromSDAFabric('fakeparam', null, (data, error) => {
|
|
8090
|
+
try {
|
|
8091
|
+
const displayE = 'siteNameHierarchy is required';
|
|
8092
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-deleteVNFromSDAFabric', displayE);
|
|
8093
|
+
done();
|
|
8094
|
+
} catch (err) {
|
|
8095
|
+
log.error(`Test Failure: ${err}`);
|
|
8096
|
+
done(err);
|
|
8097
|
+
}
|
|
8098
|
+
});
|
|
8099
|
+
} catch (error) {
|
|
8100
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8101
|
+
done(error);
|
|
8102
|
+
}
|
|
8103
|
+
}).timeout(attemptTimeout);
|
|
8104
|
+
});
|
|
8105
|
+
|
|
8106
|
+
describe('#deleteDefaultAuthenticationProfileFromSDAFabric - errors', () => {
|
|
8107
|
+
it('should have a deleteDefaultAuthenticationProfileFromSDAFabric function', (done) => {
|
|
8108
|
+
try {
|
|
8109
|
+
assert.equal(true, typeof a.deleteDefaultAuthenticationProfileFromSDAFabric === 'function');
|
|
8110
|
+
done();
|
|
8111
|
+
} catch (error) {
|
|
8112
|
+
log.error(`Test Failure: ${error}`);
|
|
8113
|
+
done(error);
|
|
8114
|
+
}
|
|
8115
|
+
}).timeout(attemptTimeout);
|
|
8116
|
+
it('should error if - missing siteNameHierarchy', (done) => {
|
|
8117
|
+
try {
|
|
8118
|
+
a.deleteDefaultAuthenticationProfileFromSDAFabric(null, (data, error) => {
|
|
8119
|
+
try {
|
|
8120
|
+
const displayE = 'siteNameHierarchy is required';
|
|
8121
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-deleteDefaultAuthenticationProfileFromSDAFabric', displayE);
|
|
8122
|
+
done();
|
|
8123
|
+
} catch (err) {
|
|
8124
|
+
log.error(`Test Failure: ${err}`);
|
|
8125
|
+
done(err);
|
|
8126
|
+
}
|
|
8127
|
+
});
|
|
8128
|
+
} catch (error) {
|
|
8129
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8130
|
+
done(error);
|
|
8131
|
+
}
|
|
8132
|
+
}).timeout(attemptTimeout);
|
|
8133
|
+
});
|
|
8134
|
+
|
|
8135
|
+
describe('#updateDefaultAuthenticationProfileInSDAFabric - errors', () => {
|
|
8136
|
+
it('should have a updateDefaultAuthenticationProfileInSDAFabric function', (done) => {
|
|
8137
|
+
try {
|
|
8138
|
+
assert.equal(true, typeof a.updateDefaultAuthenticationProfileInSDAFabric === 'function');
|
|
8139
|
+
done();
|
|
8140
|
+
} catch (error) {
|
|
8141
|
+
log.error(`Test Failure: ${error}`);
|
|
8142
|
+
done(error);
|
|
8143
|
+
}
|
|
8144
|
+
}).timeout(attemptTimeout);
|
|
8145
|
+
it('should error if - missing request', (done) => {
|
|
8146
|
+
try {
|
|
8147
|
+
a.updateDefaultAuthenticationProfileInSDAFabric(null, (data, error) => {
|
|
8148
|
+
try {
|
|
8149
|
+
const displayE = 'request is required';
|
|
8150
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-updateDefaultAuthenticationProfileInSDAFabric', displayE);
|
|
8151
|
+
done();
|
|
8152
|
+
} catch (err) {
|
|
8153
|
+
log.error(`Test Failure: ${err}`);
|
|
8154
|
+
done(err);
|
|
8155
|
+
}
|
|
8156
|
+
});
|
|
8157
|
+
} catch (error) {
|
|
8158
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8159
|
+
done(error);
|
|
8160
|
+
}
|
|
8161
|
+
}).timeout(attemptTimeout);
|
|
8162
|
+
});
|
|
8163
|
+
|
|
8164
|
+
describe('#getDefaultAuthenticationProfileFromSDAFabric - errors', () => {
|
|
8165
|
+
it('should have a getDefaultAuthenticationProfileFromSDAFabric function', (done) => {
|
|
8166
|
+
try {
|
|
8167
|
+
assert.equal(true, typeof a.getDefaultAuthenticationProfileFromSDAFabric === 'function');
|
|
8168
|
+
done();
|
|
8169
|
+
} catch (error) {
|
|
8170
|
+
log.error(`Test Failure: ${error}`);
|
|
8171
|
+
done(error);
|
|
8172
|
+
}
|
|
8173
|
+
}).timeout(attemptTimeout);
|
|
8174
|
+
it('should error if - missing siteNameHierarchy', (done) => {
|
|
8175
|
+
try {
|
|
8176
|
+
a.getDefaultAuthenticationProfileFromSDAFabric(null, null, (data, error) => {
|
|
8177
|
+
try {
|
|
8178
|
+
const displayE = 'siteNameHierarchy is required';
|
|
8179
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-getDefaultAuthenticationProfileFromSDAFabric', displayE);
|
|
8180
|
+
done();
|
|
8181
|
+
} catch (err) {
|
|
8182
|
+
log.error(`Test Failure: ${err}`);
|
|
8183
|
+
done(err);
|
|
8184
|
+
}
|
|
8185
|
+
});
|
|
8186
|
+
} catch (error) {
|
|
8187
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8188
|
+
done(error);
|
|
8189
|
+
}
|
|
8190
|
+
}).timeout(attemptTimeout);
|
|
8191
|
+
});
|
|
8192
|
+
|
|
8193
|
+
describe('#addDefaultAuthenticationTemplateInSDAFabric - errors', () => {
|
|
8194
|
+
it('should have a addDefaultAuthenticationTemplateInSDAFabric function', (done) => {
|
|
8195
|
+
try {
|
|
8196
|
+
assert.equal(true, typeof a.addDefaultAuthenticationTemplateInSDAFabric === 'function');
|
|
8197
|
+
done();
|
|
8198
|
+
} catch (error) {
|
|
8199
|
+
log.error(`Test Failure: ${error}`);
|
|
8200
|
+
done(error);
|
|
8201
|
+
}
|
|
8202
|
+
}).timeout(attemptTimeout);
|
|
8203
|
+
it('should error if - missing request', (done) => {
|
|
8204
|
+
try {
|
|
8205
|
+
a.addDefaultAuthenticationTemplateInSDAFabric(null, (data, error) => {
|
|
8206
|
+
try {
|
|
8207
|
+
const displayE = 'request is required';
|
|
8208
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-addDefaultAuthenticationTemplateInSDAFabric', displayE);
|
|
8209
|
+
done();
|
|
8210
|
+
} catch (err) {
|
|
8211
|
+
log.error(`Test Failure: ${err}`);
|
|
8212
|
+
done(err);
|
|
8213
|
+
}
|
|
8214
|
+
});
|
|
8215
|
+
} catch (error) {
|
|
8216
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8217
|
+
done(error);
|
|
8218
|
+
}
|
|
8219
|
+
}).timeout(attemptTimeout);
|
|
8220
|
+
});
|
|
8221
|
+
|
|
8222
|
+
describe('#deleteSiteFromSDAFabric - errors', () => {
|
|
8223
|
+
it('should have a deleteSiteFromSDAFabric function', (done) => {
|
|
8224
|
+
try {
|
|
8225
|
+
assert.equal(true, typeof a.deleteSiteFromSDAFabric === 'function');
|
|
8226
|
+
done();
|
|
8227
|
+
} catch (error) {
|
|
8228
|
+
log.error(`Test Failure: ${error}`);
|
|
8229
|
+
done(error);
|
|
8230
|
+
}
|
|
8231
|
+
}).timeout(attemptTimeout);
|
|
8232
|
+
it('should error if - missing siteNameHierarchy', (done) => {
|
|
8233
|
+
try {
|
|
8234
|
+
a.deleteSiteFromSDAFabric(null, (data, error) => {
|
|
8235
|
+
try {
|
|
8236
|
+
const displayE = 'siteNameHierarchy is required';
|
|
8237
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-deleteSiteFromSDAFabric', displayE);
|
|
8238
|
+
done();
|
|
8239
|
+
} catch (err) {
|
|
8240
|
+
log.error(`Test Failure: ${err}`);
|
|
8241
|
+
done(err);
|
|
8242
|
+
}
|
|
8243
|
+
});
|
|
8244
|
+
} catch (error) {
|
|
8245
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8246
|
+
done(error);
|
|
8247
|
+
}
|
|
8248
|
+
}).timeout(attemptTimeout);
|
|
8249
|
+
});
|
|
8250
|
+
|
|
8251
|
+
describe('#getSiteFromSDAFabric - errors', () => {
|
|
8252
|
+
it('should have a getSiteFromSDAFabric function', (done) => {
|
|
8253
|
+
try {
|
|
8254
|
+
assert.equal(true, typeof a.getSiteFromSDAFabric === 'function');
|
|
8255
|
+
done();
|
|
8256
|
+
} catch (error) {
|
|
8257
|
+
log.error(`Test Failure: ${error}`);
|
|
8258
|
+
done(error);
|
|
8259
|
+
}
|
|
8260
|
+
}).timeout(attemptTimeout);
|
|
8261
|
+
it('should error if - missing siteNameHierarchy', (done) => {
|
|
8262
|
+
try {
|
|
8263
|
+
a.getSiteFromSDAFabric(null, (data, error) => {
|
|
8264
|
+
try {
|
|
8265
|
+
const displayE = 'siteNameHierarchy is required';
|
|
8266
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-getSiteFromSDAFabric', displayE);
|
|
8267
|
+
done();
|
|
8268
|
+
} catch (err) {
|
|
8269
|
+
log.error(`Test Failure: ${err}`);
|
|
8270
|
+
done(err);
|
|
8271
|
+
}
|
|
8272
|
+
});
|
|
8273
|
+
} catch (error) {
|
|
8274
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8275
|
+
done(error);
|
|
8276
|
+
}
|
|
8277
|
+
}).timeout(attemptTimeout);
|
|
8278
|
+
});
|
|
8279
|
+
|
|
8280
|
+
describe('#addSiteInSDAFabric - errors', () => {
|
|
8281
|
+
it('should have a addSiteInSDAFabric function', (done) => {
|
|
8282
|
+
try {
|
|
8283
|
+
assert.equal(true, typeof a.addSiteInSDAFabric === 'function');
|
|
8284
|
+
done();
|
|
8285
|
+
} catch (error) {
|
|
8286
|
+
log.error(`Test Failure: ${error}`);
|
|
8287
|
+
done(error);
|
|
8288
|
+
}
|
|
8289
|
+
}).timeout(attemptTimeout);
|
|
8290
|
+
it('should error if - missing request', (done) => {
|
|
8291
|
+
try {
|
|
8292
|
+
a.addSiteInSDAFabric(null, (data, error) => {
|
|
8293
|
+
try {
|
|
8294
|
+
const displayE = 'request is required';
|
|
8295
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-addSiteInSDAFabric', displayE);
|
|
8296
|
+
done();
|
|
8297
|
+
} catch (err) {
|
|
8298
|
+
log.error(`Test Failure: ${err}`);
|
|
8299
|
+
done(err);
|
|
8300
|
+
}
|
|
8301
|
+
});
|
|
8302
|
+
} catch (error) {
|
|
8303
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8304
|
+
done(error);
|
|
8305
|
+
}
|
|
8306
|
+
}).timeout(attemptTimeout);
|
|
8307
|
+
});
|
|
8308
|
+
|
|
8309
|
+
describe('#reProvisionWiredDevice - errors', () => {
|
|
8310
|
+
it('should have a reProvisionWiredDevice function', (done) => {
|
|
8311
|
+
try {
|
|
8312
|
+
assert.equal(true, typeof a.reProvisionWiredDevice === 'function');
|
|
8313
|
+
done();
|
|
8314
|
+
} catch (error) {
|
|
8315
|
+
log.error(`Test Failure: ${error}`);
|
|
8316
|
+
done(error);
|
|
8317
|
+
}
|
|
8318
|
+
}).timeout(attemptTimeout);
|
|
8319
|
+
it('should error if - missing request', (done) => {
|
|
8320
|
+
try {
|
|
8321
|
+
a.reProvisionWiredDevice(null, (data, error) => {
|
|
8322
|
+
try {
|
|
8323
|
+
const displayE = 'request is required';
|
|
8324
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-reProvisionWiredDevice', displayE);
|
|
8325
|
+
done();
|
|
8326
|
+
} catch (err) {
|
|
8327
|
+
log.error(`Test Failure: ${err}`);
|
|
8328
|
+
done(err);
|
|
8329
|
+
}
|
|
8330
|
+
});
|
|
8331
|
+
} catch (error) {
|
|
8332
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8333
|
+
done(error);
|
|
8334
|
+
}
|
|
8335
|
+
}).timeout(attemptTimeout);
|
|
8336
|
+
});
|
|
8337
|
+
|
|
8338
|
+
describe('#provisionWiredDevice - errors', () => {
|
|
8339
|
+
it('should have a provisionWiredDevice function', (done) => {
|
|
8340
|
+
try {
|
|
8341
|
+
assert.equal(true, typeof a.provisionWiredDevice === 'function');
|
|
8342
|
+
done();
|
|
8343
|
+
} catch (error) {
|
|
8344
|
+
log.error(`Test Failure: ${error}`);
|
|
8345
|
+
done(error);
|
|
8346
|
+
}
|
|
8347
|
+
}).timeout(attemptTimeout);
|
|
8348
|
+
it('should error if - missing request', (done) => {
|
|
8349
|
+
try {
|
|
8350
|
+
a.provisionWiredDevice(null, (data, error) => {
|
|
8351
|
+
try {
|
|
8352
|
+
const displayE = 'request is required';
|
|
8353
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-provisionWiredDevice', displayE);
|
|
8354
|
+
done();
|
|
8355
|
+
} catch (err) {
|
|
8356
|
+
log.error(`Test Failure: ${err}`);
|
|
8357
|
+
done(err);
|
|
8358
|
+
}
|
|
8359
|
+
});
|
|
8360
|
+
} catch (error) {
|
|
8361
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8362
|
+
done(error);
|
|
8363
|
+
}
|
|
8364
|
+
}).timeout(attemptTimeout);
|
|
8365
|
+
});
|
|
8366
|
+
|
|
8367
|
+
describe('#getProvisionedWiredDevice - errors', () => {
|
|
8368
|
+
it('should have a getProvisionedWiredDevice function', (done) => {
|
|
8369
|
+
try {
|
|
8370
|
+
assert.equal(true, typeof a.getProvisionedWiredDevice === 'function');
|
|
8371
|
+
done();
|
|
8372
|
+
} catch (error) {
|
|
8373
|
+
log.error(`Test Failure: ${error}`);
|
|
8374
|
+
done(error);
|
|
8375
|
+
}
|
|
8376
|
+
}).timeout(attemptTimeout);
|
|
8377
|
+
it('should error if - missing deviceManagementIpAddress', (done) => {
|
|
8378
|
+
try {
|
|
8379
|
+
a.getProvisionedWiredDevice(null, (data, error) => {
|
|
8380
|
+
try {
|
|
8381
|
+
const displayE = 'deviceManagementIpAddress is required';
|
|
8382
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-getProvisionedWiredDevice', displayE);
|
|
8383
|
+
done();
|
|
8384
|
+
} catch (err) {
|
|
8385
|
+
log.error(`Test Failure: ${err}`);
|
|
8386
|
+
done(err);
|
|
8387
|
+
}
|
|
8388
|
+
});
|
|
8389
|
+
} catch (error) {
|
|
8390
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8391
|
+
done(error);
|
|
8392
|
+
}
|
|
8393
|
+
}).timeout(attemptTimeout);
|
|
8394
|
+
});
|
|
8395
|
+
|
|
8396
|
+
describe('#deleteProvisionedWiredDevice - errors', () => {
|
|
8397
|
+
it('should have a deleteProvisionedWiredDevice function', (done) => {
|
|
8398
|
+
try {
|
|
8399
|
+
assert.equal(true, typeof a.deleteProvisionedWiredDevice === 'function');
|
|
8400
|
+
done();
|
|
8401
|
+
} catch (error) {
|
|
8402
|
+
log.error(`Test Failure: ${error}`);
|
|
8403
|
+
done(error);
|
|
8404
|
+
}
|
|
8405
|
+
}).timeout(attemptTimeout);
|
|
8406
|
+
it('should error if - missing deviceManagementIpAddress', (done) => {
|
|
8407
|
+
try {
|
|
8408
|
+
a.deleteProvisionedWiredDevice(null, (data, error) => {
|
|
8409
|
+
try {
|
|
8410
|
+
const displayE = 'deviceManagementIpAddress is required';
|
|
8411
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-deleteProvisionedWiredDevice', displayE);
|
|
8412
|
+
done();
|
|
8413
|
+
} catch (err) {
|
|
8414
|
+
log.error(`Test Failure: ${err}`);
|
|
8415
|
+
done(err);
|
|
8416
|
+
}
|
|
8417
|
+
});
|
|
8418
|
+
} catch (error) {
|
|
8419
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8420
|
+
done(error);
|
|
8421
|
+
}
|
|
8422
|
+
}).timeout(attemptTimeout);
|
|
8423
|
+
});
|
|
8424
|
+
|
|
8425
|
+
describe('#getVirtualNetworkSummary - errors', () => {
|
|
8426
|
+
it('should have a getVirtualNetworkSummary function', (done) => {
|
|
8427
|
+
try {
|
|
8428
|
+
assert.equal(true, typeof a.getVirtualNetworkSummary === 'function');
|
|
8429
|
+
done();
|
|
8430
|
+
} catch (error) {
|
|
8431
|
+
log.error(`Test Failure: ${error}`);
|
|
8432
|
+
done(error);
|
|
8433
|
+
}
|
|
8434
|
+
}).timeout(attemptTimeout);
|
|
8435
|
+
it('should error if - missing siteNameHierarchy', (done) => {
|
|
8436
|
+
try {
|
|
8437
|
+
a.getVirtualNetworkSummary(null, (data, error) => {
|
|
8438
|
+
try {
|
|
8439
|
+
const displayE = 'siteNameHierarchy is required';
|
|
8440
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-getVirtualNetworkSummary', displayE);
|
|
8441
|
+
done();
|
|
8442
|
+
} catch (err) {
|
|
8443
|
+
log.error(`Test Failure: ${err}`);
|
|
8444
|
+
done(err);
|
|
8445
|
+
}
|
|
8446
|
+
});
|
|
8447
|
+
} catch (error) {
|
|
8448
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8449
|
+
done(error);
|
|
8450
|
+
}
|
|
8451
|
+
}).timeout(attemptTimeout);
|
|
8452
|
+
});
|
|
8453
|
+
|
|
8454
|
+
describe('#getDeviceRoleInSDAFabric - errors', () => {
|
|
8455
|
+
it('should have a getDeviceRoleInSDAFabric function', (done) => {
|
|
8456
|
+
try {
|
|
8457
|
+
assert.equal(true, typeof a.getDeviceRoleInSDAFabric === 'function');
|
|
8458
|
+
done();
|
|
8459
|
+
} catch (error) {
|
|
8460
|
+
log.error(`Test Failure: ${error}`);
|
|
8461
|
+
done(error);
|
|
8462
|
+
}
|
|
8463
|
+
}).timeout(attemptTimeout);
|
|
8464
|
+
it('should error if - missing deviceManagementIpAddress', (done) => {
|
|
8465
|
+
try {
|
|
8466
|
+
a.getDeviceRoleInSDAFabric(null, (data, error) => {
|
|
8467
|
+
try {
|
|
8468
|
+
const displayE = 'deviceManagementIpAddress is required';
|
|
8469
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-getDeviceRoleInSDAFabric', displayE);
|
|
8470
|
+
done();
|
|
8471
|
+
} catch (err) {
|
|
8472
|
+
log.error(`Test Failure: ${err}`);
|
|
8473
|
+
done(err);
|
|
8474
|
+
}
|
|
8475
|
+
});
|
|
8476
|
+
} catch (error) {
|
|
8477
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8478
|
+
done(error);
|
|
8479
|
+
}
|
|
8480
|
+
}).timeout(attemptTimeout);
|
|
8481
|
+
});
|
|
8482
|
+
|
|
8483
|
+
describe('#addPortAssignmentForUserDeviceInSDAFabric - errors', () => {
|
|
8484
|
+
it('should have a addPortAssignmentForUserDeviceInSDAFabric function', (done) => {
|
|
8485
|
+
try {
|
|
8486
|
+
assert.equal(true, typeof a.addPortAssignmentForUserDeviceInSDAFabric === 'function');
|
|
8487
|
+
done();
|
|
8488
|
+
} catch (error) {
|
|
8489
|
+
log.error(`Test Failure: ${error}`);
|
|
8490
|
+
done(error);
|
|
8491
|
+
}
|
|
8492
|
+
}).timeout(attemptTimeout);
|
|
8493
|
+
it('should error if - missing request', (done) => {
|
|
8494
|
+
try {
|
|
8495
|
+
a.addPortAssignmentForUserDeviceInSDAFabric(null, (data, error) => {
|
|
8496
|
+
try {
|
|
8497
|
+
const displayE = 'request is required';
|
|
8498
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-addPortAssignmentForUserDeviceInSDAFabric', displayE);
|
|
8499
|
+
done();
|
|
8500
|
+
} catch (err) {
|
|
8501
|
+
log.error(`Test Failure: ${err}`);
|
|
8502
|
+
done(err);
|
|
8503
|
+
}
|
|
8504
|
+
});
|
|
8505
|
+
} catch (error) {
|
|
8506
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8507
|
+
done(error);
|
|
8508
|
+
}
|
|
8509
|
+
}).timeout(attemptTimeout);
|
|
8510
|
+
});
|
|
8511
|
+
|
|
8512
|
+
describe('#getPortAssignmentForUserDeviceInSDAFabric - errors', () => {
|
|
8513
|
+
it('should have a getPortAssignmentForUserDeviceInSDAFabric function', (done) => {
|
|
8514
|
+
try {
|
|
8515
|
+
assert.equal(true, typeof a.getPortAssignmentForUserDeviceInSDAFabric === 'function');
|
|
8516
|
+
done();
|
|
8517
|
+
} catch (error) {
|
|
8518
|
+
log.error(`Test Failure: ${error}`);
|
|
8519
|
+
done(error);
|
|
8520
|
+
}
|
|
8521
|
+
}).timeout(attemptTimeout);
|
|
8522
|
+
it('should error if - missing deviceManagementIpAddress', (done) => {
|
|
8523
|
+
try {
|
|
8524
|
+
a.getPortAssignmentForUserDeviceInSDAFabric(null, null, (data, error) => {
|
|
8525
|
+
try {
|
|
8526
|
+
const displayE = 'deviceManagementIpAddress is required';
|
|
8527
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-getPortAssignmentForUserDeviceInSDAFabric', displayE);
|
|
8528
|
+
done();
|
|
8529
|
+
} catch (err) {
|
|
8530
|
+
log.error(`Test Failure: ${err}`);
|
|
8531
|
+
done(err);
|
|
8532
|
+
}
|
|
8533
|
+
});
|
|
8534
|
+
} catch (error) {
|
|
8535
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8536
|
+
done(error);
|
|
8537
|
+
}
|
|
8538
|
+
}).timeout(attemptTimeout);
|
|
8539
|
+
it('should error if - missing interfaceName', (done) => {
|
|
8540
|
+
try {
|
|
8541
|
+
a.getPortAssignmentForUserDeviceInSDAFabric('fakeparam', null, (data, error) => {
|
|
8542
|
+
try {
|
|
8543
|
+
const displayE = 'interfaceName is required';
|
|
8544
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-getPortAssignmentForUserDeviceInSDAFabric', displayE);
|
|
8545
|
+
done();
|
|
8546
|
+
} catch (err) {
|
|
8547
|
+
log.error(`Test Failure: ${err}`);
|
|
8548
|
+
done(err);
|
|
8549
|
+
}
|
|
8550
|
+
});
|
|
8551
|
+
} catch (error) {
|
|
8552
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8553
|
+
done(error);
|
|
8554
|
+
}
|
|
8555
|
+
}).timeout(attemptTimeout);
|
|
8556
|
+
});
|
|
8557
|
+
|
|
8558
|
+
describe('#deletePortAssignmentForUserDeviceInSDAFabric - errors', () => {
|
|
8559
|
+
it('should have a deletePortAssignmentForUserDeviceInSDAFabric function', (done) => {
|
|
8560
|
+
try {
|
|
8561
|
+
assert.equal(true, typeof a.deletePortAssignmentForUserDeviceInSDAFabric === 'function');
|
|
8562
|
+
done();
|
|
8563
|
+
} catch (error) {
|
|
8564
|
+
log.error(`Test Failure: ${error}`);
|
|
8565
|
+
done(error);
|
|
8566
|
+
}
|
|
8567
|
+
}).timeout(attemptTimeout);
|
|
8568
|
+
it('should error if - missing deviceManagementIpAddress', (done) => {
|
|
8569
|
+
try {
|
|
8570
|
+
a.deletePortAssignmentForUserDeviceInSDAFabric(null, null, (data, error) => {
|
|
8571
|
+
try {
|
|
8572
|
+
const displayE = 'deviceManagementIpAddress is required';
|
|
8573
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-deletePortAssignmentForUserDeviceInSDAFabric', displayE);
|
|
8574
|
+
done();
|
|
8575
|
+
} catch (err) {
|
|
8576
|
+
log.error(`Test Failure: ${err}`);
|
|
8577
|
+
done(err);
|
|
8578
|
+
}
|
|
8579
|
+
});
|
|
8580
|
+
} catch (error) {
|
|
8581
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8582
|
+
done(error);
|
|
8583
|
+
}
|
|
8584
|
+
}).timeout(attemptTimeout);
|
|
8585
|
+
it('should error if - missing interfaceName', (done) => {
|
|
8586
|
+
try {
|
|
8587
|
+
a.deletePortAssignmentForUserDeviceInSDAFabric('fakeparam', null, (data, error) => {
|
|
8588
|
+
try {
|
|
8589
|
+
const displayE = 'interfaceName is required';
|
|
8590
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-deletePortAssignmentForUserDeviceInSDAFabric', displayE);
|
|
8591
|
+
done();
|
|
8592
|
+
} catch (err) {
|
|
8593
|
+
log.error(`Test Failure: ${err}`);
|
|
8594
|
+
done(err);
|
|
8595
|
+
}
|
|
8596
|
+
});
|
|
8597
|
+
} catch (error) {
|
|
8598
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8599
|
+
done(error);
|
|
8600
|
+
}
|
|
8601
|
+
}).timeout(attemptTimeout);
|
|
8602
|
+
});
|
|
8603
|
+
|
|
8604
|
+
describe('#getBorderDeviceDetailFromSDAFabric - errors', () => {
|
|
8605
|
+
it('should have a getBorderDeviceDetailFromSDAFabric function', (done) => {
|
|
8606
|
+
try {
|
|
8607
|
+
assert.equal(true, typeof a.getBorderDeviceDetailFromSDAFabric === 'function');
|
|
8608
|
+
done();
|
|
8609
|
+
} catch (error) {
|
|
8610
|
+
log.error(`Test Failure: ${error}`);
|
|
8611
|
+
done(error);
|
|
8612
|
+
}
|
|
8613
|
+
}).timeout(attemptTimeout);
|
|
8614
|
+
it('should error if - missing deviceManagementIpAddress', (done) => {
|
|
8615
|
+
try {
|
|
8616
|
+
a.getBorderDeviceDetailFromSDAFabric(null, (data, error) => {
|
|
8617
|
+
try {
|
|
8618
|
+
const displayE = 'deviceManagementIpAddress is required';
|
|
8619
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-getBorderDeviceDetailFromSDAFabric', displayE);
|
|
8620
|
+
done();
|
|
8621
|
+
} catch (err) {
|
|
8622
|
+
log.error(`Test Failure: ${err}`);
|
|
8623
|
+
done(err);
|
|
8624
|
+
}
|
|
8625
|
+
});
|
|
8626
|
+
} catch (error) {
|
|
8627
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8628
|
+
done(error);
|
|
8629
|
+
}
|
|
8630
|
+
}).timeout(attemptTimeout);
|
|
8631
|
+
});
|
|
8632
|
+
|
|
8633
|
+
describe('#addBorderDeviceInSDAFabric - errors', () => {
|
|
8634
|
+
it('should have a addBorderDeviceInSDAFabric function', (done) => {
|
|
8635
|
+
try {
|
|
8636
|
+
assert.equal(true, typeof a.addBorderDeviceInSDAFabric === 'function');
|
|
8637
|
+
done();
|
|
8638
|
+
} catch (error) {
|
|
8639
|
+
log.error(`Test Failure: ${error}`);
|
|
8640
|
+
done(error);
|
|
8641
|
+
}
|
|
8642
|
+
}).timeout(attemptTimeout);
|
|
8643
|
+
it('should error if - missing request', (done) => {
|
|
8644
|
+
try {
|
|
8645
|
+
a.addBorderDeviceInSDAFabric(null, (data, error) => {
|
|
8646
|
+
try {
|
|
8647
|
+
const displayE = 'request is required';
|
|
8648
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-addBorderDeviceInSDAFabric', displayE);
|
|
8649
|
+
done();
|
|
8650
|
+
} catch (err) {
|
|
8651
|
+
log.error(`Test Failure: ${err}`);
|
|
8652
|
+
done(err);
|
|
8653
|
+
}
|
|
8654
|
+
});
|
|
8655
|
+
} catch (error) {
|
|
8656
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8657
|
+
done(error);
|
|
8658
|
+
}
|
|
8659
|
+
}).timeout(attemptTimeout);
|
|
8660
|
+
});
|
|
8661
|
+
|
|
8662
|
+
describe('#deleteBorderDeviceFromSDAFabric - errors', () => {
|
|
8663
|
+
it('should have a deleteBorderDeviceFromSDAFabric function', (done) => {
|
|
8664
|
+
try {
|
|
8665
|
+
assert.equal(true, typeof a.deleteBorderDeviceFromSDAFabric === 'function');
|
|
8666
|
+
done();
|
|
8667
|
+
} catch (error) {
|
|
8668
|
+
log.error(`Test Failure: ${error}`);
|
|
8669
|
+
done(error);
|
|
8670
|
+
}
|
|
8671
|
+
}).timeout(attemptTimeout);
|
|
8672
|
+
it('should error if - missing deviceManagementIpAddress', (done) => {
|
|
8673
|
+
try {
|
|
8674
|
+
a.deleteBorderDeviceFromSDAFabric(null, (data, error) => {
|
|
8675
|
+
try {
|
|
8676
|
+
const displayE = 'deviceManagementIpAddress is required';
|
|
8677
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-deleteBorderDeviceFromSDAFabric', displayE);
|
|
8678
|
+
done();
|
|
8679
|
+
} catch (err) {
|
|
8680
|
+
log.error(`Test Failure: ${err}`);
|
|
8681
|
+
done(err);
|
|
8682
|
+
}
|
|
8683
|
+
});
|
|
8684
|
+
} catch (error) {
|
|
8685
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8686
|
+
done(error);
|
|
8687
|
+
}
|
|
8688
|
+
}).timeout(attemptTimeout);
|
|
8689
|
+
});
|
|
8690
|
+
|
|
8691
|
+
describe('#getControlPlaneDeviceFromSDAFabric - errors', () => {
|
|
8692
|
+
it('should have a getControlPlaneDeviceFromSDAFabric function', (done) => {
|
|
8693
|
+
try {
|
|
8694
|
+
assert.equal(true, typeof a.getControlPlaneDeviceFromSDAFabric === 'function');
|
|
8695
|
+
done();
|
|
8696
|
+
} catch (error) {
|
|
8697
|
+
log.error(`Test Failure: ${error}`);
|
|
8698
|
+
done(error);
|
|
8699
|
+
}
|
|
8700
|
+
}).timeout(attemptTimeout);
|
|
8701
|
+
it('should error if - missing deviceManagementIpAddress', (done) => {
|
|
8702
|
+
try {
|
|
8703
|
+
a.getControlPlaneDeviceFromSDAFabric(null, (data, error) => {
|
|
8704
|
+
try {
|
|
8705
|
+
const displayE = 'deviceManagementIpAddress is required';
|
|
8706
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-getControlPlaneDeviceFromSDAFabric', displayE);
|
|
8707
|
+
done();
|
|
8708
|
+
} catch (err) {
|
|
8709
|
+
log.error(`Test Failure: ${err}`);
|
|
8710
|
+
done(err);
|
|
8711
|
+
}
|
|
8712
|
+
});
|
|
8713
|
+
} catch (error) {
|
|
8714
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8715
|
+
done(error);
|
|
8716
|
+
}
|
|
8717
|
+
}).timeout(attemptTimeout);
|
|
8718
|
+
});
|
|
8719
|
+
|
|
8720
|
+
describe('#addControlPlaneDeviceInSDAFabric - errors', () => {
|
|
8721
|
+
it('should have a addControlPlaneDeviceInSDAFabric function', (done) => {
|
|
8722
|
+
try {
|
|
8723
|
+
assert.equal(true, typeof a.addControlPlaneDeviceInSDAFabric === 'function');
|
|
8724
|
+
done();
|
|
8725
|
+
} catch (error) {
|
|
8726
|
+
log.error(`Test Failure: ${error}`);
|
|
8727
|
+
done(error);
|
|
8728
|
+
}
|
|
8729
|
+
}).timeout(attemptTimeout);
|
|
8730
|
+
it('should error if - missing request', (done) => {
|
|
8731
|
+
try {
|
|
8732
|
+
a.addControlPlaneDeviceInSDAFabric(null, (data, error) => {
|
|
8733
|
+
try {
|
|
8734
|
+
const displayE = 'request is required';
|
|
8735
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-addControlPlaneDeviceInSDAFabric', displayE);
|
|
8736
|
+
done();
|
|
8737
|
+
} catch (err) {
|
|
8738
|
+
log.error(`Test Failure: ${err}`);
|
|
8739
|
+
done(err);
|
|
8740
|
+
}
|
|
8741
|
+
});
|
|
8742
|
+
} catch (error) {
|
|
8743
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8744
|
+
done(error);
|
|
8745
|
+
}
|
|
8746
|
+
}).timeout(attemptTimeout);
|
|
8747
|
+
});
|
|
8748
|
+
|
|
8749
|
+
describe('#deleteControlPlaneDeviceInSDAFabric - errors', () => {
|
|
8750
|
+
it('should have a deleteControlPlaneDeviceInSDAFabric function', (done) => {
|
|
8751
|
+
try {
|
|
8752
|
+
assert.equal(true, typeof a.deleteControlPlaneDeviceInSDAFabric === 'function');
|
|
8753
|
+
done();
|
|
8754
|
+
} catch (error) {
|
|
8755
|
+
log.error(`Test Failure: ${error}`);
|
|
8756
|
+
done(error);
|
|
8757
|
+
}
|
|
8758
|
+
}).timeout(attemptTimeout);
|
|
8759
|
+
it('should error if - missing deviceManagementIpAddress', (done) => {
|
|
8760
|
+
try {
|
|
8761
|
+
a.deleteControlPlaneDeviceInSDAFabric(null, (data, error) => {
|
|
8762
|
+
try {
|
|
8763
|
+
const displayE = 'deviceManagementIpAddress is required';
|
|
8764
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-deleteControlPlaneDeviceInSDAFabric', displayE);
|
|
8765
|
+
done();
|
|
8766
|
+
} catch (err) {
|
|
8767
|
+
log.error(`Test Failure: ${err}`);
|
|
8768
|
+
done(err);
|
|
8769
|
+
}
|
|
8770
|
+
});
|
|
8771
|
+
} catch (error) {
|
|
8772
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8773
|
+
done(error);
|
|
8774
|
+
}
|
|
8775
|
+
}).timeout(attemptTimeout);
|
|
8776
|
+
});
|
|
8777
|
+
|
|
8778
|
+
describe('#updateVirtualNetworkWithScalableGroups - errors', () => {
|
|
8779
|
+
it('should have a updateVirtualNetworkWithScalableGroups function', (done) => {
|
|
8780
|
+
try {
|
|
8781
|
+
assert.equal(true, typeof a.updateVirtualNetworkWithScalableGroups === 'function');
|
|
8782
|
+
done();
|
|
8783
|
+
} catch (error) {
|
|
8784
|
+
log.error(`Test Failure: ${error}`);
|
|
8785
|
+
done(error);
|
|
8786
|
+
}
|
|
8787
|
+
}).timeout(attemptTimeout);
|
|
8788
|
+
it('should error if - missing request', (done) => {
|
|
8789
|
+
try {
|
|
8790
|
+
a.updateVirtualNetworkWithScalableGroups(null, (data, error) => {
|
|
8791
|
+
try {
|
|
8792
|
+
const displayE = 'request is required';
|
|
8793
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-updateVirtualNetworkWithScalableGroups', displayE);
|
|
8794
|
+
done();
|
|
8795
|
+
} catch (err) {
|
|
8796
|
+
log.error(`Test Failure: ${err}`);
|
|
8797
|
+
done(err);
|
|
8798
|
+
}
|
|
8799
|
+
});
|
|
8800
|
+
} catch (error) {
|
|
8801
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8802
|
+
done(error);
|
|
8803
|
+
}
|
|
8804
|
+
}).timeout(attemptTimeout);
|
|
8805
|
+
});
|
|
8806
|
+
|
|
8807
|
+
describe('#deleteVirtualNetworkWithScalableGroups - errors', () => {
|
|
8808
|
+
it('should have a deleteVirtualNetworkWithScalableGroups function', (done) => {
|
|
8809
|
+
try {
|
|
8810
|
+
assert.equal(true, typeof a.deleteVirtualNetworkWithScalableGroups === 'function');
|
|
8811
|
+
done();
|
|
8812
|
+
} catch (error) {
|
|
8813
|
+
log.error(`Test Failure: ${error}`);
|
|
8814
|
+
done(error);
|
|
8815
|
+
}
|
|
8816
|
+
}).timeout(attemptTimeout);
|
|
8817
|
+
it('should error if - missing virtualNetworkName', (done) => {
|
|
8818
|
+
try {
|
|
8819
|
+
a.deleteVirtualNetworkWithScalableGroups(null, (data, error) => {
|
|
8820
|
+
try {
|
|
8821
|
+
const displayE = 'virtualNetworkName is required';
|
|
8822
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-deleteVirtualNetworkWithScalableGroups', displayE);
|
|
8823
|
+
done();
|
|
8824
|
+
} catch (err) {
|
|
8825
|
+
log.error(`Test Failure: ${err}`);
|
|
8826
|
+
done(err);
|
|
8827
|
+
}
|
|
8828
|
+
});
|
|
8829
|
+
} catch (error) {
|
|
8830
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8831
|
+
done(error);
|
|
8832
|
+
}
|
|
8833
|
+
}).timeout(attemptTimeout);
|
|
8834
|
+
});
|
|
8835
|
+
|
|
8836
|
+
describe('#getVirtualNetworkWithScalableGroups - errors', () => {
|
|
8837
|
+
it('should have a getVirtualNetworkWithScalableGroups function', (done) => {
|
|
8838
|
+
try {
|
|
8839
|
+
assert.equal(true, typeof a.getVirtualNetworkWithScalableGroups === 'function');
|
|
8840
|
+
done();
|
|
8841
|
+
} catch (error) {
|
|
8842
|
+
log.error(`Test Failure: ${error}`);
|
|
8843
|
+
done(error);
|
|
8844
|
+
}
|
|
8845
|
+
}).timeout(attemptTimeout);
|
|
8846
|
+
it('should error if - missing virtualNetworkName', (done) => {
|
|
8847
|
+
try {
|
|
8848
|
+
a.getVirtualNetworkWithScalableGroups(null, (data, error) => {
|
|
8849
|
+
try {
|
|
8850
|
+
const displayE = 'virtualNetworkName is required';
|
|
8851
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-getVirtualNetworkWithScalableGroups', displayE);
|
|
8852
|
+
done();
|
|
8853
|
+
} catch (err) {
|
|
8854
|
+
log.error(`Test Failure: ${err}`);
|
|
8855
|
+
done(err);
|
|
8856
|
+
}
|
|
8857
|
+
});
|
|
8858
|
+
} catch (error) {
|
|
8859
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8860
|
+
done(error);
|
|
8861
|
+
}
|
|
8862
|
+
}).timeout(attemptTimeout);
|
|
8863
|
+
});
|
|
8864
|
+
|
|
8865
|
+
describe('#addVirtualNetworkWithScalableGroups - errors', () => {
|
|
8866
|
+
it('should have a addVirtualNetworkWithScalableGroups function', (done) => {
|
|
8867
|
+
try {
|
|
8868
|
+
assert.equal(true, typeof a.addVirtualNetworkWithScalableGroups === 'function');
|
|
8869
|
+
done();
|
|
8870
|
+
} catch (error) {
|
|
8871
|
+
log.error(`Test Failure: ${error}`);
|
|
8872
|
+
done(error);
|
|
8873
|
+
}
|
|
8874
|
+
}).timeout(attemptTimeout);
|
|
8875
|
+
it('should error if - missing request', (done) => {
|
|
8876
|
+
try {
|
|
8877
|
+
a.addVirtualNetworkWithScalableGroups(null, (data, error) => {
|
|
8878
|
+
try {
|
|
8879
|
+
const displayE = 'request is required';
|
|
8880
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-dna_center-adapter-addVirtualNetworkWithScalableGroups', displayE);
|
|
8881
|
+
done();
|
|
8882
|
+
} catch (err) {
|
|
8883
|
+
log.error(`Test Failure: ${err}`);
|
|
8884
|
+
done(err);
|
|
8885
|
+
}
|
|
8886
|
+
});
|
|
8887
|
+
} catch (error) {
|
|
8888
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8889
|
+
done(error);
|
|
8890
|
+
}
|
|
8891
|
+
}).timeout(attemptTimeout);
|
|
8892
|
+
});
|
|
7418
8893
|
});
|
|
7419
8894
|
});
|