@itentialopensource/adapter-paragon_pathfinder 0.1.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CALLS.md +950 -0
- package/CHANGELOG.md +8 -1
- package/adapter.js +12261 -0
- package/entities/Config/action.json +85 -0
- package/entities/Config/schema.json +22 -0
- package/entities/Netconf/action.json +126 -0
- package/entities/Netconf/schema.json +24 -0
- package/entities/Scheduler/action.json +168 -0
- package/entities/Scheduler/schema.json +26 -0
- package/entities/Topology/action.json +2402 -0
- package/entities/Topology/schema.json +135 -0
- package/entities/TransportControllerGroups/action.json +146 -0
- package/entities/TransportControllerGroups/schema.json +25 -0
- package/entities/TransportControllers/action.json +106 -0
- package/entities/TransportControllers/schema.json +23 -0
- package/package.json +1 -1
- package/pronghorn.json +28283 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +7 -7
- package/report/pathfinder-api-v2.json +30876 -0
- package/test/integration/adapterTestIntegration.js +6968 -0
- package/test/unit/adapterTestUnit.js +4688 -0
|
@@ -14612,5 +14612,4693 @@ describe('[unit] Paragon_pathfinder Adapter Test', () => {
|
|
|
14612
14612
|
}
|
|
14613
14613
|
}).timeout(attemptTimeout);
|
|
14614
14614
|
});
|
|
14615
|
+
|
|
14616
|
+
describe('#getTopologyV2 - errors', () => {
|
|
14617
|
+
it('should have a getTopologyV2 function', (done) => {
|
|
14618
|
+
try {
|
|
14619
|
+
assert.equal(true, typeof a.getTopologyV2 === 'function');
|
|
14620
|
+
done();
|
|
14621
|
+
} catch (error) {
|
|
14622
|
+
log.error(`Test Failure: ${error}`);
|
|
14623
|
+
done(error);
|
|
14624
|
+
}
|
|
14625
|
+
}).timeout(attemptTimeout);
|
|
14626
|
+
});
|
|
14627
|
+
|
|
14628
|
+
describe('#getTopologyV2TopologyId - errors', () => {
|
|
14629
|
+
it('should have a getTopologyV2TopologyId function', (done) => {
|
|
14630
|
+
try {
|
|
14631
|
+
assert.equal(true, typeof a.getTopologyV2TopologyId === 'function');
|
|
14632
|
+
done();
|
|
14633
|
+
} catch (error) {
|
|
14634
|
+
log.error(`Test Failure: ${error}`);
|
|
14635
|
+
done(error);
|
|
14636
|
+
}
|
|
14637
|
+
}).timeout(attemptTimeout);
|
|
14638
|
+
it('should error if - missing topologyId', (done) => {
|
|
14639
|
+
try {
|
|
14640
|
+
a.getTopologyV2TopologyId(null, (data, error) => {
|
|
14641
|
+
try {
|
|
14642
|
+
const displayE = 'topologyId is required';
|
|
14643
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyId', displayE);
|
|
14644
|
+
done();
|
|
14645
|
+
} catch (err) {
|
|
14646
|
+
log.error(`Test Failure: ${err}`);
|
|
14647
|
+
done(err);
|
|
14648
|
+
}
|
|
14649
|
+
});
|
|
14650
|
+
} catch (error) {
|
|
14651
|
+
log.error(`Adapter Exception: ${error}`);
|
|
14652
|
+
done(error);
|
|
14653
|
+
}
|
|
14654
|
+
}).timeout(attemptTimeout);
|
|
14655
|
+
});
|
|
14656
|
+
|
|
14657
|
+
describe('#deleteTopologyV2TopologyId - errors', () => {
|
|
14658
|
+
it('should have a deleteTopologyV2TopologyId function', (done) => {
|
|
14659
|
+
try {
|
|
14660
|
+
assert.equal(true, typeof a.deleteTopologyV2TopologyId === 'function');
|
|
14661
|
+
done();
|
|
14662
|
+
} catch (error) {
|
|
14663
|
+
log.error(`Test Failure: ${error}`);
|
|
14664
|
+
done(error);
|
|
14665
|
+
}
|
|
14666
|
+
}).timeout(attemptTimeout);
|
|
14667
|
+
it('should error if - missing topologyId', (done) => {
|
|
14668
|
+
try {
|
|
14669
|
+
a.deleteTopologyV2TopologyId(null, (data, error) => {
|
|
14670
|
+
try {
|
|
14671
|
+
const displayE = 'topologyId is required';
|
|
14672
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTopologyV2TopologyId', displayE);
|
|
14673
|
+
done();
|
|
14674
|
+
} catch (err) {
|
|
14675
|
+
log.error(`Test Failure: ${err}`);
|
|
14676
|
+
done(err);
|
|
14677
|
+
}
|
|
14678
|
+
});
|
|
14679
|
+
} catch (error) {
|
|
14680
|
+
log.error(`Adapter Exception: ${error}`);
|
|
14681
|
+
done(error);
|
|
14682
|
+
}
|
|
14683
|
+
}).timeout(attemptTimeout);
|
|
14684
|
+
});
|
|
14685
|
+
|
|
14686
|
+
describe('#getTopologyV2TopologyIdStream - errors', () => {
|
|
14687
|
+
it('should have a getTopologyV2TopologyIdStream function', (done) => {
|
|
14688
|
+
try {
|
|
14689
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdStream === 'function');
|
|
14690
|
+
done();
|
|
14691
|
+
} catch (error) {
|
|
14692
|
+
log.error(`Test Failure: ${error}`);
|
|
14693
|
+
done(error);
|
|
14694
|
+
}
|
|
14695
|
+
}).timeout(attemptTimeout);
|
|
14696
|
+
it('should error if - missing topologyId', (done) => {
|
|
14697
|
+
try {
|
|
14698
|
+
a.getTopologyV2TopologyIdStream(null, (data, error) => {
|
|
14699
|
+
try {
|
|
14700
|
+
const displayE = 'topologyId is required';
|
|
14701
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdStream', displayE);
|
|
14702
|
+
done();
|
|
14703
|
+
} catch (err) {
|
|
14704
|
+
log.error(`Test Failure: ${err}`);
|
|
14705
|
+
done(err);
|
|
14706
|
+
}
|
|
14707
|
+
});
|
|
14708
|
+
} catch (error) {
|
|
14709
|
+
log.error(`Adapter Exception: ${error}`);
|
|
14710
|
+
done(error);
|
|
14711
|
+
}
|
|
14712
|
+
}).timeout(attemptTimeout);
|
|
14713
|
+
});
|
|
14714
|
+
|
|
14715
|
+
describe('#getTopologyV2TopologyIdStatus - errors', () => {
|
|
14716
|
+
it('should have a getTopologyV2TopologyIdStatus function', (done) => {
|
|
14717
|
+
try {
|
|
14718
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdStatus === 'function');
|
|
14719
|
+
done();
|
|
14720
|
+
} catch (error) {
|
|
14721
|
+
log.error(`Test Failure: ${error}`);
|
|
14722
|
+
done(error);
|
|
14723
|
+
}
|
|
14724
|
+
}).timeout(attemptTimeout);
|
|
14725
|
+
it('should error if - missing topologyId', (done) => {
|
|
14726
|
+
try {
|
|
14727
|
+
a.getTopologyV2TopologyIdStatus(null, (data, error) => {
|
|
14728
|
+
try {
|
|
14729
|
+
const displayE = 'topologyId is required';
|
|
14730
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdStatus', displayE);
|
|
14731
|
+
done();
|
|
14732
|
+
} catch (err) {
|
|
14733
|
+
log.error(`Test Failure: ${err}`);
|
|
14734
|
+
done(err);
|
|
14735
|
+
}
|
|
14736
|
+
});
|
|
14737
|
+
} catch (error) {
|
|
14738
|
+
log.error(`Adapter Exception: ${error}`);
|
|
14739
|
+
done(error);
|
|
14740
|
+
}
|
|
14741
|
+
}).timeout(attemptTimeout);
|
|
14742
|
+
});
|
|
14743
|
+
|
|
14744
|
+
describe('#getTopologyV2TopologyIdStatusAnalyticsCollection - errors', () => {
|
|
14745
|
+
it('should have a getTopologyV2TopologyIdStatusAnalyticsCollection function', (done) => {
|
|
14746
|
+
try {
|
|
14747
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdStatusAnalyticsCollection === 'function');
|
|
14748
|
+
done();
|
|
14749
|
+
} catch (error) {
|
|
14750
|
+
log.error(`Test Failure: ${error}`);
|
|
14751
|
+
done(error);
|
|
14752
|
+
}
|
|
14753
|
+
}).timeout(attemptTimeout);
|
|
14754
|
+
it('should error if - missing topologyId', (done) => {
|
|
14755
|
+
try {
|
|
14756
|
+
a.getTopologyV2TopologyIdStatusAnalyticsCollection(null, (data, error) => {
|
|
14757
|
+
try {
|
|
14758
|
+
const displayE = 'topologyId is required';
|
|
14759
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdStatusAnalyticsCollection', displayE);
|
|
14760
|
+
done();
|
|
14761
|
+
} catch (err) {
|
|
14762
|
+
log.error(`Test Failure: ${err}`);
|
|
14763
|
+
done(err);
|
|
14764
|
+
}
|
|
14765
|
+
});
|
|
14766
|
+
} catch (error) {
|
|
14767
|
+
log.error(`Adapter Exception: ${error}`);
|
|
14768
|
+
done(error);
|
|
14769
|
+
}
|
|
14770
|
+
}).timeout(attemptTimeout);
|
|
14771
|
+
});
|
|
14772
|
+
|
|
14773
|
+
describe('#getTopologyV2TopologyIdStatusAnalyticsDatabase - errors', () => {
|
|
14774
|
+
it('should have a getTopologyV2TopologyIdStatusAnalyticsDatabase function', (done) => {
|
|
14775
|
+
try {
|
|
14776
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdStatusAnalyticsDatabase === 'function');
|
|
14777
|
+
done();
|
|
14778
|
+
} catch (error) {
|
|
14779
|
+
log.error(`Test Failure: ${error}`);
|
|
14780
|
+
done(error);
|
|
14781
|
+
}
|
|
14782
|
+
}).timeout(attemptTimeout);
|
|
14783
|
+
it('should error if - missing topologyId', (done) => {
|
|
14784
|
+
try {
|
|
14785
|
+
a.getTopologyV2TopologyIdStatusAnalyticsDatabase(null, (data, error) => {
|
|
14786
|
+
try {
|
|
14787
|
+
const displayE = 'topologyId is required';
|
|
14788
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdStatusAnalyticsDatabase', displayE);
|
|
14789
|
+
done();
|
|
14790
|
+
} catch (err) {
|
|
14791
|
+
log.error(`Test Failure: ${err}`);
|
|
14792
|
+
done(err);
|
|
14793
|
+
}
|
|
14794
|
+
});
|
|
14795
|
+
} catch (error) {
|
|
14796
|
+
log.error(`Adapter Exception: ${error}`);
|
|
14797
|
+
done(error);
|
|
14798
|
+
}
|
|
14799
|
+
}).timeout(attemptTimeout);
|
|
14800
|
+
});
|
|
14801
|
+
|
|
14802
|
+
describe('#getTopologyV2TopologyIdStatusPce - errors', () => {
|
|
14803
|
+
it('should have a getTopologyV2TopologyIdStatusPce function', (done) => {
|
|
14804
|
+
try {
|
|
14805
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdStatusPce === 'function');
|
|
14806
|
+
done();
|
|
14807
|
+
} catch (error) {
|
|
14808
|
+
log.error(`Test Failure: ${error}`);
|
|
14809
|
+
done(error);
|
|
14810
|
+
}
|
|
14811
|
+
}).timeout(attemptTimeout);
|
|
14812
|
+
it('should error if - missing topologyId', (done) => {
|
|
14813
|
+
try {
|
|
14814
|
+
a.getTopologyV2TopologyIdStatusPce(null, (data, error) => {
|
|
14815
|
+
try {
|
|
14816
|
+
const displayE = 'topologyId is required';
|
|
14817
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdStatusPce', displayE);
|
|
14818
|
+
done();
|
|
14819
|
+
} catch (err) {
|
|
14820
|
+
log.error(`Test Failure: ${err}`);
|
|
14821
|
+
done(err);
|
|
14822
|
+
}
|
|
14823
|
+
});
|
|
14824
|
+
} catch (error) {
|
|
14825
|
+
log.error(`Adapter Exception: ${error}`);
|
|
14826
|
+
done(error);
|
|
14827
|
+
}
|
|
14828
|
+
}).timeout(attemptTimeout);
|
|
14829
|
+
});
|
|
14830
|
+
|
|
14831
|
+
describe('#getTopologyV2TopologyIdStatusTopologyAcquisition - errors', () => {
|
|
14832
|
+
it('should have a getTopologyV2TopologyIdStatusTopologyAcquisition function', (done) => {
|
|
14833
|
+
try {
|
|
14834
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdStatusTopologyAcquisition === 'function');
|
|
14835
|
+
done();
|
|
14836
|
+
} catch (error) {
|
|
14837
|
+
log.error(`Test Failure: ${error}`);
|
|
14838
|
+
done(error);
|
|
14839
|
+
}
|
|
14840
|
+
}).timeout(attemptTimeout);
|
|
14841
|
+
it('should error if - missing topologyId', (done) => {
|
|
14842
|
+
try {
|
|
14843
|
+
a.getTopologyV2TopologyIdStatusTopologyAcquisition(null, (data, error) => {
|
|
14844
|
+
try {
|
|
14845
|
+
const displayE = 'topologyId is required';
|
|
14846
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdStatusTopologyAcquisition', displayE);
|
|
14847
|
+
done();
|
|
14848
|
+
} catch (err) {
|
|
14849
|
+
log.error(`Test Failure: ${err}`);
|
|
14850
|
+
done(err);
|
|
14851
|
+
}
|
|
14852
|
+
});
|
|
14853
|
+
} catch (error) {
|
|
14854
|
+
log.error(`Adapter Exception: ${error}`);
|
|
14855
|
+
done(error);
|
|
14856
|
+
}
|
|
14857
|
+
}).timeout(attemptTimeout);
|
|
14858
|
+
});
|
|
14859
|
+
|
|
14860
|
+
describe('#getTopologyV2TopologyIdStatusPathComputationServer - errors', () => {
|
|
14861
|
+
it('should have a getTopologyV2TopologyIdStatusPathComputationServer function', (done) => {
|
|
14862
|
+
try {
|
|
14863
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdStatusPathComputationServer === 'function');
|
|
14864
|
+
done();
|
|
14865
|
+
} catch (error) {
|
|
14866
|
+
log.error(`Test Failure: ${error}`);
|
|
14867
|
+
done(error);
|
|
14868
|
+
}
|
|
14869
|
+
}).timeout(attemptTimeout);
|
|
14870
|
+
it('should error if - missing topologyId', (done) => {
|
|
14871
|
+
try {
|
|
14872
|
+
a.getTopologyV2TopologyIdStatusPathComputationServer(null, (data, error) => {
|
|
14873
|
+
try {
|
|
14874
|
+
const displayE = 'topologyId is required';
|
|
14875
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdStatusPathComputationServer', displayE);
|
|
14876
|
+
done();
|
|
14877
|
+
} catch (err) {
|
|
14878
|
+
log.error(`Test Failure: ${err}`);
|
|
14879
|
+
done(err);
|
|
14880
|
+
}
|
|
14881
|
+
});
|
|
14882
|
+
} catch (error) {
|
|
14883
|
+
log.error(`Adapter Exception: ${error}`);
|
|
14884
|
+
done(error);
|
|
14885
|
+
}
|
|
14886
|
+
}).timeout(attemptTimeout);
|
|
14887
|
+
});
|
|
14888
|
+
|
|
14889
|
+
describe('#getTopologyV2TopologyIdStatusTransportTopologyAcquisition - errors', () => {
|
|
14890
|
+
it('should have a getTopologyV2TopologyIdStatusTransportTopologyAcquisition function', (done) => {
|
|
14891
|
+
try {
|
|
14892
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdStatusTransportTopologyAcquisition === 'function');
|
|
14893
|
+
done();
|
|
14894
|
+
} catch (error) {
|
|
14895
|
+
log.error(`Test Failure: ${error}`);
|
|
14896
|
+
done(error);
|
|
14897
|
+
}
|
|
14898
|
+
}).timeout(attemptTimeout);
|
|
14899
|
+
it('should error if - missing topologyId', (done) => {
|
|
14900
|
+
try {
|
|
14901
|
+
a.getTopologyV2TopologyIdStatusTransportTopologyAcquisition(null, (data, error) => {
|
|
14902
|
+
try {
|
|
14903
|
+
const displayE = 'topologyId is required';
|
|
14904
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdStatusTransportTopologyAcquisition', displayE);
|
|
14905
|
+
done();
|
|
14906
|
+
} catch (err) {
|
|
14907
|
+
log.error(`Test Failure: ${err}`);
|
|
14908
|
+
done(err);
|
|
14909
|
+
}
|
|
14910
|
+
});
|
|
14911
|
+
} catch (error) {
|
|
14912
|
+
log.error(`Adapter Exception: ${error}`);
|
|
14913
|
+
done(error);
|
|
14914
|
+
}
|
|
14915
|
+
}).timeout(attemptTimeout);
|
|
14916
|
+
});
|
|
14917
|
+
|
|
14918
|
+
describe('#getTopologyV2TopologyIdNodes - errors', () => {
|
|
14919
|
+
it('should have a getTopologyV2TopologyIdNodes function', (done) => {
|
|
14920
|
+
try {
|
|
14921
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdNodes === 'function');
|
|
14922
|
+
done();
|
|
14923
|
+
} catch (error) {
|
|
14924
|
+
log.error(`Test Failure: ${error}`);
|
|
14925
|
+
done(error);
|
|
14926
|
+
}
|
|
14927
|
+
}).timeout(attemptTimeout);
|
|
14928
|
+
it('should error if - missing topologyId', (done) => {
|
|
14929
|
+
try {
|
|
14930
|
+
a.getTopologyV2TopologyIdNodes(null, (data, error) => {
|
|
14931
|
+
try {
|
|
14932
|
+
const displayE = 'topologyId is required';
|
|
14933
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdNodes', displayE);
|
|
14934
|
+
done();
|
|
14935
|
+
} catch (err) {
|
|
14936
|
+
log.error(`Test Failure: ${err}`);
|
|
14937
|
+
done(err);
|
|
14938
|
+
}
|
|
14939
|
+
});
|
|
14940
|
+
} catch (error) {
|
|
14941
|
+
log.error(`Adapter Exception: ${error}`);
|
|
14942
|
+
done(error);
|
|
14943
|
+
}
|
|
14944
|
+
}).timeout(attemptTimeout);
|
|
14945
|
+
});
|
|
14946
|
+
|
|
14947
|
+
describe('#postTopologyV2TopologyIdNodes - errors', () => {
|
|
14948
|
+
it('should have a postTopologyV2TopologyIdNodes function', (done) => {
|
|
14949
|
+
try {
|
|
14950
|
+
assert.equal(true, typeof a.postTopologyV2TopologyIdNodes === 'function');
|
|
14951
|
+
done();
|
|
14952
|
+
} catch (error) {
|
|
14953
|
+
log.error(`Test Failure: ${error}`);
|
|
14954
|
+
done(error);
|
|
14955
|
+
}
|
|
14956
|
+
}).timeout(attemptTimeout);
|
|
14957
|
+
it('should error if - missing topologyId', (done) => {
|
|
14958
|
+
try {
|
|
14959
|
+
a.postTopologyV2TopologyIdNodes(null, null, (data, error) => {
|
|
14960
|
+
try {
|
|
14961
|
+
const displayE = 'topologyId is required';
|
|
14962
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-postTopologyV2TopologyIdNodes', displayE);
|
|
14963
|
+
done();
|
|
14964
|
+
} catch (err) {
|
|
14965
|
+
log.error(`Test Failure: ${err}`);
|
|
14966
|
+
done(err);
|
|
14967
|
+
}
|
|
14968
|
+
});
|
|
14969
|
+
} catch (error) {
|
|
14970
|
+
log.error(`Adapter Exception: ${error}`);
|
|
14971
|
+
done(error);
|
|
14972
|
+
}
|
|
14973
|
+
}).timeout(attemptTimeout);
|
|
14974
|
+
});
|
|
14975
|
+
|
|
14976
|
+
describe('#getTopologyV2TopologyIdNodesSearch - errors', () => {
|
|
14977
|
+
it('should have a getTopologyV2TopologyIdNodesSearch function', (done) => {
|
|
14978
|
+
try {
|
|
14979
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdNodesSearch === 'function');
|
|
14980
|
+
done();
|
|
14981
|
+
} catch (error) {
|
|
14982
|
+
log.error(`Test Failure: ${error}`);
|
|
14983
|
+
done(error);
|
|
14984
|
+
}
|
|
14985
|
+
}).timeout(attemptTimeout);
|
|
14986
|
+
it('should error if - missing topologyId', (done) => {
|
|
14987
|
+
try {
|
|
14988
|
+
a.getTopologyV2TopologyIdNodesSearch(null, (data, error) => {
|
|
14989
|
+
try {
|
|
14990
|
+
const displayE = 'topologyId is required';
|
|
14991
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdNodesSearch', displayE);
|
|
14992
|
+
done();
|
|
14993
|
+
} catch (err) {
|
|
14994
|
+
log.error(`Test Failure: ${err}`);
|
|
14995
|
+
done(err);
|
|
14996
|
+
}
|
|
14997
|
+
});
|
|
14998
|
+
} catch (error) {
|
|
14999
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15000
|
+
done(error);
|
|
15001
|
+
}
|
|
15002
|
+
}).timeout(attemptTimeout);
|
|
15003
|
+
});
|
|
15004
|
+
|
|
15005
|
+
describe('#getTopologyV2TopologyIdNodesStream - errors', () => {
|
|
15006
|
+
it('should have a getTopologyV2TopologyIdNodesStream function', (done) => {
|
|
15007
|
+
try {
|
|
15008
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdNodesStream === 'function');
|
|
15009
|
+
done();
|
|
15010
|
+
} catch (error) {
|
|
15011
|
+
log.error(`Test Failure: ${error}`);
|
|
15012
|
+
done(error);
|
|
15013
|
+
}
|
|
15014
|
+
}).timeout(attemptTimeout);
|
|
15015
|
+
it('should error if - missing topologyId', (done) => {
|
|
15016
|
+
try {
|
|
15017
|
+
a.getTopologyV2TopologyIdNodesStream(null, (data, error) => {
|
|
15018
|
+
try {
|
|
15019
|
+
const displayE = 'topologyId is required';
|
|
15020
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdNodesStream', displayE);
|
|
15021
|
+
done();
|
|
15022
|
+
} catch (err) {
|
|
15023
|
+
log.error(`Test Failure: ${err}`);
|
|
15024
|
+
done(err);
|
|
15025
|
+
}
|
|
15026
|
+
});
|
|
15027
|
+
} catch (error) {
|
|
15028
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15029
|
+
done(error);
|
|
15030
|
+
}
|
|
15031
|
+
}).timeout(attemptTimeout);
|
|
15032
|
+
});
|
|
15033
|
+
|
|
15034
|
+
describe('#postTopologyV2TopologyIdNodesBulk - errors', () => {
|
|
15035
|
+
it('should have a postTopologyV2TopologyIdNodesBulk function', (done) => {
|
|
15036
|
+
try {
|
|
15037
|
+
assert.equal(true, typeof a.postTopologyV2TopologyIdNodesBulk === 'function');
|
|
15038
|
+
done();
|
|
15039
|
+
} catch (error) {
|
|
15040
|
+
log.error(`Test Failure: ${error}`);
|
|
15041
|
+
done(error);
|
|
15042
|
+
}
|
|
15043
|
+
}).timeout(attemptTimeout);
|
|
15044
|
+
it('should error if - missing topologyId', (done) => {
|
|
15045
|
+
try {
|
|
15046
|
+
a.postTopologyV2TopologyIdNodesBulk(null, null, (data, error) => {
|
|
15047
|
+
try {
|
|
15048
|
+
const displayE = 'topologyId is required';
|
|
15049
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-postTopologyV2TopologyIdNodesBulk', displayE);
|
|
15050
|
+
done();
|
|
15051
|
+
} catch (err) {
|
|
15052
|
+
log.error(`Test Failure: ${err}`);
|
|
15053
|
+
done(err);
|
|
15054
|
+
}
|
|
15055
|
+
});
|
|
15056
|
+
} catch (error) {
|
|
15057
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15058
|
+
done(error);
|
|
15059
|
+
}
|
|
15060
|
+
}).timeout(attemptTimeout);
|
|
15061
|
+
});
|
|
15062
|
+
|
|
15063
|
+
describe('#putTopologyV2TopologyIdNodesBulk - errors', () => {
|
|
15064
|
+
it('should have a putTopologyV2TopologyIdNodesBulk function', (done) => {
|
|
15065
|
+
try {
|
|
15066
|
+
assert.equal(true, typeof a.putTopologyV2TopologyIdNodesBulk === 'function');
|
|
15067
|
+
done();
|
|
15068
|
+
} catch (error) {
|
|
15069
|
+
log.error(`Test Failure: ${error}`);
|
|
15070
|
+
done(error);
|
|
15071
|
+
}
|
|
15072
|
+
}).timeout(attemptTimeout);
|
|
15073
|
+
it('should error if - missing topologyId', (done) => {
|
|
15074
|
+
try {
|
|
15075
|
+
a.putTopologyV2TopologyIdNodesBulk(null, null, (data, error) => {
|
|
15076
|
+
try {
|
|
15077
|
+
const displayE = 'topologyId is required';
|
|
15078
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-putTopologyV2TopologyIdNodesBulk', displayE);
|
|
15079
|
+
done();
|
|
15080
|
+
} catch (err) {
|
|
15081
|
+
log.error(`Test Failure: ${err}`);
|
|
15082
|
+
done(err);
|
|
15083
|
+
}
|
|
15084
|
+
});
|
|
15085
|
+
} catch (error) {
|
|
15086
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15087
|
+
done(error);
|
|
15088
|
+
}
|
|
15089
|
+
}).timeout(attemptTimeout);
|
|
15090
|
+
});
|
|
15091
|
+
|
|
15092
|
+
describe('#patchTopologyV2TopologyIdNodesBulk - errors', () => {
|
|
15093
|
+
it('should have a patchTopologyV2TopologyIdNodesBulk function', (done) => {
|
|
15094
|
+
try {
|
|
15095
|
+
assert.equal(true, typeof a.patchTopologyV2TopologyIdNodesBulk === 'function');
|
|
15096
|
+
done();
|
|
15097
|
+
} catch (error) {
|
|
15098
|
+
log.error(`Test Failure: ${error}`);
|
|
15099
|
+
done(error);
|
|
15100
|
+
}
|
|
15101
|
+
}).timeout(attemptTimeout);
|
|
15102
|
+
it('should error if - missing topologyId', (done) => {
|
|
15103
|
+
try {
|
|
15104
|
+
a.patchTopologyV2TopologyIdNodesBulk(null, null, (data, error) => {
|
|
15105
|
+
try {
|
|
15106
|
+
const displayE = 'topologyId is required';
|
|
15107
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-patchTopologyV2TopologyIdNodesBulk', displayE);
|
|
15108
|
+
done();
|
|
15109
|
+
} catch (err) {
|
|
15110
|
+
log.error(`Test Failure: ${err}`);
|
|
15111
|
+
done(err);
|
|
15112
|
+
}
|
|
15113
|
+
});
|
|
15114
|
+
} catch (error) {
|
|
15115
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15116
|
+
done(error);
|
|
15117
|
+
}
|
|
15118
|
+
}).timeout(attemptTimeout);
|
|
15119
|
+
});
|
|
15120
|
+
|
|
15121
|
+
describe('#deleteTopologyV2TopologyIdNodesBulk - errors', () => {
|
|
15122
|
+
it('should have a deleteTopologyV2TopologyIdNodesBulk function', (done) => {
|
|
15123
|
+
try {
|
|
15124
|
+
assert.equal(true, typeof a.deleteTopologyV2TopologyIdNodesBulk === 'function');
|
|
15125
|
+
done();
|
|
15126
|
+
} catch (error) {
|
|
15127
|
+
log.error(`Test Failure: ${error}`);
|
|
15128
|
+
done(error);
|
|
15129
|
+
}
|
|
15130
|
+
}).timeout(attemptTimeout);
|
|
15131
|
+
it('should error if - missing topologyId', (done) => {
|
|
15132
|
+
try {
|
|
15133
|
+
a.deleteTopologyV2TopologyIdNodesBulk(null, (data, error) => {
|
|
15134
|
+
try {
|
|
15135
|
+
const displayE = 'topologyId is required';
|
|
15136
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTopologyV2TopologyIdNodesBulk', displayE);
|
|
15137
|
+
done();
|
|
15138
|
+
} catch (err) {
|
|
15139
|
+
log.error(`Test Failure: ${err}`);
|
|
15140
|
+
done(err);
|
|
15141
|
+
}
|
|
15142
|
+
});
|
|
15143
|
+
} catch (error) {
|
|
15144
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15145
|
+
done(error);
|
|
15146
|
+
}
|
|
15147
|
+
}).timeout(attemptTimeout);
|
|
15148
|
+
});
|
|
15149
|
+
|
|
15150
|
+
describe('#getTopologyV2TopologyIdNodesNodeIndex - errors', () => {
|
|
15151
|
+
it('should have a getTopologyV2TopologyIdNodesNodeIndex function', (done) => {
|
|
15152
|
+
try {
|
|
15153
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdNodesNodeIndex === 'function');
|
|
15154
|
+
done();
|
|
15155
|
+
} catch (error) {
|
|
15156
|
+
log.error(`Test Failure: ${error}`);
|
|
15157
|
+
done(error);
|
|
15158
|
+
}
|
|
15159
|
+
}).timeout(attemptTimeout);
|
|
15160
|
+
it('should error if - missing topologyId', (done) => {
|
|
15161
|
+
try {
|
|
15162
|
+
a.getTopologyV2TopologyIdNodesNodeIndex(null, null, (data, error) => {
|
|
15163
|
+
try {
|
|
15164
|
+
const displayE = 'topologyId is required';
|
|
15165
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdNodesNodeIndex', displayE);
|
|
15166
|
+
done();
|
|
15167
|
+
} catch (err) {
|
|
15168
|
+
log.error(`Test Failure: ${err}`);
|
|
15169
|
+
done(err);
|
|
15170
|
+
}
|
|
15171
|
+
});
|
|
15172
|
+
} catch (error) {
|
|
15173
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15174
|
+
done(error);
|
|
15175
|
+
}
|
|
15176
|
+
}).timeout(attemptTimeout);
|
|
15177
|
+
it('should error if - missing nodeIndex', (done) => {
|
|
15178
|
+
try {
|
|
15179
|
+
a.getTopologyV2TopologyIdNodesNodeIndex('fakeparam', null, (data, error) => {
|
|
15180
|
+
try {
|
|
15181
|
+
const displayE = 'nodeIndex is required';
|
|
15182
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdNodesNodeIndex', displayE);
|
|
15183
|
+
done();
|
|
15184
|
+
} catch (err) {
|
|
15185
|
+
log.error(`Test Failure: ${err}`);
|
|
15186
|
+
done(err);
|
|
15187
|
+
}
|
|
15188
|
+
});
|
|
15189
|
+
} catch (error) {
|
|
15190
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15191
|
+
done(error);
|
|
15192
|
+
}
|
|
15193
|
+
}).timeout(attemptTimeout);
|
|
15194
|
+
});
|
|
15195
|
+
|
|
15196
|
+
describe('#putTopologyV2TopologyIdNodesNodeIndex - errors', () => {
|
|
15197
|
+
it('should have a putTopologyV2TopologyIdNodesNodeIndex function', (done) => {
|
|
15198
|
+
try {
|
|
15199
|
+
assert.equal(true, typeof a.putTopologyV2TopologyIdNodesNodeIndex === 'function');
|
|
15200
|
+
done();
|
|
15201
|
+
} catch (error) {
|
|
15202
|
+
log.error(`Test Failure: ${error}`);
|
|
15203
|
+
done(error);
|
|
15204
|
+
}
|
|
15205
|
+
}).timeout(attemptTimeout);
|
|
15206
|
+
it('should error if - missing topologyId', (done) => {
|
|
15207
|
+
try {
|
|
15208
|
+
a.putTopologyV2TopologyIdNodesNodeIndex(null, null, null, (data, error) => {
|
|
15209
|
+
try {
|
|
15210
|
+
const displayE = 'topologyId is required';
|
|
15211
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-putTopologyV2TopologyIdNodesNodeIndex', displayE);
|
|
15212
|
+
done();
|
|
15213
|
+
} catch (err) {
|
|
15214
|
+
log.error(`Test Failure: ${err}`);
|
|
15215
|
+
done(err);
|
|
15216
|
+
}
|
|
15217
|
+
});
|
|
15218
|
+
} catch (error) {
|
|
15219
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15220
|
+
done(error);
|
|
15221
|
+
}
|
|
15222
|
+
}).timeout(attemptTimeout);
|
|
15223
|
+
it('should error if - missing nodeIndex', (done) => {
|
|
15224
|
+
try {
|
|
15225
|
+
a.putTopologyV2TopologyIdNodesNodeIndex('fakeparam', null, null, (data, error) => {
|
|
15226
|
+
try {
|
|
15227
|
+
const displayE = 'nodeIndex is required';
|
|
15228
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-putTopologyV2TopologyIdNodesNodeIndex', displayE);
|
|
15229
|
+
done();
|
|
15230
|
+
} catch (err) {
|
|
15231
|
+
log.error(`Test Failure: ${err}`);
|
|
15232
|
+
done(err);
|
|
15233
|
+
}
|
|
15234
|
+
});
|
|
15235
|
+
} catch (error) {
|
|
15236
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15237
|
+
done(error);
|
|
15238
|
+
}
|
|
15239
|
+
}).timeout(attemptTimeout);
|
|
15240
|
+
});
|
|
15241
|
+
|
|
15242
|
+
describe('#patchTopologyV2TopologyIdNodesNodeIndex - errors', () => {
|
|
15243
|
+
it('should have a patchTopologyV2TopologyIdNodesNodeIndex function', (done) => {
|
|
15244
|
+
try {
|
|
15245
|
+
assert.equal(true, typeof a.patchTopologyV2TopologyIdNodesNodeIndex === 'function');
|
|
15246
|
+
done();
|
|
15247
|
+
} catch (error) {
|
|
15248
|
+
log.error(`Test Failure: ${error}`);
|
|
15249
|
+
done(error);
|
|
15250
|
+
}
|
|
15251
|
+
}).timeout(attemptTimeout);
|
|
15252
|
+
it('should error if - missing topologyId', (done) => {
|
|
15253
|
+
try {
|
|
15254
|
+
a.patchTopologyV2TopologyIdNodesNodeIndex(null, null, null, (data, error) => {
|
|
15255
|
+
try {
|
|
15256
|
+
const displayE = 'topologyId is required';
|
|
15257
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-patchTopologyV2TopologyIdNodesNodeIndex', displayE);
|
|
15258
|
+
done();
|
|
15259
|
+
} catch (err) {
|
|
15260
|
+
log.error(`Test Failure: ${err}`);
|
|
15261
|
+
done(err);
|
|
15262
|
+
}
|
|
15263
|
+
});
|
|
15264
|
+
} catch (error) {
|
|
15265
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15266
|
+
done(error);
|
|
15267
|
+
}
|
|
15268
|
+
}).timeout(attemptTimeout);
|
|
15269
|
+
it('should error if - missing nodeIndex', (done) => {
|
|
15270
|
+
try {
|
|
15271
|
+
a.patchTopologyV2TopologyIdNodesNodeIndex('fakeparam', null, null, (data, error) => {
|
|
15272
|
+
try {
|
|
15273
|
+
const displayE = 'nodeIndex is required';
|
|
15274
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-patchTopologyV2TopologyIdNodesNodeIndex', displayE);
|
|
15275
|
+
done();
|
|
15276
|
+
} catch (err) {
|
|
15277
|
+
log.error(`Test Failure: ${err}`);
|
|
15278
|
+
done(err);
|
|
15279
|
+
}
|
|
15280
|
+
});
|
|
15281
|
+
} catch (error) {
|
|
15282
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15283
|
+
done(error);
|
|
15284
|
+
}
|
|
15285
|
+
}).timeout(attemptTimeout);
|
|
15286
|
+
});
|
|
15287
|
+
|
|
15288
|
+
describe('#deleteTopologyV2TopologyIdNodesNodeIndex - errors', () => {
|
|
15289
|
+
it('should have a deleteTopologyV2TopologyIdNodesNodeIndex function', (done) => {
|
|
15290
|
+
try {
|
|
15291
|
+
assert.equal(true, typeof a.deleteTopologyV2TopologyIdNodesNodeIndex === 'function');
|
|
15292
|
+
done();
|
|
15293
|
+
} catch (error) {
|
|
15294
|
+
log.error(`Test Failure: ${error}`);
|
|
15295
|
+
done(error);
|
|
15296
|
+
}
|
|
15297
|
+
}).timeout(attemptTimeout);
|
|
15298
|
+
it('should error if - missing topologyId', (done) => {
|
|
15299
|
+
try {
|
|
15300
|
+
a.deleteTopologyV2TopologyIdNodesNodeIndex(null, null, (data, error) => {
|
|
15301
|
+
try {
|
|
15302
|
+
const displayE = 'topologyId is required';
|
|
15303
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTopologyV2TopologyIdNodesNodeIndex', displayE);
|
|
15304
|
+
done();
|
|
15305
|
+
} catch (err) {
|
|
15306
|
+
log.error(`Test Failure: ${err}`);
|
|
15307
|
+
done(err);
|
|
15308
|
+
}
|
|
15309
|
+
});
|
|
15310
|
+
} catch (error) {
|
|
15311
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15312
|
+
done(error);
|
|
15313
|
+
}
|
|
15314
|
+
}).timeout(attemptTimeout);
|
|
15315
|
+
it('should error if - missing nodeIndex', (done) => {
|
|
15316
|
+
try {
|
|
15317
|
+
a.deleteTopologyV2TopologyIdNodesNodeIndex('fakeparam', null, (data, error) => {
|
|
15318
|
+
try {
|
|
15319
|
+
const displayE = 'nodeIndex is required';
|
|
15320
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTopologyV2TopologyIdNodesNodeIndex', displayE);
|
|
15321
|
+
done();
|
|
15322
|
+
} catch (err) {
|
|
15323
|
+
log.error(`Test Failure: ${err}`);
|
|
15324
|
+
done(err);
|
|
15325
|
+
}
|
|
15326
|
+
});
|
|
15327
|
+
} catch (error) {
|
|
15328
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15329
|
+
done(error);
|
|
15330
|
+
}
|
|
15331
|
+
}).timeout(attemptTimeout);
|
|
15332
|
+
});
|
|
15333
|
+
|
|
15334
|
+
describe('#getTopologyV2TopologyIdNodesNodeIndexHistory - errors', () => {
|
|
15335
|
+
it('should have a getTopologyV2TopologyIdNodesNodeIndexHistory function', (done) => {
|
|
15336
|
+
try {
|
|
15337
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdNodesNodeIndexHistory === 'function');
|
|
15338
|
+
done();
|
|
15339
|
+
} catch (error) {
|
|
15340
|
+
log.error(`Test Failure: ${error}`);
|
|
15341
|
+
done(error);
|
|
15342
|
+
}
|
|
15343
|
+
}).timeout(attemptTimeout);
|
|
15344
|
+
it('should error if - missing topologyId', (done) => {
|
|
15345
|
+
try {
|
|
15346
|
+
a.getTopologyV2TopologyIdNodesNodeIndexHistory(null, null, (data, error) => {
|
|
15347
|
+
try {
|
|
15348
|
+
const displayE = 'topologyId is required';
|
|
15349
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdNodesNodeIndexHistory', displayE);
|
|
15350
|
+
done();
|
|
15351
|
+
} catch (err) {
|
|
15352
|
+
log.error(`Test Failure: ${err}`);
|
|
15353
|
+
done(err);
|
|
15354
|
+
}
|
|
15355
|
+
});
|
|
15356
|
+
} catch (error) {
|
|
15357
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15358
|
+
done(error);
|
|
15359
|
+
}
|
|
15360
|
+
}).timeout(attemptTimeout);
|
|
15361
|
+
it('should error if - missing nodeIndex', (done) => {
|
|
15362
|
+
try {
|
|
15363
|
+
a.getTopologyV2TopologyIdNodesNodeIndexHistory('fakeparam', null, (data, error) => {
|
|
15364
|
+
try {
|
|
15365
|
+
const displayE = 'nodeIndex is required';
|
|
15366
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdNodesNodeIndexHistory', displayE);
|
|
15367
|
+
done();
|
|
15368
|
+
} catch (err) {
|
|
15369
|
+
log.error(`Test Failure: ${err}`);
|
|
15370
|
+
done(err);
|
|
15371
|
+
}
|
|
15372
|
+
});
|
|
15373
|
+
} catch (error) {
|
|
15374
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15375
|
+
done(error);
|
|
15376
|
+
}
|
|
15377
|
+
}).timeout(attemptTimeout);
|
|
15378
|
+
});
|
|
15379
|
+
|
|
15380
|
+
describe('#getTopologyV2TopologyIdNodesNodeIndexUser - errors', () => {
|
|
15381
|
+
it('should have a getTopologyV2TopologyIdNodesNodeIndexUser function', (done) => {
|
|
15382
|
+
try {
|
|
15383
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdNodesNodeIndexUser === 'function');
|
|
15384
|
+
done();
|
|
15385
|
+
} catch (error) {
|
|
15386
|
+
log.error(`Test Failure: ${error}`);
|
|
15387
|
+
done(error);
|
|
15388
|
+
}
|
|
15389
|
+
}).timeout(attemptTimeout);
|
|
15390
|
+
it('should error if - missing topologyId', (done) => {
|
|
15391
|
+
try {
|
|
15392
|
+
a.getTopologyV2TopologyIdNodesNodeIndexUser(null, null, (data, error) => {
|
|
15393
|
+
try {
|
|
15394
|
+
const displayE = 'topologyId is required';
|
|
15395
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdNodesNodeIndexUser', displayE);
|
|
15396
|
+
done();
|
|
15397
|
+
} catch (err) {
|
|
15398
|
+
log.error(`Test Failure: ${err}`);
|
|
15399
|
+
done(err);
|
|
15400
|
+
}
|
|
15401
|
+
});
|
|
15402
|
+
} catch (error) {
|
|
15403
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15404
|
+
done(error);
|
|
15405
|
+
}
|
|
15406
|
+
}).timeout(attemptTimeout);
|
|
15407
|
+
it('should error if - missing nodeIndex', (done) => {
|
|
15408
|
+
try {
|
|
15409
|
+
a.getTopologyV2TopologyIdNodesNodeIndexUser('fakeparam', null, (data, error) => {
|
|
15410
|
+
try {
|
|
15411
|
+
const displayE = 'nodeIndex is required';
|
|
15412
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdNodesNodeIndexUser', displayE);
|
|
15413
|
+
done();
|
|
15414
|
+
} catch (err) {
|
|
15415
|
+
log.error(`Test Failure: ${err}`);
|
|
15416
|
+
done(err);
|
|
15417
|
+
}
|
|
15418
|
+
});
|
|
15419
|
+
} catch (error) {
|
|
15420
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15421
|
+
done(error);
|
|
15422
|
+
}
|
|
15423
|
+
}).timeout(attemptTimeout);
|
|
15424
|
+
});
|
|
15425
|
+
|
|
15426
|
+
describe('#getTopologyV2TopologyIdNodesNodeIndexBgpLs - errors', () => {
|
|
15427
|
+
it('should have a getTopologyV2TopologyIdNodesNodeIndexBgpLs function', (done) => {
|
|
15428
|
+
try {
|
|
15429
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdNodesNodeIndexBgpLs === 'function');
|
|
15430
|
+
done();
|
|
15431
|
+
} catch (error) {
|
|
15432
|
+
log.error(`Test Failure: ${error}`);
|
|
15433
|
+
done(error);
|
|
15434
|
+
}
|
|
15435
|
+
}).timeout(attemptTimeout);
|
|
15436
|
+
it('should error if - missing topologyId', (done) => {
|
|
15437
|
+
try {
|
|
15438
|
+
a.getTopologyV2TopologyIdNodesNodeIndexBgpLs(null, null, (data, error) => {
|
|
15439
|
+
try {
|
|
15440
|
+
const displayE = 'topologyId is required';
|
|
15441
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdNodesNodeIndexBgpLs', displayE);
|
|
15442
|
+
done();
|
|
15443
|
+
} catch (err) {
|
|
15444
|
+
log.error(`Test Failure: ${err}`);
|
|
15445
|
+
done(err);
|
|
15446
|
+
}
|
|
15447
|
+
});
|
|
15448
|
+
} catch (error) {
|
|
15449
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15450
|
+
done(error);
|
|
15451
|
+
}
|
|
15452
|
+
}).timeout(attemptTimeout);
|
|
15453
|
+
it('should error if - missing nodeIndex', (done) => {
|
|
15454
|
+
try {
|
|
15455
|
+
a.getTopologyV2TopologyIdNodesNodeIndexBgpLs('fakeparam', null, (data, error) => {
|
|
15456
|
+
try {
|
|
15457
|
+
const displayE = 'nodeIndex is required';
|
|
15458
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdNodesNodeIndexBgpLs', displayE);
|
|
15459
|
+
done();
|
|
15460
|
+
} catch (err) {
|
|
15461
|
+
log.error(`Test Failure: ${err}`);
|
|
15462
|
+
done(err);
|
|
15463
|
+
}
|
|
15464
|
+
});
|
|
15465
|
+
} catch (error) {
|
|
15466
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15467
|
+
done(error);
|
|
15468
|
+
}
|
|
15469
|
+
}).timeout(attemptTimeout);
|
|
15470
|
+
});
|
|
15471
|
+
|
|
15472
|
+
describe('#getTopologyV2TopologyIdNodesNodeIndexDevice - errors', () => {
|
|
15473
|
+
it('should have a getTopologyV2TopologyIdNodesNodeIndexDevice function', (done) => {
|
|
15474
|
+
try {
|
|
15475
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdNodesNodeIndexDevice === 'function');
|
|
15476
|
+
done();
|
|
15477
|
+
} catch (error) {
|
|
15478
|
+
log.error(`Test Failure: ${error}`);
|
|
15479
|
+
done(error);
|
|
15480
|
+
}
|
|
15481
|
+
}).timeout(attemptTimeout);
|
|
15482
|
+
it('should error if - missing topologyId', (done) => {
|
|
15483
|
+
try {
|
|
15484
|
+
a.getTopologyV2TopologyIdNodesNodeIndexDevice(null, null, (data, error) => {
|
|
15485
|
+
try {
|
|
15486
|
+
const displayE = 'topologyId is required';
|
|
15487
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdNodesNodeIndexDevice', displayE);
|
|
15488
|
+
done();
|
|
15489
|
+
} catch (err) {
|
|
15490
|
+
log.error(`Test Failure: ${err}`);
|
|
15491
|
+
done(err);
|
|
15492
|
+
}
|
|
15493
|
+
});
|
|
15494
|
+
} catch (error) {
|
|
15495
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15496
|
+
done(error);
|
|
15497
|
+
}
|
|
15498
|
+
}).timeout(attemptTimeout);
|
|
15499
|
+
it('should error if - missing nodeIndex', (done) => {
|
|
15500
|
+
try {
|
|
15501
|
+
a.getTopologyV2TopologyIdNodesNodeIndexDevice('fakeparam', null, (data, error) => {
|
|
15502
|
+
try {
|
|
15503
|
+
const displayE = 'nodeIndex is required';
|
|
15504
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdNodesNodeIndexDevice', displayE);
|
|
15505
|
+
done();
|
|
15506
|
+
} catch (err) {
|
|
15507
|
+
log.error(`Test Failure: ${err}`);
|
|
15508
|
+
done(err);
|
|
15509
|
+
}
|
|
15510
|
+
});
|
|
15511
|
+
} catch (error) {
|
|
15512
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15513
|
+
done(error);
|
|
15514
|
+
}
|
|
15515
|
+
}).timeout(attemptTimeout);
|
|
15516
|
+
});
|
|
15517
|
+
|
|
15518
|
+
describe('#getTopologyV2TopologyIdLinks - errors', () => {
|
|
15519
|
+
it('should have a getTopologyV2TopologyIdLinks function', (done) => {
|
|
15520
|
+
try {
|
|
15521
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdLinks === 'function');
|
|
15522
|
+
done();
|
|
15523
|
+
} catch (error) {
|
|
15524
|
+
log.error(`Test Failure: ${error}`);
|
|
15525
|
+
done(error);
|
|
15526
|
+
}
|
|
15527
|
+
}).timeout(attemptTimeout);
|
|
15528
|
+
it('should error if - missing topologyId', (done) => {
|
|
15529
|
+
try {
|
|
15530
|
+
a.getTopologyV2TopologyIdLinks(null, (data, error) => {
|
|
15531
|
+
try {
|
|
15532
|
+
const displayE = 'topologyId is required';
|
|
15533
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdLinks', displayE);
|
|
15534
|
+
done();
|
|
15535
|
+
} catch (err) {
|
|
15536
|
+
log.error(`Test Failure: ${err}`);
|
|
15537
|
+
done(err);
|
|
15538
|
+
}
|
|
15539
|
+
});
|
|
15540
|
+
} catch (error) {
|
|
15541
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15542
|
+
done(error);
|
|
15543
|
+
}
|
|
15544
|
+
}).timeout(attemptTimeout);
|
|
15545
|
+
});
|
|
15546
|
+
|
|
15547
|
+
describe('#postTopologyV2TopologyIdLinks - errors', () => {
|
|
15548
|
+
it('should have a postTopologyV2TopologyIdLinks function', (done) => {
|
|
15549
|
+
try {
|
|
15550
|
+
assert.equal(true, typeof a.postTopologyV2TopologyIdLinks === 'function');
|
|
15551
|
+
done();
|
|
15552
|
+
} catch (error) {
|
|
15553
|
+
log.error(`Test Failure: ${error}`);
|
|
15554
|
+
done(error);
|
|
15555
|
+
}
|
|
15556
|
+
}).timeout(attemptTimeout);
|
|
15557
|
+
it('should error if - missing topologyId', (done) => {
|
|
15558
|
+
try {
|
|
15559
|
+
a.postTopologyV2TopologyIdLinks(null, null, (data, error) => {
|
|
15560
|
+
try {
|
|
15561
|
+
const displayE = 'topologyId is required';
|
|
15562
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-postTopologyV2TopologyIdLinks', displayE);
|
|
15563
|
+
done();
|
|
15564
|
+
} catch (err) {
|
|
15565
|
+
log.error(`Test Failure: ${err}`);
|
|
15566
|
+
done(err);
|
|
15567
|
+
}
|
|
15568
|
+
});
|
|
15569
|
+
} catch (error) {
|
|
15570
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15571
|
+
done(error);
|
|
15572
|
+
}
|
|
15573
|
+
}).timeout(attemptTimeout);
|
|
15574
|
+
});
|
|
15575
|
+
|
|
15576
|
+
describe('#getTopologyV2TopologyIdLinksStream - errors', () => {
|
|
15577
|
+
it('should have a getTopologyV2TopologyIdLinksStream function', (done) => {
|
|
15578
|
+
try {
|
|
15579
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdLinksStream === 'function');
|
|
15580
|
+
done();
|
|
15581
|
+
} catch (error) {
|
|
15582
|
+
log.error(`Test Failure: ${error}`);
|
|
15583
|
+
done(error);
|
|
15584
|
+
}
|
|
15585
|
+
}).timeout(attemptTimeout);
|
|
15586
|
+
it('should error if - missing topologyId', (done) => {
|
|
15587
|
+
try {
|
|
15588
|
+
a.getTopologyV2TopologyIdLinksStream(null, (data, error) => {
|
|
15589
|
+
try {
|
|
15590
|
+
const displayE = 'topologyId is required';
|
|
15591
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdLinksStream', displayE);
|
|
15592
|
+
done();
|
|
15593
|
+
} catch (err) {
|
|
15594
|
+
log.error(`Test Failure: ${err}`);
|
|
15595
|
+
done(err);
|
|
15596
|
+
}
|
|
15597
|
+
});
|
|
15598
|
+
} catch (error) {
|
|
15599
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15600
|
+
done(error);
|
|
15601
|
+
}
|
|
15602
|
+
}).timeout(attemptTimeout);
|
|
15603
|
+
});
|
|
15604
|
+
|
|
15605
|
+
describe('#getTopologyV2TopologyIdLinksUtilization - errors', () => {
|
|
15606
|
+
it('should have a getTopologyV2TopologyIdLinksUtilization function', (done) => {
|
|
15607
|
+
try {
|
|
15608
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdLinksUtilization === 'function');
|
|
15609
|
+
done();
|
|
15610
|
+
} catch (error) {
|
|
15611
|
+
log.error(`Test Failure: ${error}`);
|
|
15612
|
+
done(error);
|
|
15613
|
+
}
|
|
15614
|
+
}).timeout(attemptTimeout);
|
|
15615
|
+
it('should error if - missing topologyId', (done) => {
|
|
15616
|
+
try {
|
|
15617
|
+
a.getTopologyV2TopologyIdLinksUtilization(null, (data, error) => {
|
|
15618
|
+
try {
|
|
15619
|
+
const displayE = 'topologyId is required';
|
|
15620
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdLinksUtilization', displayE);
|
|
15621
|
+
done();
|
|
15622
|
+
} catch (err) {
|
|
15623
|
+
log.error(`Test Failure: ${err}`);
|
|
15624
|
+
done(err);
|
|
15625
|
+
}
|
|
15626
|
+
});
|
|
15627
|
+
} catch (error) {
|
|
15628
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15629
|
+
done(error);
|
|
15630
|
+
}
|
|
15631
|
+
}).timeout(attemptTimeout);
|
|
15632
|
+
});
|
|
15633
|
+
|
|
15634
|
+
describe('#getTopologyV2TopologyIdLinksSearch - errors', () => {
|
|
15635
|
+
it('should have a getTopologyV2TopologyIdLinksSearch function', (done) => {
|
|
15636
|
+
try {
|
|
15637
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdLinksSearch === 'function');
|
|
15638
|
+
done();
|
|
15639
|
+
} catch (error) {
|
|
15640
|
+
log.error(`Test Failure: ${error}`);
|
|
15641
|
+
done(error);
|
|
15642
|
+
}
|
|
15643
|
+
}).timeout(attemptTimeout);
|
|
15644
|
+
it('should error if - missing topologyId', (done) => {
|
|
15645
|
+
try {
|
|
15646
|
+
a.getTopologyV2TopologyIdLinksSearch(null, (data, error) => {
|
|
15647
|
+
try {
|
|
15648
|
+
const displayE = 'topologyId is required';
|
|
15649
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdLinksSearch', displayE);
|
|
15650
|
+
done();
|
|
15651
|
+
} catch (err) {
|
|
15652
|
+
log.error(`Test Failure: ${err}`);
|
|
15653
|
+
done(err);
|
|
15654
|
+
}
|
|
15655
|
+
});
|
|
15656
|
+
} catch (error) {
|
|
15657
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15658
|
+
done(error);
|
|
15659
|
+
}
|
|
15660
|
+
}).timeout(attemptTimeout);
|
|
15661
|
+
});
|
|
15662
|
+
|
|
15663
|
+
describe('#getTopologyV2TopologyIdLinksLinkIndex - errors', () => {
|
|
15664
|
+
it('should have a getTopologyV2TopologyIdLinksLinkIndex function', (done) => {
|
|
15665
|
+
try {
|
|
15666
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdLinksLinkIndex === 'function');
|
|
15667
|
+
done();
|
|
15668
|
+
} catch (error) {
|
|
15669
|
+
log.error(`Test Failure: ${error}`);
|
|
15670
|
+
done(error);
|
|
15671
|
+
}
|
|
15672
|
+
}).timeout(attemptTimeout);
|
|
15673
|
+
it('should error if - missing topologyId', (done) => {
|
|
15674
|
+
try {
|
|
15675
|
+
a.getTopologyV2TopologyIdLinksLinkIndex(null, null, (data, error) => {
|
|
15676
|
+
try {
|
|
15677
|
+
const displayE = 'topologyId is required';
|
|
15678
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdLinksLinkIndex', displayE);
|
|
15679
|
+
done();
|
|
15680
|
+
} catch (err) {
|
|
15681
|
+
log.error(`Test Failure: ${err}`);
|
|
15682
|
+
done(err);
|
|
15683
|
+
}
|
|
15684
|
+
});
|
|
15685
|
+
} catch (error) {
|
|
15686
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15687
|
+
done(error);
|
|
15688
|
+
}
|
|
15689
|
+
}).timeout(attemptTimeout);
|
|
15690
|
+
it('should error if - missing linkIndex', (done) => {
|
|
15691
|
+
try {
|
|
15692
|
+
a.getTopologyV2TopologyIdLinksLinkIndex('fakeparam', null, (data, error) => {
|
|
15693
|
+
try {
|
|
15694
|
+
const displayE = 'linkIndex is required';
|
|
15695
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdLinksLinkIndex', displayE);
|
|
15696
|
+
done();
|
|
15697
|
+
} catch (err) {
|
|
15698
|
+
log.error(`Test Failure: ${err}`);
|
|
15699
|
+
done(err);
|
|
15700
|
+
}
|
|
15701
|
+
});
|
|
15702
|
+
} catch (error) {
|
|
15703
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15704
|
+
done(error);
|
|
15705
|
+
}
|
|
15706
|
+
}).timeout(attemptTimeout);
|
|
15707
|
+
});
|
|
15708
|
+
|
|
15709
|
+
describe('#putTopologyV2TopologyIdLinksLinkIndex - errors', () => {
|
|
15710
|
+
it('should have a putTopologyV2TopologyIdLinksLinkIndex function', (done) => {
|
|
15711
|
+
try {
|
|
15712
|
+
assert.equal(true, typeof a.putTopologyV2TopologyIdLinksLinkIndex === 'function');
|
|
15713
|
+
done();
|
|
15714
|
+
} catch (error) {
|
|
15715
|
+
log.error(`Test Failure: ${error}`);
|
|
15716
|
+
done(error);
|
|
15717
|
+
}
|
|
15718
|
+
}).timeout(attemptTimeout);
|
|
15719
|
+
it('should error if - missing topologyId', (done) => {
|
|
15720
|
+
try {
|
|
15721
|
+
a.putTopologyV2TopologyIdLinksLinkIndex(null, null, null, (data, error) => {
|
|
15722
|
+
try {
|
|
15723
|
+
const displayE = 'topologyId is required';
|
|
15724
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-putTopologyV2TopologyIdLinksLinkIndex', displayE);
|
|
15725
|
+
done();
|
|
15726
|
+
} catch (err) {
|
|
15727
|
+
log.error(`Test Failure: ${err}`);
|
|
15728
|
+
done(err);
|
|
15729
|
+
}
|
|
15730
|
+
});
|
|
15731
|
+
} catch (error) {
|
|
15732
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15733
|
+
done(error);
|
|
15734
|
+
}
|
|
15735
|
+
}).timeout(attemptTimeout);
|
|
15736
|
+
it('should error if - missing linkIndex', (done) => {
|
|
15737
|
+
try {
|
|
15738
|
+
a.putTopologyV2TopologyIdLinksLinkIndex('fakeparam', null, null, (data, error) => {
|
|
15739
|
+
try {
|
|
15740
|
+
const displayE = 'linkIndex is required';
|
|
15741
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-putTopologyV2TopologyIdLinksLinkIndex', displayE);
|
|
15742
|
+
done();
|
|
15743
|
+
} catch (err) {
|
|
15744
|
+
log.error(`Test Failure: ${err}`);
|
|
15745
|
+
done(err);
|
|
15746
|
+
}
|
|
15747
|
+
});
|
|
15748
|
+
} catch (error) {
|
|
15749
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15750
|
+
done(error);
|
|
15751
|
+
}
|
|
15752
|
+
}).timeout(attemptTimeout);
|
|
15753
|
+
});
|
|
15754
|
+
|
|
15755
|
+
describe('#patchTopologyV2TopologyIdLinksLinkIndex - errors', () => {
|
|
15756
|
+
it('should have a patchTopologyV2TopologyIdLinksLinkIndex function', (done) => {
|
|
15757
|
+
try {
|
|
15758
|
+
assert.equal(true, typeof a.patchTopologyV2TopologyIdLinksLinkIndex === 'function');
|
|
15759
|
+
done();
|
|
15760
|
+
} catch (error) {
|
|
15761
|
+
log.error(`Test Failure: ${error}`);
|
|
15762
|
+
done(error);
|
|
15763
|
+
}
|
|
15764
|
+
}).timeout(attemptTimeout);
|
|
15765
|
+
it('should error if - missing topologyId', (done) => {
|
|
15766
|
+
try {
|
|
15767
|
+
a.patchTopologyV2TopologyIdLinksLinkIndex(null, null, null, (data, error) => {
|
|
15768
|
+
try {
|
|
15769
|
+
const displayE = 'topologyId is required';
|
|
15770
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-patchTopologyV2TopologyIdLinksLinkIndex', displayE);
|
|
15771
|
+
done();
|
|
15772
|
+
} catch (err) {
|
|
15773
|
+
log.error(`Test Failure: ${err}`);
|
|
15774
|
+
done(err);
|
|
15775
|
+
}
|
|
15776
|
+
});
|
|
15777
|
+
} catch (error) {
|
|
15778
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15779
|
+
done(error);
|
|
15780
|
+
}
|
|
15781
|
+
}).timeout(attemptTimeout);
|
|
15782
|
+
it('should error if - missing linkIndex', (done) => {
|
|
15783
|
+
try {
|
|
15784
|
+
a.patchTopologyV2TopologyIdLinksLinkIndex('fakeparam', null, null, (data, error) => {
|
|
15785
|
+
try {
|
|
15786
|
+
const displayE = 'linkIndex is required';
|
|
15787
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-patchTopologyV2TopologyIdLinksLinkIndex', displayE);
|
|
15788
|
+
done();
|
|
15789
|
+
} catch (err) {
|
|
15790
|
+
log.error(`Test Failure: ${err}`);
|
|
15791
|
+
done(err);
|
|
15792
|
+
}
|
|
15793
|
+
});
|
|
15794
|
+
} catch (error) {
|
|
15795
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15796
|
+
done(error);
|
|
15797
|
+
}
|
|
15798
|
+
}).timeout(attemptTimeout);
|
|
15799
|
+
});
|
|
15800
|
+
|
|
15801
|
+
describe('#deleteTopologyV2TopologyIdLinksLinkIndex - errors', () => {
|
|
15802
|
+
it('should have a deleteTopologyV2TopologyIdLinksLinkIndex function', (done) => {
|
|
15803
|
+
try {
|
|
15804
|
+
assert.equal(true, typeof a.deleteTopologyV2TopologyIdLinksLinkIndex === 'function');
|
|
15805
|
+
done();
|
|
15806
|
+
} catch (error) {
|
|
15807
|
+
log.error(`Test Failure: ${error}`);
|
|
15808
|
+
done(error);
|
|
15809
|
+
}
|
|
15810
|
+
}).timeout(attemptTimeout);
|
|
15811
|
+
it('should error if - missing topologyId', (done) => {
|
|
15812
|
+
try {
|
|
15813
|
+
a.deleteTopologyV2TopologyIdLinksLinkIndex(null, null, (data, error) => {
|
|
15814
|
+
try {
|
|
15815
|
+
const displayE = 'topologyId is required';
|
|
15816
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTopologyV2TopologyIdLinksLinkIndex', displayE);
|
|
15817
|
+
done();
|
|
15818
|
+
} catch (err) {
|
|
15819
|
+
log.error(`Test Failure: ${err}`);
|
|
15820
|
+
done(err);
|
|
15821
|
+
}
|
|
15822
|
+
});
|
|
15823
|
+
} catch (error) {
|
|
15824
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15825
|
+
done(error);
|
|
15826
|
+
}
|
|
15827
|
+
}).timeout(attemptTimeout);
|
|
15828
|
+
it('should error if - missing linkIndex', (done) => {
|
|
15829
|
+
try {
|
|
15830
|
+
a.deleteTopologyV2TopologyIdLinksLinkIndex('fakeparam', null, (data, error) => {
|
|
15831
|
+
try {
|
|
15832
|
+
const displayE = 'linkIndex is required';
|
|
15833
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTopologyV2TopologyIdLinksLinkIndex', displayE);
|
|
15834
|
+
done();
|
|
15835
|
+
} catch (err) {
|
|
15836
|
+
log.error(`Test Failure: ${err}`);
|
|
15837
|
+
done(err);
|
|
15838
|
+
}
|
|
15839
|
+
});
|
|
15840
|
+
} catch (error) {
|
|
15841
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15842
|
+
done(error);
|
|
15843
|
+
}
|
|
15844
|
+
}).timeout(attemptTimeout);
|
|
15845
|
+
});
|
|
15846
|
+
|
|
15847
|
+
describe('#getTopologyV2TopologyIdLinksLinkIndexHistory - errors', () => {
|
|
15848
|
+
it('should have a getTopologyV2TopologyIdLinksLinkIndexHistory function', (done) => {
|
|
15849
|
+
try {
|
|
15850
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdLinksLinkIndexHistory === 'function');
|
|
15851
|
+
done();
|
|
15852
|
+
} catch (error) {
|
|
15853
|
+
log.error(`Test Failure: ${error}`);
|
|
15854
|
+
done(error);
|
|
15855
|
+
}
|
|
15856
|
+
}).timeout(attemptTimeout);
|
|
15857
|
+
it('should error if - missing topologyId', (done) => {
|
|
15858
|
+
try {
|
|
15859
|
+
a.getTopologyV2TopologyIdLinksLinkIndexHistory(null, null, (data, error) => {
|
|
15860
|
+
try {
|
|
15861
|
+
const displayE = 'topologyId is required';
|
|
15862
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdLinksLinkIndexHistory', displayE);
|
|
15863
|
+
done();
|
|
15864
|
+
} catch (err) {
|
|
15865
|
+
log.error(`Test Failure: ${err}`);
|
|
15866
|
+
done(err);
|
|
15867
|
+
}
|
|
15868
|
+
});
|
|
15869
|
+
} catch (error) {
|
|
15870
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15871
|
+
done(error);
|
|
15872
|
+
}
|
|
15873
|
+
}).timeout(attemptTimeout);
|
|
15874
|
+
it('should error if - missing linkIndex', (done) => {
|
|
15875
|
+
try {
|
|
15876
|
+
a.getTopologyV2TopologyIdLinksLinkIndexHistory('fakeparam', null, (data, error) => {
|
|
15877
|
+
try {
|
|
15878
|
+
const displayE = 'linkIndex is required';
|
|
15879
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdLinksLinkIndexHistory', displayE);
|
|
15880
|
+
done();
|
|
15881
|
+
} catch (err) {
|
|
15882
|
+
log.error(`Test Failure: ${err}`);
|
|
15883
|
+
done(err);
|
|
15884
|
+
}
|
|
15885
|
+
});
|
|
15886
|
+
} catch (error) {
|
|
15887
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15888
|
+
done(error);
|
|
15889
|
+
}
|
|
15890
|
+
}).timeout(attemptTimeout);
|
|
15891
|
+
});
|
|
15892
|
+
|
|
15893
|
+
describe('#getTopologyV2TopologyIdLinksLinkIndexDevice - errors', () => {
|
|
15894
|
+
it('should have a getTopologyV2TopologyIdLinksLinkIndexDevice function', (done) => {
|
|
15895
|
+
try {
|
|
15896
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdLinksLinkIndexDevice === 'function');
|
|
15897
|
+
done();
|
|
15898
|
+
} catch (error) {
|
|
15899
|
+
log.error(`Test Failure: ${error}`);
|
|
15900
|
+
done(error);
|
|
15901
|
+
}
|
|
15902
|
+
}).timeout(attemptTimeout);
|
|
15903
|
+
it('should error if - missing topologyId', (done) => {
|
|
15904
|
+
try {
|
|
15905
|
+
a.getTopologyV2TopologyIdLinksLinkIndexDevice(null, null, (data, error) => {
|
|
15906
|
+
try {
|
|
15907
|
+
const displayE = 'topologyId is required';
|
|
15908
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdLinksLinkIndexDevice', displayE);
|
|
15909
|
+
done();
|
|
15910
|
+
} catch (err) {
|
|
15911
|
+
log.error(`Test Failure: ${err}`);
|
|
15912
|
+
done(err);
|
|
15913
|
+
}
|
|
15914
|
+
});
|
|
15915
|
+
} catch (error) {
|
|
15916
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15917
|
+
done(error);
|
|
15918
|
+
}
|
|
15919
|
+
}).timeout(attemptTimeout);
|
|
15920
|
+
it('should error if - missing linkIndex', (done) => {
|
|
15921
|
+
try {
|
|
15922
|
+
a.getTopologyV2TopologyIdLinksLinkIndexDevice('fakeparam', null, (data, error) => {
|
|
15923
|
+
try {
|
|
15924
|
+
const displayE = 'linkIndex is required';
|
|
15925
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdLinksLinkIndexDevice', displayE);
|
|
15926
|
+
done();
|
|
15927
|
+
} catch (err) {
|
|
15928
|
+
log.error(`Test Failure: ${err}`);
|
|
15929
|
+
done(err);
|
|
15930
|
+
}
|
|
15931
|
+
});
|
|
15932
|
+
} catch (error) {
|
|
15933
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15934
|
+
done(error);
|
|
15935
|
+
}
|
|
15936
|
+
}).timeout(attemptTimeout);
|
|
15937
|
+
});
|
|
15938
|
+
|
|
15939
|
+
describe('#putTopologyV2TopologyIdLinksLinkIndexDevice - errors', () => {
|
|
15940
|
+
it('should have a putTopologyV2TopologyIdLinksLinkIndexDevice function', (done) => {
|
|
15941
|
+
try {
|
|
15942
|
+
assert.equal(true, typeof a.putTopologyV2TopologyIdLinksLinkIndexDevice === 'function');
|
|
15943
|
+
done();
|
|
15944
|
+
} catch (error) {
|
|
15945
|
+
log.error(`Test Failure: ${error}`);
|
|
15946
|
+
done(error);
|
|
15947
|
+
}
|
|
15948
|
+
}).timeout(attemptTimeout);
|
|
15949
|
+
it('should error if - missing topologyId', (done) => {
|
|
15950
|
+
try {
|
|
15951
|
+
a.putTopologyV2TopologyIdLinksLinkIndexDevice(null, null, null, (data, error) => {
|
|
15952
|
+
try {
|
|
15953
|
+
const displayE = 'topologyId is required';
|
|
15954
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-putTopologyV2TopologyIdLinksLinkIndexDevice', displayE);
|
|
15955
|
+
done();
|
|
15956
|
+
} catch (err) {
|
|
15957
|
+
log.error(`Test Failure: ${err}`);
|
|
15958
|
+
done(err);
|
|
15959
|
+
}
|
|
15960
|
+
});
|
|
15961
|
+
} catch (error) {
|
|
15962
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15963
|
+
done(error);
|
|
15964
|
+
}
|
|
15965
|
+
}).timeout(attemptTimeout);
|
|
15966
|
+
it('should error if - missing linkIndex', (done) => {
|
|
15967
|
+
try {
|
|
15968
|
+
a.putTopologyV2TopologyIdLinksLinkIndexDevice('fakeparam', null, null, (data, error) => {
|
|
15969
|
+
try {
|
|
15970
|
+
const displayE = 'linkIndex is required';
|
|
15971
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-putTopologyV2TopologyIdLinksLinkIndexDevice', displayE);
|
|
15972
|
+
done();
|
|
15973
|
+
} catch (err) {
|
|
15974
|
+
log.error(`Test Failure: ${err}`);
|
|
15975
|
+
done(err);
|
|
15976
|
+
}
|
|
15977
|
+
});
|
|
15978
|
+
} catch (error) {
|
|
15979
|
+
log.error(`Adapter Exception: ${error}`);
|
|
15980
|
+
done(error);
|
|
15981
|
+
}
|
|
15982
|
+
}).timeout(attemptTimeout);
|
|
15983
|
+
});
|
|
15984
|
+
|
|
15985
|
+
describe('#patchTopologyV2TopologyIdLinksLinkIndexDevice - errors', () => {
|
|
15986
|
+
it('should have a patchTopologyV2TopologyIdLinksLinkIndexDevice function', (done) => {
|
|
15987
|
+
try {
|
|
15988
|
+
assert.equal(true, typeof a.patchTopologyV2TopologyIdLinksLinkIndexDevice === 'function');
|
|
15989
|
+
done();
|
|
15990
|
+
} catch (error) {
|
|
15991
|
+
log.error(`Test Failure: ${error}`);
|
|
15992
|
+
done(error);
|
|
15993
|
+
}
|
|
15994
|
+
}).timeout(attemptTimeout);
|
|
15995
|
+
it('should error if - missing topologyId', (done) => {
|
|
15996
|
+
try {
|
|
15997
|
+
a.patchTopologyV2TopologyIdLinksLinkIndexDevice(null, null, null, (data, error) => {
|
|
15998
|
+
try {
|
|
15999
|
+
const displayE = 'topologyId is required';
|
|
16000
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-patchTopologyV2TopologyIdLinksLinkIndexDevice', displayE);
|
|
16001
|
+
done();
|
|
16002
|
+
} catch (err) {
|
|
16003
|
+
log.error(`Test Failure: ${err}`);
|
|
16004
|
+
done(err);
|
|
16005
|
+
}
|
|
16006
|
+
});
|
|
16007
|
+
} catch (error) {
|
|
16008
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16009
|
+
done(error);
|
|
16010
|
+
}
|
|
16011
|
+
}).timeout(attemptTimeout);
|
|
16012
|
+
it('should error if - missing linkIndex', (done) => {
|
|
16013
|
+
try {
|
|
16014
|
+
a.patchTopologyV2TopologyIdLinksLinkIndexDevice('fakeparam', null, null, (data, error) => {
|
|
16015
|
+
try {
|
|
16016
|
+
const displayE = 'linkIndex is required';
|
|
16017
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-patchTopologyV2TopologyIdLinksLinkIndexDevice', displayE);
|
|
16018
|
+
done();
|
|
16019
|
+
} catch (err) {
|
|
16020
|
+
log.error(`Test Failure: ${err}`);
|
|
16021
|
+
done(err);
|
|
16022
|
+
}
|
|
16023
|
+
});
|
|
16024
|
+
} catch (error) {
|
|
16025
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16026
|
+
done(error);
|
|
16027
|
+
}
|
|
16028
|
+
}).timeout(attemptTimeout);
|
|
16029
|
+
});
|
|
16030
|
+
|
|
16031
|
+
describe('#getTopologyV2TopologyIdLinksLinkIndexUser - errors', () => {
|
|
16032
|
+
it('should have a getTopologyV2TopologyIdLinksLinkIndexUser function', (done) => {
|
|
16033
|
+
try {
|
|
16034
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdLinksLinkIndexUser === 'function');
|
|
16035
|
+
done();
|
|
16036
|
+
} catch (error) {
|
|
16037
|
+
log.error(`Test Failure: ${error}`);
|
|
16038
|
+
done(error);
|
|
16039
|
+
}
|
|
16040
|
+
}).timeout(attemptTimeout);
|
|
16041
|
+
it('should error if - missing topologyId', (done) => {
|
|
16042
|
+
try {
|
|
16043
|
+
a.getTopologyV2TopologyIdLinksLinkIndexUser(null, null, (data, error) => {
|
|
16044
|
+
try {
|
|
16045
|
+
const displayE = 'topologyId is required';
|
|
16046
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdLinksLinkIndexUser', displayE);
|
|
16047
|
+
done();
|
|
16048
|
+
} catch (err) {
|
|
16049
|
+
log.error(`Test Failure: ${err}`);
|
|
16050
|
+
done(err);
|
|
16051
|
+
}
|
|
16052
|
+
});
|
|
16053
|
+
} catch (error) {
|
|
16054
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16055
|
+
done(error);
|
|
16056
|
+
}
|
|
16057
|
+
}).timeout(attemptTimeout);
|
|
16058
|
+
it('should error if - missing linkIndex', (done) => {
|
|
16059
|
+
try {
|
|
16060
|
+
a.getTopologyV2TopologyIdLinksLinkIndexUser('fakeparam', null, (data, error) => {
|
|
16061
|
+
try {
|
|
16062
|
+
const displayE = 'linkIndex is required';
|
|
16063
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdLinksLinkIndexUser', displayE);
|
|
16064
|
+
done();
|
|
16065
|
+
} catch (err) {
|
|
16066
|
+
log.error(`Test Failure: ${err}`);
|
|
16067
|
+
done(err);
|
|
16068
|
+
}
|
|
16069
|
+
});
|
|
16070
|
+
} catch (error) {
|
|
16071
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16072
|
+
done(error);
|
|
16073
|
+
}
|
|
16074
|
+
}).timeout(attemptTimeout);
|
|
16075
|
+
});
|
|
16076
|
+
|
|
16077
|
+
describe('#putTopologyV2TopologyIdLinksLinkIndexUser - errors', () => {
|
|
16078
|
+
it('should have a putTopologyV2TopologyIdLinksLinkIndexUser function', (done) => {
|
|
16079
|
+
try {
|
|
16080
|
+
assert.equal(true, typeof a.putTopologyV2TopologyIdLinksLinkIndexUser === 'function');
|
|
16081
|
+
done();
|
|
16082
|
+
} catch (error) {
|
|
16083
|
+
log.error(`Test Failure: ${error}`);
|
|
16084
|
+
done(error);
|
|
16085
|
+
}
|
|
16086
|
+
}).timeout(attemptTimeout);
|
|
16087
|
+
it('should error if - missing topologyId', (done) => {
|
|
16088
|
+
try {
|
|
16089
|
+
a.putTopologyV2TopologyIdLinksLinkIndexUser(null, null, null, (data, error) => {
|
|
16090
|
+
try {
|
|
16091
|
+
const displayE = 'topologyId is required';
|
|
16092
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-putTopologyV2TopologyIdLinksLinkIndexUser', displayE);
|
|
16093
|
+
done();
|
|
16094
|
+
} catch (err) {
|
|
16095
|
+
log.error(`Test Failure: ${err}`);
|
|
16096
|
+
done(err);
|
|
16097
|
+
}
|
|
16098
|
+
});
|
|
16099
|
+
} catch (error) {
|
|
16100
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16101
|
+
done(error);
|
|
16102
|
+
}
|
|
16103
|
+
}).timeout(attemptTimeout);
|
|
16104
|
+
it('should error if - missing linkIndex', (done) => {
|
|
16105
|
+
try {
|
|
16106
|
+
a.putTopologyV2TopologyIdLinksLinkIndexUser('fakeparam', null, null, (data, error) => {
|
|
16107
|
+
try {
|
|
16108
|
+
const displayE = 'linkIndex is required';
|
|
16109
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-putTopologyV2TopologyIdLinksLinkIndexUser', displayE);
|
|
16110
|
+
done();
|
|
16111
|
+
} catch (err) {
|
|
16112
|
+
log.error(`Test Failure: ${err}`);
|
|
16113
|
+
done(err);
|
|
16114
|
+
}
|
|
16115
|
+
});
|
|
16116
|
+
} catch (error) {
|
|
16117
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16118
|
+
done(error);
|
|
16119
|
+
}
|
|
16120
|
+
}).timeout(attemptTimeout);
|
|
16121
|
+
});
|
|
16122
|
+
|
|
16123
|
+
describe('#patchTopologyV2TopologyIdLinksLinkIndexUser - errors', () => {
|
|
16124
|
+
it('should have a patchTopologyV2TopologyIdLinksLinkIndexUser function', (done) => {
|
|
16125
|
+
try {
|
|
16126
|
+
assert.equal(true, typeof a.patchTopologyV2TopologyIdLinksLinkIndexUser === 'function');
|
|
16127
|
+
done();
|
|
16128
|
+
} catch (error) {
|
|
16129
|
+
log.error(`Test Failure: ${error}`);
|
|
16130
|
+
done(error);
|
|
16131
|
+
}
|
|
16132
|
+
}).timeout(attemptTimeout);
|
|
16133
|
+
it('should error if - missing topologyId', (done) => {
|
|
16134
|
+
try {
|
|
16135
|
+
a.patchTopologyV2TopologyIdLinksLinkIndexUser(null, null, null, (data, error) => {
|
|
16136
|
+
try {
|
|
16137
|
+
const displayE = 'topologyId is required';
|
|
16138
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-patchTopologyV2TopologyIdLinksLinkIndexUser', displayE);
|
|
16139
|
+
done();
|
|
16140
|
+
} catch (err) {
|
|
16141
|
+
log.error(`Test Failure: ${err}`);
|
|
16142
|
+
done(err);
|
|
16143
|
+
}
|
|
16144
|
+
});
|
|
16145
|
+
} catch (error) {
|
|
16146
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16147
|
+
done(error);
|
|
16148
|
+
}
|
|
16149
|
+
}).timeout(attemptTimeout);
|
|
16150
|
+
it('should error if - missing linkIndex', (done) => {
|
|
16151
|
+
try {
|
|
16152
|
+
a.patchTopologyV2TopologyIdLinksLinkIndexUser('fakeparam', null, null, (data, error) => {
|
|
16153
|
+
try {
|
|
16154
|
+
const displayE = 'linkIndex is required';
|
|
16155
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-patchTopologyV2TopologyIdLinksLinkIndexUser', displayE);
|
|
16156
|
+
done();
|
|
16157
|
+
} catch (err) {
|
|
16158
|
+
log.error(`Test Failure: ${err}`);
|
|
16159
|
+
done(err);
|
|
16160
|
+
}
|
|
16161
|
+
});
|
|
16162
|
+
} catch (error) {
|
|
16163
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16164
|
+
done(error);
|
|
16165
|
+
}
|
|
16166
|
+
}).timeout(attemptTimeout);
|
|
16167
|
+
});
|
|
16168
|
+
|
|
16169
|
+
describe('#getTopologyV2TopologyIdLinksLinkIndexBgpLs - errors', () => {
|
|
16170
|
+
it('should have a getTopologyV2TopologyIdLinksLinkIndexBgpLs function', (done) => {
|
|
16171
|
+
try {
|
|
16172
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdLinksLinkIndexBgpLs === 'function');
|
|
16173
|
+
done();
|
|
16174
|
+
} catch (error) {
|
|
16175
|
+
log.error(`Test Failure: ${error}`);
|
|
16176
|
+
done(error);
|
|
16177
|
+
}
|
|
16178
|
+
}).timeout(attemptTimeout);
|
|
16179
|
+
it('should error if - missing topologyId', (done) => {
|
|
16180
|
+
try {
|
|
16181
|
+
a.getTopologyV2TopologyIdLinksLinkIndexBgpLs(null, null, (data, error) => {
|
|
16182
|
+
try {
|
|
16183
|
+
const displayE = 'topologyId is required';
|
|
16184
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdLinksLinkIndexBgpLs', displayE);
|
|
16185
|
+
done();
|
|
16186
|
+
} catch (err) {
|
|
16187
|
+
log.error(`Test Failure: ${err}`);
|
|
16188
|
+
done(err);
|
|
16189
|
+
}
|
|
16190
|
+
});
|
|
16191
|
+
} catch (error) {
|
|
16192
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16193
|
+
done(error);
|
|
16194
|
+
}
|
|
16195
|
+
}).timeout(attemptTimeout);
|
|
16196
|
+
it('should error if - missing linkIndex', (done) => {
|
|
16197
|
+
try {
|
|
16198
|
+
a.getTopologyV2TopologyIdLinksLinkIndexBgpLs('fakeparam', null, (data, error) => {
|
|
16199
|
+
try {
|
|
16200
|
+
const displayE = 'linkIndex is required';
|
|
16201
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdLinksLinkIndexBgpLs', displayE);
|
|
16202
|
+
done();
|
|
16203
|
+
} catch (err) {
|
|
16204
|
+
log.error(`Test Failure: ${err}`);
|
|
16205
|
+
done(err);
|
|
16206
|
+
}
|
|
16207
|
+
});
|
|
16208
|
+
} catch (error) {
|
|
16209
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16210
|
+
done(error);
|
|
16211
|
+
}
|
|
16212
|
+
}).timeout(attemptTimeout);
|
|
16213
|
+
});
|
|
16214
|
+
|
|
16215
|
+
describe('#getTopologyV2TopologyIdTeLsps - errors', () => {
|
|
16216
|
+
it('should have a getTopologyV2TopologyIdTeLsps function', (done) => {
|
|
16217
|
+
try {
|
|
16218
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdTeLsps === 'function');
|
|
16219
|
+
done();
|
|
16220
|
+
} catch (error) {
|
|
16221
|
+
log.error(`Test Failure: ${error}`);
|
|
16222
|
+
done(error);
|
|
16223
|
+
}
|
|
16224
|
+
}).timeout(attemptTimeout);
|
|
16225
|
+
it('should error if - missing topologyId', (done) => {
|
|
16226
|
+
try {
|
|
16227
|
+
a.getTopologyV2TopologyIdTeLsps(null, (data, error) => {
|
|
16228
|
+
try {
|
|
16229
|
+
const displayE = 'topologyId is required';
|
|
16230
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdTeLsps', displayE);
|
|
16231
|
+
done();
|
|
16232
|
+
} catch (err) {
|
|
16233
|
+
log.error(`Test Failure: ${err}`);
|
|
16234
|
+
done(err);
|
|
16235
|
+
}
|
|
16236
|
+
});
|
|
16237
|
+
} catch (error) {
|
|
16238
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16239
|
+
done(error);
|
|
16240
|
+
}
|
|
16241
|
+
}).timeout(attemptTimeout);
|
|
16242
|
+
});
|
|
16243
|
+
|
|
16244
|
+
describe('#postTopologyV2TopologyIdTeLsps - errors', () => {
|
|
16245
|
+
it('should have a postTopologyV2TopologyIdTeLsps function', (done) => {
|
|
16246
|
+
try {
|
|
16247
|
+
assert.equal(true, typeof a.postTopologyV2TopologyIdTeLsps === 'function');
|
|
16248
|
+
done();
|
|
16249
|
+
} catch (error) {
|
|
16250
|
+
log.error(`Test Failure: ${error}`);
|
|
16251
|
+
done(error);
|
|
16252
|
+
}
|
|
16253
|
+
}).timeout(attemptTimeout);
|
|
16254
|
+
it('should error if - missing topologyId', (done) => {
|
|
16255
|
+
try {
|
|
16256
|
+
a.postTopologyV2TopologyIdTeLsps(null, null, (data, error) => {
|
|
16257
|
+
try {
|
|
16258
|
+
const displayE = 'topologyId is required';
|
|
16259
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-postTopologyV2TopologyIdTeLsps', displayE);
|
|
16260
|
+
done();
|
|
16261
|
+
} catch (err) {
|
|
16262
|
+
log.error(`Test Failure: ${err}`);
|
|
16263
|
+
done(err);
|
|
16264
|
+
}
|
|
16265
|
+
});
|
|
16266
|
+
} catch (error) {
|
|
16267
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16268
|
+
done(error);
|
|
16269
|
+
}
|
|
16270
|
+
}).timeout(attemptTimeout);
|
|
16271
|
+
});
|
|
16272
|
+
|
|
16273
|
+
describe('#getTopologyV2TopologyIdTeLspsSearch - errors', () => {
|
|
16274
|
+
it('should have a getTopologyV2TopologyIdTeLspsSearch function', (done) => {
|
|
16275
|
+
try {
|
|
16276
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdTeLspsSearch === 'function');
|
|
16277
|
+
done();
|
|
16278
|
+
} catch (error) {
|
|
16279
|
+
log.error(`Test Failure: ${error}`);
|
|
16280
|
+
done(error);
|
|
16281
|
+
}
|
|
16282
|
+
}).timeout(attemptTimeout);
|
|
16283
|
+
it('should error if - missing topologyId', (done) => {
|
|
16284
|
+
try {
|
|
16285
|
+
a.getTopologyV2TopologyIdTeLspsSearch(null, (data, error) => {
|
|
16286
|
+
try {
|
|
16287
|
+
const displayE = 'topologyId is required';
|
|
16288
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdTeLspsSearch', displayE);
|
|
16289
|
+
done();
|
|
16290
|
+
} catch (err) {
|
|
16291
|
+
log.error(`Test Failure: ${err}`);
|
|
16292
|
+
done(err);
|
|
16293
|
+
}
|
|
16294
|
+
});
|
|
16295
|
+
} catch (error) {
|
|
16296
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16297
|
+
done(error);
|
|
16298
|
+
}
|
|
16299
|
+
}).timeout(attemptTimeout);
|
|
16300
|
+
});
|
|
16301
|
+
|
|
16302
|
+
describe('#getTopologyV2TopologyIdTeLspsStream - errors', () => {
|
|
16303
|
+
it('should have a getTopologyV2TopologyIdTeLspsStream function', (done) => {
|
|
16304
|
+
try {
|
|
16305
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdTeLspsStream === 'function');
|
|
16306
|
+
done();
|
|
16307
|
+
} catch (error) {
|
|
16308
|
+
log.error(`Test Failure: ${error}`);
|
|
16309
|
+
done(error);
|
|
16310
|
+
}
|
|
16311
|
+
}).timeout(attemptTimeout);
|
|
16312
|
+
it('should error if - missing topologyId', (done) => {
|
|
16313
|
+
try {
|
|
16314
|
+
a.getTopologyV2TopologyIdTeLspsStream(null, (data, error) => {
|
|
16315
|
+
try {
|
|
16316
|
+
const displayE = 'topologyId is required';
|
|
16317
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdTeLspsStream', displayE);
|
|
16318
|
+
done();
|
|
16319
|
+
} catch (err) {
|
|
16320
|
+
log.error(`Test Failure: ${err}`);
|
|
16321
|
+
done(err);
|
|
16322
|
+
}
|
|
16323
|
+
});
|
|
16324
|
+
} catch (error) {
|
|
16325
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16326
|
+
done(error);
|
|
16327
|
+
}
|
|
16328
|
+
}).timeout(attemptTimeout);
|
|
16329
|
+
});
|
|
16330
|
+
|
|
16331
|
+
describe('#postTopologyV2TopologyIdTeLspsBulk - errors', () => {
|
|
16332
|
+
it('should have a postTopologyV2TopologyIdTeLspsBulk function', (done) => {
|
|
16333
|
+
try {
|
|
16334
|
+
assert.equal(true, typeof a.postTopologyV2TopologyIdTeLspsBulk === 'function');
|
|
16335
|
+
done();
|
|
16336
|
+
} catch (error) {
|
|
16337
|
+
log.error(`Test Failure: ${error}`);
|
|
16338
|
+
done(error);
|
|
16339
|
+
}
|
|
16340
|
+
}).timeout(attemptTimeout);
|
|
16341
|
+
it('should error if - missing topologyId', (done) => {
|
|
16342
|
+
try {
|
|
16343
|
+
a.postTopologyV2TopologyIdTeLspsBulk(null, null, (data, error) => {
|
|
16344
|
+
try {
|
|
16345
|
+
const displayE = 'topologyId is required';
|
|
16346
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-postTopologyV2TopologyIdTeLspsBulk', displayE);
|
|
16347
|
+
done();
|
|
16348
|
+
} catch (err) {
|
|
16349
|
+
log.error(`Test Failure: ${err}`);
|
|
16350
|
+
done(err);
|
|
16351
|
+
}
|
|
16352
|
+
});
|
|
16353
|
+
} catch (error) {
|
|
16354
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16355
|
+
done(error);
|
|
16356
|
+
}
|
|
16357
|
+
}).timeout(attemptTimeout);
|
|
16358
|
+
});
|
|
16359
|
+
|
|
16360
|
+
describe('#putTopologyV2TopologyIdTeLspsBulk - errors', () => {
|
|
16361
|
+
it('should have a putTopologyV2TopologyIdTeLspsBulk function', (done) => {
|
|
16362
|
+
try {
|
|
16363
|
+
assert.equal(true, typeof a.putTopologyV2TopologyIdTeLspsBulk === 'function');
|
|
16364
|
+
done();
|
|
16365
|
+
} catch (error) {
|
|
16366
|
+
log.error(`Test Failure: ${error}`);
|
|
16367
|
+
done(error);
|
|
16368
|
+
}
|
|
16369
|
+
}).timeout(attemptTimeout);
|
|
16370
|
+
it('should error if - missing topologyId', (done) => {
|
|
16371
|
+
try {
|
|
16372
|
+
a.putTopologyV2TopologyIdTeLspsBulk(null, null, (data, error) => {
|
|
16373
|
+
try {
|
|
16374
|
+
const displayE = 'topologyId is required';
|
|
16375
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-putTopologyV2TopologyIdTeLspsBulk', displayE);
|
|
16376
|
+
done();
|
|
16377
|
+
} catch (err) {
|
|
16378
|
+
log.error(`Test Failure: ${err}`);
|
|
16379
|
+
done(err);
|
|
16380
|
+
}
|
|
16381
|
+
});
|
|
16382
|
+
} catch (error) {
|
|
16383
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16384
|
+
done(error);
|
|
16385
|
+
}
|
|
16386
|
+
}).timeout(attemptTimeout);
|
|
16387
|
+
});
|
|
16388
|
+
|
|
16389
|
+
describe('#patchTopologyV2TopologyIdTeLspsBulk - errors', () => {
|
|
16390
|
+
it('should have a patchTopologyV2TopologyIdTeLspsBulk function', (done) => {
|
|
16391
|
+
try {
|
|
16392
|
+
assert.equal(true, typeof a.patchTopologyV2TopologyIdTeLspsBulk === 'function');
|
|
16393
|
+
done();
|
|
16394
|
+
} catch (error) {
|
|
16395
|
+
log.error(`Test Failure: ${error}`);
|
|
16396
|
+
done(error);
|
|
16397
|
+
}
|
|
16398
|
+
}).timeout(attemptTimeout);
|
|
16399
|
+
it('should error if - missing topologyId', (done) => {
|
|
16400
|
+
try {
|
|
16401
|
+
a.patchTopologyV2TopologyIdTeLspsBulk(null, null, (data, error) => {
|
|
16402
|
+
try {
|
|
16403
|
+
const displayE = 'topologyId is required';
|
|
16404
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-patchTopologyV2TopologyIdTeLspsBulk', displayE);
|
|
16405
|
+
done();
|
|
16406
|
+
} catch (err) {
|
|
16407
|
+
log.error(`Test Failure: ${err}`);
|
|
16408
|
+
done(err);
|
|
16409
|
+
}
|
|
16410
|
+
});
|
|
16411
|
+
} catch (error) {
|
|
16412
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16413
|
+
done(error);
|
|
16414
|
+
}
|
|
16415
|
+
}).timeout(attemptTimeout);
|
|
16416
|
+
});
|
|
16417
|
+
|
|
16418
|
+
describe('#deleteTopologyV2TopologyIdTeLspsBulk - errors', () => {
|
|
16419
|
+
it('should have a deleteTopologyV2TopologyIdTeLspsBulk function', (done) => {
|
|
16420
|
+
try {
|
|
16421
|
+
assert.equal(true, typeof a.deleteTopologyV2TopologyIdTeLspsBulk === 'function');
|
|
16422
|
+
done();
|
|
16423
|
+
} catch (error) {
|
|
16424
|
+
log.error(`Test Failure: ${error}`);
|
|
16425
|
+
done(error);
|
|
16426
|
+
}
|
|
16427
|
+
}).timeout(attemptTimeout);
|
|
16428
|
+
it('should error if - missing topologyId', (done) => {
|
|
16429
|
+
try {
|
|
16430
|
+
a.deleteTopologyV2TopologyIdTeLspsBulk(null, (data, error) => {
|
|
16431
|
+
try {
|
|
16432
|
+
const displayE = 'topologyId is required';
|
|
16433
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTopologyV2TopologyIdTeLspsBulk', displayE);
|
|
16434
|
+
done();
|
|
16435
|
+
} catch (err) {
|
|
16436
|
+
log.error(`Test Failure: ${err}`);
|
|
16437
|
+
done(err);
|
|
16438
|
+
}
|
|
16439
|
+
});
|
|
16440
|
+
} catch (error) {
|
|
16441
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16442
|
+
done(error);
|
|
16443
|
+
}
|
|
16444
|
+
}).timeout(attemptTimeout);
|
|
16445
|
+
});
|
|
16446
|
+
|
|
16447
|
+
describe('#getTopologyV2TopologyIdTeLspsLspIndex - errors', () => {
|
|
16448
|
+
it('should have a getTopologyV2TopologyIdTeLspsLspIndex function', (done) => {
|
|
16449
|
+
try {
|
|
16450
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdTeLspsLspIndex === 'function');
|
|
16451
|
+
done();
|
|
16452
|
+
} catch (error) {
|
|
16453
|
+
log.error(`Test Failure: ${error}`);
|
|
16454
|
+
done(error);
|
|
16455
|
+
}
|
|
16456
|
+
}).timeout(attemptTimeout);
|
|
16457
|
+
it('should error if - missing topologyId', (done) => {
|
|
16458
|
+
try {
|
|
16459
|
+
a.getTopologyV2TopologyIdTeLspsLspIndex(null, null, (data, error) => {
|
|
16460
|
+
try {
|
|
16461
|
+
const displayE = 'topologyId is required';
|
|
16462
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdTeLspsLspIndex', displayE);
|
|
16463
|
+
done();
|
|
16464
|
+
} catch (err) {
|
|
16465
|
+
log.error(`Test Failure: ${err}`);
|
|
16466
|
+
done(err);
|
|
16467
|
+
}
|
|
16468
|
+
});
|
|
16469
|
+
} catch (error) {
|
|
16470
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16471
|
+
done(error);
|
|
16472
|
+
}
|
|
16473
|
+
}).timeout(attemptTimeout);
|
|
16474
|
+
it('should error if - missing lspIndex', (done) => {
|
|
16475
|
+
try {
|
|
16476
|
+
a.getTopologyV2TopologyIdTeLspsLspIndex('fakeparam', null, (data, error) => {
|
|
16477
|
+
try {
|
|
16478
|
+
const displayE = 'lspIndex is required';
|
|
16479
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdTeLspsLspIndex', displayE);
|
|
16480
|
+
done();
|
|
16481
|
+
} catch (err) {
|
|
16482
|
+
log.error(`Test Failure: ${err}`);
|
|
16483
|
+
done(err);
|
|
16484
|
+
}
|
|
16485
|
+
});
|
|
16486
|
+
} catch (error) {
|
|
16487
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16488
|
+
done(error);
|
|
16489
|
+
}
|
|
16490
|
+
}).timeout(attemptTimeout);
|
|
16491
|
+
});
|
|
16492
|
+
|
|
16493
|
+
describe('#putTopologyV2TopologyIdTeLspsLspIndex - errors', () => {
|
|
16494
|
+
it('should have a putTopologyV2TopologyIdTeLspsLspIndex function', (done) => {
|
|
16495
|
+
try {
|
|
16496
|
+
assert.equal(true, typeof a.putTopologyV2TopologyIdTeLspsLspIndex === 'function');
|
|
16497
|
+
done();
|
|
16498
|
+
} catch (error) {
|
|
16499
|
+
log.error(`Test Failure: ${error}`);
|
|
16500
|
+
done(error);
|
|
16501
|
+
}
|
|
16502
|
+
}).timeout(attemptTimeout);
|
|
16503
|
+
it('should error if - missing topologyId', (done) => {
|
|
16504
|
+
try {
|
|
16505
|
+
a.putTopologyV2TopologyIdTeLspsLspIndex(null, null, null, (data, error) => {
|
|
16506
|
+
try {
|
|
16507
|
+
const displayE = 'topologyId is required';
|
|
16508
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-putTopologyV2TopologyIdTeLspsLspIndex', displayE);
|
|
16509
|
+
done();
|
|
16510
|
+
} catch (err) {
|
|
16511
|
+
log.error(`Test Failure: ${err}`);
|
|
16512
|
+
done(err);
|
|
16513
|
+
}
|
|
16514
|
+
});
|
|
16515
|
+
} catch (error) {
|
|
16516
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16517
|
+
done(error);
|
|
16518
|
+
}
|
|
16519
|
+
}).timeout(attemptTimeout);
|
|
16520
|
+
it('should error if - missing lspIndex', (done) => {
|
|
16521
|
+
try {
|
|
16522
|
+
a.putTopologyV2TopologyIdTeLspsLspIndex('fakeparam', null, null, (data, error) => {
|
|
16523
|
+
try {
|
|
16524
|
+
const displayE = 'lspIndex is required';
|
|
16525
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-putTopologyV2TopologyIdTeLspsLspIndex', displayE);
|
|
16526
|
+
done();
|
|
16527
|
+
} catch (err) {
|
|
16528
|
+
log.error(`Test Failure: ${err}`);
|
|
16529
|
+
done(err);
|
|
16530
|
+
}
|
|
16531
|
+
});
|
|
16532
|
+
} catch (error) {
|
|
16533
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16534
|
+
done(error);
|
|
16535
|
+
}
|
|
16536
|
+
}).timeout(attemptTimeout);
|
|
16537
|
+
});
|
|
16538
|
+
|
|
16539
|
+
describe('#patchTopologyV2TopologyIdTeLspsLspIndex - errors', () => {
|
|
16540
|
+
it('should have a patchTopologyV2TopologyIdTeLspsLspIndex function', (done) => {
|
|
16541
|
+
try {
|
|
16542
|
+
assert.equal(true, typeof a.patchTopologyV2TopologyIdTeLspsLspIndex === 'function');
|
|
16543
|
+
done();
|
|
16544
|
+
} catch (error) {
|
|
16545
|
+
log.error(`Test Failure: ${error}`);
|
|
16546
|
+
done(error);
|
|
16547
|
+
}
|
|
16548
|
+
}).timeout(attemptTimeout);
|
|
16549
|
+
it('should error if - missing topologyId', (done) => {
|
|
16550
|
+
try {
|
|
16551
|
+
a.patchTopologyV2TopologyIdTeLspsLspIndex(null, null, null, (data, error) => {
|
|
16552
|
+
try {
|
|
16553
|
+
const displayE = 'topologyId is required';
|
|
16554
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-patchTopologyV2TopologyIdTeLspsLspIndex', displayE);
|
|
16555
|
+
done();
|
|
16556
|
+
} catch (err) {
|
|
16557
|
+
log.error(`Test Failure: ${err}`);
|
|
16558
|
+
done(err);
|
|
16559
|
+
}
|
|
16560
|
+
});
|
|
16561
|
+
} catch (error) {
|
|
16562
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16563
|
+
done(error);
|
|
16564
|
+
}
|
|
16565
|
+
}).timeout(attemptTimeout);
|
|
16566
|
+
it('should error if - missing lspIndex', (done) => {
|
|
16567
|
+
try {
|
|
16568
|
+
a.patchTopologyV2TopologyIdTeLspsLspIndex('fakeparam', null, null, (data, error) => {
|
|
16569
|
+
try {
|
|
16570
|
+
const displayE = 'lspIndex is required';
|
|
16571
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-patchTopologyV2TopologyIdTeLspsLspIndex', displayE);
|
|
16572
|
+
done();
|
|
16573
|
+
} catch (err) {
|
|
16574
|
+
log.error(`Test Failure: ${err}`);
|
|
16575
|
+
done(err);
|
|
16576
|
+
}
|
|
16577
|
+
});
|
|
16578
|
+
} catch (error) {
|
|
16579
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16580
|
+
done(error);
|
|
16581
|
+
}
|
|
16582
|
+
}).timeout(attemptTimeout);
|
|
16583
|
+
});
|
|
16584
|
+
|
|
16585
|
+
describe('#deleteTopologyV2TopologyIdTeLspsLspIndex - errors', () => {
|
|
16586
|
+
it('should have a deleteTopologyV2TopologyIdTeLspsLspIndex function', (done) => {
|
|
16587
|
+
try {
|
|
16588
|
+
assert.equal(true, typeof a.deleteTopologyV2TopologyIdTeLspsLspIndex === 'function');
|
|
16589
|
+
done();
|
|
16590
|
+
} catch (error) {
|
|
16591
|
+
log.error(`Test Failure: ${error}`);
|
|
16592
|
+
done(error);
|
|
16593
|
+
}
|
|
16594
|
+
}).timeout(attemptTimeout);
|
|
16595
|
+
it('should error if - missing topologyId', (done) => {
|
|
16596
|
+
try {
|
|
16597
|
+
a.deleteTopologyV2TopologyIdTeLspsLspIndex(null, null, (data, error) => {
|
|
16598
|
+
try {
|
|
16599
|
+
const displayE = 'topologyId is required';
|
|
16600
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTopologyV2TopologyIdTeLspsLspIndex', displayE);
|
|
16601
|
+
done();
|
|
16602
|
+
} catch (err) {
|
|
16603
|
+
log.error(`Test Failure: ${err}`);
|
|
16604
|
+
done(err);
|
|
16605
|
+
}
|
|
16606
|
+
});
|
|
16607
|
+
} catch (error) {
|
|
16608
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16609
|
+
done(error);
|
|
16610
|
+
}
|
|
16611
|
+
}).timeout(attemptTimeout);
|
|
16612
|
+
it('should error if - missing lspIndex', (done) => {
|
|
16613
|
+
try {
|
|
16614
|
+
a.deleteTopologyV2TopologyIdTeLspsLspIndex('fakeparam', null, (data, error) => {
|
|
16615
|
+
try {
|
|
16616
|
+
const displayE = 'lspIndex is required';
|
|
16617
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTopologyV2TopologyIdTeLspsLspIndex', displayE);
|
|
16618
|
+
done();
|
|
16619
|
+
} catch (err) {
|
|
16620
|
+
log.error(`Test Failure: ${err}`);
|
|
16621
|
+
done(err);
|
|
16622
|
+
}
|
|
16623
|
+
});
|
|
16624
|
+
} catch (error) {
|
|
16625
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16626
|
+
done(error);
|
|
16627
|
+
}
|
|
16628
|
+
}).timeout(attemptTimeout);
|
|
16629
|
+
});
|
|
16630
|
+
|
|
16631
|
+
describe('#getTopologyV2TopologyIdTeLspsLspIndexHistory - errors', () => {
|
|
16632
|
+
it('should have a getTopologyV2TopologyIdTeLspsLspIndexHistory function', (done) => {
|
|
16633
|
+
try {
|
|
16634
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdTeLspsLspIndexHistory === 'function');
|
|
16635
|
+
done();
|
|
16636
|
+
} catch (error) {
|
|
16637
|
+
log.error(`Test Failure: ${error}`);
|
|
16638
|
+
done(error);
|
|
16639
|
+
}
|
|
16640
|
+
}).timeout(attemptTimeout);
|
|
16641
|
+
it('should error if - missing topologyId', (done) => {
|
|
16642
|
+
try {
|
|
16643
|
+
a.getTopologyV2TopologyIdTeLspsLspIndexHistory(null, null, (data, error) => {
|
|
16644
|
+
try {
|
|
16645
|
+
const displayE = 'topologyId is required';
|
|
16646
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdTeLspsLspIndexHistory', displayE);
|
|
16647
|
+
done();
|
|
16648
|
+
} catch (err) {
|
|
16649
|
+
log.error(`Test Failure: ${err}`);
|
|
16650
|
+
done(err);
|
|
16651
|
+
}
|
|
16652
|
+
});
|
|
16653
|
+
} catch (error) {
|
|
16654
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16655
|
+
done(error);
|
|
16656
|
+
}
|
|
16657
|
+
}).timeout(attemptTimeout);
|
|
16658
|
+
it('should error if - missing lspIndex', (done) => {
|
|
16659
|
+
try {
|
|
16660
|
+
a.getTopologyV2TopologyIdTeLspsLspIndexHistory('fakeparam', null, (data, error) => {
|
|
16661
|
+
try {
|
|
16662
|
+
const displayE = 'lspIndex is required';
|
|
16663
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdTeLspsLspIndexHistory', displayE);
|
|
16664
|
+
done();
|
|
16665
|
+
} catch (err) {
|
|
16666
|
+
log.error(`Test Failure: ${err}`);
|
|
16667
|
+
done(err);
|
|
16668
|
+
}
|
|
16669
|
+
});
|
|
16670
|
+
} catch (error) {
|
|
16671
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16672
|
+
done(error);
|
|
16673
|
+
}
|
|
16674
|
+
}).timeout(attemptTimeout);
|
|
16675
|
+
});
|
|
16676
|
+
|
|
16677
|
+
describe('#getTopologyV2TopologyIdDemands - errors', () => {
|
|
16678
|
+
it('should have a getTopologyV2TopologyIdDemands function', (done) => {
|
|
16679
|
+
try {
|
|
16680
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdDemands === 'function');
|
|
16681
|
+
done();
|
|
16682
|
+
} catch (error) {
|
|
16683
|
+
log.error(`Test Failure: ${error}`);
|
|
16684
|
+
done(error);
|
|
16685
|
+
}
|
|
16686
|
+
}).timeout(attemptTimeout);
|
|
16687
|
+
it('should error if - missing topologyId', (done) => {
|
|
16688
|
+
try {
|
|
16689
|
+
a.getTopologyV2TopologyIdDemands(null, (data, error) => {
|
|
16690
|
+
try {
|
|
16691
|
+
const displayE = 'topologyId is required';
|
|
16692
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdDemands', displayE);
|
|
16693
|
+
done();
|
|
16694
|
+
} catch (err) {
|
|
16695
|
+
log.error(`Test Failure: ${err}`);
|
|
16696
|
+
done(err);
|
|
16697
|
+
}
|
|
16698
|
+
});
|
|
16699
|
+
} catch (error) {
|
|
16700
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16701
|
+
done(error);
|
|
16702
|
+
}
|
|
16703
|
+
}).timeout(attemptTimeout);
|
|
16704
|
+
});
|
|
16705
|
+
|
|
16706
|
+
describe('#postTopologyV2TopologyIdDemands - errors', () => {
|
|
16707
|
+
it('should have a postTopologyV2TopologyIdDemands function', (done) => {
|
|
16708
|
+
try {
|
|
16709
|
+
assert.equal(true, typeof a.postTopologyV2TopologyIdDemands === 'function');
|
|
16710
|
+
done();
|
|
16711
|
+
} catch (error) {
|
|
16712
|
+
log.error(`Test Failure: ${error}`);
|
|
16713
|
+
done(error);
|
|
16714
|
+
}
|
|
16715
|
+
}).timeout(attemptTimeout);
|
|
16716
|
+
it('should error if - missing topologyId', (done) => {
|
|
16717
|
+
try {
|
|
16718
|
+
a.postTopologyV2TopologyIdDemands(null, null, (data, error) => {
|
|
16719
|
+
try {
|
|
16720
|
+
const displayE = 'topologyId is required';
|
|
16721
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-postTopologyV2TopologyIdDemands', displayE);
|
|
16722
|
+
done();
|
|
16723
|
+
} catch (err) {
|
|
16724
|
+
log.error(`Test Failure: ${err}`);
|
|
16725
|
+
done(err);
|
|
16726
|
+
}
|
|
16727
|
+
});
|
|
16728
|
+
} catch (error) {
|
|
16729
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16730
|
+
done(error);
|
|
16731
|
+
}
|
|
16732
|
+
}).timeout(attemptTimeout);
|
|
16733
|
+
});
|
|
16734
|
+
|
|
16735
|
+
describe('#getTopologyV2TopologyIdDemandsStream - errors', () => {
|
|
16736
|
+
it('should have a getTopologyV2TopologyIdDemandsStream function', (done) => {
|
|
16737
|
+
try {
|
|
16738
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdDemandsStream === 'function');
|
|
16739
|
+
done();
|
|
16740
|
+
} catch (error) {
|
|
16741
|
+
log.error(`Test Failure: ${error}`);
|
|
16742
|
+
done(error);
|
|
16743
|
+
}
|
|
16744
|
+
}).timeout(attemptTimeout);
|
|
16745
|
+
it('should error if - missing topologyId', (done) => {
|
|
16746
|
+
try {
|
|
16747
|
+
a.getTopologyV2TopologyIdDemandsStream(null, (data, error) => {
|
|
16748
|
+
try {
|
|
16749
|
+
const displayE = 'topologyId is required';
|
|
16750
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdDemandsStream', displayE);
|
|
16751
|
+
done();
|
|
16752
|
+
} catch (err) {
|
|
16753
|
+
log.error(`Test Failure: ${err}`);
|
|
16754
|
+
done(err);
|
|
16755
|
+
}
|
|
16756
|
+
});
|
|
16757
|
+
} catch (error) {
|
|
16758
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16759
|
+
done(error);
|
|
16760
|
+
}
|
|
16761
|
+
}).timeout(attemptTimeout);
|
|
16762
|
+
});
|
|
16763
|
+
|
|
16764
|
+
describe('#getTopologyV2TopologyIdDemandsDemandIndex - errors', () => {
|
|
16765
|
+
it('should have a getTopologyV2TopologyIdDemandsDemandIndex function', (done) => {
|
|
16766
|
+
try {
|
|
16767
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdDemandsDemandIndex === 'function');
|
|
16768
|
+
done();
|
|
16769
|
+
} catch (error) {
|
|
16770
|
+
log.error(`Test Failure: ${error}`);
|
|
16771
|
+
done(error);
|
|
16772
|
+
}
|
|
16773
|
+
}).timeout(attemptTimeout);
|
|
16774
|
+
it('should error if - missing topologyId', (done) => {
|
|
16775
|
+
try {
|
|
16776
|
+
a.getTopologyV2TopologyIdDemandsDemandIndex(null, null, (data, error) => {
|
|
16777
|
+
try {
|
|
16778
|
+
const displayE = 'topologyId is required';
|
|
16779
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdDemandsDemandIndex', displayE);
|
|
16780
|
+
done();
|
|
16781
|
+
} catch (err) {
|
|
16782
|
+
log.error(`Test Failure: ${err}`);
|
|
16783
|
+
done(err);
|
|
16784
|
+
}
|
|
16785
|
+
});
|
|
16786
|
+
} catch (error) {
|
|
16787
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16788
|
+
done(error);
|
|
16789
|
+
}
|
|
16790
|
+
}).timeout(attemptTimeout);
|
|
16791
|
+
it('should error if - missing demandIndex', (done) => {
|
|
16792
|
+
try {
|
|
16793
|
+
a.getTopologyV2TopologyIdDemandsDemandIndex('fakeparam', null, (data, error) => {
|
|
16794
|
+
try {
|
|
16795
|
+
const displayE = 'demandIndex is required';
|
|
16796
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdDemandsDemandIndex', displayE);
|
|
16797
|
+
done();
|
|
16798
|
+
} catch (err) {
|
|
16799
|
+
log.error(`Test Failure: ${err}`);
|
|
16800
|
+
done(err);
|
|
16801
|
+
}
|
|
16802
|
+
});
|
|
16803
|
+
} catch (error) {
|
|
16804
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16805
|
+
done(error);
|
|
16806
|
+
}
|
|
16807
|
+
}).timeout(attemptTimeout);
|
|
16808
|
+
});
|
|
16809
|
+
|
|
16810
|
+
describe('#putTopologyV2TopologyIdDemandsDemandIndex - errors', () => {
|
|
16811
|
+
it('should have a putTopologyV2TopologyIdDemandsDemandIndex function', (done) => {
|
|
16812
|
+
try {
|
|
16813
|
+
assert.equal(true, typeof a.putTopologyV2TopologyIdDemandsDemandIndex === 'function');
|
|
16814
|
+
done();
|
|
16815
|
+
} catch (error) {
|
|
16816
|
+
log.error(`Test Failure: ${error}`);
|
|
16817
|
+
done(error);
|
|
16818
|
+
}
|
|
16819
|
+
}).timeout(attemptTimeout);
|
|
16820
|
+
it('should error if - missing topologyId', (done) => {
|
|
16821
|
+
try {
|
|
16822
|
+
a.putTopologyV2TopologyIdDemandsDemandIndex(null, null, null, (data, error) => {
|
|
16823
|
+
try {
|
|
16824
|
+
const displayE = 'topologyId is required';
|
|
16825
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-putTopologyV2TopologyIdDemandsDemandIndex', displayE);
|
|
16826
|
+
done();
|
|
16827
|
+
} catch (err) {
|
|
16828
|
+
log.error(`Test Failure: ${err}`);
|
|
16829
|
+
done(err);
|
|
16830
|
+
}
|
|
16831
|
+
});
|
|
16832
|
+
} catch (error) {
|
|
16833
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16834
|
+
done(error);
|
|
16835
|
+
}
|
|
16836
|
+
}).timeout(attemptTimeout);
|
|
16837
|
+
it('should error if - missing demandIndex', (done) => {
|
|
16838
|
+
try {
|
|
16839
|
+
a.putTopologyV2TopologyIdDemandsDemandIndex('fakeparam', null, null, (data, error) => {
|
|
16840
|
+
try {
|
|
16841
|
+
const displayE = 'demandIndex is required';
|
|
16842
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-putTopologyV2TopologyIdDemandsDemandIndex', displayE);
|
|
16843
|
+
done();
|
|
16844
|
+
} catch (err) {
|
|
16845
|
+
log.error(`Test Failure: ${err}`);
|
|
16846
|
+
done(err);
|
|
16847
|
+
}
|
|
16848
|
+
});
|
|
16849
|
+
} catch (error) {
|
|
16850
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16851
|
+
done(error);
|
|
16852
|
+
}
|
|
16853
|
+
}).timeout(attemptTimeout);
|
|
16854
|
+
});
|
|
16855
|
+
|
|
16856
|
+
describe('#patchTopologyV2TopologyIdDemandsDemandIndex - errors', () => {
|
|
16857
|
+
it('should have a patchTopologyV2TopologyIdDemandsDemandIndex function', (done) => {
|
|
16858
|
+
try {
|
|
16859
|
+
assert.equal(true, typeof a.patchTopologyV2TopologyIdDemandsDemandIndex === 'function');
|
|
16860
|
+
done();
|
|
16861
|
+
} catch (error) {
|
|
16862
|
+
log.error(`Test Failure: ${error}`);
|
|
16863
|
+
done(error);
|
|
16864
|
+
}
|
|
16865
|
+
}).timeout(attemptTimeout);
|
|
16866
|
+
it('should error if - missing topologyId', (done) => {
|
|
16867
|
+
try {
|
|
16868
|
+
a.patchTopologyV2TopologyIdDemandsDemandIndex(null, null, null, (data, error) => {
|
|
16869
|
+
try {
|
|
16870
|
+
const displayE = 'topologyId is required';
|
|
16871
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-patchTopologyV2TopologyIdDemandsDemandIndex', displayE);
|
|
16872
|
+
done();
|
|
16873
|
+
} catch (err) {
|
|
16874
|
+
log.error(`Test Failure: ${err}`);
|
|
16875
|
+
done(err);
|
|
16876
|
+
}
|
|
16877
|
+
});
|
|
16878
|
+
} catch (error) {
|
|
16879
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16880
|
+
done(error);
|
|
16881
|
+
}
|
|
16882
|
+
}).timeout(attemptTimeout);
|
|
16883
|
+
it('should error if - missing demandIndex', (done) => {
|
|
16884
|
+
try {
|
|
16885
|
+
a.patchTopologyV2TopologyIdDemandsDemandIndex('fakeparam', null, null, (data, error) => {
|
|
16886
|
+
try {
|
|
16887
|
+
const displayE = 'demandIndex is required';
|
|
16888
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-patchTopologyV2TopologyIdDemandsDemandIndex', displayE);
|
|
16889
|
+
done();
|
|
16890
|
+
} catch (err) {
|
|
16891
|
+
log.error(`Test Failure: ${err}`);
|
|
16892
|
+
done(err);
|
|
16893
|
+
}
|
|
16894
|
+
});
|
|
16895
|
+
} catch (error) {
|
|
16896
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16897
|
+
done(error);
|
|
16898
|
+
}
|
|
16899
|
+
}).timeout(attemptTimeout);
|
|
16900
|
+
});
|
|
16901
|
+
|
|
16902
|
+
describe('#deleteTopologyV2TopologyIdDemandsDemandIndex - errors', () => {
|
|
16903
|
+
it('should have a deleteTopologyV2TopologyIdDemandsDemandIndex function', (done) => {
|
|
16904
|
+
try {
|
|
16905
|
+
assert.equal(true, typeof a.deleteTopologyV2TopologyIdDemandsDemandIndex === 'function');
|
|
16906
|
+
done();
|
|
16907
|
+
} catch (error) {
|
|
16908
|
+
log.error(`Test Failure: ${error}`);
|
|
16909
|
+
done(error);
|
|
16910
|
+
}
|
|
16911
|
+
}).timeout(attemptTimeout);
|
|
16912
|
+
it('should error if - missing topologyId', (done) => {
|
|
16913
|
+
try {
|
|
16914
|
+
a.deleteTopologyV2TopologyIdDemandsDemandIndex(null, null, (data, error) => {
|
|
16915
|
+
try {
|
|
16916
|
+
const displayE = 'topologyId is required';
|
|
16917
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTopologyV2TopologyIdDemandsDemandIndex', displayE);
|
|
16918
|
+
done();
|
|
16919
|
+
} catch (err) {
|
|
16920
|
+
log.error(`Test Failure: ${err}`);
|
|
16921
|
+
done(err);
|
|
16922
|
+
}
|
|
16923
|
+
});
|
|
16924
|
+
} catch (error) {
|
|
16925
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16926
|
+
done(error);
|
|
16927
|
+
}
|
|
16928
|
+
}).timeout(attemptTimeout);
|
|
16929
|
+
it('should error if - missing demandIndex', (done) => {
|
|
16930
|
+
try {
|
|
16931
|
+
a.deleteTopologyV2TopologyIdDemandsDemandIndex('fakeparam', null, (data, error) => {
|
|
16932
|
+
try {
|
|
16933
|
+
const displayE = 'demandIndex is required';
|
|
16934
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTopologyV2TopologyIdDemandsDemandIndex', displayE);
|
|
16935
|
+
done();
|
|
16936
|
+
} catch (err) {
|
|
16937
|
+
log.error(`Test Failure: ${err}`);
|
|
16938
|
+
done(err);
|
|
16939
|
+
}
|
|
16940
|
+
});
|
|
16941
|
+
} catch (error) {
|
|
16942
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16943
|
+
done(error);
|
|
16944
|
+
}
|
|
16945
|
+
}).timeout(attemptTimeout);
|
|
16946
|
+
});
|
|
16947
|
+
|
|
16948
|
+
describe('#postTopologyV2TopologyIdDemandsBulk - errors', () => {
|
|
16949
|
+
it('should have a postTopologyV2TopologyIdDemandsBulk function', (done) => {
|
|
16950
|
+
try {
|
|
16951
|
+
assert.equal(true, typeof a.postTopologyV2TopologyIdDemandsBulk === 'function');
|
|
16952
|
+
done();
|
|
16953
|
+
} catch (error) {
|
|
16954
|
+
log.error(`Test Failure: ${error}`);
|
|
16955
|
+
done(error);
|
|
16956
|
+
}
|
|
16957
|
+
}).timeout(attemptTimeout);
|
|
16958
|
+
it('should error if - missing topologyId', (done) => {
|
|
16959
|
+
try {
|
|
16960
|
+
a.postTopologyV2TopologyIdDemandsBulk(null, null, (data, error) => {
|
|
16961
|
+
try {
|
|
16962
|
+
const displayE = 'topologyId is required';
|
|
16963
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-postTopologyV2TopologyIdDemandsBulk', displayE);
|
|
16964
|
+
done();
|
|
16965
|
+
} catch (err) {
|
|
16966
|
+
log.error(`Test Failure: ${err}`);
|
|
16967
|
+
done(err);
|
|
16968
|
+
}
|
|
16969
|
+
});
|
|
16970
|
+
} catch (error) {
|
|
16971
|
+
log.error(`Adapter Exception: ${error}`);
|
|
16972
|
+
done(error);
|
|
16973
|
+
}
|
|
16974
|
+
}).timeout(attemptTimeout);
|
|
16975
|
+
});
|
|
16976
|
+
|
|
16977
|
+
describe('#putTopologyV2TopologyIdDemandsBulk - errors', () => {
|
|
16978
|
+
it('should have a putTopologyV2TopologyIdDemandsBulk function', (done) => {
|
|
16979
|
+
try {
|
|
16980
|
+
assert.equal(true, typeof a.putTopologyV2TopologyIdDemandsBulk === 'function');
|
|
16981
|
+
done();
|
|
16982
|
+
} catch (error) {
|
|
16983
|
+
log.error(`Test Failure: ${error}`);
|
|
16984
|
+
done(error);
|
|
16985
|
+
}
|
|
16986
|
+
}).timeout(attemptTimeout);
|
|
16987
|
+
it('should error if - missing topologyId', (done) => {
|
|
16988
|
+
try {
|
|
16989
|
+
a.putTopologyV2TopologyIdDemandsBulk(null, null, (data, error) => {
|
|
16990
|
+
try {
|
|
16991
|
+
const displayE = 'topologyId is required';
|
|
16992
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-putTopologyV2TopologyIdDemandsBulk', displayE);
|
|
16993
|
+
done();
|
|
16994
|
+
} catch (err) {
|
|
16995
|
+
log.error(`Test Failure: ${err}`);
|
|
16996
|
+
done(err);
|
|
16997
|
+
}
|
|
16998
|
+
});
|
|
16999
|
+
} catch (error) {
|
|
17000
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17001
|
+
done(error);
|
|
17002
|
+
}
|
|
17003
|
+
}).timeout(attemptTimeout);
|
|
17004
|
+
});
|
|
17005
|
+
|
|
17006
|
+
describe('#patchTopologyV2TopologyIdDemandsBulk - errors', () => {
|
|
17007
|
+
it('should have a patchTopologyV2TopologyIdDemandsBulk function', (done) => {
|
|
17008
|
+
try {
|
|
17009
|
+
assert.equal(true, typeof a.patchTopologyV2TopologyIdDemandsBulk === 'function');
|
|
17010
|
+
done();
|
|
17011
|
+
} catch (error) {
|
|
17012
|
+
log.error(`Test Failure: ${error}`);
|
|
17013
|
+
done(error);
|
|
17014
|
+
}
|
|
17015
|
+
}).timeout(attemptTimeout);
|
|
17016
|
+
it('should error if - missing topologyId', (done) => {
|
|
17017
|
+
try {
|
|
17018
|
+
a.patchTopologyV2TopologyIdDemandsBulk(null, null, (data, error) => {
|
|
17019
|
+
try {
|
|
17020
|
+
const displayE = 'topologyId is required';
|
|
17021
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-patchTopologyV2TopologyIdDemandsBulk', displayE);
|
|
17022
|
+
done();
|
|
17023
|
+
} catch (err) {
|
|
17024
|
+
log.error(`Test Failure: ${err}`);
|
|
17025
|
+
done(err);
|
|
17026
|
+
}
|
|
17027
|
+
});
|
|
17028
|
+
} catch (error) {
|
|
17029
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17030
|
+
done(error);
|
|
17031
|
+
}
|
|
17032
|
+
}).timeout(attemptTimeout);
|
|
17033
|
+
});
|
|
17034
|
+
|
|
17035
|
+
describe('#deleteTopologyV2TopologyIdDemandsBulk - errors', () => {
|
|
17036
|
+
it('should have a deleteTopologyV2TopologyIdDemandsBulk function', (done) => {
|
|
17037
|
+
try {
|
|
17038
|
+
assert.equal(true, typeof a.deleteTopologyV2TopologyIdDemandsBulk === 'function');
|
|
17039
|
+
done();
|
|
17040
|
+
} catch (error) {
|
|
17041
|
+
log.error(`Test Failure: ${error}`);
|
|
17042
|
+
done(error);
|
|
17043
|
+
}
|
|
17044
|
+
}).timeout(attemptTimeout);
|
|
17045
|
+
it('should error if - missing topologyId', (done) => {
|
|
17046
|
+
try {
|
|
17047
|
+
a.deleteTopologyV2TopologyIdDemandsBulk(null, (data, error) => {
|
|
17048
|
+
try {
|
|
17049
|
+
const displayE = 'topologyId is required';
|
|
17050
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTopologyV2TopologyIdDemandsBulk', displayE);
|
|
17051
|
+
done();
|
|
17052
|
+
} catch (err) {
|
|
17053
|
+
log.error(`Test Failure: ${err}`);
|
|
17054
|
+
done(err);
|
|
17055
|
+
}
|
|
17056
|
+
});
|
|
17057
|
+
} catch (error) {
|
|
17058
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17059
|
+
done(error);
|
|
17060
|
+
}
|
|
17061
|
+
}).timeout(attemptTimeout);
|
|
17062
|
+
});
|
|
17063
|
+
|
|
17064
|
+
describe('#getTopologyV2TopologyIdP2mp - errors', () => {
|
|
17065
|
+
it('should have a getTopologyV2TopologyIdP2mp function', (done) => {
|
|
17066
|
+
try {
|
|
17067
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdP2mp === 'function');
|
|
17068
|
+
done();
|
|
17069
|
+
} catch (error) {
|
|
17070
|
+
log.error(`Test Failure: ${error}`);
|
|
17071
|
+
done(error);
|
|
17072
|
+
}
|
|
17073
|
+
}).timeout(attemptTimeout);
|
|
17074
|
+
it('should error if - missing topologyId', (done) => {
|
|
17075
|
+
try {
|
|
17076
|
+
a.getTopologyV2TopologyIdP2mp(null, (data, error) => {
|
|
17077
|
+
try {
|
|
17078
|
+
const displayE = 'topologyId is required';
|
|
17079
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdP2mp', displayE);
|
|
17080
|
+
done();
|
|
17081
|
+
} catch (err) {
|
|
17082
|
+
log.error(`Test Failure: ${err}`);
|
|
17083
|
+
done(err);
|
|
17084
|
+
}
|
|
17085
|
+
});
|
|
17086
|
+
} catch (error) {
|
|
17087
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17088
|
+
done(error);
|
|
17089
|
+
}
|
|
17090
|
+
}).timeout(attemptTimeout);
|
|
17091
|
+
});
|
|
17092
|
+
|
|
17093
|
+
describe('#postTopologyV2TopologyIdP2mp - errors', () => {
|
|
17094
|
+
it('should have a postTopologyV2TopologyIdP2mp function', (done) => {
|
|
17095
|
+
try {
|
|
17096
|
+
assert.equal(true, typeof a.postTopologyV2TopologyIdP2mp === 'function');
|
|
17097
|
+
done();
|
|
17098
|
+
} catch (error) {
|
|
17099
|
+
log.error(`Test Failure: ${error}`);
|
|
17100
|
+
done(error);
|
|
17101
|
+
}
|
|
17102
|
+
}).timeout(attemptTimeout);
|
|
17103
|
+
it('should error if - missing topologyId', (done) => {
|
|
17104
|
+
try {
|
|
17105
|
+
a.postTopologyV2TopologyIdP2mp(null, null, (data, error) => {
|
|
17106
|
+
try {
|
|
17107
|
+
const displayE = 'topologyId is required';
|
|
17108
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-postTopologyV2TopologyIdP2mp', displayE);
|
|
17109
|
+
done();
|
|
17110
|
+
} catch (err) {
|
|
17111
|
+
log.error(`Test Failure: ${err}`);
|
|
17112
|
+
done(err);
|
|
17113
|
+
}
|
|
17114
|
+
});
|
|
17115
|
+
} catch (error) {
|
|
17116
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17117
|
+
done(error);
|
|
17118
|
+
}
|
|
17119
|
+
}).timeout(attemptTimeout);
|
|
17120
|
+
});
|
|
17121
|
+
|
|
17122
|
+
describe('#getTopologyV2TopologyIdP2mpStream - errors', () => {
|
|
17123
|
+
it('should have a getTopologyV2TopologyIdP2mpStream function', (done) => {
|
|
17124
|
+
try {
|
|
17125
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdP2mpStream === 'function');
|
|
17126
|
+
done();
|
|
17127
|
+
} catch (error) {
|
|
17128
|
+
log.error(`Test Failure: ${error}`);
|
|
17129
|
+
done(error);
|
|
17130
|
+
}
|
|
17131
|
+
}).timeout(attemptTimeout);
|
|
17132
|
+
it('should error if - missing topologyId', (done) => {
|
|
17133
|
+
try {
|
|
17134
|
+
a.getTopologyV2TopologyIdP2mpStream(null, (data, error) => {
|
|
17135
|
+
try {
|
|
17136
|
+
const displayE = 'topologyId is required';
|
|
17137
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdP2mpStream', displayE);
|
|
17138
|
+
done();
|
|
17139
|
+
} catch (err) {
|
|
17140
|
+
log.error(`Test Failure: ${err}`);
|
|
17141
|
+
done(err);
|
|
17142
|
+
}
|
|
17143
|
+
});
|
|
17144
|
+
} catch (error) {
|
|
17145
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17146
|
+
done(error);
|
|
17147
|
+
}
|
|
17148
|
+
}).timeout(attemptTimeout);
|
|
17149
|
+
});
|
|
17150
|
+
|
|
17151
|
+
describe('#deleteTopologyV2TopologyIdP2mpBulk - errors', () => {
|
|
17152
|
+
it('should have a deleteTopologyV2TopologyIdP2mpBulk function', (done) => {
|
|
17153
|
+
try {
|
|
17154
|
+
assert.equal(true, typeof a.deleteTopologyV2TopologyIdP2mpBulk === 'function');
|
|
17155
|
+
done();
|
|
17156
|
+
} catch (error) {
|
|
17157
|
+
log.error(`Test Failure: ${error}`);
|
|
17158
|
+
done(error);
|
|
17159
|
+
}
|
|
17160
|
+
}).timeout(attemptTimeout);
|
|
17161
|
+
it('should error if - missing topologyId', (done) => {
|
|
17162
|
+
try {
|
|
17163
|
+
a.deleteTopologyV2TopologyIdP2mpBulk(null, (data, error) => {
|
|
17164
|
+
try {
|
|
17165
|
+
const displayE = 'topologyId is required';
|
|
17166
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTopologyV2TopologyIdP2mpBulk', displayE);
|
|
17167
|
+
done();
|
|
17168
|
+
} catch (err) {
|
|
17169
|
+
log.error(`Test Failure: ${err}`);
|
|
17170
|
+
done(err);
|
|
17171
|
+
}
|
|
17172
|
+
});
|
|
17173
|
+
} catch (error) {
|
|
17174
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17175
|
+
done(error);
|
|
17176
|
+
}
|
|
17177
|
+
}).timeout(attemptTimeout);
|
|
17178
|
+
});
|
|
17179
|
+
|
|
17180
|
+
describe('#getTopologyV2TopologyIdP2mpP2mpGroupIndex - errors', () => {
|
|
17181
|
+
it('should have a getTopologyV2TopologyIdP2mpP2mpGroupIndex function', (done) => {
|
|
17182
|
+
try {
|
|
17183
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdP2mpP2mpGroupIndex === 'function');
|
|
17184
|
+
done();
|
|
17185
|
+
} catch (error) {
|
|
17186
|
+
log.error(`Test Failure: ${error}`);
|
|
17187
|
+
done(error);
|
|
17188
|
+
}
|
|
17189
|
+
}).timeout(attemptTimeout);
|
|
17190
|
+
it('should error if - missing topologyId', (done) => {
|
|
17191
|
+
try {
|
|
17192
|
+
a.getTopologyV2TopologyIdP2mpP2mpGroupIndex(null, null, (data, error) => {
|
|
17193
|
+
try {
|
|
17194
|
+
const displayE = 'topologyId is required';
|
|
17195
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdP2mpP2mpGroupIndex', displayE);
|
|
17196
|
+
done();
|
|
17197
|
+
} catch (err) {
|
|
17198
|
+
log.error(`Test Failure: ${err}`);
|
|
17199
|
+
done(err);
|
|
17200
|
+
}
|
|
17201
|
+
});
|
|
17202
|
+
} catch (error) {
|
|
17203
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17204
|
+
done(error);
|
|
17205
|
+
}
|
|
17206
|
+
}).timeout(attemptTimeout);
|
|
17207
|
+
it('should error if - missing p2mpGroupIndex', (done) => {
|
|
17208
|
+
try {
|
|
17209
|
+
a.getTopologyV2TopologyIdP2mpP2mpGroupIndex('fakeparam', null, (data, error) => {
|
|
17210
|
+
try {
|
|
17211
|
+
const displayE = 'p2mpGroupIndex is required';
|
|
17212
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdP2mpP2mpGroupIndex', displayE);
|
|
17213
|
+
done();
|
|
17214
|
+
} catch (err) {
|
|
17215
|
+
log.error(`Test Failure: ${err}`);
|
|
17216
|
+
done(err);
|
|
17217
|
+
}
|
|
17218
|
+
});
|
|
17219
|
+
} catch (error) {
|
|
17220
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17221
|
+
done(error);
|
|
17222
|
+
}
|
|
17223
|
+
}).timeout(attemptTimeout);
|
|
17224
|
+
});
|
|
17225
|
+
|
|
17226
|
+
describe('#putTopologyV2TopologyIdP2mpP2mpGroupIndex - errors', () => {
|
|
17227
|
+
it('should have a putTopologyV2TopologyIdP2mpP2mpGroupIndex function', (done) => {
|
|
17228
|
+
try {
|
|
17229
|
+
assert.equal(true, typeof a.putTopologyV2TopologyIdP2mpP2mpGroupIndex === 'function');
|
|
17230
|
+
done();
|
|
17231
|
+
} catch (error) {
|
|
17232
|
+
log.error(`Test Failure: ${error}`);
|
|
17233
|
+
done(error);
|
|
17234
|
+
}
|
|
17235
|
+
}).timeout(attemptTimeout);
|
|
17236
|
+
it('should error if - missing topologyId', (done) => {
|
|
17237
|
+
try {
|
|
17238
|
+
a.putTopologyV2TopologyIdP2mpP2mpGroupIndex(null, null, null, (data, error) => {
|
|
17239
|
+
try {
|
|
17240
|
+
const displayE = 'topologyId is required';
|
|
17241
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-putTopologyV2TopologyIdP2mpP2mpGroupIndex', displayE);
|
|
17242
|
+
done();
|
|
17243
|
+
} catch (err) {
|
|
17244
|
+
log.error(`Test Failure: ${err}`);
|
|
17245
|
+
done(err);
|
|
17246
|
+
}
|
|
17247
|
+
});
|
|
17248
|
+
} catch (error) {
|
|
17249
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17250
|
+
done(error);
|
|
17251
|
+
}
|
|
17252
|
+
}).timeout(attemptTimeout);
|
|
17253
|
+
it('should error if - missing p2mpGroupIndex', (done) => {
|
|
17254
|
+
try {
|
|
17255
|
+
a.putTopologyV2TopologyIdP2mpP2mpGroupIndex('fakeparam', null, null, (data, error) => {
|
|
17256
|
+
try {
|
|
17257
|
+
const displayE = 'p2mpGroupIndex is required';
|
|
17258
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-putTopologyV2TopologyIdP2mpP2mpGroupIndex', displayE);
|
|
17259
|
+
done();
|
|
17260
|
+
} catch (err) {
|
|
17261
|
+
log.error(`Test Failure: ${err}`);
|
|
17262
|
+
done(err);
|
|
17263
|
+
}
|
|
17264
|
+
});
|
|
17265
|
+
} catch (error) {
|
|
17266
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17267
|
+
done(error);
|
|
17268
|
+
}
|
|
17269
|
+
}).timeout(attemptTimeout);
|
|
17270
|
+
});
|
|
17271
|
+
|
|
17272
|
+
describe('#deleteTopologyV2TopologyIdP2mpP2mpGroupIndex - errors', () => {
|
|
17273
|
+
it('should have a deleteTopologyV2TopologyIdP2mpP2mpGroupIndex function', (done) => {
|
|
17274
|
+
try {
|
|
17275
|
+
assert.equal(true, typeof a.deleteTopologyV2TopologyIdP2mpP2mpGroupIndex === 'function');
|
|
17276
|
+
done();
|
|
17277
|
+
} catch (error) {
|
|
17278
|
+
log.error(`Test Failure: ${error}`);
|
|
17279
|
+
done(error);
|
|
17280
|
+
}
|
|
17281
|
+
}).timeout(attemptTimeout);
|
|
17282
|
+
it('should error if - missing topologyId', (done) => {
|
|
17283
|
+
try {
|
|
17284
|
+
a.deleteTopologyV2TopologyIdP2mpP2mpGroupIndex(null, null, (data, error) => {
|
|
17285
|
+
try {
|
|
17286
|
+
const displayE = 'topologyId is required';
|
|
17287
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTopologyV2TopologyIdP2mpP2mpGroupIndex', displayE);
|
|
17288
|
+
done();
|
|
17289
|
+
} catch (err) {
|
|
17290
|
+
log.error(`Test Failure: ${err}`);
|
|
17291
|
+
done(err);
|
|
17292
|
+
}
|
|
17293
|
+
});
|
|
17294
|
+
} catch (error) {
|
|
17295
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17296
|
+
done(error);
|
|
17297
|
+
}
|
|
17298
|
+
}).timeout(attemptTimeout);
|
|
17299
|
+
it('should error if - missing p2mpGroupIndex', (done) => {
|
|
17300
|
+
try {
|
|
17301
|
+
a.deleteTopologyV2TopologyIdP2mpP2mpGroupIndex('fakeparam', null, (data, error) => {
|
|
17302
|
+
try {
|
|
17303
|
+
const displayE = 'p2mpGroupIndex is required';
|
|
17304
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTopologyV2TopologyIdP2mpP2mpGroupIndex', displayE);
|
|
17305
|
+
done();
|
|
17306
|
+
} catch (err) {
|
|
17307
|
+
log.error(`Test Failure: ${err}`);
|
|
17308
|
+
done(err);
|
|
17309
|
+
}
|
|
17310
|
+
});
|
|
17311
|
+
} catch (error) {
|
|
17312
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17313
|
+
done(error);
|
|
17314
|
+
}
|
|
17315
|
+
}).timeout(attemptTimeout);
|
|
17316
|
+
});
|
|
17317
|
+
|
|
17318
|
+
describe('#patchTopologyV2TopologyIdP2mpP2mpGroupIndex - errors', () => {
|
|
17319
|
+
it('should have a patchTopologyV2TopologyIdP2mpP2mpGroupIndex function', (done) => {
|
|
17320
|
+
try {
|
|
17321
|
+
assert.equal(true, typeof a.patchTopologyV2TopologyIdP2mpP2mpGroupIndex === 'function');
|
|
17322
|
+
done();
|
|
17323
|
+
} catch (error) {
|
|
17324
|
+
log.error(`Test Failure: ${error}`);
|
|
17325
|
+
done(error);
|
|
17326
|
+
}
|
|
17327
|
+
}).timeout(attemptTimeout);
|
|
17328
|
+
it('should error if - missing topologyId', (done) => {
|
|
17329
|
+
try {
|
|
17330
|
+
a.patchTopologyV2TopologyIdP2mpP2mpGroupIndex(null, null, null, (data, error) => {
|
|
17331
|
+
try {
|
|
17332
|
+
const displayE = 'topologyId is required';
|
|
17333
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-patchTopologyV2TopologyIdP2mpP2mpGroupIndex', displayE);
|
|
17334
|
+
done();
|
|
17335
|
+
} catch (err) {
|
|
17336
|
+
log.error(`Test Failure: ${err}`);
|
|
17337
|
+
done(err);
|
|
17338
|
+
}
|
|
17339
|
+
});
|
|
17340
|
+
} catch (error) {
|
|
17341
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17342
|
+
done(error);
|
|
17343
|
+
}
|
|
17344
|
+
}).timeout(attemptTimeout);
|
|
17345
|
+
it('should error if - missing p2mpGroupIndex', (done) => {
|
|
17346
|
+
try {
|
|
17347
|
+
a.patchTopologyV2TopologyIdP2mpP2mpGroupIndex('fakeparam', null, null, (data, error) => {
|
|
17348
|
+
try {
|
|
17349
|
+
const displayE = 'p2mpGroupIndex is required';
|
|
17350
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-patchTopologyV2TopologyIdP2mpP2mpGroupIndex', displayE);
|
|
17351
|
+
done();
|
|
17352
|
+
} catch (err) {
|
|
17353
|
+
log.error(`Test Failure: ${err}`);
|
|
17354
|
+
done(err);
|
|
17355
|
+
}
|
|
17356
|
+
});
|
|
17357
|
+
} catch (error) {
|
|
17358
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17359
|
+
done(error);
|
|
17360
|
+
}
|
|
17361
|
+
}).timeout(attemptTimeout);
|
|
17362
|
+
});
|
|
17363
|
+
|
|
17364
|
+
describe('#postTopologyV2TopologyIdP2mpP2mpGroupIndex - errors', () => {
|
|
17365
|
+
it('should have a postTopologyV2TopologyIdP2mpP2mpGroupIndex function', (done) => {
|
|
17366
|
+
try {
|
|
17367
|
+
assert.equal(true, typeof a.postTopologyV2TopologyIdP2mpP2mpGroupIndex === 'function');
|
|
17368
|
+
done();
|
|
17369
|
+
} catch (error) {
|
|
17370
|
+
log.error(`Test Failure: ${error}`);
|
|
17371
|
+
done(error);
|
|
17372
|
+
}
|
|
17373
|
+
}).timeout(attemptTimeout);
|
|
17374
|
+
it('should error if - missing topologyId', (done) => {
|
|
17375
|
+
try {
|
|
17376
|
+
a.postTopologyV2TopologyIdP2mpP2mpGroupIndex(null, null, null, (data, error) => {
|
|
17377
|
+
try {
|
|
17378
|
+
const displayE = 'topologyId is required';
|
|
17379
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-postTopologyV2TopologyIdP2mpP2mpGroupIndex', displayE);
|
|
17380
|
+
done();
|
|
17381
|
+
} catch (err) {
|
|
17382
|
+
log.error(`Test Failure: ${err}`);
|
|
17383
|
+
done(err);
|
|
17384
|
+
}
|
|
17385
|
+
});
|
|
17386
|
+
} catch (error) {
|
|
17387
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17388
|
+
done(error);
|
|
17389
|
+
}
|
|
17390
|
+
}).timeout(attemptTimeout);
|
|
17391
|
+
it('should error if - missing p2mpGroupIndex', (done) => {
|
|
17392
|
+
try {
|
|
17393
|
+
a.postTopologyV2TopologyIdP2mpP2mpGroupIndex('fakeparam', null, null, (data, error) => {
|
|
17394
|
+
try {
|
|
17395
|
+
const displayE = 'p2mpGroupIndex is required';
|
|
17396
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-postTopologyV2TopologyIdP2mpP2mpGroupIndex', displayE);
|
|
17397
|
+
done();
|
|
17398
|
+
} catch (err) {
|
|
17399
|
+
log.error(`Test Failure: ${err}`);
|
|
17400
|
+
done(err);
|
|
17401
|
+
}
|
|
17402
|
+
});
|
|
17403
|
+
} catch (error) {
|
|
17404
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17405
|
+
done(error);
|
|
17406
|
+
}
|
|
17407
|
+
}).timeout(attemptTimeout);
|
|
17408
|
+
});
|
|
17409
|
+
|
|
17410
|
+
describe('#getTopologyV2TopologyIdP2mpP2mpGroupIndexLspIndex - errors', () => {
|
|
17411
|
+
it('should have a getTopologyV2TopologyIdP2mpP2mpGroupIndexLspIndex function', (done) => {
|
|
17412
|
+
try {
|
|
17413
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdP2mpP2mpGroupIndexLspIndex === 'function');
|
|
17414
|
+
done();
|
|
17415
|
+
} catch (error) {
|
|
17416
|
+
log.error(`Test Failure: ${error}`);
|
|
17417
|
+
done(error);
|
|
17418
|
+
}
|
|
17419
|
+
}).timeout(attemptTimeout);
|
|
17420
|
+
it('should error if - missing topologyId', (done) => {
|
|
17421
|
+
try {
|
|
17422
|
+
a.getTopologyV2TopologyIdP2mpP2mpGroupIndexLspIndex(null, null, null, (data, error) => {
|
|
17423
|
+
try {
|
|
17424
|
+
const displayE = 'topologyId is required';
|
|
17425
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdP2mpP2mpGroupIndexLspIndex', displayE);
|
|
17426
|
+
done();
|
|
17427
|
+
} catch (err) {
|
|
17428
|
+
log.error(`Test Failure: ${err}`);
|
|
17429
|
+
done(err);
|
|
17430
|
+
}
|
|
17431
|
+
});
|
|
17432
|
+
} catch (error) {
|
|
17433
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17434
|
+
done(error);
|
|
17435
|
+
}
|
|
17436
|
+
}).timeout(attemptTimeout);
|
|
17437
|
+
it('should error if - missing p2mpGroupIndex', (done) => {
|
|
17438
|
+
try {
|
|
17439
|
+
a.getTopologyV2TopologyIdP2mpP2mpGroupIndexLspIndex('fakeparam', null, null, (data, error) => {
|
|
17440
|
+
try {
|
|
17441
|
+
const displayE = 'p2mpGroupIndex is required';
|
|
17442
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdP2mpP2mpGroupIndexLspIndex', displayE);
|
|
17443
|
+
done();
|
|
17444
|
+
} catch (err) {
|
|
17445
|
+
log.error(`Test Failure: ${err}`);
|
|
17446
|
+
done(err);
|
|
17447
|
+
}
|
|
17448
|
+
});
|
|
17449
|
+
} catch (error) {
|
|
17450
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17451
|
+
done(error);
|
|
17452
|
+
}
|
|
17453
|
+
}).timeout(attemptTimeout);
|
|
17454
|
+
it('should error if - missing lspIndex', (done) => {
|
|
17455
|
+
try {
|
|
17456
|
+
a.getTopologyV2TopologyIdP2mpP2mpGroupIndexLspIndex('fakeparam', 'fakeparam', null, (data, error) => {
|
|
17457
|
+
try {
|
|
17458
|
+
const displayE = 'lspIndex is required';
|
|
17459
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdP2mpP2mpGroupIndexLspIndex', displayE);
|
|
17460
|
+
done();
|
|
17461
|
+
} catch (err) {
|
|
17462
|
+
log.error(`Test Failure: ${err}`);
|
|
17463
|
+
done(err);
|
|
17464
|
+
}
|
|
17465
|
+
});
|
|
17466
|
+
} catch (error) {
|
|
17467
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17468
|
+
done(error);
|
|
17469
|
+
}
|
|
17470
|
+
}).timeout(attemptTimeout);
|
|
17471
|
+
});
|
|
17472
|
+
|
|
17473
|
+
describe('#deleteTopologyV2TopologyIdP2mpP2mpGroupIndexLspIndex - errors', () => {
|
|
17474
|
+
it('should have a deleteTopologyV2TopologyIdP2mpP2mpGroupIndexLspIndex function', (done) => {
|
|
17475
|
+
try {
|
|
17476
|
+
assert.equal(true, typeof a.deleteTopologyV2TopologyIdP2mpP2mpGroupIndexLspIndex === 'function');
|
|
17477
|
+
done();
|
|
17478
|
+
} catch (error) {
|
|
17479
|
+
log.error(`Test Failure: ${error}`);
|
|
17480
|
+
done(error);
|
|
17481
|
+
}
|
|
17482
|
+
}).timeout(attemptTimeout);
|
|
17483
|
+
it('should error if - missing topologyId', (done) => {
|
|
17484
|
+
try {
|
|
17485
|
+
a.deleteTopologyV2TopologyIdP2mpP2mpGroupIndexLspIndex(null, null, null, (data, error) => {
|
|
17486
|
+
try {
|
|
17487
|
+
const displayE = 'topologyId is required';
|
|
17488
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTopologyV2TopologyIdP2mpP2mpGroupIndexLspIndex', displayE);
|
|
17489
|
+
done();
|
|
17490
|
+
} catch (err) {
|
|
17491
|
+
log.error(`Test Failure: ${err}`);
|
|
17492
|
+
done(err);
|
|
17493
|
+
}
|
|
17494
|
+
});
|
|
17495
|
+
} catch (error) {
|
|
17496
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17497
|
+
done(error);
|
|
17498
|
+
}
|
|
17499
|
+
}).timeout(attemptTimeout);
|
|
17500
|
+
it('should error if - missing p2mpGroupIndex', (done) => {
|
|
17501
|
+
try {
|
|
17502
|
+
a.deleteTopologyV2TopologyIdP2mpP2mpGroupIndexLspIndex('fakeparam', null, null, (data, error) => {
|
|
17503
|
+
try {
|
|
17504
|
+
const displayE = 'p2mpGroupIndex is required';
|
|
17505
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTopologyV2TopologyIdP2mpP2mpGroupIndexLspIndex', displayE);
|
|
17506
|
+
done();
|
|
17507
|
+
} catch (err) {
|
|
17508
|
+
log.error(`Test Failure: ${err}`);
|
|
17509
|
+
done(err);
|
|
17510
|
+
}
|
|
17511
|
+
});
|
|
17512
|
+
} catch (error) {
|
|
17513
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17514
|
+
done(error);
|
|
17515
|
+
}
|
|
17516
|
+
}).timeout(attemptTimeout);
|
|
17517
|
+
it('should error if - missing lspIndex', (done) => {
|
|
17518
|
+
try {
|
|
17519
|
+
a.deleteTopologyV2TopologyIdP2mpP2mpGroupIndexLspIndex('fakeparam', 'fakeparam', null, (data, error) => {
|
|
17520
|
+
try {
|
|
17521
|
+
const displayE = 'lspIndex is required';
|
|
17522
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTopologyV2TopologyIdP2mpP2mpGroupIndexLspIndex', displayE);
|
|
17523
|
+
done();
|
|
17524
|
+
} catch (err) {
|
|
17525
|
+
log.error(`Test Failure: ${err}`);
|
|
17526
|
+
done(err);
|
|
17527
|
+
}
|
|
17528
|
+
});
|
|
17529
|
+
} catch (error) {
|
|
17530
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17531
|
+
done(error);
|
|
17532
|
+
}
|
|
17533
|
+
}).timeout(attemptTimeout);
|
|
17534
|
+
});
|
|
17535
|
+
|
|
17536
|
+
describe('#deleteTopologyV2TopologyIdP2mpP2mpGroupIndexBulk - errors', () => {
|
|
17537
|
+
it('should have a deleteTopologyV2TopologyIdP2mpP2mpGroupIndexBulk function', (done) => {
|
|
17538
|
+
try {
|
|
17539
|
+
assert.equal(true, typeof a.deleteTopologyV2TopologyIdP2mpP2mpGroupIndexBulk === 'function');
|
|
17540
|
+
done();
|
|
17541
|
+
} catch (error) {
|
|
17542
|
+
log.error(`Test Failure: ${error}`);
|
|
17543
|
+
done(error);
|
|
17544
|
+
}
|
|
17545
|
+
}).timeout(attemptTimeout);
|
|
17546
|
+
it('should error if - missing topologyId', (done) => {
|
|
17547
|
+
try {
|
|
17548
|
+
a.deleteTopologyV2TopologyIdP2mpP2mpGroupIndexBulk(null, null, (data, error) => {
|
|
17549
|
+
try {
|
|
17550
|
+
const displayE = 'topologyId is required';
|
|
17551
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTopologyV2TopologyIdP2mpP2mpGroupIndexBulk', displayE);
|
|
17552
|
+
done();
|
|
17553
|
+
} catch (err) {
|
|
17554
|
+
log.error(`Test Failure: ${err}`);
|
|
17555
|
+
done(err);
|
|
17556
|
+
}
|
|
17557
|
+
});
|
|
17558
|
+
} catch (error) {
|
|
17559
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17560
|
+
done(error);
|
|
17561
|
+
}
|
|
17562
|
+
}).timeout(attemptTimeout);
|
|
17563
|
+
it('should error if - missing p2mpGroupIndex', (done) => {
|
|
17564
|
+
try {
|
|
17565
|
+
a.deleteTopologyV2TopologyIdP2mpP2mpGroupIndexBulk('fakeparam', null, (data, error) => {
|
|
17566
|
+
try {
|
|
17567
|
+
const displayE = 'p2mpGroupIndex is required';
|
|
17568
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTopologyV2TopologyIdP2mpP2mpGroupIndexBulk', displayE);
|
|
17569
|
+
done();
|
|
17570
|
+
} catch (err) {
|
|
17571
|
+
log.error(`Test Failure: ${err}`);
|
|
17572
|
+
done(err);
|
|
17573
|
+
}
|
|
17574
|
+
});
|
|
17575
|
+
} catch (error) {
|
|
17576
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17577
|
+
done(error);
|
|
17578
|
+
}
|
|
17579
|
+
}).timeout(attemptTimeout);
|
|
17580
|
+
});
|
|
17581
|
+
|
|
17582
|
+
describe('#getTopologyV2TopologyIdVrfs - errors', () => {
|
|
17583
|
+
it('should have a getTopologyV2TopologyIdVrfs function', (done) => {
|
|
17584
|
+
try {
|
|
17585
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdVrfs === 'function');
|
|
17586
|
+
done();
|
|
17587
|
+
} catch (error) {
|
|
17588
|
+
log.error(`Test Failure: ${error}`);
|
|
17589
|
+
done(error);
|
|
17590
|
+
}
|
|
17591
|
+
}).timeout(attemptTimeout);
|
|
17592
|
+
it('should error if - missing topologyId', (done) => {
|
|
17593
|
+
try {
|
|
17594
|
+
a.getTopologyV2TopologyIdVrfs(null, (data, error) => {
|
|
17595
|
+
try {
|
|
17596
|
+
const displayE = 'topologyId is required';
|
|
17597
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdVrfs', displayE);
|
|
17598
|
+
done();
|
|
17599
|
+
} catch (err) {
|
|
17600
|
+
log.error(`Test Failure: ${err}`);
|
|
17601
|
+
done(err);
|
|
17602
|
+
}
|
|
17603
|
+
});
|
|
17604
|
+
} catch (error) {
|
|
17605
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17606
|
+
done(error);
|
|
17607
|
+
}
|
|
17608
|
+
}).timeout(attemptTimeout);
|
|
17609
|
+
});
|
|
17610
|
+
|
|
17611
|
+
describe('#getTopologyV2TopologyIdVrfsNodeIndex - errors', () => {
|
|
17612
|
+
it('should have a getTopologyV2TopologyIdVrfsNodeIndex function', (done) => {
|
|
17613
|
+
try {
|
|
17614
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdVrfsNodeIndex === 'function');
|
|
17615
|
+
done();
|
|
17616
|
+
} catch (error) {
|
|
17617
|
+
log.error(`Test Failure: ${error}`);
|
|
17618
|
+
done(error);
|
|
17619
|
+
}
|
|
17620
|
+
}).timeout(attemptTimeout);
|
|
17621
|
+
it('should error if - missing topologyId', (done) => {
|
|
17622
|
+
try {
|
|
17623
|
+
a.getTopologyV2TopologyIdVrfsNodeIndex(null, null, (data, error) => {
|
|
17624
|
+
try {
|
|
17625
|
+
const displayE = 'topologyId is required';
|
|
17626
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdVrfsNodeIndex', displayE);
|
|
17627
|
+
done();
|
|
17628
|
+
} catch (err) {
|
|
17629
|
+
log.error(`Test Failure: ${err}`);
|
|
17630
|
+
done(err);
|
|
17631
|
+
}
|
|
17632
|
+
});
|
|
17633
|
+
} catch (error) {
|
|
17634
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17635
|
+
done(error);
|
|
17636
|
+
}
|
|
17637
|
+
}).timeout(attemptTimeout);
|
|
17638
|
+
it('should error if - missing nodeIndex', (done) => {
|
|
17639
|
+
try {
|
|
17640
|
+
a.getTopologyV2TopologyIdVrfsNodeIndex('fakeparam', null, (data, error) => {
|
|
17641
|
+
try {
|
|
17642
|
+
const displayE = 'nodeIndex is required';
|
|
17643
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdVrfsNodeIndex', displayE);
|
|
17644
|
+
done();
|
|
17645
|
+
} catch (err) {
|
|
17646
|
+
log.error(`Test Failure: ${err}`);
|
|
17647
|
+
done(err);
|
|
17648
|
+
}
|
|
17649
|
+
});
|
|
17650
|
+
} catch (error) {
|
|
17651
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17652
|
+
done(error);
|
|
17653
|
+
}
|
|
17654
|
+
}).timeout(attemptTimeout);
|
|
17655
|
+
});
|
|
17656
|
+
|
|
17657
|
+
describe('#getTopologyV2TopologyIdMaintenances - errors', () => {
|
|
17658
|
+
it('should have a getTopologyV2TopologyIdMaintenances function', (done) => {
|
|
17659
|
+
try {
|
|
17660
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdMaintenances === 'function');
|
|
17661
|
+
done();
|
|
17662
|
+
} catch (error) {
|
|
17663
|
+
log.error(`Test Failure: ${error}`);
|
|
17664
|
+
done(error);
|
|
17665
|
+
}
|
|
17666
|
+
}).timeout(attemptTimeout);
|
|
17667
|
+
it('should error if - missing topologyId', (done) => {
|
|
17668
|
+
try {
|
|
17669
|
+
a.getTopologyV2TopologyIdMaintenances(null, (data, error) => {
|
|
17670
|
+
try {
|
|
17671
|
+
const displayE = 'topologyId is required';
|
|
17672
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdMaintenances', displayE);
|
|
17673
|
+
done();
|
|
17674
|
+
} catch (err) {
|
|
17675
|
+
log.error(`Test Failure: ${err}`);
|
|
17676
|
+
done(err);
|
|
17677
|
+
}
|
|
17678
|
+
});
|
|
17679
|
+
} catch (error) {
|
|
17680
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17681
|
+
done(error);
|
|
17682
|
+
}
|
|
17683
|
+
}).timeout(attemptTimeout);
|
|
17684
|
+
});
|
|
17685
|
+
|
|
17686
|
+
describe('#postTopologyV2TopologyIdMaintenances - errors', () => {
|
|
17687
|
+
it('should have a postTopologyV2TopologyIdMaintenances function', (done) => {
|
|
17688
|
+
try {
|
|
17689
|
+
assert.equal(true, typeof a.postTopologyV2TopologyIdMaintenances === 'function');
|
|
17690
|
+
done();
|
|
17691
|
+
} catch (error) {
|
|
17692
|
+
log.error(`Test Failure: ${error}`);
|
|
17693
|
+
done(error);
|
|
17694
|
+
}
|
|
17695
|
+
}).timeout(attemptTimeout);
|
|
17696
|
+
it('should error if - missing topologyId', (done) => {
|
|
17697
|
+
try {
|
|
17698
|
+
a.postTopologyV2TopologyIdMaintenances(null, null, (data, error) => {
|
|
17699
|
+
try {
|
|
17700
|
+
const displayE = 'topologyId is required';
|
|
17701
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-postTopologyV2TopologyIdMaintenances', displayE);
|
|
17702
|
+
done();
|
|
17703
|
+
} catch (err) {
|
|
17704
|
+
log.error(`Test Failure: ${err}`);
|
|
17705
|
+
done(err);
|
|
17706
|
+
}
|
|
17707
|
+
});
|
|
17708
|
+
} catch (error) {
|
|
17709
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17710
|
+
done(error);
|
|
17711
|
+
}
|
|
17712
|
+
}).timeout(attemptTimeout);
|
|
17713
|
+
});
|
|
17714
|
+
|
|
17715
|
+
describe('#getTopologyV2TopologyIdMaintenancesStream - errors', () => {
|
|
17716
|
+
it('should have a getTopologyV2TopologyIdMaintenancesStream function', (done) => {
|
|
17717
|
+
try {
|
|
17718
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdMaintenancesStream === 'function');
|
|
17719
|
+
done();
|
|
17720
|
+
} catch (error) {
|
|
17721
|
+
log.error(`Test Failure: ${error}`);
|
|
17722
|
+
done(error);
|
|
17723
|
+
}
|
|
17724
|
+
}).timeout(attemptTimeout);
|
|
17725
|
+
it('should error if - missing topologyId', (done) => {
|
|
17726
|
+
try {
|
|
17727
|
+
a.getTopologyV2TopologyIdMaintenancesStream(null, (data, error) => {
|
|
17728
|
+
try {
|
|
17729
|
+
const displayE = 'topologyId is required';
|
|
17730
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdMaintenancesStream', displayE);
|
|
17731
|
+
done();
|
|
17732
|
+
} catch (err) {
|
|
17733
|
+
log.error(`Test Failure: ${err}`);
|
|
17734
|
+
done(err);
|
|
17735
|
+
}
|
|
17736
|
+
});
|
|
17737
|
+
} catch (error) {
|
|
17738
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17739
|
+
done(error);
|
|
17740
|
+
}
|
|
17741
|
+
}).timeout(attemptTimeout);
|
|
17742
|
+
});
|
|
17743
|
+
|
|
17744
|
+
describe('#getTopologyV2TopologyIdMaintenancesMaintenanceIndex - errors', () => {
|
|
17745
|
+
it('should have a getTopologyV2TopologyIdMaintenancesMaintenanceIndex function', (done) => {
|
|
17746
|
+
try {
|
|
17747
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdMaintenancesMaintenanceIndex === 'function');
|
|
17748
|
+
done();
|
|
17749
|
+
} catch (error) {
|
|
17750
|
+
log.error(`Test Failure: ${error}`);
|
|
17751
|
+
done(error);
|
|
17752
|
+
}
|
|
17753
|
+
}).timeout(attemptTimeout);
|
|
17754
|
+
it('should error if - missing topologyId', (done) => {
|
|
17755
|
+
try {
|
|
17756
|
+
a.getTopologyV2TopologyIdMaintenancesMaintenanceIndex(null, null, (data, error) => {
|
|
17757
|
+
try {
|
|
17758
|
+
const displayE = 'topologyId is required';
|
|
17759
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdMaintenancesMaintenanceIndex', displayE);
|
|
17760
|
+
done();
|
|
17761
|
+
} catch (err) {
|
|
17762
|
+
log.error(`Test Failure: ${err}`);
|
|
17763
|
+
done(err);
|
|
17764
|
+
}
|
|
17765
|
+
});
|
|
17766
|
+
} catch (error) {
|
|
17767
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17768
|
+
done(error);
|
|
17769
|
+
}
|
|
17770
|
+
}).timeout(attemptTimeout);
|
|
17771
|
+
it('should error if - missing maintenanceIndex', (done) => {
|
|
17772
|
+
try {
|
|
17773
|
+
a.getTopologyV2TopologyIdMaintenancesMaintenanceIndex('fakeparam', null, (data, error) => {
|
|
17774
|
+
try {
|
|
17775
|
+
const displayE = 'maintenanceIndex is required';
|
|
17776
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdMaintenancesMaintenanceIndex', displayE);
|
|
17777
|
+
done();
|
|
17778
|
+
} catch (err) {
|
|
17779
|
+
log.error(`Test Failure: ${err}`);
|
|
17780
|
+
done(err);
|
|
17781
|
+
}
|
|
17782
|
+
});
|
|
17783
|
+
} catch (error) {
|
|
17784
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17785
|
+
done(error);
|
|
17786
|
+
}
|
|
17787
|
+
}).timeout(attemptTimeout);
|
|
17788
|
+
});
|
|
17789
|
+
|
|
17790
|
+
describe('#putTopologyV2TopologyIdMaintenancesMaintenanceIndex - errors', () => {
|
|
17791
|
+
it('should have a putTopologyV2TopologyIdMaintenancesMaintenanceIndex function', (done) => {
|
|
17792
|
+
try {
|
|
17793
|
+
assert.equal(true, typeof a.putTopologyV2TopologyIdMaintenancesMaintenanceIndex === 'function');
|
|
17794
|
+
done();
|
|
17795
|
+
} catch (error) {
|
|
17796
|
+
log.error(`Test Failure: ${error}`);
|
|
17797
|
+
done(error);
|
|
17798
|
+
}
|
|
17799
|
+
}).timeout(attemptTimeout);
|
|
17800
|
+
it('should error if - missing topologyId', (done) => {
|
|
17801
|
+
try {
|
|
17802
|
+
a.putTopologyV2TopologyIdMaintenancesMaintenanceIndex(null, null, null, (data, error) => {
|
|
17803
|
+
try {
|
|
17804
|
+
const displayE = 'topologyId is required';
|
|
17805
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-putTopologyV2TopologyIdMaintenancesMaintenanceIndex', displayE);
|
|
17806
|
+
done();
|
|
17807
|
+
} catch (err) {
|
|
17808
|
+
log.error(`Test Failure: ${err}`);
|
|
17809
|
+
done(err);
|
|
17810
|
+
}
|
|
17811
|
+
});
|
|
17812
|
+
} catch (error) {
|
|
17813
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17814
|
+
done(error);
|
|
17815
|
+
}
|
|
17816
|
+
}).timeout(attemptTimeout);
|
|
17817
|
+
it('should error if - missing maintenanceIndex', (done) => {
|
|
17818
|
+
try {
|
|
17819
|
+
a.putTopologyV2TopologyIdMaintenancesMaintenanceIndex('fakeparam', null, null, (data, error) => {
|
|
17820
|
+
try {
|
|
17821
|
+
const displayE = 'maintenanceIndex is required';
|
|
17822
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-putTopologyV2TopologyIdMaintenancesMaintenanceIndex', displayE);
|
|
17823
|
+
done();
|
|
17824
|
+
} catch (err) {
|
|
17825
|
+
log.error(`Test Failure: ${err}`);
|
|
17826
|
+
done(err);
|
|
17827
|
+
}
|
|
17828
|
+
});
|
|
17829
|
+
} catch (error) {
|
|
17830
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17831
|
+
done(error);
|
|
17832
|
+
}
|
|
17833
|
+
}).timeout(attemptTimeout);
|
|
17834
|
+
});
|
|
17835
|
+
|
|
17836
|
+
describe('#deleteTopologyV2TopologyIdMaintenancesMaintenanceIndex - errors', () => {
|
|
17837
|
+
it('should have a deleteTopologyV2TopologyIdMaintenancesMaintenanceIndex function', (done) => {
|
|
17838
|
+
try {
|
|
17839
|
+
assert.equal(true, typeof a.deleteTopologyV2TopologyIdMaintenancesMaintenanceIndex === 'function');
|
|
17840
|
+
done();
|
|
17841
|
+
} catch (error) {
|
|
17842
|
+
log.error(`Test Failure: ${error}`);
|
|
17843
|
+
done(error);
|
|
17844
|
+
}
|
|
17845
|
+
}).timeout(attemptTimeout);
|
|
17846
|
+
it('should error if - missing topologyId', (done) => {
|
|
17847
|
+
try {
|
|
17848
|
+
a.deleteTopologyV2TopologyIdMaintenancesMaintenanceIndex(null, null, (data, error) => {
|
|
17849
|
+
try {
|
|
17850
|
+
const displayE = 'topologyId is required';
|
|
17851
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTopologyV2TopologyIdMaintenancesMaintenanceIndex', displayE);
|
|
17852
|
+
done();
|
|
17853
|
+
} catch (err) {
|
|
17854
|
+
log.error(`Test Failure: ${err}`);
|
|
17855
|
+
done(err);
|
|
17856
|
+
}
|
|
17857
|
+
});
|
|
17858
|
+
} catch (error) {
|
|
17859
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17860
|
+
done(error);
|
|
17861
|
+
}
|
|
17862
|
+
}).timeout(attemptTimeout);
|
|
17863
|
+
it('should error if - missing maintenanceIndex', (done) => {
|
|
17864
|
+
try {
|
|
17865
|
+
a.deleteTopologyV2TopologyIdMaintenancesMaintenanceIndex('fakeparam', null, (data, error) => {
|
|
17866
|
+
try {
|
|
17867
|
+
const displayE = 'maintenanceIndex is required';
|
|
17868
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTopologyV2TopologyIdMaintenancesMaintenanceIndex', displayE);
|
|
17869
|
+
done();
|
|
17870
|
+
} catch (err) {
|
|
17871
|
+
log.error(`Test Failure: ${err}`);
|
|
17872
|
+
done(err);
|
|
17873
|
+
}
|
|
17874
|
+
});
|
|
17875
|
+
} catch (error) {
|
|
17876
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17877
|
+
done(error);
|
|
17878
|
+
}
|
|
17879
|
+
}).timeout(attemptTimeout);
|
|
17880
|
+
});
|
|
17881
|
+
|
|
17882
|
+
describe('#getTopologyV2TopologyIdFacilities - errors', () => {
|
|
17883
|
+
it('should have a getTopologyV2TopologyIdFacilities function', (done) => {
|
|
17884
|
+
try {
|
|
17885
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdFacilities === 'function');
|
|
17886
|
+
done();
|
|
17887
|
+
} catch (error) {
|
|
17888
|
+
log.error(`Test Failure: ${error}`);
|
|
17889
|
+
done(error);
|
|
17890
|
+
}
|
|
17891
|
+
}).timeout(attemptTimeout);
|
|
17892
|
+
it('should error if - missing topologyId', (done) => {
|
|
17893
|
+
try {
|
|
17894
|
+
a.getTopologyV2TopologyIdFacilities(null, (data, error) => {
|
|
17895
|
+
try {
|
|
17896
|
+
const displayE = 'topologyId is required';
|
|
17897
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdFacilities', displayE);
|
|
17898
|
+
done();
|
|
17899
|
+
} catch (err) {
|
|
17900
|
+
log.error(`Test Failure: ${err}`);
|
|
17901
|
+
done(err);
|
|
17902
|
+
}
|
|
17903
|
+
});
|
|
17904
|
+
} catch (error) {
|
|
17905
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17906
|
+
done(error);
|
|
17907
|
+
}
|
|
17908
|
+
}).timeout(attemptTimeout);
|
|
17909
|
+
});
|
|
17910
|
+
|
|
17911
|
+
describe('#postTopologyV2TopologyIdFacilities - errors', () => {
|
|
17912
|
+
it('should have a postTopologyV2TopologyIdFacilities function', (done) => {
|
|
17913
|
+
try {
|
|
17914
|
+
assert.equal(true, typeof a.postTopologyV2TopologyIdFacilities === 'function');
|
|
17915
|
+
done();
|
|
17916
|
+
} catch (error) {
|
|
17917
|
+
log.error(`Test Failure: ${error}`);
|
|
17918
|
+
done(error);
|
|
17919
|
+
}
|
|
17920
|
+
}).timeout(attemptTimeout);
|
|
17921
|
+
it('should error if - missing topologyId', (done) => {
|
|
17922
|
+
try {
|
|
17923
|
+
a.postTopologyV2TopologyIdFacilities(null, null, (data, error) => {
|
|
17924
|
+
try {
|
|
17925
|
+
const displayE = 'topologyId is required';
|
|
17926
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-postTopologyV2TopologyIdFacilities', displayE);
|
|
17927
|
+
done();
|
|
17928
|
+
} catch (err) {
|
|
17929
|
+
log.error(`Test Failure: ${err}`);
|
|
17930
|
+
done(err);
|
|
17931
|
+
}
|
|
17932
|
+
});
|
|
17933
|
+
} catch (error) {
|
|
17934
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17935
|
+
done(error);
|
|
17936
|
+
}
|
|
17937
|
+
}).timeout(attemptTimeout);
|
|
17938
|
+
});
|
|
17939
|
+
|
|
17940
|
+
describe('#getTopologyV2TopologyIdFacilitiesStream - errors', () => {
|
|
17941
|
+
it('should have a getTopologyV2TopologyIdFacilitiesStream function', (done) => {
|
|
17942
|
+
try {
|
|
17943
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdFacilitiesStream === 'function');
|
|
17944
|
+
done();
|
|
17945
|
+
} catch (error) {
|
|
17946
|
+
log.error(`Test Failure: ${error}`);
|
|
17947
|
+
done(error);
|
|
17948
|
+
}
|
|
17949
|
+
}).timeout(attemptTimeout);
|
|
17950
|
+
it('should error if - missing topologyId', (done) => {
|
|
17951
|
+
try {
|
|
17952
|
+
a.getTopologyV2TopologyIdFacilitiesStream(null, (data, error) => {
|
|
17953
|
+
try {
|
|
17954
|
+
const displayE = 'topologyId is required';
|
|
17955
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdFacilitiesStream', displayE);
|
|
17956
|
+
done();
|
|
17957
|
+
} catch (err) {
|
|
17958
|
+
log.error(`Test Failure: ${err}`);
|
|
17959
|
+
done(err);
|
|
17960
|
+
}
|
|
17961
|
+
});
|
|
17962
|
+
} catch (error) {
|
|
17963
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17964
|
+
done(error);
|
|
17965
|
+
}
|
|
17966
|
+
}).timeout(attemptTimeout);
|
|
17967
|
+
});
|
|
17968
|
+
|
|
17969
|
+
describe('#getTopologyV2TopologyIdFacilitiesFacilityIndex - errors', () => {
|
|
17970
|
+
it('should have a getTopologyV2TopologyIdFacilitiesFacilityIndex function', (done) => {
|
|
17971
|
+
try {
|
|
17972
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdFacilitiesFacilityIndex === 'function');
|
|
17973
|
+
done();
|
|
17974
|
+
} catch (error) {
|
|
17975
|
+
log.error(`Test Failure: ${error}`);
|
|
17976
|
+
done(error);
|
|
17977
|
+
}
|
|
17978
|
+
}).timeout(attemptTimeout);
|
|
17979
|
+
it('should error if - missing topologyId', (done) => {
|
|
17980
|
+
try {
|
|
17981
|
+
a.getTopologyV2TopologyIdFacilitiesFacilityIndex(null, null, (data, error) => {
|
|
17982
|
+
try {
|
|
17983
|
+
const displayE = 'topologyId is required';
|
|
17984
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdFacilitiesFacilityIndex', displayE);
|
|
17985
|
+
done();
|
|
17986
|
+
} catch (err) {
|
|
17987
|
+
log.error(`Test Failure: ${err}`);
|
|
17988
|
+
done(err);
|
|
17989
|
+
}
|
|
17990
|
+
});
|
|
17991
|
+
} catch (error) {
|
|
17992
|
+
log.error(`Adapter Exception: ${error}`);
|
|
17993
|
+
done(error);
|
|
17994
|
+
}
|
|
17995
|
+
}).timeout(attemptTimeout);
|
|
17996
|
+
it('should error if - missing facilityIndex', (done) => {
|
|
17997
|
+
try {
|
|
17998
|
+
a.getTopologyV2TopologyIdFacilitiesFacilityIndex('fakeparam', null, (data, error) => {
|
|
17999
|
+
try {
|
|
18000
|
+
const displayE = 'facilityIndex is required';
|
|
18001
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdFacilitiesFacilityIndex', displayE);
|
|
18002
|
+
done();
|
|
18003
|
+
} catch (err) {
|
|
18004
|
+
log.error(`Test Failure: ${err}`);
|
|
18005
|
+
done(err);
|
|
18006
|
+
}
|
|
18007
|
+
});
|
|
18008
|
+
} catch (error) {
|
|
18009
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18010
|
+
done(error);
|
|
18011
|
+
}
|
|
18012
|
+
}).timeout(attemptTimeout);
|
|
18013
|
+
});
|
|
18014
|
+
|
|
18015
|
+
describe('#putTopologyV2TopologyIdFacilitiesFacilityIndex - errors', () => {
|
|
18016
|
+
it('should have a putTopologyV2TopologyIdFacilitiesFacilityIndex function', (done) => {
|
|
18017
|
+
try {
|
|
18018
|
+
assert.equal(true, typeof a.putTopologyV2TopologyIdFacilitiesFacilityIndex === 'function');
|
|
18019
|
+
done();
|
|
18020
|
+
} catch (error) {
|
|
18021
|
+
log.error(`Test Failure: ${error}`);
|
|
18022
|
+
done(error);
|
|
18023
|
+
}
|
|
18024
|
+
}).timeout(attemptTimeout);
|
|
18025
|
+
it('should error if - missing topologyId', (done) => {
|
|
18026
|
+
try {
|
|
18027
|
+
a.putTopologyV2TopologyIdFacilitiesFacilityIndex(null, null, null, (data, error) => {
|
|
18028
|
+
try {
|
|
18029
|
+
const displayE = 'topologyId is required';
|
|
18030
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-putTopologyV2TopologyIdFacilitiesFacilityIndex', displayE);
|
|
18031
|
+
done();
|
|
18032
|
+
} catch (err) {
|
|
18033
|
+
log.error(`Test Failure: ${err}`);
|
|
18034
|
+
done(err);
|
|
18035
|
+
}
|
|
18036
|
+
});
|
|
18037
|
+
} catch (error) {
|
|
18038
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18039
|
+
done(error);
|
|
18040
|
+
}
|
|
18041
|
+
}).timeout(attemptTimeout);
|
|
18042
|
+
it('should error if - missing facilityIndex', (done) => {
|
|
18043
|
+
try {
|
|
18044
|
+
a.putTopologyV2TopologyIdFacilitiesFacilityIndex('fakeparam', null, null, (data, error) => {
|
|
18045
|
+
try {
|
|
18046
|
+
const displayE = 'facilityIndex is required';
|
|
18047
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-putTopologyV2TopologyIdFacilitiesFacilityIndex', displayE);
|
|
18048
|
+
done();
|
|
18049
|
+
} catch (err) {
|
|
18050
|
+
log.error(`Test Failure: ${err}`);
|
|
18051
|
+
done(err);
|
|
18052
|
+
}
|
|
18053
|
+
});
|
|
18054
|
+
} catch (error) {
|
|
18055
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18056
|
+
done(error);
|
|
18057
|
+
}
|
|
18058
|
+
}).timeout(attemptTimeout);
|
|
18059
|
+
});
|
|
18060
|
+
|
|
18061
|
+
describe('#deleteTopologyV2TopologyIdFacilitiesFacilityIndex - errors', () => {
|
|
18062
|
+
it('should have a deleteTopologyV2TopologyIdFacilitiesFacilityIndex function', (done) => {
|
|
18063
|
+
try {
|
|
18064
|
+
assert.equal(true, typeof a.deleteTopologyV2TopologyIdFacilitiesFacilityIndex === 'function');
|
|
18065
|
+
done();
|
|
18066
|
+
} catch (error) {
|
|
18067
|
+
log.error(`Test Failure: ${error}`);
|
|
18068
|
+
done(error);
|
|
18069
|
+
}
|
|
18070
|
+
}).timeout(attemptTimeout);
|
|
18071
|
+
it('should error if - missing topologyId', (done) => {
|
|
18072
|
+
try {
|
|
18073
|
+
a.deleteTopologyV2TopologyIdFacilitiesFacilityIndex(null, null, (data, error) => {
|
|
18074
|
+
try {
|
|
18075
|
+
const displayE = 'topologyId is required';
|
|
18076
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTopologyV2TopologyIdFacilitiesFacilityIndex', displayE);
|
|
18077
|
+
done();
|
|
18078
|
+
} catch (err) {
|
|
18079
|
+
log.error(`Test Failure: ${err}`);
|
|
18080
|
+
done(err);
|
|
18081
|
+
}
|
|
18082
|
+
});
|
|
18083
|
+
} catch (error) {
|
|
18084
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18085
|
+
done(error);
|
|
18086
|
+
}
|
|
18087
|
+
}).timeout(attemptTimeout);
|
|
18088
|
+
it('should error if - missing facilityIndex', (done) => {
|
|
18089
|
+
try {
|
|
18090
|
+
a.deleteTopologyV2TopologyIdFacilitiesFacilityIndex('fakeparam', null, (data, error) => {
|
|
18091
|
+
try {
|
|
18092
|
+
const displayE = 'facilityIndex is required';
|
|
18093
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTopologyV2TopologyIdFacilitiesFacilityIndex', displayE);
|
|
18094
|
+
done();
|
|
18095
|
+
} catch (err) {
|
|
18096
|
+
log.error(`Test Failure: ${err}`);
|
|
18097
|
+
done(err);
|
|
18098
|
+
}
|
|
18099
|
+
});
|
|
18100
|
+
} catch (error) {
|
|
18101
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18102
|
+
done(error);
|
|
18103
|
+
}
|
|
18104
|
+
}).timeout(attemptTimeout);
|
|
18105
|
+
});
|
|
18106
|
+
|
|
18107
|
+
describe('#getTopologyV2TopologyIdTeContainers - errors', () => {
|
|
18108
|
+
it('should have a getTopologyV2TopologyIdTeContainers function', (done) => {
|
|
18109
|
+
try {
|
|
18110
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdTeContainers === 'function');
|
|
18111
|
+
done();
|
|
18112
|
+
} catch (error) {
|
|
18113
|
+
log.error(`Test Failure: ${error}`);
|
|
18114
|
+
done(error);
|
|
18115
|
+
}
|
|
18116
|
+
}).timeout(attemptTimeout);
|
|
18117
|
+
it('should error if - missing topologyId', (done) => {
|
|
18118
|
+
try {
|
|
18119
|
+
a.getTopologyV2TopologyIdTeContainers(null, (data, error) => {
|
|
18120
|
+
try {
|
|
18121
|
+
const displayE = 'topologyId is required';
|
|
18122
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdTeContainers', displayE);
|
|
18123
|
+
done();
|
|
18124
|
+
} catch (err) {
|
|
18125
|
+
log.error(`Test Failure: ${err}`);
|
|
18126
|
+
done(err);
|
|
18127
|
+
}
|
|
18128
|
+
});
|
|
18129
|
+
} catch (error) {
|
|
18130
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18131
|
+
done(error);
|
|
18132
|
+
}
|
|
18133
|
+
}).timeout(attemptTimeout);
|
|
18134
|
+
});
|
|
18135
|
+
|
|
18136
|
+
describe('#postTopologyV2TopologyIdTeContainers - errors', () => {
|
|
18137
|
+
it('should have a postTopologyV2TopologyIdTeContainers function', (done) => {
|
|
18138
|
+
try {
|
|
18139
|
+
assert.equal(true, typeof a.postTopologyV2TopologyIdTeContainers === 'function');
|
|
18140
|
+
done();
|
|
18141
|
+
} catch (error) {
|
|
18142
|
+
log.error(`Test Failure: ${error}`);
|
|
18143
|
+
done(error);
|
|
18144
|
+
}
|
|
18145
|
+
}).timeout(attemptTimeout);
|
|
18146
|
+
it('should error if - missing topologyId', (done) => {
|
|
18147
|
+
try {
|
|
18148
|
+
a.postTopologyV2TopologyIdTeContainers(null, null, (data, error) => {
|
|
18149
|
+
try {
|
|
18150
|
+
const displayE = 'topologyId is required';
|
|
18151
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-postTopologyV2TopologyIdTeContainers', displayE);
|
|
18152
|
+
done();
|
|
18153
|
+
} catch (err) {
|
|
18154
|
+
log.error(`Test Failure: ${err}`);
|
|
18155
|
+
done(err);
|
|
18156
|
+
}
|
|
18157
|
+
});
|
|
18158
|
+
} catch (error) {
|
|
18159
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18160
|
+
done(error);
|
|
18161
|
+
}
|
|
18162
|
+
}).timeout(attemptTimeout);
|
|
18163
|
+
});
|
|
18164
|
+
|
|
18165
|
+
describe('#getTopologyV2TopologyIdTeContainersStream - errors', () => {
|
|
18166
|
+
it('should have a getTopologyV2TopologyIdTeContainersStream function', (done) => {
|
|
18167
|
+
try {
|
|
18168
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdTeContainersStream === 'function');
|
|
18169
|
+
done();
|
|
18170
|
+
} catch (error) {
|
|
18171
|
+
log.error(`Test Failure: ${error}`);
|
|
18172
|
+
done(error);
|
|
18173
|
+
}
|
|
18174
|
+
}).timeout(attemptTimeout);
|
|
18175
|
+
it('should error if - missing topologyId', (done) => {
|
|
18176
|
+
try {
|
|
18177
|
+
a.getTopologyV2TopologyIdTeContainersStream(null, (data, error) => {
|
|
18178
|
+
try {
|
|
18179
|
+
const displayE = 'topologyId is required';
|
|
18180
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdTeContainersStream', displayE);
|
|
18181
|
+
done();
|
|
18182
|
+
} catch (err) {
|
|
18183
|
+
log.error(`Test Failure: ${err}`);
|
|
18184
|
+
done(err);
|
|
18185
|
+
}
|
|
18186
|
+
});
|
|
18187
|
+
} catch (error) {
|
|
18188
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18189
|
+
done(error);
|
|
18190
|
+
}
|
|
18191
|
+
}).timeout(attemptTimeout);
|
|
18192
|
+
});
|
|
18193
|
+
|
|
18194
|
+
describe('#getTopologyV2TopologyIdTeContainersContainerIndex - errors', () => {
|
|
18195
|
+
it('should have a getTopologyV2TopologyIdTeContainersContainerIndex function', (done) => {
|
|
18196
|
+
try {
|
|
18197
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdTeContainersContainerIndex === 'function');
|
|
18198
|
+
done();
|
|
18199
|
+
} catch (error) {
|
|
18200
|
+
log.error(`Test Failure: ${error}`);
|
|
18201
|
+
done(error);
|
|
18202
|
+
}
|
|
18203
|
+
}).timeout(attemptTimeout);
|
|
18204
|
+
it('should error if - missing topologyId', (done) => {
|
|
18205
|
+
try {
|
|
18206
|
+
a.getTopologyV2TopologyIdTeContainersContainerIndex(null, null, (data, error) => {
|
|
18207
|
+
try {
|
|
18208
|
+
const displayE = 'topologyId is required';
|
|
18209
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdTeContainersContainerIndex', displayE);
|
|
18210
|
+
done();
|
|
18211
|
+
} catch (err) {
|
|
18212
|
+
log.error(`Test Failure: ${err}`);
|
|
18213
|
+
done(err);
|
|
18214
|
+
}
|
|
18215
|
+
});
|
|
18216
|
+
} catch (error) {
|
|
18217
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18218
|
+
done(error);
|
|
18219
|
+
}
|
|
18220
|
+
}).timeout(attemptTimeout);
|
|
18221
|
+
it('should error if - missing containerIndex', (done) => {
|
|
18222
|
+
try {
|
|
18223
|
+
a.getTopologyV2TopologyIdTeContainersContainerIndex('fakeparam', null, (data, error) => {
|
|
18224
|
+
try {
|
|
18225
|
+
const displayE = 'containerIndex is required';
|
|
18226
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdTeContainersContainerIndex', displayE);
|
|
18227
|
+
done();
|
|
18228
|
+
} catch (err) {
|
|
18229
|
+
log.error(`Test Failure: ${err}`);
|
|
18230
|
+
done(err);
|
|
18231
|
+
}
|
|
18232
|
+
});
|
|
18233
|
+
} catch (error) {
|
|
18234
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18235
|
+
done(error);
|
|
18236
|
+
}
|
|
18237
|
+
}).timeout(attemptTimeout);
|
|
18238
|
+
});
|
|
18239
|
+
|
|
18240
|
+
describe('#putTopologyV2TopologyIdTeContainersContainerIndex - errors', () => {
|
|
18241
|
+
it('should have a putTopologyV2TopologyIdTeContainersContainerIndex function', (done) => {
|
|
18242
|
+
try {
|
|
18243
|
+
assert.equal(true, typeof a.putTopologyV2TopologyIdTeContainersContainerIndex === 'function');
|
|
18244
|
+
done();
|
|
18245
|
+
} catch (error) {
|
|
18246
|
+
log.error(`Test Failure: ${error}`);
|
|
18247
|
+
done(error);
|
|
18248
|
+
}
|
|
18249
|
+
}).timeout(attemptTimeout);
|
|
18250
|
+
it('should error if - missing topologyId', (done) => {
|
|
18251
|
+
try {
|
|
18252
|
+
a.putTopologyV2TopologyIdTeContainersContainerIndex(null, null, null, (data, error) => {
|
|
18253
|
+
try {
|
|
18254
|
+
const displayE = 'topologyId is required';
|
|
18255
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-putTopologyV2TopologyIdTeContainersContainerIndex', displayE);
|
|
18256
|
+
done();
|
|
18257
|
+
} catch (err) {
|
|
18258
|
+
log.error(`Test Failure: ${err}`);
|
|
18259
|
+
done(err);
|
|
18260
|
+
}
|
|
18261
|
+
});
|
|
18262
|
+
} catch (error) {
|
|
18263
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18264
|
+
done(error);
|
|
18265
|
+
}
|
|
18266
|
+
}).timeout(attemptTimeout);
|
|
18267
|
+
it('should error if - missing containerIndex', (done) => {
|
|
18268
|
+
try {
|
|
18269
|
+
a.putTopologyV2TopologyIdTeContainersContainerIndex('fakeparam', null, null, (data, error) => {
|
|
18270
|
+
try {
|
|
18271
|
+
const displayE = 'containerIndex is required';
|
|
18272
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-putTopologyV2TopologyIdTeContainersContainerIndex', displayE);
|
|
18273
|
+
done();
|
|
18274
|
+
} catch (err) {
|
|
18275
|
+
log.error(`Test Failure: ${err}`);
|
|
18276
|
+
done(err);
|
|
18277
|
+
}
|
|
18278
|
+
});
|
|
18279
|
+
} catch (error) {
|
|
18280
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18281
|
+
done(error);
|
|
18282
|
+
}
|
|
18283
|
+
}).timeout(attemptTimeout);
|
|
18284
|
+
});
|
|
18285
|
+
|
|
18286
|
+
describe('#patchTopologyV2TopologyIdTeContainersContainerIndex - errors', () => {
|
|
18287
|
+
it('should have a patchTopologyV2TopologyIdTeContainersContainerIndex function', (done) => {
|
|
18288
|
+
try {
|
|
18289
|
+
assert.equal(true, typeof a.patchTopologyV2TopologyIdTeContainersContainerIndex === 'function');
|
|
18290
|
+
done();
|
|
18291
|
+
} catch (error) {
|
|
18292
|
+
log.error(`Test Failure: ${error}`);
|
|
18293
|
+
done(error);
|
|
18294
|
+
}
|
|
18295
|
+
}).timeout(attemptTimeout);
|
|
18296
|
+
it('should error if - missing topologyId', (done) => {
|
|
18297
|
+
try {
|
|
18298
|
+
a.patchTopologyV2TopologyIdTeContainersContainerIndex(null, null, null, (data, error) => {
|
|
18299
|
+
try {
|
|
18300
|
+
const displayE = 'topologyId is required';
|
|
18301
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-patchTopologyV2TopologyIdTeContainersContainerIndex', displayE);
|
|
18302
|
+
done();
|
|
18303
|
+
} catch (err) {
|
|
18304
|
+
log.error(`Test Failure: ${err}`);
|
|
18305
|
+
done(err);
|
|
18306
|
+
}
|
|
18307
|
+
});
|
|
18308
|
+
} catch (error) {
|
|
18309
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18310
|
+
done(error);
|
|
18311
|
+
}
|
|
18312
|
+
}).timeout(attemptTimeout);
|
|
18313
|
+
it('should error if - missing containerIndex', (done) => {
|
|
18314
|
+
try {
|
|
18315
|
+
a.patchTopologyV2TopologyIdTeContainersContainerIndex('fakeparam', null, null, (data, error) => {
|
|
18316
|
+
try {
|
|
18317
|
+
const displayE = 'containerIndex is required';
|
|
18318
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-patchTopologyV2TopologyIdTeContainersContainerIndex', displayE);
|
|
18319
|
+
done();
|
|
18320
|
+
} catch (err) {
|
|
18321
|
+
log.error(`Test Failure: ${err}`);
|
|
18322
|
+
done(err);
|
|
18323
|
+
}
|
|
18324
|
+
});
|
|
18325
|
+
} catch (error) {
|
|
18326
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18327
|
+
done(error);
|
|
18328
|
+
}
|
|
18329
|
+
}).timeout(attemptTimeout);
|
|
18330
|
+
});
|
|
18331
|
+
|
|
18332
|
+
describe('#deleteTopologyV2TopologyIdTeContainersContainerIndex - errors', () => {
|
|
18333
|
+
it('should have a deleteTopologyV2TopologyIdTeContainersContainerIndex function', (done) => {
|
|
18334
|
+
try {
|
|
18335
|
+
assert.equal(true, typeof a.deleteTopologyV2TopologyIdTeContainersContainerIndex === 'function');
|
|
18336
|
+
done();
|
|
18337
|
+
} catch (error) {
|
|
18338
|
+
log.error(`Test Failure: ${error}`);
|
|
18339
|
+
done(error);
|
|
18340
|
+
}
|
|
18341
|
+
}).timeout(attemptTimeout);
|
|
18342
|
+
it('should error if - missing topologyId', (done) => {
|
|
18343
|
+
try {
|
|
18344
|
+
a.deleteTopologyV2TopologyIdTeContainersContainerIndex(null, null, (data, error) => {
|
|
18345
|
+
try {
|
|
18346
|
+
const displayE = 'topologyId is required';
|
|
18347
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTopologyV2TopologyIdTeContainersContainerIndex', displayE);
|
|
18348
|
+
done();
|
|
18349
|
+
} catch (err) {
|
|
18350
|
+
log.error(`Test Failure: ${err}`);
|
|
18351
|
+
done(err);
|
|
18352
|
+
}
|
|
18353
|
+
});
|
|
18354
|
+
} catch (error) {
|
|
18355
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18356
|
+
done(error);
|
|
18357
|
+
}
|
|
18358
|
+
}).timeout(attemptTimeout);
|
|
18359
|
+
it('should error if - missing containerIndex', (done) => {
|
|
18360
|
+
try {
|
|
18361
|
+
a.deleteTopologyV2TopologyIdTeContainersContainerIndex('fakeparam', null, (data, error) => {
|
|
18362
|
+
try {
|
|
18363
|
+
const displayE = 'containerIndex is required';
|
|
18364
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTopologyV2TopologyIdTeContainersContainerIndex', displayE);
|
|
18365
|
+
done();
|
|
18366
|
+
} catch (err) {
|
|
18367
|
+
log.error(`Test Failure: ${err}`);
|
|
18368
|
+
done(err);
|
|
18369
|
+
}
|
|
18370
|
+
});
|
|
18371
|
+
} catch (error) {
|
|
18372
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18373
|
+
done(error);
|
|
18374
|
+
}
|
|
18375
|
+
}).timeout(attemptTimeout);
|
|
18376
|
+
});
|
|
18377
|
+
|
|
18378
|
+
describe('#postTopologyV2TopologyIdTeContainersBulk - errors', () => {
|
|
18379
|
+
it('should have a postTopologyV2TopologyIdTeContainersBulk function', (done) => {
|
|
18380
|
+
try {
|
|
18381
|
+
assert.equal(true, typeof a.postTopologyV2TopologyIdTeContainersBulk === 'function');
|
|
18382
|
+
done();
|
|
18383
|
+
} catch (error) {
|
|
18384
|
+
log.error(`Test Failure: ${error}`);
|
|
18385
|
+
done(error);
|
|
18386
|
+
}
|
|
18387
|
+
}).timeout(attemptTimeout);
|
|
18388
|
+
it('should error if - missing topologyId', (done) => {
|
|
18389
|
+
try {
|
|
18390
|
+
a.postTopologyV2TopologyIdTeContainersBulk(null, null, (data, error) => {
|
|
18391
|
+
try {
|
|
18392
|
+
const displayE = 'topologyId is required';
|
|
18393
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-postTopologyV2TopologyIdTeContainersBulk', displayE);
|
|
18394
|
+
done();
|
|
18395
|
+
} catch (err) {
|
|
18396
|
+
log.error(`Test Failure: ${err}`);
|
|
18397
|
+
done(err);
|
|
18398
|
+
}
|
|
18399
|
+
});
|
|
18400
|
+
} catch (error) {
|
|
18401
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18402
|
+
done(error);
|
|
18403
|
+
}
|
|
18404
|
+
}).timeout(attemptTimeout);
|
|
18405
|
+
});
|
|
18406
|
+
|
|
18407
|
+
describe('#putTopologyV2TopologyIdTeContainersBulk - errors', () => {
|
|
18408
|
+
it('should have a putTopologyV2TopologyIdTeContainersBulk function', (done) => {
|
|
18409
|
+
try {
|
|
18410
|
+
assert.equal(true, typeof a.putTopologyV2TopologyIdTeContainersBulk === 'function');
|
|
18411
|
+
done();
|
|
18412
|
+
} catch (error) {
|
|
18413
|
+
log.error(`Test Failure: ${error}`);
|
|
18414
|
+
done(error);
|
|
18415
|
+
}
|
|
18416
|
+
}).timeout(attemptTimeout);
|
|
18417
|
+
it('should error if - missing topologyId', (done) => {
|
|
18418
|
+
try {
|
|
18419
|
+
a.putTopologyV2TopologyIdTeContainersBulk(null, null, (data, error) => {
|
|
18420
|
+
try {
|
|
18421
|
+
const displayE = 'topologyId is required';
|
|
18422
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-putTopologyV2TopologyIdTeContainersBulk', displayE);
|
|
18423
|
+
done();
|
|
18424
|
+
} catch (err) {
|
|
18425
|
+
log.error(`Test Failure: ${err}`);
|
|
18426
|
+
done(err);
|
|
18427
|
+
}
|
|
18428
|
+
});
|
|
18429
|
+
} catch (error) {
|
|
18430
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18431
|
+
done(error);
|
|
18432
|
+
}
|
|
18433
|
+
}).timeout(attemptTimeout);
|
|
18434
|
+
});
|
|
18435
|
+
|
|
18436
|
+
describe('#patchTopologyV2TopologyIdTeContainersBulk - errors', () => {
|
|
18437
|
+
it('should have a patchTopologyV2TopologyIdTeContainersBulk function', (done) => {
|
|
18438
|
+
try {
|
|
18439
|
+
assert.equal(true, typeof a.patchTopologyV2TopologyIdTeContainersBulk === 'function');
|
|
18440
|
+
done();
|
|
18441
|
+
} catch (error) {
|
|
18442
|
+
log.error(`Test Failure: ${error}`);
|
|
18443
|
+
done(error);
|
|
18444
|
+
}
|
|
18445
|
+
}).timeout(attemptTimeout);
|
|
18446
|
+
it('should error if - missing topologyId', (done) => {
|
|
18447
|
+
try {
|
|
18448
|
+
a.patchTopologyV2TopologyIdTeContainersBulk(null, null, (data, error) => {
|
|
18449
|
+
try {
|
|
18450
|
+
const displayE = 'topologyId is required';
|
|
18451
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-patchTopologyV2TopologyIdTeContainersBulk', displayE);
|
|
18452
|
+
done();
|
|
18453
|
+
} catch (err) {
|
|
18454
|
+
log.error(`Test Failure: ${err}`);
|
|
18455
|
+
done(err);
|
|
18456
|
+
}
|
|
18457
|
+
});
|
|
18458
|
+
} catch (error) {
|
|
18459
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18460
|
+
done(error);
|
|
18461
|
+
}
|
|
18462
|
+
}).timeout(attemptTimeout);
|
|
18463
|
+
});
|
|
18464
|
+
|
|
18465
|
+
describe('#deleteTopologyV2TopologyIdTeContainersBulk - errors', () => {
|
|
18466
|
+
it('should have a deleteTopologyV2TopologyIdTeContainersBulk function', (done) => {
|
|
18467
|
+
try {
|
|
18468
|
+
assert.equal(true, typeof a.deleteTopologyV2TopologyIdTeContainersBulk === 'function');
|
|
18469
|
+
done();
|
|
18470
|
+
} catch (error) {
|
|
18471
|
+
log.error(`Test Failure: ${error}`);
|
|
18472
|
+
done(error);
|
|
18473
|
+
}
|
|
18474
|
+
}).timeout(attemptTimeout);
|
|
18475
|
+
it('should error if - missing topologyId', (done) => {
|
|
18476
|
+
try {
|
|
18477
|
+
a.deleteTopologyV2TopologyIdTeContainersBulk(null, (data, error) => {
|
|
18478
|
+
try {
|
|
18479
|
+
const displayE = 'topologyId is required';
|
|
18480
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTopologyV2TopologyIdTeContainersBulk', displayE);
|
|
18481
|
+
done();
|
|
18482
|
+
} catch (err) {
|
|
18483
|
+
log.error(`Test Failure: ${err}`);
|
|
18484
|
+
done(err);
|
|
18485
|
+
}
|
|
18486
|
+
});
|
|
18487
|
+
} catch (error) {
|
|
18488
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18489
|
+
done(error);
|
|
18490
|
+
}
|
|
18491
|
+
}).timeout(attemptTimeout);
|
|
18492
|
+
});
|
|
18493
|
+
|
|
18494
|
+
describe('#getTopologyV2TopologyIdRoutes - errors', () => {
|
|
18495
|
+
it('should have a getTopologyV2TopologyIdRoutes function', (done) => {
|
|
18496
|
+
try {
|
|
18497
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdRoutes === 'function');
|
|
18498
|
+
done();
|
|
18499
|
+
} catch (error) {
|
|
18500
|
+
log.error(`Test Failure: ${error}`);
|
|
18501
|
+
done(error);
|
|
18502
|
+
}
|
|
18503
|
+
}).timeout(attemptTimeout);
|
|
18504
|
+
it('should error if - missing topologyId', (done) => {
|
|
18505
|
+
try {
|
|
18506
|
+
a.getTopologyV2TopologyIdRoutes(null, (data, error) => {
|
|
18507
|
+
try {
|
|
18508
|
+
const displayE = 'topologyId is required';
|
|
18509
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdRoutes', displayE);
|
|
18510
|
+
done();
|
|
18511
|
+
} catch (err) {
|
|
18512
|
+
log.error(`Test Failure: ${err}`);
|
|
18513
|
+
done(err);
|
|
18514
|
+
}
|
|
18515
|
+
});
|
|
18516
|
+
} catch (error) {
|
|
18517
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18518
|
+
done(error);
|
|
18519
|
+
}
|
|
18520
|
+
}).timeout(attemptTimeout);
|
|
18521
|
+
});
|
|
18522
|
+
|
|
18523
|
+
describe('#getTopologyV2TopologyIdRoutesNodeIndex - errors', () => {
|
|
18524
|
+
it('should have a getTopologyV2TopologyIdRoutesNodeIndex function', (done) => {
|
|
18525
|
+
try {
|
|
18526
|
+
assert.equal(true, typeof a.getTopologyV2TopologyIdRoutesNodeIndex === 'function');
|
|
18527
|
+
done();
|
|
18528
|
+
} catch (error) {
|
|
18529
|
+
log.error(`Test Failure: ${error}`);
|
|
18530
|
+
done(error);
|
|
18531
|
+
}
|
|
18532
|
+
}).timeout(attemptTimeout);
|
|
18533
|
+
it('should error if - missing topologyId', (done) => {
|
|
18534
|
+
try {
|
|
18535
|
+
a.getTopologyV2TopologyIdRoutesNodeIndex(null, null, (data, error) => {
|
|
18536
|
+
try {
|
|
18537
|
+
const displayE = 'topologyId is required';
|
|
18538
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdRoutesNodeIndex', displayE);
|
|
18539
|
+
done();
|
|
18540
|
+
} catch (err) {
|
|
18541
|
+
log.error(`Test Failure: ${err}`);
|
|
18542
|
+
done(err);
|
|
18543
|
+
}
|
|
18544
|
+
});
|
|
18545
|
+
} catch (error) {
|
|
18546
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18547
|
+
done(error);
|
|
18548
|
+
}
|
|
18549
|
+
}).timeout(attemptTimeout);
|
|
18550
|
+
it('should error if - missing nodeIndex', (done) => {
|
|
18551
|
+
try {
|
|
18552
|
+
a.getTopologyV2TopologyIdRoutesNodeIndex('fakeparam', null, (data, error) => {
|
|
18553
|
+
try {
|
|
18554
|
+
const displayE = 'nodeIndex is required';
|
|
18555
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2TopologyIdRoutesNodeIndex', displayE);
|
|
18556
|
+
done();
|
|
18557
|
+
} catch (err) {
|
|
18558
|
+
log.error(`Test Failure: ${err}`);
|
|
18559
|
+
done(err);
|
|
18560
|
+
}
|
|
18561
|
+
});
|
|
18562
|
+
} catch (error) {
|
|
18563
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18564
|
+
done(error);
|
|
18565
|
+
}
|
|
18566
|
+
}).timeout(attemptTimeout);
|
|
18567
|
+
});
|
|
18568
|
+
|
|
18569
|
+
describe('#postTopologyV2TopologyIdPathComputation - errors', () => {
|
|
18570
|
+
it('should have a postTopologyV2TopologyIdPathComputation function', (done) => {
|
|
18571
|
+
try {
|
|
18572
|
+
assert.equal(true, typeof a.postTopologyV2TopologyIdPathComputation === 'function');
|
|
18573
|
+
done();
|
|
18574
|
+
} catch (error) {
|
|
18575
|
+
log.error(`Test Failure: ${error}`);
|
|
18576
|
+
done(error);
|
|
18577
|
+
}
|
|
18578
|
+
}).timeout(attemptTimeout);
|
|
18579
|
+
it('should error if - missing topologyId', (done) => {
|
|
18580
|
+
try {
|
|
18581
|
+
a.postTopologyV2TopologyIdPathComputation(null, null, (data, error) => {
|
|
18582
|
+
try {
|
|
18583
|
+
const displayE = 'topologyId is required';
|
|
18584
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-postTopologyV2TopologyIdPathComputation', displayE);
|
|
18585
|
+
done();
|
|
18586
|
+
} catch (err) {
|
|
18587
|
+
log.error(`Test Failure: ${err}`);
|
|
18588
|
+
done(err);
|
|
18589
|
+
}
|
|
18590
|
+
});
|
|
18591
|
+
} catch (error) {
|
|
18592
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18593
|
+
done(error);
|
|
18594
|
+
}
|
|
18595
|
+
}).timeout(attemptTimeout);
|
|
18596
|
+
});
|
|
18597
|
+
|
|
18598
|
+
describe('#postTopologyV2RpcOptimize - errors', () => {
|
|
18599
|
+
it('should have a postTopologyV2RpcOptimize function', (done) => {
|
|
18600
|
+
try {
|
|
18601
|
+
assert.equal(true, typeof a.postTopologyV2RpcOptimize === 'function');
|
|
18602
|
+
done();
|
|
18603
|
+
} catch (error) {
|
|
18604
|
+
log.error(`Test Failure: ${error}`);
|
|
18605
|
+
done(error);
|
|
18606
|
+
}
|
|
18607
|
+
}).timeout(attemptTimeout);
|
|
18608
|
+
});
|
|
18609
|
+
|
|
18610
|
+
describe('#getTopologyV2RpcOptimize - errors', () => {
|
|
18611
|
+
it('should have a getTopologyV2RpcOptimize function', (done) => {
|
|
18612
|
+
try {
|
|
18613
|
+
assert.equal(true, typeof a.getTopologyV2RpcOptimize === 'function');
|
|
18614
|
+
done();
|
|
18615
|
+
} catch (error) {
|
|
18616
|
+
log.error(`Test Failure: ${error}`);
|
|
18617
|
+
done(error);
|
|
18618
|
+
}
|
|
18619
|
+
}).timeout(attemptTimeout);
|
|
18620
|
+
});
|
|
18621
|
+
|
|
18622
|
+
describe('#postTopologyV2RpcSimulation - errors', () => {
|
|
18623
|
+
it('should have a postTopologyV2RpcSimulation function', (done) => {
|
|
18624
|
+
try {
|
|
18625
|
+
assert.equal(true, typeof a.postTopologyV2RpcSimulation === 'function');
|
|
18626
|
+
done();
|
|
18627
|
+
} catch (error) {
|
|
18628
|
+
log.error(`Test Failure: ${error}`);
|
|
18629
|
+
done(error);
|
|
18630
|
+
}
|
|
18631
|
+
}).timeout(attemptTimeout);
|
|
18632
|
+
});
|
|
18633
|
+
|
|
18634
|
+
describe('#getTopologyV2RpcSimulation - errors', () => {
|
|
18635
|
+
it('should have a getTopologyV2RpcSimulation function', (done) => {
|
|
18636
|
+
try {
|
|
18637
|
+
assert.equal(true, typeof a.getTopologyV2RpcSimulation === 'function');
|
|
18638
|
+
done();
|
|
18639
|
+
} catch (error) {
|
|
18640
|
+
log.error(`Test Failure: ${error}`);
|
|
18641
|
+
done(error);
|
|
18642
|
+
}
|
|
18643
|
+
}).timeout(attemptTimeout);
|
|
18644
|
+
});
|
|
18645
|
+
|
|
18646
|
+
describe('#getTopologyV2RpcSimulationUuid - errors', () => {
|
|
18647
|
+
it('should have a getTopologyV2RpcSimulationUuid function', (done) => {
|
|
18648
|
+
try {
|
|
18649
|
+
assert.equal(true, typeof a.getTopologyV2RpcSimulationUuid === 'function');
|
|
18650
|
+
done();
|
|
18651
|
+
} catch (error) {
|
|
18652
|
+
log.error(`Test Failure: ${error}`);
|
|
18653
|
+
done(error);
|
|
18654
|
+
}
|
|
18655
|
+
}).timeout(attemptTimeout);
|
|
18656
|
+
it('should error if - missing uuid', (done) => {
|
|
18657
|
+
try {
|
|
18658
|
+
a.getTopologyV2RpcSimulationUuid(null, (data, error) => {
|
|
18659
|
+
try {
|
|
18660
|
+
const displayE = 'uuid is required';
|
|
18661
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2RpcSimulationUuid', displayE);
|
|
18662
|
+
done();
|
|
18663
|
+
} catch (err) {
|
|
18664
|
+
log.error(`Test Failure: ${err}`);
|
|
18665
|
+
done(err);
|
|
18666
|
+
}
|
|
18667
|
+
});
|
|
18668
|
+
} catch (error) {
|
|
18669
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18670
|
+
done(error);
|
|
18671
|
+
}
|
|
18672
|
+
}).timeout(attemptTimeout);
|
|
18673
|
+
});
|
|
18674
|
+
|
|
18675
|
+
describe('#getTopologyV2RpcSimulationUuidReportName - errors', () => {
|
|
18676
|
+
it('should have a getTopologyV2RpcSimulationUuidReportName function', (done) => {
|
|
18677
|
+
try {
|
|
18678
|
+
assert.equal(true, typeof a.getTopologyV2RpcSimulationUuidReportName === 'function');
|
|
18679
|
+
done();
|
|
18680
|
+
} catch (error) {
|
|
18681
|
+
log.error(`Test Failure: ${error}`);
|
|
18682
|
+
done(error);
|
|
18683
|
+
}
|
|
18684
|
+
}).timeout(attemptTimeout);
|
|
18685
|
+
it('should error if - missing uuid', (done) => {
|
|
18686
|
+
try {
|
|
18687
|
+
a.getTopologyV2RpcSimulationUuidReportName(null, null, (data, error) => {
|
|
18688
|
+
try {
|
|
18689
|
+
const displayE = 'uuid is required';
|
|
18690
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2RpcSimulationUuidReportName', displayE);
|
|
18691
|
+
done();
|
|
18692
|
+
} catch (err) {
|
|
18693
|
+
log.error(`Test Failure: ${err}`);
|
|
18694
|
+
done(err);
|
|
18695
|
+
}
|
|
18696
|
+
});
|
|
18697
|
+
} catch (error) {
|
|
18698
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18699
|
+
done(error);
|
|
18700
|
+
}
|
|
18701
|
+
}).timeout(attemptTimeout);
|
|
18702
|
+
it('should error if - missing reportName', (done) => {
|
|
18703
|
+
try {
|
|
18704
|
+
a.getTopologyV2RpcSimulationUuidReportName('fakeparam', null, (data, error) => {
|
|
18705
|
+
try {
|
|
18706
|
+
const displayE = 'reportName is required';
|
|
18707
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2RpcSimulationUuidReportName', displayE);
|
|
18708
|
+
done();
|
|
18709
|
+
} catch (err) {
|
|
18710
|
+
log.error(`Test Failure: ${err}`);
|
|
18711
|
+
done(err);
|
|
18712
|
+
}
|
|
18713
|
+
});
|
|
18714
|
+
} catch (error) {
|
|
18715
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18716
|
+
done(error);
|
|
18717
|
+
}
|
|
18718
|
+
}).timeout(attemptTimeout);
|
|
18719
|
+
});
|
|
18720
|
+
|
|
18721
|
+
describe('#postTopologyV2RpcDiverseTreeDesign - errors', () => {
|
|
18722
|
+
it('should have a postTopologyV2RpcDiverseTreeDesign function', (done) => {
|
|
18723
|
+
try {
|
|
18724
|
+
assert.equal(true, typeof a.postTopologyV2RpcDiverseTreeDesign === 'function');
|
|
18725
|
+
done();
|
|
18726
|
+
} catch (error) {
|
|
18727
|
+
log.error(`Test Failure: ${error}`);
|
|
18728
|
+
done(error);
|
|
18729
|
+
}
|
|
18730
|
+
}).timeout(attemptTimeout);
|
|
18731
|
+
});
|
|
18732
|
+
|
|
18733
|
+
describe('#getTopologyV2RpcDiverseTreeDesign - errors', () => {
|
|
18734
|
+
it('should have a getTopologyV2RpcDiverseTreeDesign function', (done) => {
|
|
18735
|
+
try {
|
|
18736
|
+
assert.equal(true, typeof a.getTopologyV2RpcDiverseTreeDesign === 'function');
|
|
18737
|
+
done();
|
|
18738
|
+
} catch (error) {
|
|
18739
|
+
log.error(`Test Failure: ${error}`);
|
|
18740
|
+
done(error);
|
|
18741
|
+
}
|
|
18742
|
+
}).timeout(attemptTimeout);
|
|
18743
|
+
});
|
|
18744
|
+
|
|
18745
|
+
describe('#getTopologyV2RpcDiverseTreeDesignUuid - errors', () => {
|
|
18746
|
+
it('should have a getTopologyV2RpcDiverseTreeDesignUuid function', (done) => {
|
|
18747
|
+
try {
|
|
18748
|
+
assert.equal(true, typeof a.getTopologyV2RpcDiverseTreeDesignUuid === 'function');
|
|
18749
|
+
done();
|
|
18750
|
+
} catch (error) {
|
|
18751
|
+
log.error(`Test Failure: ${error}`);
|
|
18752
|
+
done(error);
|
|
18753
|
+
}
|
|
18754
|
+
}).timeout(attemptTimeout);
|
|
18755
|
+
it('should error if - missing uuid', (done) => {
|
|
18756
|
+
try {
|
|
18757
|
+
a.getTopologyV2RpcDiverseTreeDesignUuid(null, (data, error) => {
|
|
18758
|
+
try {
|
|
18759
|
+
const displayE = 'uuid is required';
|
|
18760
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTopologyV2RpcDiverseTreeDesignUuid', displayE);
|
|
18761
|
+
done();
|
|
18762
|
+
} catch (err) {
|
|
18763
|
+
log.error(`Test Failure: ${err}`);
|
|
18764
|
+
done(err);
|
|
18765
|
+
}
|
|
18766
|
+
});
|
|
18767
|
+
} catch (error) {
|
|
18768
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18769
|
+
done(error);
|
|
18770
|
+
}
|
|
18771
|
+
}).timeout(attemptTimeout);
|
|
18772
|
+
});
|
|
18773
|
+
|
|
18774
|
+
describe('#getSchedulerV2Tasklist - errors', () => {
|
|
18775
|
+
it('should have a getSchedulerV2Tasklist function', (done) => {
|
|
18776
|
+
try {
|
|
18777
|
+
assert.equal(true, typeof a.getSchedulerV2Tasklist === 'function');
|
|
18778
|
+
done();
|
|
18779
|
+
} catch (error) {
|
|
18780
|
+
log.error(`Test Failure: ${error}`);
|
|
18781
|
+
done(error);
|
|
18782
|
+
}
|
|
18783
|
+
}).timeout(attemptTimeout);
|
|
18784
|
+
});
|
|
18785
|
+
|
|
18786
|
+
describe('#getSchedulerV2Tasks - errors', () => {
|
|
18787
|
+
it('should have a getSchedulerV2Tasks function', (done) => {
|
|
18788
|
+
try {
|
|
18789
|
+
assert.equal(true, typeof a.getSchedulerV2Tasks === 'function');
|
|
18790
|
+
done();
|
|
18791
|
+
} catch (error) {
|
|
18792
|
+
log.error(`Test Failure: ${error}`);
|
|
18793
|
+
done(error);
|
|
18794
|
+
}
|
|
18795
|
+
}).timeout(attemptTimeout);
|
|
18796
|
+
});
|
|
18797
|
+
|
|
18798
|
+
describe('#postSchedulerV2Addtask - errors', () => {
|
|
18799
|
+
it('should have a postSchedulerV2Addtask function', (done) => {
|
|
18800
|
+
try {
|
|
18801
|
+
assert.equal(true, typeof a.postSchedulerV2Addtask === 'function');
|
|
18802
|
+
done();
|
|
18803
|
+
} catch (error) {
|
|
18804
|
+
log.error(`Test Failure: ${error}`);
|
|
18805
|
+
done(error);
|
|
18806
|
+
}
|
|
18807
|
+
}).timeout(attemptTimeout);
|
|
18808
|
+
});
|
|
18809
|
+
|
|
18810
|
+
describe('#postSchedulerV2Updatetask - errors', () => {
|
|
18811
|
+
it('should have a postSchedulerV2Updatetask function', (done) => {
|
|
18812
|
+
try {
|
|
18813
|
+
assert.equal(true, typeof a.postSchedulerV2Updatetask === 'function');
|
|
18814
|
+
done();
|
|
18815
|
+
} catch (error) {
|
|
18816
|
+
log.error(`Test Failure: ${error}`);
|
|
18817
|
+
done(error);
|
|
18818
|
+
}
|
|
18819
|
+
}).timeout(attemptTimeout);
|
|
18820
|
+
});
|
|
18821
|
+
|
|
18822
|
+
describe('#postSchedulerV2Removeaddtask - errors', () => {
|
|
18823
|
+
it('should have a postSchedulerV2Removeaddtask function', (done) => {
|
|
18824
|
+
try {
|
|
18825
|
+
assert.equal(true, typeof a.postSchedulerV2Removeaddtask === 'function');
|
|
18826
|
+
done();
|
|
18827
|
+
} catch (error) {
|
|
18828
|
+
log.error(`Test Failure: ${error}`);
|
|
18829
|
+
done(error);
|
|
18830
|
+
}
|
|
18831
|
+
}).timeout(attemptTimeout);
|
|
18832
|
+
});
|
|
18833
|
+
|
|
18834
|
+
describe('#postSchedulerV2Deletetask - errors', () => {
|
|
18835
|
+
it('should have a postSchedulerV2Deletetask function', (done) => {
|
|
18836
|
+
try {
|
|
18837
|
+
assert.equal(true, typeof a.postSchedulerV2Deletetask === 'function');
|
|
18838
|
+
done();
|
|
18839
|
+
} catch (error) {
|
|
18840
|
+
log.error(`Test Failure: ${error}`);
|
|
18841
|
+
done(error);
|
|
18842
|
+
}
|
|
18843
|
+
}).timeout(attemptTimeout);
|
|
18844
|
+
});
|
|
18845
|
+
|
|
18846
|
+
describe('#getSchedulerV2TaskshistoryTaskId - errors', () => {
|
|
18847
|
+
it('should have a getSchedulerV2TaskshistoryTaskId function', (done) => {
|
|
18848
|
+
try {
|
|
18849
|
+
assert.equal(true, typeof a.getSchedulerV2TaskshistoryTaskId === 'function');
|
|
18850
|
+
done();
|
|
18851
|
+
} catch (error) {
|
|
18852
|
+
log.error(`Test Failure: ${error}`);
|
|
18853
|
+
done(error);
|
|
18854
|
+
}
|
|
18855
|
+
}).timeout(attemptTimeout);
|
|
18856
|
+
it('should error if - missing taskId', (done) => {
|
|
18857
|
+
try {
|
|
18858
|
+
a.getSchedulerV2TaskshistoryTaskId(null, (data, error) => {
|
|
18859
|
+
try {
|
|
18860
|
+
const displayE = 'taskId is required';
|
|
18861
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getSchedulerV2TaskshistoryTaskId', displayE);
|
|
18862
|
+
done();
|
|
18863
|
+
} catch (err) {
|
|
18864
|
+
log.error(`Test Failure: ${err}`);
|
|
18865
|
+
done(err);
|
|
18866
|
+
}
|
|
18867
|
+
});
|
|
18868
|
+
} catch (error) {
|
|
18869
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18870
|
+
done(error);
|
|
18871
|
+
}
|
|
18872
|
+
}).timeout(attemptTimeout);
|
|
18873
|
+
});
|
|
18874
|
+
|
|
18875
|
+
describe('#getSchedulerV2TaskstatusTaskId - errors', () => {
|
|
18876
|
+
it('should have a getSchedulerV2TaskstatusTaskId function', (done) => {
|
|
18877
|
+
try {
|
|
18878
|
+
assert.equal(true, typeof a.getSchedulerV2TaskstatusTaskId === 'function');
|
|
18879
|
+
done();
|
|
18880
|
+
} catch (error) {
|
|
18881
|
+
log.error(`Test Failure: ${error}`);
|
|
18882
|
+
done(error);
|
|
18883
|
+
}
|
|
18884
|
+
}).timeout(attemptTimeout);
|
|
18885
|
+
it('should error if - missing taskId', (done) => {
|
|
18886
|
+
try {
|
|
18887
|
+
a.getSchedulerV2TaskstatusTaskId(null, (data, error) => {
|
|
18888
|
+
try {
|
|
18889
|
+
const displayE = 'taskId is required';
|
|
18890
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getSchedulerV2TaskstatusTaskId', displayE);
|
|
18891
|
+
done();
|
|
18892
|
+
} catch (err) {
|
|
18893
|
+
log.error(`Test Failure: ${err}`);
|
|
18894
|
+
done(err);
|
|
18895
|
+
}
|
|
18896
|
+
});
|
|
18897
|
+
} catch (error) {
|
|
18898
|
+
log.error(`Adapter Exception: ${error}`);
|
|
18899
|
+
done(error);
|
|
18900
|
+
}
|
|
18901
|
+
}).timeout(attemptTimeout);
|
|
18902
|
+
});
|
|
18903
|
+
|
|
18904
|
+
describe('#getComponentConfig - errors', () => {
|
|
18905
|
+
it('should have a getComponentConfig function', (done) => {
|
|
18906
|
+
try {
|
|
18907
|
+
assert.equal(true, typeof a.getComponentConfig === 'function');
|
|
18908
|
+
done();
|
|
18909
|
+
} catch (error) {
|
|
18910
|
+
log.error(`Test Failure: ${error}`);
|
|
18911
|
+
done(error);
|
|
18912
|
+
}
|
|
18913
|
+
}).timeout(attemptTimeout);
|
|
18914
|
+
});
|
|
18915
|
+
|
|
18916
|
+
describe('#postConfig - errors', () => {
|
|
18917
|
+
it('should have a postConfig function', (done) => {
|
|
18918
|
+
try {
|
|
18919
|
+
assert.equal(true, typeof a.postConfig === 'function');
|
|
18920
|
+
done();
|
|
18921
|
+
} catch (error) {
|
|
18922
|
+
log.error(`Test Failure: ${error}`);
|
|
18923
|
+
done(error);
|
|
18924
|
+
}
|
|
18925
|
+
}).timeout(attemptTimeout);
|
|
18926
|
+
});
|
|
18927
|
+
|
|
18928
|
+
describe('#patchConfig - errors', () => {
|
|
18929
|
+
it('should have a patchConfig function', (done) => {
|
|
18930
|
+
try {
|
|
18931
|
+
assert.equal(true, typeof a.patchConfig === 'function');
|
|
18932
|
+
done();
|
|
18933
|
+
} catch (error) {
|
|
18934
|
+
log.error(`Test Failure: ${error}`);
|
|
18935
|
+
done(error);
|
|
18936
|
+
}
|
|
18937
|
+
}).timeout(attemptTimeout);
|
|
18938
|
+
});
|
|
18939
|
+
|
|
18940
|
+
describe('#deleteConfig - errors', () => {
|
|
18941
|
+
it('should have a deleteConfig function', (done) => {
|
|
18942
|
+
try {
|
|
18943
|
+
assert.equal(true, typeof a.deleteConfig === 'function');
|
|
18944
|
+
done();
|
|
18945
|
+
} catch (error) {
|
|
18946
|
+
log.error(`Test Failure: ${error}`);
|
|
18947
|
+
done(error);
|
|
18948
|
+
}
|
|
18949
|
+
}).timeout(attemptTimeout);
|
|
18950
|
+
});
|
|
18951
|
+
|
|
18952
|
+
describe('#getTransportControllersV2 - errors', () => {
|
|
18953
|
+
it('should have a getTransportControllersV2 function', (done) => {
|
|
18954
|
+
try {
|
|
18955
|
+
assert.equal(true, typeof a.getTransportControllersV2 === 'function');
|
|
18956
|
+
done();
|
|
18957
|
+
} catch (error) {
|
|
18958
|
+
log.error(`Test Failure: ${error}`);
|
|
18959
|
+
done(error);
|
|
18960
|
+
}
|
|
18961
|
+
}).timeout(attemptTimeout);
|
|
18962
|
+
});
|
|
18963
|
+
|
|
18964
|
+
describe('#postTransportControllersV2 - errors', () => {
|
|
18965
|
+
it('should have a postTransportControllersV2 function', (done) => {
|
|
18966
|
+
try {
|
|
18967
|
+
assert.equal(true, typeof a.postTransportControllersV2 === 'function');
|
|
18968
|
+
done();
|
|
18969
|
+
} catch (error) {
|
|
18970
|
+
log.error(`Test Failure: ${error}`);
|
|
18971
|
+
done(error);
|
|
18972
|
+
}
|
|
18973
|
+
}).timeout(attemptTimeout);
|
|
18974
|
+
});
|
|
18975
|
+
|
|
18976
|
+
describe('#getTransportControllersV2TransportControllerIndex - errors', () => {
|
|
18977
|
+
it('should have a getTransportControllersV2TransportControllerIndex function', (done) => {
|
|
18978
|
+
try {
|
|
18979
|
+
assert.equal(true, typeof a.getTransportControllersV2TransportControllerIndex === 'function');
|
|
18980
|
+
done();
|
|
18981
|
+
} catch (error) {
|
|
18982
|
+
log.error(`Test Failure: ${error}`);
|
|
18983
|
+
done(error);
|
|
18984
|
+
}
|
|
18985
|
+
}).timeout(attemptTimeout);
|
|
18986
|
+
it('should error if - missing transportControllerIndex', (done) => {
|
|
18987
|
+
try {
|
|
18988
|
+
a.getTransportControllersV2TransportControllerIndex(null, (data, error) => {
|
|
18989
|
+
try {
|
|
18990
|
+
const displayE = 'transportControllerIndex is required';
|
|
18991
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTransportControllersV2TransportControllerIndex', displayE);
|
|
18992
|
+
done();
|
|
18993
|
+
} catch (err) {
|
|
18994
|
+
log.error(`Test Failure: ${err}`);
|
|
18995
|
+
done(err);
|
|
18996
|
+
}
|
|
18997
|
+
});
|
|
18998
|
+
} catch (error) {
|
|
18999
|
+
log.error(`Adapter Exception: ${error}`);
|
|
19000
|
+
done(error);
|
|
19001
|
+
}
|
|
19002
|
+
}).timeout(attemptTimeout);
|
|
19003
|
+
});
|
|
19004
|
+
|
|
19005
|
+
describe('#putTransportControllersV2TransportControllerIndex - errors', () => {
|
|
19006
|
+
it('should have a putTransportControllersV2TransportControllerIndex function', (done) => {
|
|
19007
|
+
try {
|
|
19008
|
+
assert.equal(true, typeof a.putTransportControllersV2TransportControllerIndex === 'function');
|
|
19009
|
+
done();
|
|
19010
|
+
} catch (error) {
|
|
19011
|
+
log.error(`Test Failure: ${error}`);
|
|
19012
|
+
done(error);
|
|
19013
|
+
}
|
|
19014
|
+
}).timeout(attemptTimeout);
|
|
19015
|
+
it('should error if - missing transportControllerIndex', (done) => {
|
|
19016
|
+
try {
|
|
19017
|
+
a.putTransportControllersV2TransportControllerIndex(null, null, (data, error) => {
|
|
19018
|
+
try {
|
|
19019
|
+
const displayE = 'transportControllerIndex is required';
|
|
19020
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-putTransportControllersV2TransportControllerIndex', displayE);
|
|
19021
|
+
done();
|
|
19022
|
+
} catch (err) {
|
|
19023
|
+
log.error(`Test Failure: ${err}`);
|
|
19024
|
+
done(err);
|
|
19025
|
+
}
|
|
19026
|
+
});
|
|
19027
|
+
} catch (error) {
|
|
19028
|
+
log.error(`Adapter Exception: ${error}`);
|
|
19029
|
+
done(error);
|
|
19030
|
+
}
|
|
19031
|
+
}).timeout(attemptTimeout);
|
|
19032
|
+
});
|
|
19033
|
+
|
|
19034
|
+
describe('#deleteTransportControllersV2TransportControllerIndex - errors', () => {
|
|
19035
|
+
it('should have a deleteTransportControllersV2TransportControllerIndex function', (done) => {
|
|
19036
|
+
try {
|
|
19037
|
+
assert.equal(true, typeof a.deleteTransportControllersV2TransportControllerIndex === 'function');
|
|
19038
|
+
done();
|
|
19039
|
+
} catch (error) {
|
|
19040
|
+
log.error(`Test Failure: ${error}`);
|
|
19041
|
+
done(error);
|
|
19042
|
+
}
|
|
19043
|
+
}).timeout(attemptTimeout);
|
|
19044
|
+
it('should error if - missing transportControllerIndex', (done) => {
|
|
19045
|
+
try {
|
|
19046
|
+
a.deleteTransportControllersV2TransportControllerIndex(null, (data, error) => {
|
|
19047
|
+
try {
|
|
19048
|
+
const displayE = 'transportControllerIndex is required';
|
|
19049
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTransportControllersV2TransportControllerIndex', displayE);
|
|
19050
|
+
done();
|
|
19051
|
+
} catch (err) {
|
|
19052
|
+
log.error(`Test Failure: ${err}`);
|
|
19053
|
+
done(err);
|
|
19054
|
+
}
|
|
19055
|
+
});
|
|
19056
|
+
} catch (error) {
|
|
19057
|
+
log.error(`Adapter Exception: ${error}`);
|
|
19058
|
+
done(error);
|
|
19059
|
+
}
|
|
19060
|
+
}).timeout(attemptTimeout);
|
|
19061
|
+
});
|
|
19062
|
+
|
|
19063
|
+
describe('#getTransportControllerGroupsV2 - errors', () => {
|
|
19064
|
+
it('should have a getTransportControllerGroupsV2 function', (done) => {
|
|
19065
|
+
try {
|
|
19066
|
+
assert.equal(true, typeof a.getTransportControllerGroupsV2 === 'function');
|
|
19067
|
+
done();
|
|
19068
|
+
} catch (error) {
|
|
19069
|
+
log.error(`Test Failure: ${error}`);
|
|
19070
|
+
done(error);
|
|
19071
|
+
}
|
|
19072
|
+
}).timeout(attemptTimeout);
|
|
19073
|
+
});
|
|
19074
|
+
|
|
19075
|
+
describe('#postTransportControllerGroupsV2 - errors', () => {
|
|
19076
|
+
it('should have a postTransportControllerGroupsV2 function', (done) => {
|
|
19077
|
+
try {
|
|
19078
|
+
assert.equal(true, typeof a.postTransportControllerGroupsV2 === 'function');
|
|
19079
|
+
done();
|
|
19080
|
+
} catch (error) {
|
|
19081
|
+
log.error(`Test Failure: ${error}`);
|
|
19082
|
+
done(error);
|
|
19083
|
+
}
|
|
19084
|
+
}).timeout(attemptTimeout);
|
|
19085
|
+
});
|
|
19086
|
+
|
|
19087
|
+
describe('#deleteTransportControllerGroupsV2 - errors', () => {
|
|
19088
|
+
it('should have a deleteTransportControllerGroupsV2 function', (done) => {
|
|
19089
|
+
try {
|
|
19090
|
+
assert.equal(true, typeof a.deleteTransportControllerGroupsV2 === 'function');
|
|
19091
|
+
done();
|
|
19092
|
+
} catch (error) {
|
|
19093
|
+
log.error(`Test Failure: ${error}`);
|
|
19094
|
+
done(error);
|
|
19095
|
+
}
|
|
19096
|
+
}).timeout(attemptTimeout);
|
|
19097
|
+
});
|
|
19098
|
+
|
|
19099
|
+
describe('#getTransportControllerGroupsV2TransportControllerGroupName - errors', () => {
|
|
19100
|
+
it('should have a getTransportControllerGroupsV2TransportControllerGroupName function', (done) => {
|
|
19101
|
+
try {
|
|
19102
|
+
assert.equal(true, typeof a.getTransportControllerGroupsV2TransportControllerGroupName === 'function');
|
|
19103
|
+
done();
|
|
19104
|
+
} catch (error) {
|
|
19105
|
+
log.error(`Test Failure: ${error}`);
|
|
19106
|
+
done(error);
|
|
19107
|
+
}
|
|
19108
|
+
}).timeout(attemptTimeout);
|
|
19109
|
+
it('should error if - missing transportControllerGroupName', (done) => {
|
|
19110
|
+
try {
|
|
19111
|
+
a.getTransportControllerGroupsV2TransportControllerGroupName(null, (data, error) => {
|
|
19112
|
+
try {
|
|
19113
|
+
const displayE = 'transportControllerGroupName is required';
|
|
19114
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getTransportControllerGroupsV2TransportControllerGroupName', displayE);
|
|
19115
|
+
done();
|
|
19116
|
+
} catch (err) {
|
|
19117
|
+
log.error(`Test Failure: ${err}`);
|
|
19118
|
+
done(err);
|
|
19119
|
+
}
|
|
19120
|
+
});
|
|
19121
|
+
} catch (error) {
|
|
19122
|
+
log.error(`Adapter Exception: ${error}`);
|
|
19123
|
+
done(error);
|
|
19124
|
+
}
|
|
19125
|
+
}).timeout(attemptTimeout);
|
|
19126
|
+
});
|
|
19127
|
+
|
|
19128
|
+
describe('#putTransportControllerGroupsV2TransportControllerGroupName - errors', () => {
|
|
19129
|
+
it('should have a putTransportControllerGroupsV2TransportControllerGroupName function', (done) => {
|
|
19130
|
+
try {
|
|
19131
|
+
assert.equal(true, typeof a.putTransportControllerGroupsV2TransportControllerGroupName === 'function');
|
|
19132
|
+
done();
|
|
19133
|
+
} catch (error) {
|
|
19134
|
+
log.error(`Test Failure: ${error}`);
|
|
19135
|
+
done(error);
|
|
19136
|
+
}
|
|
19137
|
+
}).timeout(attemptTimeout);
|
|
19138
|
+
it('should error if - missing transportControllerGroupName', (done) => {
|
|
19139
|
+
try {
|
|
19140
|
+
a.putTransportControllerGroupsV2TransportControllerGroupName(null, null, (data, error) => {
|
|
19141
|
+
try {
|
|
19142
|
+
const displayE = 'transportControllerGroupName is required';
|
|
19143
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-putTransportControllerGroupsV2TransportControllerGroupName', displayE);
|
|
19144
|
+
done();
|
|
19145
|
+
} catch (err) {
|
|
19146
|
+
log.error(`Test Failure: ${err}`);
|
|
19147
|
+
done(err);
|
|
19148
|
+
}
|
|
19149
|
+
});
|
|
19150
|
+
} catch (error) {
|
|
19151
|
+
log.error(`Adapter Exception: ${error}`);
|
|
19152
|
+
done(error);
|
|
19153
|
+
}
|
|
19154
|
+
}).timeout(attemptTimeout);
|
|
19155
|
+
});
|
|
19156
|
+
|
|
19157
|
+
describe('#postTransportControllerGroupsV2TransportControllerGroupName - errors', () => {
|
|
19158
|
+
it('should have a postTransportControllerGroupsV2TransportControllerGroupName function', (done) => {
|
|
19159
|
+
try {
|
|
19160
|
+
assert.equal(true, typeof a.postTransportControllerGroupsV2TransportControllerGroupName === 'function');
|
|
19161
|
+
done();
|
|
19162
|
+
} catch (error) {
|
|
19163
|
+
log.error(`Test Failure: ${error}`);
|
|
19164
|
+
done(error);
|
|
19165
|
+
}
|
|
19166
|
+
}).timeout(attemptTimeout);
|
|
19167
|
+
it('should error if - missing transportControllerGroupName', (done) => {
|
|
19168
|
+
try {
|
|
19169
|
+
a.postTransportControllerGroupsV2TransportControllerGroupName(null, null, (data, error) => {
|
|
19170
|
+
try {
|
|
19171
|
+
const displayE = 'transportControllerGroupName is required';
|
|
19172
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-postTransportControllerGroupsV2TransportControllerGroupName', displayE);
|
|
19173
|
+
done();
|
|
19174
|
+
} catch (err) {
|
|
19175
|
+
log.error(`Test Failure: ${err}`);
|
|
19176
|
+
done(err);
|
|
19177
|
+
}
|
|
19178
|
+
});
|
|
19179
|
+
} catch (error) {
|
|
19180
|
+
log.error(`Adapter Exception: ${error}`);
|
|
19181
|
+
done(error);
|
|
19182
|
+
}
|
|
19183
|
+
}).timeout(attemptTimeout);
|
|
19184
|
+
});
|
|
19185
|
+
|
|
19186
|
+
describe('#deleteTransportControllerGroupsV2TransportControllerGroupName - errors', () => {
|
|
19187
|
+
it('should have a deleteTransportControllerGroupsV2TransportControllerGroupName function', (done) => {
|
|
19188
|
+
try {
|
|
19189
|
+
assert.equal(true, typeof a.deleteTransportControllerGroupsV2TransportControllerGroupName === 'function');
|
|
19190
|
+
done();
|
|
19191
|
+
} catch (error) {
|
|
19192
|
+
log.error(`Test Failure: ${error}`);
|
|
19193
|
+
done(error);
|
|
19194
|
+
}
|
|
19195
|
+
}).timeout(attemptTimeout);
|
|
19196
|
+
it('should error if - missing transportControllerGroupName', (done) => {
|
|
19197
|
+
try {
|
|
19198
|
+
a.deleteTransportControllerGroupsV2TransportControllerGroupName(null, (data, error) => {
|
|
19199
|
+
try {
|
|
19200
|
+
const displayE = 'transportControllerGroupName is required';
|
|
19201
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteTransportControllerGroupsV2TransportControllerGroupName', displayE);
|
|
19202
|
+
done();
|
|
19203
|
+
} catch (err) {
|
|
19204
|
+
log.error(`Test Failure: ${err}`);
|
|
19205
|
+
done(err);
|
|
19206
|
+
}
|
|
19207
|
+
});
|
|
19208
|
+
} catch (error) {
|
|
19209
|
+
log.error(`Adapter Exception: ${error}`);
|
|
19210
|
+
done(error);
|
|
19211
|
+
}
|
|
19212
|
+
}).timeout(attemptTimeout);
|
|
19213
|
+
});
|
|
19214
|
+
|
|
19215
|
+
describe('#getNetconfV2Profiles - errors', () => {
|
|
19216
|
+
it('should have a getNetconfV2Profiles function', (done) => {
|
|
19217
|
+
try {
|
|
19218
|
+
assert.equal(true, typeof a.getNetconfV2Profiles === 'function');
|
|
19219
|
+
done();
|
|
19220
|
+
} catch (error) {
|
|
19221
|
+
log.error(`Test Failure: ${error}`);
|
|
19222
|
+
done(error);
|
|
19223
|
+
}
|
|
19224
|
+
}).timeout(attemptTimeout);
|
|
19225
|
+
});
|
|
19226
|
+
|
|
19227
|
+
describe('#postNetconfV2Profiles - errors', () => {
|
|
19228
|
+
it('should have a postNetconfV2Profiles function', (done) => {
|
|
19229
|
+
try {
|
|
19230
|
+
assert.equal(true, typeof a.postNetconfV2Profiles === 'function');
|
|
19231
|
+
done();
|
|
19232
|
+
} catch (error) {
|
|
19233
|
+
log.error(`Test Failure: ${error}`);
|
|
19234
|
+
done(error);
|
|
19235
|
+
}
|
|
19236
|
+
}).timeout(attemptTimeout);
|
|
19237
|
+
});
|
|
19238
|
+
|
|
19239
|
+
describe('#putNetconfV2Profiles - errors', () => {
|
|
19240
|
+
it('should have a putNetconfV2Profiles function', (done) => {
|
|
19241
|
+
try {
|
|
19242
|
+
assert.equal(true, typeof a.putNetconfV2Profiles === 'function');
|
|
19243
|
+
done();
|
|
19244
|
+
} catch (error) {
|
|
19245
|
+
log.error(`Test Failure: ${error}`);
|
|
19246
|
+
done(error);
|
|
19247
|
+
}
|
|
19248
|
+
}).timeout(attemptTimeout);
|
|
19249
|
+
});
|
|
19250
|
+
|
|
19251
|
+
describe('#deleteNetconfV2Profiles - errors', () => {
|
|
19252
|
+
it('should have a deleteNetconfV2Profiles function', (done) => {
|
|
19253
|
+
try {
|
|
19254
|
+
assert.equal(true, typeof a.deleteNetconfV2Profiles === 'function');
|
|
19255
|
+
done();
|
|
19256
|
+
} catch (error) {
|
|
19257
|
+
log.error(`Test Failure: ${error}`);
|
|
19258
|
+
done(error);
|
|
19259
|
+
}
|
|
19260
|
+
}).timeout(attemptTimeout);
|
|
19261
|
+
});
|
|
19262
|
+
|
|
19263
|
+
describe('#postNetconfV2CollectionLiveNetwork - errors', () => {
|
|
19264
|
+
it('should have a postNetconfV2CollectionLiveNetwork function', (done) => {
|
|
19265
|
+
try {
|
|
19266
|
+
assert.equal(true, typeof a.postNetconfV2CollectionLiveNetwork === 'function');
|
|
19267
|
+
done();
|
|
19268
|
+
} catch (error) {
|
|
19269
|
+
log.error(`Test Failure: ${error}`);
|
|
19270
|
+
done(error);
|
|
19271
|
+
}
|
|
19272
|
+
}).timeout(attemptTimeout);
|
|
19273
|
+
});
|
|
19274
|
+
|
|
19275
|
+
describe('#getNetconfV2CollectionCollectionJobId - errors', () => {
|
|
19276
|
+
it('should have a getNetconfV2CollectionCollectionJobId function', (done) => {
|
|
19277
|
+
try {
|
|
19278
|
+
assert.equal(true, typeof a.getNetconfV2CollectionCollectionJobId === 'function');
|
|
19279
|
+
done();
|
|
19280
|
+
} catch (error) {
|
|
19281
|
+
log.error(`Test Failure: ${error}`);
|
|
19282
|
+
done(error);
|
|
19283
|
+
}
|
|
19284
|
+
}).timeout(attemptTimeout);
|
|
19285
|
+
it('should error if - missing collectionJobId', (done) => {
|
|
19286
|
+
try {
|
|
19287
|
+
a.getNetconfV2CollectionCollectionJobId(null, (data, error) => {
|
|
19288
|
+
try {
|
|
19289
|
+
const displayE = 'collectionJobId is required';
|
|
19290
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-getNetconfV2CollectionCollectionJobId', displayE);
|
|
19291
|
+
done();
|
|
19292
|
+
} catch (err) {
|
|
19293
|
+
log.error(`Test Failure: ${err}`);
|
|
19294
|
+
done(err);
|
|
19295
|
+
}
|
|
19296
|
+
});
|
|
19297
|
+
} catch (error) {
|
|
19298
|
+
log.error(`Adapter Exception: ${error}`);
|
|
19299
|
+
done(error);
|
|
19300
|
+
}
|
|
19301
|
+
}).timeout(attemptTimeout);
|
|
19302
|
+
});
|
|
14615
19303
|
});
|
|
14616
19304
|
});
|