@itentialopensource/adapter-netbox_v33 0.1.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23527,5 +23527,1280 @@ describe('[integration] Netbox_v33 Adapter Test', () => {
23527
23527
  }
23528
23528
  }).timeout(attemptTimeout);
23529
23529
  });
23530
+
23531
+ describe('#getDcimVirtualDeviceContexts - errors', () => {
23532
+ it('should work if integrated or standalone with mockdata', (done) => {
23533
+ try {
23534
+ a.getDcimVirtualDeviceContexts(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
23535
+ try {
23536
+ if (stub) {
23537
+ runCommonAsserts(data, error);
23538
+ assert.equal(2, data.response.count);
23539
+ assert.equal('string', data.response.next);
23540
+ assert.equal('string', data.response.previous);
23541
+ assert.equal(true, Array.isArray(data.response.results));
23542
+ } else {
23543
+ runCommonAsserts(data, error);
23544
+ }
23545
+ saveMockData('Dcim', 'getDcimVirtualDeviceContexts', 'default', data);
23546
+ done();
23547
+ } catch (err) {
23548
+ log.error(`Test Failure: ${err}`);
23549
+ done(err);
23550
+ }
23551
+ });
23552
+ } catch (error) {
23553
+ log.error(`Adapter Exception: ${error}`);
23554
+ done(error);
23555
+ }
23556
+ }).timeout(attemptTimeout);
23557
+ });
23558
+
23559
+ const dcimPostDcimVirtualDeviceContextsBodyParam = {
23560
+ name: 'string',
23561
+ status: 'offline'
23562
+ };
23563
+ describe('#postDcimVirtualDeviceContexts - errors', () => {
23564
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
23565
+ try {
23566
+ a.postDcimVirtualDeviceContexts(dcimPostDcimVirtualDeviceContextsBodyParam, (data, error) => {
23567
+ try {
23568
+ if (stub) {
23569
+ const displayE = 'Error 400 received on request';
23570
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
23571
+ } else {
23572
+ runCommonAsserts(data, error);
23573
+ }
23574
+ saveMockData('Dcim', 'postDcimVirtualDeviceContexts', 'default', data);
23575
+ done();
23576
+ } catch (err) {
23577
+ log.error(`Test Failure: ${err}`);
23578
+ done(err);
23579
+ }
23580
+ });
23581
+ } catch (error) {
23582
+ log.error(`Adapter Exception: ${error}`);
23583
+ done(error);
23584
+ }
23585
+ }).timeout(attemptTimeout);
23586
+ });
23587
+
23588
+ const dcimPutDcimVirtualDeviceContextsBodyParam = {
23589
+ name: 'string',
23590
+ status: 'offline'
23591
+ };
23592
+ describe('#putDcimVirtualDeviceContexts - errors', () => {
23593
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
23594
+ try {
23595
+ a.putDcimVirtualDeviceContexts(dcimPutDcimVirtualDeviceContextsBodyParam, (data, error) => {
23596
+ try {
23597
+ if (stub) {
23598
+ const displayE = 'Error 400 received on request';
23599
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
23600
+ } else {
23601
+ runCommonAsserts(data, error);
23602
+ }
23603
+ saveMockData('Dcim', 'putDcimVirtualDeviceContexts', 'default', data);
23604
+ done();
23605
+ } catch (err) {
23606
+ log.error(`Test Failure: ${err}`);
23607
+ done(err);
23608
+ }
23609
+ });
23610
+ } catch (error) {
23611
+ log.error(`Adapter Exception: ${error}`);
23612
+ done(error);
23613
+ }
23614
+ }).timeout(attemptTimeout);
23615
+ });
23616
+
23617
+ const dcimPatchDcimVirtualDeviceContextsBodyParam = {
23618
+ name: 'string',
23619
+ status: 'planned'
23620
+ };
23621
+ describe('#patchDcimVirtualDeviceContexts - errors', () => {
23622
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
23623
+ try {
23624
+ a.patchDcimVirtualDeviceContexts(dcimPatchDcimVirtualDeviceContextsBodyParam, (data, error) => {
23625
+ try {
23626
+ if (stub) {
23627
+ const displayE = 'Error 400 received on request';
23628
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
23629
+ } else {
23630
+ runCommonAsserts(data, error);
23631
+ }
23632
+ saveMockData('Dcim', 'patchDcimVirtualDeviceContexts', 'default', data);
23633
+ done();
23634
+ } catch (err) {
23635
+ log.error(`Test Failure: ${err}`);
23636
+ done(err);
23637
+ }
23638
+ });
23639
+ } catch (error) {
23640
+ log.error(`Adapter Exception: ${error}`);
23641
+ done(error);
23642
+ }
23643
+ }).timeout(attemptTimeout);
23644
+ });
23645
+
23646
+ describe('#deleteDcimVirtualDeviceContexts - errors', () => {
23647
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
23648
+ try {
23649
+ a.deleteDcimVirtualDeviceContexts((data, error) => {
23650
+ try {
23651
+ if (stub) {
23652
+ const displayE = 'Error 400 received on request';
23653
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
23654
+ } else {
23655
+ runCommonAsserts(data, error);
23656
+ }
23657
+ saveMockData('Dcim', 'deleteDcimVirtualDeviceContexts', 'default', data);
23658
+ done();
23659
+ } catch (err) {
23660
+ log.error(`Test Failure: ${err}`);
23661
+ done(err);
23662
+ }
23663
+ });
23664
+ } catch (error) {
23665
+ log.error(`Adapter Exception: ${error}`);
23666
+ done(error);
23667
+ }
23668
+ }).timeout(attemptTimeout);
23669
+ });
23670
+
23671
+ describe('#getDcimVirtualDeviceContextsId - errors', () => {
23672
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
23673
+ try {
23674
+ a.getDcimVirtualDeviceContextsId(555, (data, error) => {
23675
+ try {
23676
+ if (stub) {
23677
+ const displayE = 'Error 400 received on request';
23678
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
23679
+ } else {
23680
+ runCommonAsserts(data, error);
23681
+ }
23682
+ saveMockData('Dcim', 'getDcimVirtualDeviceContextsId', 'default', data);
23683
+ done();
23684
+ } catch (err) {
23685
+ log.error(`Test Failure: ${err}`);
23686
+ done(err);
23687
+ }
23688
+ });
23689
+ } catch (error) {
23690
+ log.error(`Adapter Exception: ${error}`);
23691
+ done(error);
23692
+ }
23693
+ }).timeout(attemptTimeout);
23694
+ });
23695
+
23696
+ const dcimPutDcimVirtualDeviceContextsIdBodyParam = {
23697
+ name: 'string',
23698
+ status: 'planned'
23699
+ };
23700
+ describe('#putDcimVirtualDeviceContextsId - errors', () => {
23701
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
23702
+ try {
23703
+ a.putDcimVirtualDeviceContextsId(555, dcimPutDcimVirtualDeviceContextsIdBodyParam, (data, error) => {
23704
+ try {
23705
+ if (stub) {
23706
+ const displayE = 'Error 400 received on request';
23707
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
23708
+ } else {
23709
+ runCommonAsserts(data, error);
23710
+ }
23711
+ saveMockData('Dcim', 'putDcimVirtualDeviceContextsId', 'default', data);
23712
+ done();
23713
+ } catch (err) {
23714
+ log.error(`Test Failure: ${err}`);
23715
+ done(err);
23716
+ }
23717
+ });
23718
+ } catch (error) {
23719
+ log.error(`Adapter Exception: ${error}`);
23720
+ done(error);
23721
+ }
23722
+ }).timeout(attemptTimeout);
23723
+ });
23724
+
23725
+ const dcimPatchDcimVirtualDeviceContextsIdBodyParam = {
23726
+ name: 'string',
23727
+ status: 'offline'
23728
+ };
23729
+ describe('#patchDcimVirtualDeviceContextsId - errors', () => {
23730
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
23731
+ try {
23732
+ a.patchDcimVirtualDeviceContextsId(555, dcimPatchDcimVirtualDeviceContextsIdBodyParam, (data, error) => {
23733
+ try {
23734
+ if (stub) {
23735
+ const displayE = 'Error 400 received on request';
23736
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
23737
+ } else {
23738
+ runCommonAsserts(data, error);
23739
+ }
23740
+ saveMockData('Dcim', 'patchDcimVirtualDeviceContextsId', 'default', data);
23741
+ done();
23742
+ } catch (err) {
23743
+ log.error(`Test Failure: ${err}`);
23744
+ done(err);
23745
+ }
23746
+ });
23747
+ } catch (error) {
23748
+ log.error(`Adapter Exception: ${error}`);
23749
+ done(error);
23750
+ }
23751
+ }).timeout(attemptTimeout);
23752
+ });
23753
+
23754
+ describe('#deleteDcimVirtualDeviceContextsId - errors', () => {
23755
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
23756
+ try {
23757
+ a.deleteDcimVirtualDeviceContextsId(555, (data, error) => {
23758
+ try {
23759
+ if (stub) {
23760
+ const displayE = 'Error 400 received on request';
23761
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
23762
+ } else {
23763
+ runCommonAsserts(data, error);
23764
+ }
23765
+ saveMockData('Dcim', 'deleteDcimVirtualDeviceContextsId', 'default', data);
23766
+ done();
23767
+ } catch (err) {
23768
+ log.error(`Test Failure: ${err}`);
23769
+ done(err);
23770
+ }
23771
+ });
23772
+ } catch (error) {
23773
+ log.error(`Adapter Exception: ${error}`);
23774
+ done(error);
23775
+ }
23776
+ }).timeout(attemptTimeout);
23777
+ });
23778
+
23779
+ describe('#getExtrasSavedFilters - errors', () => {
23780
+ it('should work if integrated or standalone with mockdata', (done) => {
23781
+ try {
23782
+ a.getExtrasSavedFilters(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
23783
+ try {
23784
+ if (stub) {
23785
+ runCommonAsserts(data, error);
23786
+ assert.equal(8, data.response.count);
23787
+ assert.equal('string', data.response.next);
23788
+ assert.equal('string', data.response.previous);
23789
+ assert.equal(true, Array.isArray(data.response.results));
23790
+ } else {
23791
+ runCommonAsserts(data, error);
23792
+ }
23793
+ saveMockData('Extras', 'getExtrasSavedFilters', 'default', data);
23794
+ done();
23795
+ } catch (err) {
23796
+ log.error(`Test Failure: ${err}`);
23797
+ done(err);
23798
+ }
23799
+ });
23800
+ } catch (error) {
23801
+ log.error(`Adapter Exception: ${error}`);
23802
+ done(error);
23803
+ }
23804
+ }).timeout(attemptTimeout);
23805
+ });
23806
+
23807
+ const extrasPostExtrasSavedFiltersBodyParam = {
23808
+ content_types: [
23809
+ 'string'
23810
+ ],
23811
+ name: 'string',
23812
+ slug: 'string',
23813
+ parameters: {}
23814
+ };
23815
+ describe('#postExtrasSavedFilters - errors', () => {
23816
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
23817
+ try {
23818
+ a.postExtrasSavedFilters(extrasPostExtrasSavedFiltersBodyParam, (data, error) => {
23819
+ try {
23820
+ if (stub) {
23821
+ const displayE = 'Error 400 received on request';
23822
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
23823
+ } else {
23824
+ runCommonAsserts(data, error);
23825
+ }
23826
+ saveMockData('Extras', 'postExtrasSavedFilters', 'default', data);
23827
+ done();
23828
+ } catch (err) {
23829
+ log.error(`Test Failure: ${err}`);
23830
+ done(err);
23831
+ }
23832
+ });
23833
+ } catch (error) {
23834
+ log.error(`Adapter Exception: ${error}`);
23835
+ done(error);
23836
+ }
23837
+ }).timeout(attemptTimeout);
23838
+ });
23839
+
23840
+ const extrasPutExtrasSavedFiltersBodyParam = {
23841
+ content_types: [
23842
+ 'string'
23843
+ ],
23844
+ name: 'string',
23845
+ slug: 'string',
23846
+ parameters: {}
23847
+ };
23848
+ describe('#putExtrasSavedFilters - errors', () => {
23849
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
23850
+ try {
23851
+ a.putExtrasSavedFilters(extrasPutExtrasSavedFiltersBodyParam, (data, error) => {
23852
+ try {
23853
+ if (stub) {
23854
+ const displayE = 'Error 400 received on request';
23855
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
23856
+ } else {
23857
+ runCommonAsserts(data, error);
23858
+ }
23859
+ saveMockData('Extras', 'putExtrasSavedFilters', 'default', data);
23860
+ done();
23861
+ } catch (err) {
23862
+ log.error(`Test Failure: ${err}`);
23863
+ done(err);
23864
+ }
23865
+ });
23866
+ } catch (error) {
23867
+ log.error(`Adapter Exception: ${error}`);
23868
+ done(error);
23869
+ }
23870
+ }).timeout(attemptTimeout);
23871
+ });
23872
+
23873
+ const extrasPatchExtrasSavedFiltersBodyParam = {
23874
+ content_types: [
23875
+ 'string'
23876
+ ],
23877
+ name: 'string',
23878
+ slug: 'string',
23879
+ parameters: {}
23880
+ };
23881
+ describe('#patchExtrasSavedFilters - errors', () => {
23882
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
23883
+ try {
23884
+ a.patchExtrasSavedFilters(extrasPatchExtrasSavedFiltersBodyParam, (data, error) => {
23885
+ try {
23886
+ if (stub) {
23887
+ const displayE = 'Error 400 received on request';
23888
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
23889
+ } else {
23890
+ runCommonAsserts(data, error);
23891
+ }
23892
+ saveMockData('Extras', 'patchExtrasSavedFilters', 'default', data);
23893
+ done();
23894
+ } catch (err) {
23895
+ log.error(`Test Failure: ${err}`);
23896
+ done(err);
23897
+ }
23898
+ });
23899
+ } catch (error) {
23900
+ log.error(`Adapter Exception: ${error}`);
23901
+ done(error);
23902
+ }
23903
+ }).timeout(attemptTimeout);
23904
+ });
23905
+
23906
+ describe('#deleteExtrasSavedFilters - errors', () => {
23907
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
23908
+ try {
23909
+ a.deleteExtrasSavedFilters((data, error) => {
23910
+ try {
23911
+ if (stub) {
23912
+ const displayE = 'Error 400 received on request';
23913
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
23914
+ } else {
23915
+ runCommonAsserts(data, error);
23916
+ }
23917
+ saveMockData('Extras', 'deleteExtrasSavedFilters', 'default', data);
23918
+ done();
23919
+ } catch (err) {
23920
+ log.error(`Test Failure: ${err}`);
23921
+ done(err);
23922
+ }
23923
+ });
23924
+ } catch (error) {
23925
+ log.error(`Adapter Exception: ${error}`);
23926
+ done(error);
23927
+ }
23928
+ }).timeout(attemptTimeout);
23929
+ });
23930
+
23931
+ describe('#getExtrasSavedFiltersId - errors', () => {
23932
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
23933
+ try {
23934
+ a.getExtrasSavedFiltersId(555, (data, error) => {
23935
+ try {
23936
+ if (stub) {
23937
+ const displayE = 'Error 400 received on request';
23938
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
23939
+ } else {
23940
+ runCommonAsserts(data, error);
23941
+ }
23942
+ saveMockData('Extras', 'getExtrasSavedFiltersId', 'default', data);
23943
+ done();
23944
+ } catch (err) {
23945
+ log.error(`Test Failure: ${err}`);
23946
+ done(err);
23947
+ }
23948
+ });
23949
+ } catch (error) {
23950
+ log.error(`Adapter Exception: ${error}`);
23951
+ done(error);
23952
+ }
23953
+ }).timeout(attemptTimeout);
23954
+ });
23955
+
23956
+ const extrasPutExtrasSavedFiltersIdBodyParam = {
23957
+ content_types: [
23958
+ 'string'
23959
+ ],
23960
+ name: 'string',
23961
+ slug: 'string',
23962
+ parameters: {}
23963
+ };
23964
+ describe('#putExtrasSavedFiltersId - errors', () => {
23965
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
23966
+ try {
23967
+ a.putExtrasSavedFiltersId(555, extrasPutExtrasSavedFiltersIdBodyParam, (data, error) => {
23968
+ try {
23969
+ if (stub) {
23970
+ const displayE = 'Error 400 received on request';
23971
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
23972
+ } else {
23973
+ runCommonAsserts(data, error);
23974
+ }
23975
+ saveMockData('Extras', 'putExtrasSavedFiltersId', 'default', data);
23976
+ done();
23977
+ } catch (err) {
23978
+ log.error(`Test Failure: ${err}`);
23979
+ done(err);
23980
+ }
23981
+ });
23982
+ } catch (error) {
23983
+ log.error(`Adapter Exception: ${error}`);
23984
+ done(error);
23985
+ }
23986
+ }).timeout(attemptTimeout);
23987
+ });
23988
+
23989
+ const extrasPatchExtrasSavedFiltersIdBodyParam = {
23990
+ content_types: [
23991
+ 'string'
23992
+ ],
23993
+ name: 'string',
23994
+ slug: 'string',
23995
+ parameters: {}
23996
+ };
23997
+ describe('#patchExtrasSavedFiltersId - errors', () => {
23998
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
23999
+ try {
24000
+ a.patchExtrasSavedFiltersId(555, extrasPatchExtrasSavedFiltersIdBodyParam, (data, error) => {
24001
+ try {
24002
+ if (stub) {
24003
+ const displayE = 'Error 400 received on request';
24004
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
24005
+ } else {
24006
+ runCommonAsserts(data, error);
24007
+ }
24008
+ saveMockData('Extras', 'patchExtrasSavedFiltersId', 'default', data);
24009
+ done();
24010
+ } catch (err) {
24011
+ log.error(`Test Failure: ${err}`);
24012
+ done(err);
24013
+ }
24014
+ });
24015
+ } catch (error) {
24016
+ log.error(`Adapter Exception: ${error}`);
24017
+ done(error);
24018
+ }
24019
+ }).timeout(attemptTimeout);
24020
+ });
24021
+
24022
+ describe('#deleteExtrasSavedFiltersId - errors', () => {
24023
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24024
+ try {
24025
+ a.deleteExtrasSavedFiltersId(555, (data, error) => {
24026
+ try {
24027
+ if (stub) {
24028
+ const displayE = 'Error 400 received on request';
24029
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
24030
+ } else {
24031
+ runCommonAsserts(data, error);
24032
+ }
24033
+ saveMockData('Extras', 'deleteExtrasSavedFiltersId', 'default', data);
24034
+ done();
24035
+ } catch (err) {
24036
+ log.error(`Test Failure: ${err}`);
24037
+ done(err);
24038
+ }
24039
+ });
24040
+ } catch (error) {
24041
+ log.error(`Adapter Exception: ${error}`);
24042
+ done(error);
24043
+ }
24044
+ }).timeout(attemptTimeout);
24045
+ });
24046
+
24047
+ describe('#getPluginsServicePoolsCandidateConfig - errors', () => {
24048
+ it('should work if integrated or standalone with mockdata', (done) => {
24049
+ try {
24050
+ a.getPluginsServicePoolsCandidateConfig(null, null, null, (data, error) => {
24051
+ try {
24052
+ if (stub) {
24053
+ runCommonAsserts(data, error);
24054
+ assert.equal(3, data.response.count);
24055
+ assert.equal('string', data.response.next);
24056
+ assert.equal('string', data.response.previous);
24057
+ assert.equal(true, Array.isArray(data.response.results));
24058
+ } else {
24059
+ runCommonAsserts(data, error);
24060
+ }
24061
+ saveMockData('Plugins', 'getPluginsServicePoolsCandidateConfig', 'default', data);
24062
+ done();
24063
+ } catch (err) {
24064
+ log.error(`Test Failure: ${err}`);
24065
+ done(err);
24066
+ }
24067
+ });
24068
+ } catch (error) {
24069
+ log.error(`Adapter Exception: ${error}`);
24070
+ done(error);
24071
+ }
24072
+ }).timeout(attemptTimeout);
24073
+ });
24074
+
24075
+ const pluginsPostPluginsServicePoolsCandidateConfigBodyParam = {
24076
+ service_order: 5
24077
+ };
24078
+ describe('#postPluginsServicePoolsCandidateConfig - errors', () => {
24079
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24080
+ try {
24081
+ a.postPluginsServicePoolsCandidateConfig(pluginsPostPluginsServicePoolsCandidateConfigBodyParam, (data, error) => {
24082
+ try {
24083
+ if (stub) {
24084
+ const displayE = 'Error 400 received on request';
24085
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
24086
+ } else {
24087
+ runCommonAsserts(data, error);
24088
+ }
24089
+ saveMockData('Plugins', 'postPluginsServicePoolsCandidateConfig', 'default', data);
24090
+ done();
24091
+ } catch (err) {
24092
+ log.error(`Test Failure: ${err}`);
24093
+ done(err);
24094
+ }
24095
+ });
24096
+ } catch (error) {
24097
+ log.error(`Adapter Exception: ${error}`);
24098
+ done(error);
24099
+ }
24100
+ }).timeout(attemptTimeout);
24101
+ });
24102
+
24103
+ const pluginsPutPluginsServicePoolsCandidateConfigBodyParam = {
24104
+ service_order: 6
24105
+ };
24106
+ describe('#putPluginsServicePoolsCandidateConfig - errors', () => {
24107
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24108
+ try {
24109
+ a.putPluginsServicePoolsCandidateConfig(pluginsPutPluginsServicePoolsCandidateConfigBodyParam, (data, error) => {
24110
+ try {
24111
+ if (stub) {
24112
+ const displayE = 'Error 400 received on request';
24113
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
24114
+ } else {
24115
+ runCommonAsserts(data, error);
24116
+ }
24117
+ saveMockData('Plugins', 'putPluginsServicePoolsCandidateConfig', 'default', data);
24118
+ done();
24119
+ } catch (err) {
24120
+ log.error(`Test Failure: ${err}`);
24121
+ done(err);
24122
+ }
24123
+ });
24124
+ } catch (error) {
24125
+ log.error(`Adapter Exception: ${error}`);
24126
+ done(error);
24127
+ }
24128
+ }).timeout(attemptTimeout);
24129
+ });
24130
+
24131
+ const pluginsPatchPluginsServicePoolsCandidateConfigBodyParam = {
24132
+ service_order: 9
24133
+ };
24134
+ describe('#patchPluginsServicePoolsCandidateConfig - errors', () => {
24135
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24136
+ try {
24137
+ a.patchPluginsServicePoolsCandidateConfig(pluginsPatchPluginsServicePoolsCandidateConfigBodyParam, (data, error) => {
24138
+ try {
24139
+ if (stub) {
24140
+ const displayE = 'Error 400 received on request';
24141
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
24142
+ } else {
24143
+ runCommonAsserts(data, error);
24144
+ }
24145
+ saveMockData('Plugins', 'patchPluginsServicePoolsCandidateConfig', 'default', data);
24146
+ done();
24147
+ } catch (err) {
24148
+ log.error(`Test Failure: ${err}`);
24149
+ done(err);
24150
+ }
24151
+ });
24152
+ } catch (error) {
24153
+ log.error(`Adapter Exception: ${error}`);
24154
+ done(error);
24155
+ }
24156
+ }).timeout(attemptTimeout);
24157
+ });
24158
+
24159
+ describe('#deletePluginsServicePoolsCandidateConfig - errors', () => {
24160
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24161
+ try {
24162
+ a.deletePluginsServicePoolsCandidateConfig((data, error) => {
24163
+ try {
24164
+ if (stub) {
24165
+ const displayE = 'Error 400 received on request';
24166
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
24167
+ } else {
24168
+ runCommonAsserts(data, error);
24169
+ }
24170
+ saveMockData('Plugins', 'deletePluginsServicePoolsCandidateConfig', 'default', data);
24171
+ done();
24172
+ } catch (err) {
24173
+ log.error(`Test Failure: ${err}`);
24174
+ done(err);
24175
+ }
24176
+ });
24177
+ } catch (error) {
24178
+ log.error(`Adapter Exception: ${error}`);
24179
+ done(error);
24180
+ }
24181
+ }).timeout(attemptTimeout);
24182
+ });
24183
+
24184
+ describe('#getPluginsServicePoolsCandidateConfigId - errors', () => {
24185
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24186
+ try {
24187
+ a.getPluginsServicePoolsCandidateConfigId(555, (data, error) => {
24188
+ try {
24189
+ if (stub) {
24190
+ const displayE = 'Error 400 received on request';
24191
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
24192
+ } else {
24193
+ runCommonAsserts(data, error);
24194
+ }
24195
+ saveMockData('Plugins', 'getPluginsServicePoolsCandidateConfigId', 'default', data);
24196
+ done();
24197
+ } catch (err) {
24198
+ log.error(`Test Failure: ${err}`);
24199
+ done(err);
24200
+ }
24201
+ });
24202
+ } catch (error) {
24203
+ log.error(`Adapter Exception: ${error}`);
24204
+ done(error);
24205
+ }
24206
+ }).timeout(attemptTimeout);
24207
+ });
24208
+
24209
+ const pluginsPutPluginsServicePoolsCandidateConfigIdBodyParam = {
24210
+ service_order: 7
24211
+ };
24212
+ describe('#putPluginsServicePoolsCandidateConfigId - errors', () => {
24213
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24214
+ try {
24215
+ a.putPluginsServicePoolsCandidateConfigId(555, pluginsPutPluginsServicePoolsCandidateConfigIdBodyParam, (data, error) => {
24216
+ try {
24217
+ if (stub) {
24218
+ const displayE = 'Error 400 received on request';
24219
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
24220
+ } else {
24221
+ runCommonAsserts(data, error);
24222
+ }
24223
+ saveMockData('Plugins', 'putPluginsServicePoolsCandidateConfigId', 'default', data);
24224
+ done();
24225
+ } catch (err) {
24226
+ log.error(`Test Failure: ${err}`);
24227
+ done(err);
24228
+ }
24229
+ });
24230
+ } catch (error) {
24231
+ log.error(`Adapter Exception: ${error}`);
24232
+ done(error);
24233
+ }
24234
+ }).timeout(attemptTimeout);
24235
+ });
24236
+
24237
+ const pluginsPatchPluginsServicePoolsCandidateConfigIdBodyParam = {
24238
+ service_order: 6
24239
+ };
24240
+ describe('#patchPluginsServicePoolsCandidateConfigId - errors', () => {
24241
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24242
+ try {
24243
+ a.patchPluginsServicePoolsCandidateConfigId(555, pluginsPatchPluginsServicePoolsCandidateConfigIdBodyParam, (data, error) => {
24244
+ try {
24245
+ if (stub) {
24246
+ const displayE = 'Error 400 received on request';
24247
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
24248
+ } else {
24249
+ runCommonAsserts(data, error);
24250
+ }
24251
+ saveMockData('Plugins', 'patchPluginsServicePoolsCandidateConfigId', 'default', data);
24252
+ done();
24253
+ } catch (err) {
24254
+ log.error(`Test Failure: ${err}`);
24255
+ done(err);
24256
+ }
24257
+ });
24258
+ } catch (error) {
24259
+ log.error(`Adapter Exception: ${error}`);
24260
+ done(error);
24261
+ }
24262
+ }).timeout(attemptTimeout);
24263
+ });
24264
+
24265
+ describe('#deletePluginsServicePoolsCandidateConfigId - errors', () => {
24266
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24267
+ try {
24268
+ a.deletePluginsServicePoolsCandidateConfigId(555, (data, error) => {
24269
+ try {
24270
+ if (stub) {
24271
+ const displayE = 'Error 400 received on request';
24272
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
24273
+ } else {
24274
+ runCommonAsserts(data, error);
24275
+ }
24276
+ saveMockData('Plugins', 'deletePluginsServicePoolsCandidateConfigId', 'default', data);
24277
+ done();
24278
+ } catch (err) {
24279
+ log.error(`Test Failure: ${err}`);
24280
+ done(err);
24281
+ }
24282
+ });
24283
+ } catch (error) {
24284
+ log.error(`Adapter Exception: ${error}`);
24285
+ done(error);
24286
+ }
24287
+ }).timeout(attemptTimeout);
24288
+ });
24289
+
24290
+ describe('#getPluginsServicePoolsCustomService - errors', () => {
24291
+ it('should work if integrated or standalone with mockdata', (done) => {
24292
+ try {
24293
+ a.getPluginsServicePoolsCustomService(null, null, null, (data, error) => {
24294
+ try {
24295
+ if (stub) {
24296
+ runCommonAsserts(data, error);
24297
+ assert.equal(9, data.response.count);
24298
+ assert.equal('string', data.response.next);
24299
+ assert.equal('string', data.response.previous);
24300
+ assert.equal(true, Array.isArray(data.response.results));
24301
+ } else {
24302
+ runCommonAsserts(data, error);
24303
+ }
24304
+ saveMockData('Plugins', 'getPluginsServicePoolsCustomService', 'default', data);
24305
+ done();
24306
+ } catch (err) {
24307
+ log.error(`Test Failure: ${err}`);
24308
+ done(err);
24309
+ }
24310
+ });
24311
+ } catch (error) {
24312
+ log.error(`Adapter Exception: ${error}`);
24313
+ done(error);
24314
+ }
24315
+ }).timeout(attemptTimeout);
24316
+ });
24317
+
24318
+ const pluginsPostPluginsServicePoolsCustomServiceBodyParam = {
24319
+ uuid: 'string',
24320
+ name: 'string',
24321
+ service_type: 'L3VPN',
24322
+ tmf638_payload: {}
24323
+ };
24324
+ describe('#postPluginsServicePoolsCustomService - errors', () => {
24325
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24326
+ try {
24327
+ a.postPluginsServicePoolsCustomService(pluginsPostPluginsServicePoolsCustomServiceBodyParam, (data, error) => {
24328
+ try {
24329
+ if (stub) {
24330
+ const displayE = 'Error 400 received on request';
24331
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
24332
+ } else {
24333
+ runCommonAsserts(data, error);
24334
+ }
24335
+ saveMockData('Plugins', 'postPluginsServicePoolsCustomService', 'default', data);
24336
+ done();
24337
+ } catch (err) {
24338
+ log.error(`Test Failure: ${err}`);
24339
+ done(err);
24340
+ }
24341
+ });
24342
+ } catch (error) {
24343
+ log.error(`Adapter Exception: ${error}`);
24344
+ done(error);
24345
+ }
24346
+ }).timeout(attemptTimeout);
24347
+ });
24348
+
24349
+ const pluginsPutPluginsServicePoolsCustomServiceBodyParam = {
24350
+ uuid: 'string',
24351
+ name: 'string',
24352
+ service_type: 'PORT A',
24353
+ tmf638_payload: {}
24354
+ };
24355
+ describe('#putPluginsServicePoolsCustomService - errors', () => {
24356
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24357
+ try {
24358
+ a.putPluginsServicePoolsCustomService(pluginsPutPluginsServicePoolsCustomServiceBodyParam, (data, error) => {
24359
+ try {
24360
+ if (stub) {
24361
+ const displayE = 'Error 400 received on request';
24362
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
24363
+ } else {
24364
+ runCommonAsserts(data, error);
24365
+ }
24366
+ saveMockData('Plugins', 'putPluginsServicePoolsCustomService', 'default', data);
24367
+ done();
24368
+ } catch (err) {
24369
+ log.error(`Test Failure: ${err}`);
24370
+ done(err);
24371
+ }
24372
+ });
24373
+ } catch (error) {
24374
+ log.error(`Adapter Exception: ${error}`);
24375
+ done(error);
24376
+ }
24377
+ }).timeout(attemptTimeout);
24378
+ });
24379
+
24380
+ const pluginsPatchPluginsServicePoolsCustomServiceBodyParam = {
24381
+ uuid: 'string',
24382
+ name: 'string',
24383
+ service_type: 'L3VPN',
24384
+ tmf638_payload: {}
24385
+ };
24386
+ describe('#patchPluginsServicePoolsCustomService - errors', () => {
24387
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24388
+ try {
24389
+ a.patchPluginsServicePoolsCustomService(pluginsPatchPluginsServicePoolsCustomServiceBodyParam, (data, error) => {
24390
+ try {
24391
+ if (stub) {
24392
+ const displayE = 'Error 400 received on request';
24393
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
24394
+ } else {
24395
+ runCommonAsserts(data, error);
24396
+ }
24397
+ saveMockData('Plugins', 'patchPluginsServicePoolsCustomService', 'default', data);
24398
+ done();
24399
+ } catch (err) {
24400
+ log.error(`Test Failure: ${err}`);
24401
+ done(err);
24402
+ }
24403
+ });
24404
+ } catch (error) {
24405
+ log.error(`Adapter Exception: ${error}`);
24406
+ done(error);
24407
+ }
24408
+ }).timeout(attemptTimeout);
24409
+ });
24410
+
24411
+ describe('#deletePluginsServicePoolsCustomService - errors', () => {
24412
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24413
+ try {
24414
+ a.deletePluginsServicePoolsCustomService((data, error) => {
24415
+ try {
24416
+ if (stub) {
24417
+ const displayE = 'Error 400 received on request';
24418
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
24419
+ } else {
24420
+ runCommonAsserts(data, error);
24421
+ }
24422
+ saveMockData('Plugins', 'deletePluginsServicePoolsCustomService', 'default', data);
24423
+ done();
24424
+ } catch (err) {
24425
+ log.error(`Test Failure: ${err}`);
24426
+ done(err);
24427
+ }
24428
+ });
24429
+ } catch (error) {
24430
+ log.error(`Adapter Exception: ${error}`);
24431
+ done(error);
24432
+ }
24433
+ }).timeout(attemptTimeout);
24434
+ });
24435
+
24436
+ describe('#getPluginsServicePoolsCustomServiceId - errors', () => {
24437
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24438
+ try {
24439
+ a.getPluginsServicePoolsCustomServiceId(555, (data, error) => {
24440
+ try {
24441
+ if (stub) {
24442
+ const displayE = 'Error 400 received on request';
24443
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
24444
+ } else {
24445
+ runCommonAsserts(data, error);
24446
+ }
24447
+ saveMockData('Plugins', 'getPluginsServicePoolsCustomServiceId', 'default', data);
24448
+ done();
24449
+ } catch (err) {
24450
+ log.error(`Test Failure: ${err}`);
24451
+ done(err);
24452
+ }
24453
+ });
24454
+ } catch (error) {
24455
+ log.error(`Adapter Exception: ${error}`);
24456
+ done(error);
24457
+ }
24458
+ }).timeout(attemptTimeout);
24459
+ });
24460
+
24461
+ const pluginsPutPluginsServicePoolsCustomServiceIdBodyParam = {
24462
+ uuid: 'string',
24463
+ name: 'string',
24464
+ service_type: 'L3VPN',
24465
+ tmf638_payload: {}
24466
+ };
24467
+ describe('#putPluginsServicePoolsCustomServiceId - errors', () => {
24468
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24469
+ try {
24470
+ a.putPluginsServicePoolsCustomServiceId(555, pluginsPutPluginsServicePoolsCustomServiceIdBodyParam, (data, error) => {
24471
+ try {
24472
+ if (stub) {
24473
+ const displayE = 'Error 400 received on request';
24474
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
24475
+ } else {
24476
+ runCommonAsserts(data, error);
24477
+ }
24478
+ saveMockData('Plugins', 'putPluginsServicePoolsCustomServiceId', 'default', data);
24479
+ done();
24480
+ } catch (err) {
24481
+ log.error(`Test Failure: ${err}`);
24482
+ done(err);
24483
+ }
24484
+ });
24485
+ } catch (error) {
24486
+ log.error(`Adapter Exception: ${error}`);
24487
+ done(error);
24488
+ }
24489
+ }).timeout(attemptTimeout);
24490
+ });
24491
+
24492
+ const pluginsPatchPluginsServicePoolsCustomServiceIdBodyParam = {
24493
+ uuid: 'string',
24494
+ name: 'string',
24495
+ service_type: 'L3VPN',
24496
+ tmf638_payload: {}
24497
+ };
24498
+ describe('#patchPluginsServicePoolsCustomServiceId - errors', () => {
24499
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24500
+ try {
24501
+ a.patchPluginsServicePoolsCustomServiceId(555, pluginsPatchPluginsServicePoolsCustomServiceIdBodyParam, (data, error) => {
24502
+ try {
24503
+ if (stub) {
24504
+ const displayE = 'Error 400 received on request';
24505
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
24506
+ } else {
24507
+ runCommonAsserts(data, error);
24508
+ }
24509
+ saveMockData('Plugins', 'patchPluginsServicePoolsCustomServiceId', 'default', data);
24510
+ done();
24511
+ } catch (err) {
24512
+ log.error(`Test Failure: ${err}`);
24513
+ done(err);
24514
+ }
24515
+ });
24516
+ } catch (error) {
24517
+ log.error(`Adapter Exception: ${error}`);
24518
+ done(error);
24519
+ }
24520
+ }).timeout(attemptTimeout);
24521
+ });
24522
+
24523
+ describe('#deletePluginsServicePoolsCustomServiceId - errors', () => {
24524
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24525
+ try {
24526
+ a.deletePluginsServicePoolsCustomServiceId(555, (data, error) => {
24527
+ try {
24528
+ if (stub) {
24529
+ const displayE = 'Error 400 received on request';
24530
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
24531
+ } else {
24532
+ runCommonAsserts(data, error);
24533
+ }
24534
+ saveMockData('Plugins', 'deletePluginsServicePoolsCustomServiceId', 'default', data);
24535
+ done();
24536
+ } catch (err) {
24537
+ log.error(`Test Failure: ${err}`);
24538
+ done(err);
24539
+ }
24540
+ });
24541
+ } catch (error) {
24542
+ log.error(`Adapter Exception: ${error}`);
24543
+ done(error);
24544
+ }
24545
+ }).timeout(attemptTimeout);
24546
+ });
24547
+
24548
+ describe('#getPluginsServicePoolsServiceOrder - errors', () => {
24549
+ it('should work if integrated or standalone with mockdata', (done) => {
24550
+ try {
24551
+ a.getPluginsServicePoolsServiceOrder(null, null, null, (data, error) => {
24552
+ try {
24553
+ if (stub) {
24554
+ runCommonAsserts(data, error);
24555
+ assert.equal(1, data.response.count);
24556
+ assert.equal('string', data.response.next);
24557
+ assert.equal('string', data.response.previous);
24558
+ assert.equal(true, Array.isArray(data.response.results));
24559
+ } else {
24560
+ runCommonAsserts(data, error);
24561
+ }
24562
+ saveMockData('Plugins', 'getPluginsServicePoolsServiceOrder', 'default', data);
24563
+ done();
24564
+ } catch (err) {
24565
+ log.error(`Test Failure: ${err}`);
24566
+ done(err);
24567
+ }
24568
+ });
24569
+ } catch (error) {
24570
+ log.error(`Adapter Exception: ${error}`);
24571
+ done(error);
24572
+ }
24573
+ }).timeout(attemptTimeout);
24574
+ });
24575
+
24576
+ const pluginsPostPluginsServicePoolsServiceOrderBodyParam = {
24577
+ uuid: 'string',
24578
+ name: 'string',
24579
+ state: 'cancelled',
24580
+ tmf641_payload: {}
24581
+ };
24582
+ describe('#postPluginsServicePoolsServiceOrder - errors', () => {
24583
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24584
+ try {
24585
+ a.postPluginsServicePoolsServiceOrder(pluginsPostPluginsServicePoolsServiceOrderBodyParam, (data, error) => {
24586
+ try {
24587
+ if (stub) {
24588
+ const displayE = 'Error 400 received on request';
24589
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
24590
+ } else {
24591
+ runCommonAsserts(data, error);
24592
+ }
24593
+ saveMockData('Plugins', 'postPluginsServicePoolsServiceOrder', 'default', data);
24594
+ done();
24595
+ } catch (err) {
24596
+ log.error(`Test Failure: ${err}`);
24597
+ done(err);
24598
+ }
24599
+ });
24600
+ } catch (error) {
24601
+ log.error(`Adapter Exception: ${error}`);
24602
+ done(error);
24603
+ }
24604
+ }).timeout(attemptTimeout);
24605
+ });
24606
+
24607
+ const pluginsPutPluginsServicePoolsServiceOrderBodyParam = {
24608
+ uuid: 'string',
24609
+ name: 'string',
24610
+ state: 'released',
24611
+ tmf641_payload: {}
24612
+ };
24613
+ describe('#putPluginsServicePoolsServiceOrder - errors', () => {
24614
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24615
+ try {
24616
+ a.putPluginsServicePoolsServiceOrder(pluginsPutPluginsServicePoolsServiceOrderBodyParam, (data, error) => {
24617
+ try {
24618
+ if (stub) {
24619
+ const displayE = 'Error 400 received on request';
24620
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
24621
+ } else {
24622
+ runCommonAsserts(data, error);
24623
+ }
24624
+ saveMockData('Plugins', 'putPluginsServicePoolsServiceOrder', 'default', data);
24625
+ done();
24626
+ } catch (err) {
24627
+ log.error(`Test Failure: ${err}`);
24628
+ done(err);
24629
+ }
24630
+ });
24631
+ } catch (error) {
24632
+ log.error(`Adapter Exception: ${error}`);
24633
+ done(error);
24634
+ }
24635
+ }).timeout(attemptTimeout);
24636
+ });
24637
+
24638
+ const pluginsPatchPluginsServicePoolsServiceOrderBodyParam = {
24639
+ uuid: 'string',
24640
+ name: 'string',
24641
+ state: 'released',
24642
+ tmf641_payload: {}
24643
+ };
24644
+ describe('#patchPluginsServicePoolsServiceOrder - errors', () => {
24645
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24646
+ try {
24647
+ a.patchPluginsServicePoolsServiceOrder(pluginsPatchPluginsServicePoolsServiceOrderBodyParam, (data, error) => {
24648
+ try {
24649
+ if (stub) {
24650
+ const displayE = 'Error 400 received on request';
24651
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
24652
+ } else {
24653
+ runCommonAsserts(data, error);
24654
+ }
24655
+ saveMockData('Plugins', 'patchPluginsServicePoolsServiceOrder', 'default', data);
24656
+ done();
24657
+ } catch (err) {
24658
+ log.error(`Test Failure: ${err}`);
24659
+ done(err);
24660
+ }
24661
+ });
24662
+ } catch (error) {
24663
+ log.error(`Adapter Exception: ${error}`);
24664
+ done(error);
24665
+ }
24666
+ }).timeout(attemptTimeout);
24667
+ });
24668
+
24669
+ describe('#deletePluginsServicePoolsServiceOrder - errors', () => {
24670
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24671
+ try {
24672
+ a.deletePluginsServicePoolsServiceOrder((data, error) => {
24673
+ try {
24674
+ if (stub) {
24675
+ const displayE = 'Error 400 received on request';
24676
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
24677
+ } else {
24678
+ runCommonAsserts(data, error);
24679
+ }
24680
+ saveMockData('Plugins', 'deletePluginsServicePoolsServiceOrder', 'default', data);
24681
+ done();
24682
+ } catch (err) {
24683
+ log.error(`Test Failure: ${err}`);
24684
+ done(err);
24685
+ }
24686
+ });
24687
+ } catch (error) {
24688
+ log.error(`Adapter Exception: ${error}`);
24689
+ done(error);
24690
+ }
24691
+ }).timeout(attemptTimeout);
24692
+ });
24693
+
24694
+ describe('#getPluginsServicePoolsServiceOrderId - errors', () => {
24695
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24696
+ try {
24697
+ a.getPluginsServicePoolsServiceOrderId(555, (data, error) => {
24698
+ try {
24699
+ if (stub) {
24700
+ const displayE = 'Error 400 received on request';
24701
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
24702
+ } else {
24703
+ runCommonAsserts(data, error);
24704
+ }
24705
+ saveMockData('Plugins', 'getPluginsServicePoolsServiceOrderId', 'default', data);
24706
+ done();
24707
+ } catch (err) {
24708
+ log.error(`Test Failure: ${err}`);
24709
+ done(err);
24710
+ }
24711
+ });
24712
+ } catch (error) {
24713
+ log.error(`Adapter Exception: ${error}`);
24714
+ done(error);
24715
+ }
24716
+ }).timeout(attemptTimeout);
24717
+ });
24718
+
24719
+ const pluginsPutPluginsServicePoolsServiceOrderIdBodyParam = {
24720
+ uuid: 'string',
24721
+ name: 'string',
24722
+ state: 'confirmed',
24723
+ tmf641_payload: {}
24724
+ };
24725
+ describe('#putPluginsServicePoolsServiceOrderId - errors', () => {
24726
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24727
+ try {
24728
+ a.putPluginsServicePoolsServiceOrderId(555, pluginsPutPluginsServicePoolsServiceOrderIdBodyParam, (data, error) => {
24729
+ try {
24730
+ if (stub) {
24731
+ const displayE = 'Error 400 received on request';
24732
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
24733
+ } else {
24734
+ runCommonAsserts(data, error);
24735
+ }
24736
+ saveMockData('Plugins', 'putPluginsServicePoolsServiceOrderId', 'default', data);
24737
+ done();
24738
+ } catch (err) {
24739
+ log.error(`Test Failure: ${err}`);
24740
+ done(err);
24741
+ }
24742
+ });
24743
+ } catch (error) {
24744
+ log.error(`Adapter Exception: ${error}`);
24745
+ done(error);
24746
+ }
24747
+ }).timeout(attemptTimeout);
24748
+ });
24749
+
24750
+ const pluginsPatchPluginsServicePoolsServiceOrderIdBodyParam = {
24751
+ uuid: 'string',
24752
+ name: 'string',
24753
+ state: 'open',
24754
+ tmf641_payload: {}
24755
+ };
24756
+ describe('#patchPluginsServicePoolsServiceOrderId - errors', () => {
24757
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24758
+ try {
24759
+ a.patchPluginsServicePoolsServiceOrderId(555, pluginsPatchPluginsServicePoolsServiceOrderIdBodyParam, (data, error) => {
24760
+ try {
24761
+ if (stub) {
24762
+ const displayE = 'Error 400 received on request';
24763
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
24764
+ } else {
24765
+ runCommonAsserts(data, error);
24766
+ }
24767
+ saveMockData('Plugins', 'patchPluginsServicePoolsServiceOrderId', 'default', data);
24768
+ done();
24769
+ } catch (err) {
24770
+ log.error(`Test Failure: ${err}`);
24771
+ done(err);
24772
+ }
24773
+ });
24774
+ } catch (error) {
24775
+ log.error(`Adapter Exception: ${error}`);
24776
+ done(error);
24777
+ }
24778
+ }).timeout(attemptTimeout);
24779
+ });
24780
+
24781
+ describe('#deletePluginsServicePoolsServiceOrderId - errors', () => {
24782
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24783
+ try {
24784
+ a.deletePluginsServicePoolsServiceOrderId(555, (data, error) => {
24785
+ try {
24786
+ if (stub) {
24787
+ const displayE = 'Error 400 received on request';
24788
+ runErrorAsserts(data, error, 'AD.500', 'Test-netbox_v33-connectorRest-handleEndResponse', displayE);
24789
+ } else {
24790
+ runCommonAsserts(data, error);
24791
+ }
24792
+ saveMockData('Plugins', 'deletePluginsServicePoolsServiceOrderId', 'default', data);
24793
+ done();
24794
+ } catch (err) {
24795
+ log.error(`Test Failure: ${err}`);
24796
+ done(err);
24797
+ }
24798
+ });
24799
+ } catch (error) {
24800
+ log.error(`Adapter Exception: ${error}`);
24801
+ done(error);
24802
+ }
24803
+ }).timeout(attemptTimeout);
24804
+ });
23530
24805
  });
23531
24806
  });