@itentialopensource/adapter-zero_networks 0.1.1 → 0.2.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.
Files changed (60) hide show
  1. package/.eslintignore +0 -1
  2. package/.jshintrc +3 -0
  3. package/AUTH.md +14 -18
  4. package/BROKER.md +31 -19
  5. package/CALLS.md +1175 -23
  6. package/CHANGELOG.md +16 -1
  7. package/PROPERTIES.md +5 -0
  8. package/README.md +60 -63
  9. package/SYSTEMINFO.md +14 -6
  10. package/TAB1.md +8 -0
  11. package/TAB2.md +83 -6564
  12. package/adapter.js +16661 -39
  13. package/entities/Asset/action.json +872 -0
  14. package/entities/Asset/schema.json +43 -1
  15. package/entities/AssetOTIoT/action.json +851 -0
  16. package/entities/AssetOTIoT/schema.json +42 -1
  17. package/entities/Assets/action.json +83 -0
  18. package/entities/Assets/schema.json +5 -1
  19. package/entities/Download/action.json +88 -0
  20. package/entities/Download/schema.json +22 -0
  21. package/entities/Group/action.json +518 -0
  22. package/entities/Group/schema.json +26 -1
  23. package/entities/Groups/action.json +354 -0
  24. package/entities/Groups/schema.json +18 -1
  25. package/entities/GroupsCustom/action.json +20 -0
  26. package/entities/GroupsCustom/schema.json +2 -1
  27. package/entities/GroupsTag/action.json +45 -0
  28. package/entities/GroupsTag/schema.json +20 -0
  29. package/entities/MFAIdentity/action.json +295 -0
  30. package/entities/MFAIdentity/schema.json +32 -0
  31. package/entities/MFAInbound/action.json +21 -0
  32. package/entities/MFAInbound/schema.json +2 -1
  33. package/entities/MFAOutbound/action.json +21 -0
  34. package/entities/MFAOutbound/schema.json +2 -1
  35. package/entities/Rules/action.json +40 -0
  36. package/entities/Rules/schema.json +3 -1
  37. package/entities/RulesInbound/action.json +293 -0
  38. package/entities/RulesInbound/schema.json +32 -0
  39. package/entities/RulesOutboundAllow/action.json +21 -0
  40. package/entities/RulesOutboundAllow/schema.json +2 -1
  41. package/entities/SettingsInactiveAssets/action.json +45 -0
  42. package/entities/SettingsInactiveAssets/schema.json +20 -0
  43. package/entities/SettingsLicenses/action.json +25 -0
  44. package/entities/SettingsLicenses/schema.json +19 -0
  45. package/entities/User/action.json +291 -0
  46. package/entities/User/schema.json +15 -1
  47. package/entities/Users/action.json +21 -0
  48. package/entities/Users/schema.json +2 -1
  49. package/metadata.json +14 -3
  50. package/package.json +7 -9
  51. package/pronghorn.json +12801 -490
  52. package/propertiesSchema.json +133 -36
  53. package/refs?service=git-upload-pack +0 -0
  54. package/report/adapter-openapi.json +115977 -0
  55. package/report/adapterInfo.json +7 -7
  56. package/report/updateReport1715609939167.json +120 -0
  57. package/sampleProperties.json +43 -31
  58. package/test/integration/adapterTestIntegration.js +4700 -0
  59. package/test/unit/adapterTestUnit.js +8581 -4
  60. package/utils/artifactize.js +0 -0
@@ -46,6 +46,7 @@ samProps.ssl.accept_invalid_cert = false;
46
46
  if (samProps.request.attempt_timeout < 30000) {
47
47
  samProps.request.attempt_timeout = 30000;
48
48
  }
49
+ samProps.devicebroker.enabled = true;
49
50
  const attemptTimeout = samProps.request.attempt_timeout;
50
51
  const { stub } = samProps;
51
52
 
@@ -23773,5 +23774,4704 @@ describe('[integration] Zero_networks Adapter Test', () => {
23773
23774
  }
23774
23775
  }).timeout(attemptTimeout);
23775
23776
  });
23777
+
23778
+ describe('#assetHealthStateGet - errors', () => {
23779
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
23780
+ try {
23781
+ a.assetHealthStateGet('fakedata', (data, error) => {
23782
+ try {
23783
+ if (stub) {
23784
+ const displayE = 'Error 400 received on request';
23785
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
23786
+ } else {
23787
+ runCommonAsserts(data, error);
23788
+ }
23789
+ saveMockData('Asset', 'assetHealthStateGet', 'default', data);
23790
+ done();
23791
+ } catch (err) {
23792
+ log.error(`Test Failure: ${err}`);
23793
+ done(err);
23794
+ }
23795
+ });
23796
+ } catch (error) {
23797
+ log.error(`Adapter Exception: ${error}`);
23798
+ done(error);
23799
+ }
23800
+ }).timeout(attemptTimeout);
23801
+ });
23802
+
23803
+ describe('#assetMFAIdentityPoliciesList - errors', () => {
23804
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
23805
+ try {
23806
+ a.assetMFAIdentityPoliciesList('fakedata', 555, null, null, null, null, null, null, null, (data, error) => {
23807
+ try {
23808
+ if (stub) {
23809
+ const displayE = 'Error 400 received on request';
23810
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
23811
+ } else {
23812
+ runCommonAsserts(data, error);
23813
+ }
23814
+ saveMockData('Asset', 'assetMFAIdentityPoliciesList', 'default', data);
23815
+ done();
23816
+ } catch (err) {
23817
+ log.error(`Test Failure: ${err}`);
23818
+ done(err);
23819
+ }
23820
+ });
23821
+ } catch (error) {
23822
+ log.error(`Adapter Exception: ${error}`);
23823
+ done(error);
23824
+ }
23825
+ }).timeout(attemptTimeout);
23826
+ });
23827
+
23828
+ const assetAssetMFAIdentityPoliciesCreateBodyParam = {};
23829
+ describe('#assetMFAIdentityPoliciesCreate - errors', () => {
23830
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
23831
+ try {
23832
+ a.assetMFAIdentityPoliciesCreate('fakedata', assetAssetMFAIdentityPoliciesCreateBodyParam, (data, error) => {
23833
+ try {
23834
+ if (stub) {
23835
+ const displayE = 'Error 400 received on request';
23836
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
23837
+ } else {
23838
+ runCommonAsserts(data, error);
23839
+ }
23840
+ saveMockData('Asset', 'assetMFAIdentityPoliciesCreate', 'default', data);
23841
+ done();
23842
+ } catch (err) {
23843
+ log.error(`Test Failure: ${err}`);
23844
+ done(err);
23845
+ }
23846
+ });
23847
+ } catch (error) {
23848
+ log.error(`Adapter Exception: ${error}`);
23849
+ done(error);
23850
+ }
23851
+ }).timeout(attemptTimeout);
23852
+ });
23853
+
23854
+ describe('#assetMFAIdentityPoliciesGet - errors', () => {
23855
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
23856
+ try {
23857
+ a.assetMFAIdentityPoliciesGet('fakedata', 'fakedata', (data, error) => {
23858
+ try {
23859
+ if (stub) {
23860
+ const displayE = 'Error 400 received on request';
23861
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
23862
+ } else {
23863
+ runCommonAsserts(data, error);
23864
+ }
23865
+ saveMockData('Asset', 'assetMFAIdentityPoliciesGet', 'default', data);
23866
+ done();
23867
+ } catch (err) {
23868
+ log.error(`Test Failure: ${err}`);
23869
+ done(err);
23870
+ }
23871
+ });
23872
+ } catch (error) {
23873
+ log.error(`Adapter Exception: ${error}`);
23874
+ done(error);
23875
+ }
23876
+ }).timeout(attemptTimeout);
23877
+ });
23878
+
23879
+ const assetAssetMFAIdentityPoliciesUpdateBodyParam = {};
23880
+ describe('#assetMFAIdentityPoliciesUpdate - errors', () => {
23881
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
23882
+ try {
23883
+ a.assetMFAIdentityPoliciesUpdate('fakedata', 'fakedata', assetAssetMFAIdentityPoliciesUpdateBodyParam, (data, error) => {
23884
+ try {
23885
+ if (stub) {
23886
+ const displayE = 'Error 400 received on request';
23887
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
23888
+ } else {
23889
+ runCommonAsserts(data, error);
23890
+ }
23891
+ saveMockData('Asset', 'assetMFAIdentityPoliciesUpdate', 'default', data);
23892
+ done();
23893
+ } catch (err) {
23894
+ log.error(`Test Failure: ${err}`);
23895
+ done(err);
23896
+ }
23897
+ });
23898
+ } catch (error) {
23899
+ log.error(`Adapter Exception: ${error}`);
23900
+ done(error);
23901
+ }
23902
+ }).timeout(attemptTimeout);
23903
+ });
23904
+
23905
+ describe('#assetMFAIdentityPoliciesDelete - errors', () => {
23906
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
23907
+ try {
23908
+ a.assetMFAIdentityPoliciesDelete('fakedata', 'fakedata', (data, error) => {
23909
+ try {
23910
+ if (stub) {
23911
+ const displayE = 'Error 400 received on request';
23912
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
23913
+ } else {
23914
+ runCommonAsserts(data, error);
23915
+ }
23916
+ saveMockData('Asset', 'assetMFAIdentityPoliciesDelete', 'default', data);
23917
+ done();
23918
+ } catch (err) {
23919
+ log.error(`Test Failure: ${err}`);
23920
+ done(err);
23921
+ }
23922
+ });
23923
+ } catch (error) {
23924
+ log.error(`Adapter Exception: ${error}`);
23925
+ done(error);
23926
+ }
23927
+ }).timeout(attemptTimeout);
23928
+ });
23929
+
23930
+ describe('#assetMFAIdentityPoliciesDestinationCandidatesList - errors', () => {
23931
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
23932
+ try {
23933
+ a.assetMFAIdentityPoliciesDestinationCandidatesList('fakedata', 555, null, null, (data, error) => {
23934
+ try {
23935
+ if (stub) {
23936
+ const displayE = 'Error 400 received on request';
23937
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
23938
+ } else {
23939
+ runCommonAsserts(data, error);
23940
+ }
23941
+ saveMockData('Asset', 'assetMFAIdentityPoliciesDestinationCandidatesList', 'default', data);
23942
+ done();
23943
+ } catch (err) {
23944
+ log.error(`Test Failure: ${err}`);
23945
+ done(err);
23946
+ }
23947
+ });
23948
+ } catch (error) {
23949
+ log.error(`Adapter Exception: ${error}`);
23950
+ done(error);
23951
+ }
23952
+ }).timeout(attemptTimeout);
23953
+ });
23954
+
23955
+ describe('#assetMFAIdentityPoliciesExcludedSourceCandidatesList - errors', () => {
23956
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
23957
+ try {
23958
+ a.assetMFAIdentityPoliciesExcludedSourceCandidatesList('fakedata', 555, null, null, null, (data, error) => {
23959
+ try {
23960
+ if (stub) {
23961
+ const displayE = 'Error 400 received on request';
23962
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
23963
+ } else {
23964
+ runCommonAsserts(data, error);
23965
+ }
23966
+ saveMockData('Asset', 'assetMFAIdentityPoliciesExcludedSourceCandidatesList', 'default', data);
23967
+ done();
23968
+ } catch (err) {
23969
+ log.error(`Test Failure: ${err}`);
23970
+ done(err);
23971
+ }
23972
+ });
23973
+ } catch (error) {
23974
+ log.error(`Adapter Exception: ${error}`);
23975
+ done(error);
23976
+ }
23977
+ }).timeout(attemptTimeout);
23978
+ });
23979
+
23980
+ describe('#assetMFAIdentityPoliciesFiltersList - errors', () => {
23981
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
23982
+ try {
23983
+ a.assetMFAIdentityPoliciesFiltersList('fakedata', (data, error) => {
23984
+ try {
23985
+ if (stub) {
23986
+ const displayE = 'Error 400 received on request';
23987
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
23988
+ } else {
23989
+ runCommonAsserts(data, error);
23990
+ }
23991
+ saveMockData('Asset', 'assetMFAIdentityPoliciesFiltersList', 'default', data);
23992
+ done();
23993
+ } catch (err) {
23994
+ log.error(`Test Failure: ${err}`);
23995
+ done(err);
23996
+ }
23997
+ });
23998
+ } catch (error) {
23999
+ log.error(`Adapter Exception: ${error}`);
24000
+ done(error);
24001
+ }
24002
+ }).timeout(attemptTimeout);
24003
+ });
24004
+
24005
+ describe('#assetMFAIdentityPoliciesDestinationCandidatesFiltersList - errors', () => {
24006
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24007
+ try {
24008
+ a.assetMFAIdentityPoliciesDestinationCandidatesFiltersList('fakedata', 555, null, null, (data, error) => {
24009
+ try {
24010
+ if (stub) {
24011
+ const displayE = 'Error 400 received on request';
24012
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24013
+ } else {
24014
+ runCommonAsserts(data, error);
24015
+ }
24016
+ saveMockData('Asset', 'assetMFAIdentityPoliciesDestinationCandidatesFiltersList', 'default', data);
24017
+ done();
24018
+ } catch (err) {
24019
+ log.error(`Test Failure: ${err}`);
24020
+ done(err);
24021
+ }
24022
+ });
24023
+ } catch (error) {
24024
+ log.error(`Adapter Exception: ${error}`);
24025
+ done(error);
24026
+ }
24027
+ }).timeout(attemptTimeout);
24028
+ });
24029
+
24030
+ describe('#assetMFAIdentityPoliciesSourceCandidatesFiltersList - errors', () => {
24031
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24032
+ try {
24033
+ a.assetMFAIdentityPoliciesSourceCandidatesFiltersList('fakedata', 555, null, null, (data, error) => {
24034
+ try {
24035
+ if (stub) {
24036
+ const displayE = 'Error 400 received on request';
24037
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24038
+ } else {
24039
+ runCommonAsserts(data, error);
24040
+ }
24041
+ saveMockData('Asset', 'assetMFAIdentityPoliciesSourceCandidatesFiltersList', 'default', data);
24042
+ done();
24043
+ } catch (err) {
24044
+ log.error(`Test Failure: ${err}`);
24045
+ done(err);
24046
+ }
24047
+ });
24048
+ } catch (error) {
24049
+ log.error(`Adapter Exception: ${error}`);
24050
+ done(error);
24051
+ }
24052
+ }).timeout(attemptTimeout);
24053
+ });
24054
+
24055
+ describe('#assetMFAIdentityPoliciesSourceUsersCandidatesFiltersList - errors', () => {
24056
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24057
+ try {
24058
+ a.assetMFAIdentityPoliciesSourceUsersCandidatesFiltersList('fakedata', 555, null, null, (data, error) => {
24059
+ try {
24060
+ if (stub) {
24061
+ const displayE = 'Error 400 received on request';
24062
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24063
+ } else {
24064
+ runCommonAsserts(data, error);
24065
+ }
24066
+ saveMockData('Asset', 'assetMFAIdentityPoliciesSourceUsersCandidatesFiltersList', 'default', data);
24067
+ done();
24068
+ } catch (err) {
24069
+ log.error(`Test Failure: ${err}`);
24070
+ done(err);
24071
+ }
24072
+ });
24073
+ } catch (error) {
24074
+ log.error(`Adapter Exception: ${error}`);
24075
+ done(error);
24076
+ }
24077
+ }).timeout(attemptTimeout);
24078
+ });
24079
+
24080
+ describe('#assetMFAIdentityPoliciesMFAMethodsList - errors', () => {
24081
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24082
+ try {
24083
+ a.assetMFAIdentityPoliciesMFAMethodsList('fakedata', (data, error) => {
24084
+ try {
24085
+ if (stub) {
24086
+ const displayE = 'Error 400 received on request';
24087
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24088
+ } else {
24089
+ runCommonAsserts(data, error);
24090
+ }
24091
+ saveMockData('Asset', 'assetMFAIdentityPoliciesMFAMethodsList', 'default', data);
24092
+ done();
24093
+ } catch (err) {
24094
+ log.error(`Test Failure: ${err}`);
24095
+ done(err);
24096
+ }
24097
+ });
24098
+ } catch (error) {
24099
+ log.error(`Adapter Exception: ${error}`);
24100
+ done(error);
24101
+ }
24102
+ }).timeout(attemptTimeout);
24103
+ });
24104
+
24105
+ describe('#assetMFAIdentityPoliciesSourceCandidatesList - errors', () => {
24106
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24107
+ try {
24108
+ a.assetMFAIdentityPoliciesSourceCandidatesList('fakedata', 555, null, null, (data, error) => {
24109
+ try {
24110
+ if (stub) {
24111
+ const displayE = 'Error 400 received on request';
24112
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24113
+ } else {
24114
+ runCommonAsserts(data, error);
24115
+ }
24116
+ saveMockData('Asset', 'assetMFAIdentityPoliciesSourceCandidatesList', 'default', data);
24117
+ done();
24118
+ } catch (err) {
24119
+ log.error(`Test Failure: ${err}`);
24120
+ done(err);
24121
+ }
24122
+ });
24123
+ } catch (error) {
24124
+ log.error(`Adapter Exception: ${error}`);
24125
+ done(error);
24126
+ }
24127
+ }).timeout(attemptTimeout);
24128
+ });
24129
+
24130
+ describe('#assetMFAIdentityPoliciesSourceUserCandidatesList - errors', () => {
24131
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24132
+ try {
24133
+ a.assetMFAIdentityPoliciesSourceUserCandidatesList('fakedata', 555, null, null, (data, error) => {
24134
+ try {
24135
+ if (stub) {
24136
+ const displayE = 'Error 400 received on request';
24137
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24138
+ } else {
24139
+ runCommonAsserts(data, error);
24140
+ }
24141
+ saveMockData('Asset', 'assetMFAIdentityPoliciesSourceUserCandidatesList', 'default', data);
24142
+ done();
24143
+ } catch (err) {
24144
+ log.error(`Test Failure: ${err}`);
24145
+ done(err);
24146
+ }
24147
+ });
24148
+ } catch (error) {
24149
+ log.error(`Adapter Exception: ${error}`);
24150
+ done(error);
24151
+ }
24152
+ }).timeout(attemptTimeout);
24153
+ });
24154
+
24155
+ describe('#assetMFAInboundPoliciesSimulateTest - errors', () => {
24156
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24157
+ try {
24158
+ a.assetMFAInboundPoliciesSimulateTest('fakedata', 'fakedata', 'fakedata', null, 'fakedata', null, 555, 555, (data, error) => {
24159
+ try {
24160
+ if (stub) {
24161
+ const displayE = 'Error 400 received on request';
24162
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24163
+ } else {
24164
+ runCommonAsserts(data, error);
24165
+ }
24166
+ saveMockData('Asset', 'assetMFAInboundPoliciesSimulateTest', 'default', data);
24167
+ done();
24168
+ } catch (err) {
24169
+ log.error(`Test Failure: ${err}`);
24170
+ done(err);
24171
+ }
24172
+ });
24173
+ } catch (error) {
24174
+ log.error(`Adapter Exception: ${error}`);
24175
+ done(error);
24176
+ }
24177
+ }).timeout(attemptTimeout);
24178
+ });
24179
+
24180
+ describe('#assetMFAInboundPoliciesSimulateDestinationCandidatesList - errors', () => {
24181
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24182
+ try {
24183
+ a.assetMFAInboundPoliciesSimulateDestinationCandidatesList('fakedata', 555, null, null, (data, error) => {
24184
+ try {
24185
+ if (stub) {
24186
+ const displayE = 'Error 400 received on request';
24187
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24188
+ } else {
24189
+ runCommonAsserts(data, error);
24190
+ }
24191
+ saveMockData('Asset', 'assetMFAInboundPoliciesSimulateDestinationCandidatesList', 'default', data);
24192
+ done();
24193
+ } catch (err) {
24194
+ log.error(`Test Failure: ${err}`);
24195
+ done(err);
24196
+ }
24197
+ });
24198
+ } catch (error) {
24199
+ log.error(`Adapter Exception: ${error}`);
24200
+ done(error);
24201
+ }
24202
+ }).timeout(attemptTimeout);
24203
+ });
24204
+
24205
+ describe('#assetMFAInboundPoliciesSimulateResolveGet - errors', () => {
24206
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24207
+ try {
24208
+ a.assetMFAInboundPoliciesSimulateResolveGet('fakedata', null, (data, error) => {
24209
+ try {
24210
+ if (stub) {
24211
+ const displayE = 'Error 400 received on request';
24212
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24213
+ } else {
24214
+ runCommonAsserts(data, error);
24215
+ }
24216
+ saveMockData('Asset', 'assetMFAInboundPoliciesSimulateResolveGet', 'default', data);
24217
+ done();
24218
+ } catch (err) {
24219
+ log.error(`Test Failure: ${err}`);
24220
+ done(err);
24221
+ }
24222
+ });
24223
+ } catch (error) {
24224
+ log.error(`Adapter Exception: ${error}`);
24225
+ done(error);
24226
+ }
24227
+ }).timeout(attemptTimeout);
24228
+ });
24229
+
24230
+ describe('#assetMFAInboundPoliciesSimulateSourceCandidatesList - errors', () => {
24231
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24232
+ try {
24233
+ a.assetMFAInboundPoliciesSimulateSourceCandidatesList('fakedata', 555, null, null, (data, error) => {
24234
+ try {
24235
+ if (stub) {
24236
+ const displayE = 'Error 400 received on request';
24237
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24238
+ } else {
24239
+ runCommonAsserts(data, error);
24240
+ }
24241
+ saveMockData('Asset', 'assetMFAInboundPoliciesSimulateSourceCandidatesList', 'default', data);
24242
+ done();
24243
+ } catch (err) {
24244
+ log.error(`Test Failure: ${err}`);
24245
+ done(err);
24246
+ }
24247
+ });
24248
+ } catch (error) {
24249
+ log.error(`Adapter Exception: ${error}`);
24250
+ done(error);
24251
+ }
24252
+ }).timeout(attemptTimeout);
24253
+ });
24254
+
24255
+ describe('#assetMFAInboundPoliciesSimulateSourceUserCandidatesList - errors', () => {
24256
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24257
+ try {
24258
+ a.assetMFAInboundPoliciesSimulateSourceUserCandidatesList('fakedata', 555, null, null, (data, error) => {
24259
+ try {
24260
+ if (stub) {
24261
+ const displayE = 'Error 400 received on request';
24262
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24263
+ } else {
24264
+ runCommonAsserts(data, error);
24265
+ }
24266
+ saveMockData('Asset', 'assetMFAInboundPoliciesSimulateSourceUserCandidatesList', 'default', data);
24267
+ done();
24268
+ } catch (err) {
24269
+ log.error(`Test Failure: ${err}`);
24270
+ done(err);
24271
+ }
24272
+ });
24273
+ } catch (error) {
24274
+ log.error(`Adapter Exception: ${error}`);
24275
+ done(error);
24276
+ }
24277
+ }).timeout(attemptTimeout);
24278
+ });
24279
+
24280
+ describe('#assetMFAOutboundPoliciesSimulateTest - errors', () => {
24281
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24282
+ try {
24283
+ a.assetMFAOutboundPoliciesSimulateTest('fakedata', 'fakedata', 'fakedata', null, 'fakedata', null, 555, 555, (data, error) => {
24284
+ try {
24285
+ if (stub) {
24286
+ const displayE = 'Error 400 received on request';
24287
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24288
+ } else {
24289
+ runCommonAsserts(data, error);
24290
+ }
24291
+ saveMockData('Asset', 'assetMFAOutboundPoliciesSimulateTest', 'default', data);
24292
+ done();
24293
+ } catch (err) {
24294
+ log.error(`Test Failure: ${err}`);
24295
+ done(err);
24296
+ }
24297
+ });
24298
+ } catch (error) {
24299
+ log.error(`Adapter Exception: ${error}`);
24300
+ done(error);
24301
+ }
24302
+ }).timeout(attemptTimeout);
24303
+ });
24304
+
24305
+ describe('#assetMFAOutboundPoliciesSimulateDestinationCandidatesList - errors', () => {
24306
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24307
+ try {
24308
+ a.assetMFAOutboundPoliciesSimulateDestinationCandidatesList('fakedata', 555, null, null, (data, error) => {
24309
+ try {
24310
+ if (stub) {
24311
+ const displayE = 'Error 400 received on request';
24312
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24313
+ } else {
24314
+ runCommonAsserts(data, error);
24315
+ }
24316
+ saveMockData('Asset', 'assetMFAOutboundPoliciesSimulateDestinationCandidatesList', 'default', data);
24317
+ done();
24318
+ } catch (err) {
24319
+ log.error(`Test Failure: ${err}`);
24320
+ done(err);
24321
+ }
24322
+ });
24323
+ } catch (error) {
24324
+ log.error(`Adapter Exception: ${error}`);
24325
+ done(error);
24326
+ }
24327
+ }).timeout(attemptTimeout);
24328
+ });
24329
+
24330
+ describe('#assetMFAOutboundPoliciesSimulateResolveGet - errors', () => {
24331
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24332
+ try {
24333
+ a.assetMFAOutboundPoliciesSimulateResolveGet('fakedata', null, (data, error) => {
24334
+ try {
24335
+ if (stub) {
24336
+ const displayE = 'Error 400 received on request';
24337
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24338
+ } else {
24339
+ runCommonAsserts(data, error);
24340
+ }
24341
+ saveMockData('Asset', 'assetMFAOutboundPoliciesSimulateResolveGet', 'default', data);
24342
+ done();
24343
+ } catch (err) {
24344
+ log.error(`Test Failure: ${err}`);
24345
+ done(err);
24346
+ }
24347
+ });
24348
+ } catch (error) {
24349
+ log.error(`Adapter Exception: ${error}`);
24350
+ done(error);
24351
+ }
24352
+ }).timeout(attemptTimeout);
24353
+ });
24354
+
24355
+ describe('#assetMFAOutboundPoliciesSimulateSourceCandidatesList - errors', () => {
24356
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24357
+ try {
24358
+ a.assetMFAOutboundPoliciesSimulateSourceCandidatesList('fakedata', 555, null, null, (data, error) => {
24359
+ try {
24360
+ if (stub) {
24361
+ const displayE = 'Error 400 received on request';
24362
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24363
+ } else {
24364
+ runCommonAsserts(data, error);
24365
+ }
24366
+ saveMockData('Asset', 'assetMFAOutboundPoliciesSimulateSourceCandidatesList', '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
+ describe('#assetMFAOutboundPoliciesSimulateSourceUserCandidatesList - errors', () => {
24381
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24382
+ try {
24383
+ a.assetMFAOutboundPoliciesSimulateSourceUserCandidatesList('fakedata', 555, null, null, (data, error) => {
24384
+ try {
24385
+ if (stub) {
24386
+ const displayE = 'Error 400 received on request';
24387
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24388
+ } else {
24389
+ runCommonAsserts(data, error);
24390
+ }
24391
+ saveMockData('Asset', 'assetMFAOutboundPoliciesSimulateSourceUserCandidatesList', 'default', data);
24392
+ done();
24393
+ } catch (err) {
24394
+ log.error(`Test Failure: ${err}`);
24395
+ done(err);
24396
+ }
24397
+ });
24398
+ } catch (error) {
24399
+ log.error(`Adapter Exception: ${error}`);
24400
+ done(error);
24401
+ }
24402
+ }).timeout(attemptTimeout);
24403
+ });
24404
+
24405
+ describe('#assetInboundRulesList - errors', () => {
24406
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24407
+ try {
24408
+ a.assetInboundRulesList('fakedata', 555, null, null, null, null, null, null, 555, (data, error) => {
24409
+ try {
24410
+ if (stub) {
24411
+ const displayE = 'Error 400 received on request';
24412
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24413
+ } else {
24414
+ runCommonAsserts(data, error);
24415
+ }
24416
+ saveMockData('Asset', 'assetInboundRulesList', 'default', data);
24417
+ done();
24418
+ } catch (err) {
24419
+ log.error(`Test Failure: ${err}`);
24420
+ done(err);
24421
+ }
24422
+ });
24423
+ } catch (error) {
24424
+ log.error(`Adapter Exception: ${error}`);
24425
+ done(error);
24426
+ }
24427
+ }).timeout(attemptTimeout);
24428
+ });
24429
+
24430
+ const assetAssetInboundRulesCreateBodyParam = {};
24431
+ describe('#assetInboundRulesCreate - errors', () => {
24432
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24433
+ try {
24434
+ a.assetInboundRulesCreate('fakedata', assetAssetInboundRulesCreateBodyParam, (data, error) => {
24435
+ try {
24436
+ if (stub) {
24437
+ const displayE = 'Error 400 received on request';
24438
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24439
+ } else {
24440
+ runCommonAsserts(data, error);
24441
+ }
24442
+ saveMockData('Asset', 'assetInboundRulesCreate', 'default', data);
24443
+ done();
24444
+ } catch (err) {
24445
+ log.error(`Test Failure: ${err}`);
24446
+ done(err);
24447
+ }
24448
+ });
24449
+ } catch (error) {
24450
+ log.error(`Adapter Exception: ${error}`);
24451
+ done(error);
24452
+ }
24453
+ }).timeout(attemptTimeout);
24454
+ });
24455
+
24456
+ const assetAssetInboundRulesExportBodyParam = {};
24457
+ describe('#assetInboundRulesExport - errors', () => {
24458
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24459
+ try {
24460
+ a.assetInboundRulesExport('fakedata', assetAssetInboundRulesExportBodyParam, (data, error) => {
24461
+ try {
24462
+ if (stub) {
24463
+ const displayE = 'Error 400 received on request';
24464
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24465
+ } else {
24466
+ runCommonAsserts(data, error);
24467
+ }
24468
+ saveMockData('Asset', 'assetInboundRulesExport', 'default', data);
24469
+ done();
24470
+ } catch (err) {
24471
+ log.error(`Test Failure: ${err}`);
24472
+ done(err);
24473
+ }
24474
+ });
24475
+ } catch (error) {
24476
+ log.error(`Adapter Exception: ${error}`);
24477
+ done(error);
24478
+ }
24479
+ }).timeout(attemptTimeout);
24480
+ });
24481
+
24482
+ describe('#assetInboundRulesExportGet - errors', () => {
24483
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24484
+ try {
24485
+ a.assetInboundRulesExportGet('fakedata', 'fakedata', (data, error) => {
24486
+ try {
24487
+ if (stub) {
24488
+ const displayE = 'Error 400 received on request';
24489
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24490
+ } else {
24491
+ runCommonAsserts(data, error);
24492
+ }
24493
+ saveMockData('Asset', 'assetInboundRulesExportGet', 'default', data);
24494
+ done();
24495
+ } catch (err) {
24496
+ log.error(`Test Failure: ${err}`);
24497
+ done(err);
24498
+ }
24499
+ });
24500
+ } catch (error) {
24501
+ log.error(`Adapter Exception: ${error}`);
24502
+ done(error);
24503
+ }
24504
+ }).timeout(attemptTimeout);
24505
+ });
24506
+
24507
+ describe('#assetInboundRuleGet - errors', () => {
24508
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24509
+ try {
24510
+ a.assetInboundRuleGet('fakedata', 'fakedata', (data, error) => {
24511
+ try {
24512
+ if (stub) {
24513
+ const displayE = 'Error 400 received on request';
24514
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24515
+ } else {
24516
+ runCommonAsserts(data, error);
24517
+ }
24518
+ saveMockData('Asset', 'assetInboundRuleGet', 'default', data);
24519
+ done();
24520
+ } catch (err) {
24521
+ log.error(`Test Failure: ${err}`);
24522
+ done(err);
24523
+ }
24524
+ });
24525
+ } catch (error) {
24526
+ log.error(`Adapter Exception: ${error}`);
24527
+ done(error);
24528
+ }
24529
+ }).timeout(attemptTimeout);
24530
+ });
24531
+
24532
+ const assetAssetInboundRuleUpdateBodyParam = {};
24533
+ describe('#assetInboundRuleUpdate - errors', () => {
24534
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24535
+ try {
24536
+ a.assetInboundRuleUpdate('fakedata', 'fakedata', assetAssetInboundRuleUpdateBodyParam, (data, error) => {
24537
+ try {
24538
+ if (stub) {
24539
+ const displayE = 'Error 400 received on request';
24540
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24541
+ } else {
24542
+ runCommonAsserts(data, error);
24543
+ }
24544
+ saveMockData('Asset', 'assetInboundRuleUpdate', 'default', data);
24545
+ done();
24546
+ } catch (err) {
24547
+ log.error(`Test Failure: ${err}`);
24548
+ done(err);
24549
+ }
24550
+ });
24551
+ } catch (error) {
24552
+ log.error(`Adapter Exception: ${error}`);
24553
+ done(error);
24554
+ }
24555
+ }).timeout(attemptTimeout);
24556
+ });
24557
+
24558
+ describe('#assetInboundRuleDelete - errors', () => {
24559
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24560
+ try {
24561
+ a.assetInboundRuleDelete('fakedata', 'fakedata', (data, error) => {
24562
+ try {
24563
+ if (stub) {
24564
+ const displayE = 'Error 400 received on request';
24565
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24566
+ } else {
24567
+ runCommonAsserts(data, error);
24568
+ }
24569
+ saveMockData('Asset', 'assetInboundRuleDelete', 'default', data);
24570
+ done();
24571
+ } catch (err) {
24572
+ log.error(`Test Failure: ${err}`);
24573
+ done(err);
24574
+ }
24575
+ });
24576
+ } catch (error) {
24577
+ log.error(`Adapter Exception: ${error}`);
24578
+ done(error);
24579
+ }
24580
+ }).timeout(attemptTimeout);
24581
+ });
24582
+
24583
+ describe('#assetInboundRulesReviewApprove - errors', () => {
24584
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24585
+ try {
24586
+ a.assetInboundRulesReviewApprove('fakedata', 'fakedata', (data, error) => {
24587
+ try {
24588
+ if (stub) {
24589
+ const displayE = 'Error 400 received on request';
24590
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24591
+ } else {
24592
+ runCommonAsserts(data, error);
24593
+ }
24594
+ saveMockData('Asset', 'assetInboundRulesReviewApprove', 'default', data);
24595
+ done();
24596
+ } catch (err) {
24597
+ log.error(`Test Failure: ${err}`);
24598
+ done(err);
24599
+ }
24600
+ });
24601
+ } catch (error) {
24602
+ log.error(`Adapter Exception: ${error}`);
24603
+ done(error);
24604
+ }
24605
+ }).timeout(attemptTimeout);
24606
+ });
24607
+
24608
+ const assetAssetInboundRulesReviewApproveWithChangesBodyParam = {
24609
+ review: {},
24610
+ ruleInfo: {}
24611
+ };
24612
+ describe('#assetInboundRulesReviewApproveWithChanges - errors', () => {
24613
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24614
+ try {
24615
+ a.assetInboundRulesReviewApproveWithChanges('fakedata', 'fakedata', assetAssetInboundRulesReviewApproveWithChangesBodyParam, (data, error) => {
24616
+ try {
24617
+ if (stub) {
24618
+ const displayE = 'Error 400 received on request';
24619
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24620
+ } else {
24621
+ runCommonAsserts(data, error);
24622
+ }
24623
+ saveMockData('Asset', 'assetInboundRulesReviewApproveWithChanges', 'default', data);
24624
+ done();
24625
+ } catch (err) {
24626
+ log.error(`Test Failure: ${err}`);
24627
+ done(err);
24628
+ }
24629
+ });
24630
+ } catch (error) {
24631
+ log.error(`Adapter Exception: ${error}`);
24632
+ done(error);
24633
+ }
24634
+ }).timeout(attemptTimeout);
24635
+ });
24636
+
24637
+ describe('#assetInboundRulesReviewDeny - errors', () => {
24638
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24639
+ try {
24640
+ a.assetInboundRulesReviewDeny('fakedata', 'fakedata', (data, error) => {
24641
+ try {
24642
+ if (stub) {
24643
+ const displayE = 'Error 400 received on request';
24644
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24645
+ } else {
24646
+ runCommonAsserts(data, error);
24647
+ }
24648
+ saveMockData('Asset', 'assetInboundRulesReviewDeny', 'default', data);
24649
+ done();
24650
+ } catch (err) {
24651
+ log.error(`Test Failure: ${err}`);
24652
+ done(err);
24653
+ }
24654
+ });
24655
+ } catch (error) {
24656
+ log.error(`Adapter Exception: ${error}`);
24657
+ done(error);
24658
+ }
24659
+ }).timeout(attemptTimeout);
24660
+ });
24661
+
24662
+ describe('#assetInboundRulesFiltersList - errors', () => {
24663
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24664
+ try {
24665
+ a.assetInboundRulesFiltersList('fakedata', (data, error) => {
24666
+ try {
24667
+ if (stub) {
24668
+ const displayE = 'Error 400 received on request';
24669
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24670
+ } else {
24671
+ runCommonAsserts(data, error);
24672
+ }
24673
+ saveMockData('Asset', 'assetInboundRulesFiltersList', 'default', data);
24674
+ done();
24675
+ } catch (err) {
24676
+ log.error(`Test Failure: ${err}`);
24677
+ done(err);
24678
+ }
24679
+ });
24680
+ } catch (error) {
24681
+ log.error(`Adapter Exception: ${error}`);
24682
+ done(error);
24683
+ }
24684
+ }).timeout(attemptTimeout);
24685
+ });
24686
+
24687
+ describe('#assetInboundRulesExcludedDestinationCandidatesList - errors', () => {
24688
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24689
+ try {
24690
+ a.assetInboundRulesExcludedDestinationCandidatesList('fakedata', 555, null, null, (data, error) => {
24691
+ try {
24692
+ if (stub) {
24693
+ const displayE = 'Error 400 received on request';
24694
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24695
+ } else {
24696
+ runCommonAsserts(data, error);
24697
+ }
24698
+ saveMockData('Asset', 'assetInboundRulesExcludedDestinationCandidatesList', 'default', data);
24699
+ done();
24700
+ } catch (err) {
24701
+ log.error(`Test Failure: ${err}`);
24702
+ done(err);
24703
+ }
24704
+ });
24705
+ } catch (error) {
24706
+ log.error(`Adapter Exception: ${error}`);
24707
+ done(error);
24708
+ }
24709
+ }).timeout(attemptTimeout);
24710
+ });
24711
+
24712
+ describe('#assetInboundRulesDestinationCandidatesList - errors', () => {
24713
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24714
+ try {
24715
+ a.assetInboundRulesDestinationCandidatesList('fakedata', 555, null, null, (data, error) => {
24716
+ try {
24717
+ if (stub) {
24718
+ const displayE = 'Error 400 received on request';
24719
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24720
+ } else {
24721
+ runCommonAsserts(data, error);
24722
+ }
24723
+ saveMockData('Asset', 'assetInboundRulesDestinationCandidatesList', 'default', data);
24724
+ done();
24725
+ } catch (err) {
24726
+ log.error(`Test Failure: ${err}`);
24727
+ done(err);
24728
+ }
24729
+ });
24730
+ } catch (error) {
24731
+ log.error(`Adapter Exception: ${error}`);
24732
+ done(error);
24733
+ }
24734
+ }).timeout(attemptTimeout);
24735
+ });
24736
+
24737
+ describe('#assetInboundRulesDesinationCandidatesFiltersList - errors', () => {
24738
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24739
+ try {
24740
+ a.assetInboundRulesDesinationCandidatesFiltersList('fakedata', (data, error) => {
24741
+ try {
24742
+ if (stub) {
24743
+ const displayE = 'Error 400 received on request';
24744
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24745
+ } else {
24746
+ runCommonAsserts(data, error);
24747
+ }
24748
+ saveMockData('Asset', 'assetInboundRulesDesinationCandidatesFiltersList', 'default', data);
24749
+ done();
24750
+ } catch (err) {
24751
+ log.error(`Test Failure: ${err}`);
24752
+ done(err);
24753
+ }
24754
+ });
24755
+ } catch (error) {
24756
+ log.error(`Adapter Exception: ${error}`);
24757
+ done(error);
24758
+ }
24759
+ }).timeout(attemptTimeout);
24760
+ });
24761
+
24762
+ describe('#assetInboundRulesSourceCandidatesList - errors', () => {
24763
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24764
+ try {
24765
+ a.assetInboundRulesSourceCandidatesList('fakedata', 555, null, null, 555, (data, error) => {
24766
+ try {
24767
+ if (stub) {
24768
+ const displayE = 'Error 400 received on request';
24769
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24770
+ } else {
24771
+ runCommonAsserts(data, error);
24772
+ }
24773
+ saveMockData('Asset', 'assetInboundRulesSourceCandidatesList', 'default', data);
24774
+ done();
24775
+ } catch (err) {
24776
+ log.error(`Test Failure: ${err}`);
24777
+ done(err);
24778
+ }
24779
+ });
24780
+ } catch (error) {
24781
+ log.error(`Adapter Exception: ${error}`);
24782
+ done(error);
24783
+ }
24784
+ }).timeout(attemptTimeout);
24785
+ });
24786
+
24787
+ describe('#assetInboundRulesSourceCandidatesFiltersList - errors', () => {
24788
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24789
+ try {
24790
+ a.assetInboundRulesSourceCandidatesFiltersList('fakedata', (data, error) => {
24791
+ try {
24792
+ if (stub) {
24793
+ const displayE = 'Error 400 received on request';
24794
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24795
+ } else {
24796
+ runCommonAsserts(data, error);
24797
+ }
24798
+ saveMockData('Asset', 'assetInboundRulesSourceCandidatesFiltersList', 'default', data);
24799
+ done();
24800
+ } catch (err) {
24801
+ log.error(`Test Failure: ${err}`);
24802
+ done(err);
24803
+ }
24804
+ });
24805
+ } catch (error) {
24806
+ log.error(`Adapter Exception: ${error}`);
24807
+ done(error);
24808
+ }
24809
+ }).timeout(attemptTimeout);
24810
+ });
24811
+
24812
+ describe('#assetOutboundAllowRulesDestinationCandidatesListV2 - errors', () => {
24813
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24814
+ try {
24815
+ a.assetOutboundAllowRulesDestinationCandidatesListV2('fakedata', 555, null, null, 555, (data, error) => {
24816
+ try {
24817
+ if (stub) {
24818
+ const displayE = 'Error 400 received on request';
24819
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24820
+ } else {
24821
+ runCommonAsserts(data, error);
24822
+ }
24823
+ saveMockData('Asset', 'assetOutboundAllowRulesDestinationCandidatesListV2', 'default', data);
24824
+ done();
24825
+ } catch (err) {
24826
+ log.error(`Test Failure: ${err}`);
24827
+ done(err);
24828
+ }
24829
+ });
24830
+ } catch (error) {
24831
+ log.error(`Adapter Exception: ${error}`);
24832
+ done(error);
24833
+ }
24834
+ }).timeout(attemptTimeout);
24835
+ });
24836
+
24837
+ describe('#assetOTMFAIdentityPoliciesList - errors', () => {
24838
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24839
+ try {
24840
+ a.assetOTMFAIdentityPoliciesList('fakedata', 555, null, null, null, null, null, null, null, (data, error) => {
24841
+ try {
24842
+ if (stub) {
24843
+ const displayE = 'Error 400 received on request';
24844
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24845
+ } else {
24846
+ runCommonAsserts(data, error);
24847
+ }
24848
+ saveMockData('AssetOTIoT', 'assetOTMFAIdentityPoliciesList', 'default', data);
24849
+ done();
24850
+ } catch (err) {
24851
+ log.error(`Test Failure: ${err}`);
24852
+ done(err);
24853
+ }
24854
+ });
24855
+ } catch (error) {
24856
+ log.error(`Adapter Exception: ${error}`);
24857
+ done(error);
24858
+ }
24859
+ }).timeout(attemptTimeout);
24860
+ });
24861
+
24862
+ const assetOTIoTAssetOTMFAIdentityPoliciesCreateBodyParam = {};
24863
+ describe('#assetOTMFAIdentityPoliciesCreate - errors', () => {
24864
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24865
+ try {
24866
+ a.assetOTMFAIdentityPoliciesCreate('fakedata', assetOTIoTAssetOTMFAIdentityPoliciesCreateBodyParam, (data, error) => {
24867
+ try {
24868
+ if (stub) {
24869
+ const displayE = 'Error 400 received on request';
24870
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24871
+ } else {
24872
+ runCommonAsserts(data, error);
24873
+ }
24874
+ saveMockData('AssetOTIoT', 'assetOTMFAIdentityPoliciesCreate', 'default', data);
24875
+ done();
24876
+ } catch (err) {
24877
+ log.error(`Test Failure: ${err}`);
24878
+ done(err);
24879
+ }
24880
+ });
24881
+ } catch (error) {
24882
+ log.error(`Adapter Exception: ${error}`);
24883
+ done(error);
24884
+ }
24885
+ }).timeout(attemptTimeout);
24886
+ });
24887
+
24888
+ describe('#assetOTMFAIdentityPoliciesGet - errors', () => {
24889
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24890
+ try {
24891
+ a.assetOTMFAIdentityPoliciesGet('fakedata', 'fakedata', (data, error) => {
24892
+ try {
24893
+ if (stub) {
24894
+ const displayE = 'Error 400 received on request';
24895
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24896
+ } else {
24897
+ runCommonAsserts(data, error);
24898
+ }
24899
+ saveMockData('AssetOTIoT', 'assetOTMFAIdentityPoliciesGet', 'default', data);
24900
+ done();
24901
+ } catch (err) {
24902
+ log.error(`Test Failure: ${err}`);
24903
+ done(err);
24904
+ }
24905
+ });
24906
+ } catch (error) {
24907
+ log.error(`Adapter Exception: ${error}`);
24908
+ done(error);
24909
+ }
24910
+ }).timeout(attemptTimeout);
24911
+ });
24912
+
24913
+ const assetOTIoTAssetOTMFAIdentityPoliciesUpdateBodyParam = {};
24914
+ describe('#assetOTMFAIdentityPoliciesUpdate - errors', () => {
24915
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24916
+ try {
24917
+ a.assetOTMFAIdentityPoliciesUpdate('fakedata', 'fakedata', assetOTIoTAssetOTMFAIdentityPoliciesUpdateBodyParam, (data, error) => {
24918
+ try {
24919
+ if (stub) {
24920
+ const displayE = 'Error 400 received on request';
24921
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24922
+ } else {
24923
+ runCommonAsserts(data, error);
24924
+ }
24925
+ saveMockData('AssetOTIoT', 'assetOTMFAIdentityPoliciesUpdate', 'default', data);
24926
+ done();
24927
+ } catch (err) {
24928
+ log.error(`Test Failure: ${err}`);
24929
+ done(err);
24930
+ }
24931
+ });
24932
+ } catch (error) {
24933
+ log.error(`Adapter Exception: ${error}`);
24934
+ done(error);
24935
+ }
24936
+ }).timeout(attemptTimeout);
24937
+ });
24938
+
24939
+ describe('#assetOTMFAIdentityPoliciesDelete - errors', () => {
24940
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24941
+ try {
24942
+ a.assetOTMFAIdentityPoliciesDelete('fakedata', 'fakedata', (data, error) => {
24943
+ try {
24944
+ if (stub) {
24945
+ const displayE = 'Error 400 received on request';
24946
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24947
+ } else {
24948
+ runCommonAsserts(data, error);
24949
+ }
24950
+ saveMockData('AssetOTIoT', 'assetOTMFAIdentityPoliciesDelete', 'default', data);
24951
+ done();
24952
+ } catch (err) {
24953
+ log.error(`Test Failure: ${err}`);
24954
+ done(err);
24955
+ }
24956
+ });
24957
+ } catch (error) {
24958
+ log.error(`Adapter Exception: ${error}`);
24959
+ done(error);
24960
+ }
24961
+ }).timeout(attemptTimeout);
24962
+ });
24963
+
24964
+ describe('#assetOTMFAIdentityPoliciesDestinationCandidatesList - errors', () => {
24965
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24966
+ try {
24967
+ a.assetOTMFAIdentityPoliciesDestinationCandidatesList('fakedata', 555, null, null, (data, error) => {
24968
+ try {
24969
+ if (stub) {
24970
+ const displayE = 'Error 400 received on request';
24971
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24972
+ } else {
24973
+ runCommonAsserts(data, error);
24974
+ }
24975
+ saveMockData('AssetOTIoT', 'assetOTMFAIdentityPoliciesDestinationCandidatesList', 'default', data);
24976
+ done();
24977
+ } catch (err) {
24978
+ log.error(`Test Failure: ${err}`);
24979
+ done(err);
24980
+ }
24981
+ });
24982
+ } catch (error) {
24983
+ log.error(`Adapter Exception: ${error}`);
24984
+ done(error);
24985
+ }
24986
+ }).timeout(attemptTimeout);
24987
+ });
24988
+
24989
+ describe('#assetOTMFAIdentityPoliciesExcludedSourceCandidatesList - errors', () => {
24990
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
24991
+ try {
24992
+ a.assetOTMFAIdentityPoliciesExcludedSourceCandidatesList('fakedata', 555, null, null, null, (data, error) => {
24993
+ try {
24994
+ if (stub) {
24995
+ const displayE = 'Error 400 received on request';
24996
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
24997
+ } else {
24998
+ runCommonAsserts(data, error);
24999
+ }
25000
+ saveMockData('AssetOTIoT', 'assetOTMFAIdentityPoliciesExcludedSourceCandidatesList', 'default', data);
25001
+ done();
25002
+ } catch (err) {
25003
+ log.error(`Test Failure: ${err}`);
25004
+ done(err);
25005
+ }
25006
+ });
25007
+ } catch (error) {
25008
+ log.error(`Adapter Exception: ${error}`);
25009
+ done(error);
25010
+ }
25011
+ }).timeout(attemptTimeout);
25012
+ });
25013
+
25014
+ describe('#assetOTMFAIdentityPoliciesFiltersList - errors', () => {
25015
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25016
+ try {
25017
+ a.assetOTMFAIdentityPoliciesFiltersList('fakedata', (data, error) => {
25018
+ try {
25019
+ if (stub) {
25020
+ const displayE = 'Error 400 received on request';
25021
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25022
+ } else {
25023
+ runCommonAsserts(data, error);
25024
+ }
25025
+ saveMockData('AssetOTIoT', 'assetOTMFAIdentityPoliciesFiltersList', 'default', data);
25026
+ done();
25027
+ } catch (err) {
25028
+ log.error(`Test Failure: ${err}`);
25029
+ done(err);
25030
+ }
25031
+ });
25032
+ } catch (error) {
25033
+ log.error(`Adapter Exception: ${error}`);
25034
+ done(error);
25035
+ }
25036
+ }).timeout(attemptTimeout);
25037
+ });
25038
+
25039
+ describe('#assetOTMFAIdentityPoliciesDestinationCandidatesFiltersList - errors', () => {
25040
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25041
+ try {
25042
+ a.assetOTMFAIdentityPoliciesDestinationCandidatesFiltersList('fakedata', 555, null, null, (data, error) => {
25043
+ try {
25044
+ if (stub) {
25045
+ const displayE = 'Error 400 received on request';
25046
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25047
+ } else {
25048
+ runCommonAsserts(data, error);
25049
+ }
25050
+ saveMockData('AssetOTIoT', 'assetOTMFAIdentityPoliciesDestinationCandidatesFiltersList', 'default', data);
25051
+ done();
25052
+ } catch (err) {
25053
+ log.error(`Test Failure: ${err}`);
25054
+ done(err);
25055
+ }
25056
+ });
25057
+ } catch (error) {
25058
+ log.error(`Adapter Exception: ${error}`);
25059
+ done(error);
25060
+ }
25061
+ }).timeout(attemptTimeout);
25062
+ });
25063
+
25064
+ describe('#assetOTMFAIdentityPoliciesSourceCandidatesFiltersList - errors', () => {
25065
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25066
+ try {
25067
+ a.assetOTMFAIdentityPoliciesSourceCandidatesFiltersList('fakedata', 555, null, null, (data, error) => {
25068
+ try {
25069
+ if (stub) {
25070
+ const displayE = 'Error 400 received on request';
25071
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25072
+ } else {
25073
+ runCommonAsserts(data, error);
25074
+ }
25075
+ saveMockData('AssetOTIoT', 'assetOTMFAIdentityPoliciesSourceCandidatesFiltersList', 'default', data);
25076
+ done();
25077
+ } catch (err) {
25078
+ log.error(`Test Failure: ${err}`);
25079
+ done(err);
25080
+ }
25081
+ });
25082
+ } catch (error) {
25083
+ log.error(`Adapter Exception: ${error}`);
25084
+ done(error);
25085
+ }
25086
+ }).timeout(attemptTimeout);
25087
+ });
25088
+
25089
+ describe('#assetOTMFAIdentityPoliciesSourceUsersCandidatesFiltersList - errors', () => {
25090
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25091
+ try {
25092
+ a.assetOTMFAIdentityPoliciesSourceUsersCandidatesFiltersList('fakedata', 555, null, null, (data, error) => {
25093
+ try {
25094
+ if (stub) {
25095
+ const displayE = 'Error 400 received on request';
25096
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25097
+ } else {
25098
+ runCommonAsserts(data, error);
25099
+ }
25100
+ saveMockData('AssetOTIoT', 'assetOTMFAIdentityPoliciesSourceUsersCandidatesFiltersList', 'default', data);
25101
+ done();
25102
+ } catch (err) {
25103
+ log.error(`Test Failure: ${err}`);
25104
+ done(err);
25105
+ }
25106
+ });
25107
+ } catch (error) {
25108
+ log.error(`Adapter Exception: ${error}`);
25109
+ done(error);
25110
+ }
25111
+ }).timeout(attemptTimeout);
25112
+ });
25113
+
25114
+ describe('#assetOTMFAIdentityPoliciesMFAMethodsList - errors', () => {
25115
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25116
+ try {
25117
+ a.assetOTMFAIdentityPoliciesMFAMethodsList('fakedata', (data, error) => {
25118
+ try {
25119
+ if (stub) {
25120
+ const displayE = 'Error 400 received on request';
25121
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25122
+ } else {
25123
+ runCommonAsserts(data, error);
25124
+ }
25125
+ saveMockData('AssetOTIoT', 'assetOTMFAIdentityPoliciesMFAMethodsList', 'default', data);
25126
+ done();
25127
+ } catch (err) {
25128
+ log.error(`Test Failure: ${err}`);
25129
+ done(err);
25130
+ }
25131
+ });
25132
+ } catch (error) {
25133
+ log.error(`Adapter Exception: ${error}`);
25134
+ done(error);
25135
+ }
25136
+ }).timeout(attemptTimeout);
25137
+ });
25138
+
25139
+ describe('#assetOTMFAIdentityPoliciesSourceCandidatesList - errors', () => {
25140
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25141
+ try {
25142
+ a.assetOTMFAIdentityPoliciesSourceCandidatesList('fakedata', 555, null, null, (data, error) => {
25143
+ try {
25144
+ if (stub) {
25145
+ const displayE = 'Error 400 received on request';
25146
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25147
+ } else {
25148
+ runCommonAsserts(data, error);
25149
+ }
25150
+ saveMockData('AssetOTIoT', 'assetOTMFAIdentityPoliciesSourceCandidatesList', 'default', data);
25151
+ done();
25152
+ } catch (err) {
25153
+ log.error(`Test Failure: ${err}`);
25154
+ done(err);
25155
+ }
25156
+ });
25157
+ } catch (error) {
25158
+ log.error(`Adapter Exception: ${error}`);
25159
+ done(error);
25160
+ }
25161
+ }).timeout(attemptTimeout);
25162
+ });
25163
+
25164
+ describe('#assetOTMFAIdentityPoliciesSourceUserCandidatesList - errors', () => {
25165
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25166
+ try {
25167
+ a.assetOTMFAIdentityPoliciesSourceUserCandidatesList('fakedata', 555, null, null, (data, error) => {
25168
+ try {
25169
+ if (stub) {
25170
+ const displayE = 'Error 400 received on request';
25171
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25172
+ } else {
25173
+ runCommonAsserts(data, error);
25174
+ }
25175
+ saveMockData('AssetOTIoT', 'assetOTMFAIdentityPoliciesSourceUserCandidatesList', 'default', data);
25176
+ done();
25177
+ } catch (err) {
25178
+ log.error(`Test Failure: ${err}`);
25179
+ done(err);
25180
+ }
25181
+ });
25182
+ } catch (error) {
25183
+ log.error(`Adapter Exception: ${error}`);
25184
+ done(error);
25185
+ }
25186
+ }).timeout(attemptTimeout);
25187
+ });
25188
+
25189
+ describe('#assetOTMFAInboundPoliciesSimulateTest - errors', () => {
25190
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25191
+ try {
25192
+ a.assetOTMFAInboundPoliciesSimulateTest('fakedata', 'fakedata', 'fakedata', null, 'fakedata', null, 555, 555, (data, error) => {
25193
+ try {
25194
+ if (stub) {
25195
+ const displayE = 'Error 400 received on request';
25196
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25197
+ } else {
25198
+ runCommonAsserts(data, error);
25199
+ }
25200
+ saveMockData('AssetOTIoT', 'assetOTMFAInboundPoliciesSimulateTest', 'default', data);
25201
+ done();
25202
+ } catch (err) {
25203
+ log.error(`Test Failure: ${err}`);
25204
+ done(err);
25205
+ }
25206
+ });
25207
+ } catch (error) {
25208
+ log.error(`Adapter Exception: ${error}`);
25209
+ done(error);
25210
+ }
25211
+ }).timeout(attemptTimeout);
25212
+ });
25213
+
25214
+ describe('#assetOTMFAInboundPoliciesSimulateDestinationCandidatesList - errors', () => {
25215
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25216
+ try {
25217
+ a.assetOTMFAInboundPoliciesSimulateDestinationCandidatesList('fakedata', 555, null, null, (data, error) => {
25218
+ try {
25219
+ if (stub) {
25220
+ const displayE = 'Error 400 received on request';
25221
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25222
+ } else {
25223
+ runCommonAsserts(data, error);
25224
+ }
25225
+ saveMockData('AssetOTIoT', 'assetOTMFAInboundPoliciesSimulateDestinationCandidatesList', 'default', data);
25226
+ done();
25227
+ } catch (err) {
25228
+ log.error(`Test Failure: ${err}`);
25229
+ done(err);
25230
+ }
25231
+ });
25232
+ } catch (error) {
25233
+ log.error(`Adapter Exception: ${error}`);
25234
+ done(error);
25235
+ }
25236
+ }).timeout(attemptTimeout);
25237
+ });
25238
+
25239
+ describe('#assetOTMFAInboundPoliciesSimulateResolveGet - errors', () => {
25240
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25241
+ try {
25242
+ a.assetOTMFAInboundPoliciesSimulateResolveGet('fakedata', null, (data, error) => {
25243
+ try {
25244
+ if (stub) {
25245
+ const displayE = 'Error 400 received on request';
25246
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25247
+ } else {
25248
+ runCommonAsserts(data, error);
25249
+ }
25250
+ saveMockData('AssetOTIoT', 'assetOTMFAInboundPoliciesSimulateResolveGet', 'default', data);
25251
+ done();
25252
+ } catch (err) {
25253
+ log.error(`Test Failure: ${err}`);
25254
+ done(err);
25255
+ }
25256
+ });
25257
+ } catch (error) {
25258
+ log.error(`Adapter Exception: ${error}`);
25259
+ done(error);
25260
+ }
25261
+ }).timeout(attemptTimeout);
25262
+ });
25263
+
25264
+ describe('#assetOTMFAInboundPoliciesSimulateSourceCandidatesList - errors', () => {
25265
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25266
+ try {
25267
+ a.assetOTMFAInboundPoliciesSimulateSourceCandidatesList('fakedata', 555, null, null, (data, error) => {
25268
+ try {
25269
+ if (stub) {
25270
+ const displayE = 'Error 400 received on request';
25271
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25272
+ } else {
25273
+ runCommonAsserts(data, error);
25274
+ }
25275
+ saveMockData('AssetOTIoT', 'assetOTMFAInboundPoliciesSimulateSourceCandidatesList', 'default', data);
25276
+ done();
25277
+ } catch (err) {
25278
+ log.error(`Test Failure: ${err}`);
25279
+ done(err);
25280
+ }
25281
+ });
25282
+ } catch (error) {
25283
+ log.error(`Adapter Exception: ${error}`);
25284
+ done(error);
25285
+ }
25286
+ }).timeout(attemptTimeout);
25287
+ });
25288
+
25289
+ describe('#assetOTMFAInboundPoliciesSimulateSourceUserCandidatesList - errors', () => {
25290
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25291
+ try {
25292
+ a.assetOTMFAInboundPoliciesSimulateSourceUserCandidatesList('fakedata', 555, null, null, (data, error) => {
25293
+ try {
25294
+ if (stub) {
25295
+ const displayE = 'Error 400 received on request';
25296
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25297
+ } else {
25298
+ runCommonAsserts(data, error);
25299
+ }
25300
+ saveMockData('AssetOTIoT', 'assetOTMFAInboundPoliciesSimulateSourceUserCandidatesList', 'default', data);
25301
+ done();
25302
+ } catch (err) {
25303
+ log.error(`Test Failure: ${err}`);
25304
+ done(err);
25305
+ }
25306
+ });
25307
+ } catch (error) {
25308
+ log.error(`Adapter Exception: ${error}`);
25309
+ done(error);
25310
+ }
25311
+ }).timeout(attemptTimeout);
25312
+ });
25313
+
25314
+ describe('#assetOTMFAOutboundPoliciesSimulateTest - errors', () => {
25315
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25316
+ try {
25317
+ a.assetOTMFAOutboundPoliciesSimulateTest('fakedata', 'fakedata', 'fakedata', null, 'fakedata', null, 555, 555, (data, error) => {
25318
+ try {
25319
+ if (stub) {
25320
+ const displayE = 'Error 400 received on request';
25321
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25322
+ } else {
25323
+ runCommonAsserts(data, error);
25324
+ }
25325
+ saveMockData('AssetOTIoT', 'assetOTMFAOutboundPoliciesSimulateTest', 'default', data);
25326
+ done();
25327
+ } catch (err) {
25328
+ log.error(`Test Failure: ${err}`);
25329
+ done(err);
25330
+ }
25331
+ });
25332
+ } catch (error) {
25333
+ log.error(`Adapter Exception: ${error}`);
25334
+ done(error);
25335
+ }
25336
+ }).timeout(attemptTimeout);
25337
+ });
25338
+
25339
+ describe('#assetOTMFAOutboundPoliciesSimulateDestinationCandidatesList - errors', () => {
25340
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25341
+ try {
25342
+ a.assetOTMFAOutboundPoliciesSimulateDestinationCandidatesList('fakedata', 555, null, null, (data, error) => {
25343
+ try {
25344
+ if (stub) {
25345
+ const displayE = 'Error 400 received on request';
25346
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25347
+ } else {
25348
+ runCommonAsserts(data, error);
25349
+ }
25350
+ saveMockData('AssetOTIoT', 'assetOTMFAOutboundPoliciesSimulateDestinationCandidatesList', 'default', data);
25351
+ done();
25352
+ } catch (err) {
25353
+ log.error(`Test Failure: ${err}`);
25354
+ done(err);
25355
+ }
25356
+ });
25357
+ } catch (error) {
25358
+ log.error(`Adapter Exception: ${error}`);
25359
+ done(error);
25360
+ }
25361
+ }).timeout(attemptTimeout);
25362
+ });
25363
+
25364
+ describe('#assetOTMFAOutboundPoliciesSimulateResolveGet - errors', () => {
25365
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25366
+ try {
25367
+ a.assetOTMFAOutboundPoliciesSimulateResolveGet('fakedata', null, (data, error) => {
25368
+ try {
25369
+ if (stub) {
25370
+ const displayE = 'Error 400 received on request';
25371
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25372
+ } else {
25373
+ runCommonAsserts(data, error);
25374
+ }
25375
+ saveMockData('AssetOTIoT', 'assetOTMFAOutboundPoliciesSimulateResolveGet', 'default', data);
25376
+ done();
25377
+ } catch (err) {
25378
+ log.error(`Test Failure: ${err}`);
25379
+ done(err);
25380
+ }
25381
+ });
25382
+ } catch (error) {
25383
+ log.error(`Adapter Exception: ${error}`);
25384
+ done(error);
25385
+ }
25386
+ }).timeout(attemptTimeout);
25387
+ });
25388
+
25389
+ describe('#assetOTMFAOutboundPoliciesSimulateSourceCandidatesList - errors', () => {
25390
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25391
+ try {
25392
+ a.assetOTMFAOutboundPoliciesSimulateSourceCandidatesList('fakedata', 555, null, null, (data, error) => {
25393
+ try {
25394
+ if (stub) {
25395
+ const displayE = 'Error 400 received on request';
25396
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25397
+ } else {
25398
+ runCommonAsserts(data, error);
25399
+ }
25400
+ saveMockData('AssetOTIoT', 'assetOTMFAOutboundPoliciesSimulateSourceCandidatesList', 'default', data);
25401
+ done();
25402
+ } catch (err) {
25403
+ log.error(`Test Failure: ${err}`);
25404
+ done(err);
25405
+ }
25406
+ });
25407
+ } catch (error) {
25408
+ log.error(`Adapter Exception: ${error}`);
25409
+ done(error);
25410
+ }
25411
+ }).timeout(attemptTimeout);
25412
+ });
25413
+
25414
+ describe('#assetOTMFAOutboundPoliciesSimulateSourceUserCandidatesList - errors', () => {
25415
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25416
+ try {
25417
+ a.assetOTMFAOutboundPoliciesSimulateSourceUserCandidatesList('fakedata', 555, null, null, (data, error) => {
25418
+ try {
25419
+ if (stub) {
25420
+ const displayE = 'Error 400 received on request';
25421
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25422
+ } else {
25423
+ runCommonAsserts(data, error);
25424
+ }
25425
+ saveMockData('AssetOTIoT', 'assetOTMFAOutboundPoliciesSimulateSourceUserCandidatesList', 'default', data);
25426
+ done();
25427
+ } catch (err) {
25428
+ log.error(`Test Failure: ${err}`);
25429
+ done(err);
25430
+ }
25431
+ });
25432
+ } catch (error) {
25433
+ log.error(`Adapter Exception: ${error}`);
25434
+ done(error);
25435
+ }
25436
+ }).timeout(attemptTimeout);
25437
+ });
25438
+
25439
+ describe('#assetOTInboundRulesList - errors', () => {
25440
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25441
+ try {
25442
+ a.assetOTInboundRulesList('fakedata', 555, null, null, null, null, null, null, 555, (data, error) => {
25443
+ try {
25444
+ if (stub) {
25445
+ const displayE = 'Error 400 received on request';
25446
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25447
+ } else {
25448
+ runCommonAsserts(data, error);
25449
+ }
25450
+ saveMockData('AssetOTIoT', 'assetOTInboundRulesList', 'default', data);
25451
+ done();
25452
+ } catch (err) {
25453
+ log.error(`Test Failure: ${err}`);
25454
+ done(err);
25455
+ }
25456
+ });
25457
+ } catch (error) {
25458
+ log.error(`Adapter Exception: ${error}`);
25459
+ done(error);
25460
+ }
25461
+ }).timeout(attemptTimeout);
25462
+ });
25463
+
25464
+ const assetOTIoTAssetOTInboundRulesCreateBodyParam = {};
25465
+ describe('#assetOTInboundRulesCreate - errors', () => {
25466
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25467
+ try {
25468
+ a.assetOTInboundRulesCreate('fakedata', assetOTIoTAssetOTInboundRulesCreateBodyParam, (data, error) => {
25469
+ try {
25470
+ if (stub) {
25471
+ const displayE = 'Error 400 received on request';
25472
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25473
+ } else {
25474
+ runCommonAsserts(data, error);
25475
+ }
25476
+ saveMockData('AssetOTIoT', 'assetOTInboundRulesCreate', 'default', data);
25477
+ done();
25478
+ } catch (err) {
25479
+ log.error(`Test Failure: ${err}`);
25480
+ done(err);
25481
+ }
25482
+ });
25483
+ } catch (error) {
25484
+ log.error(`Adapter Exception: ${error}`);
25485
+ done(error);
25486
+ }
25487
+ }).timeout(attemptTimeout);
25488
+ });
25489
+
25490
+ const assetOTIoTAssetOTInboundRulesExportBodyParam = {};
25491
+ describe('#assetOTInboundRulesExport - errors', () => {
25492
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25493
+ try {
25494
+ a.assetOTInboundRulesExport('fakedata', assetOTIoTAssetOTInboundRulesExportBodyParam, (data, error) => {
25495
+ try {
25496
+ if (stub) {
25497
+ const displayE = 'Error 400 received on request';
25498
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25499
+ } else {
25500
+ runCommonAsserts(data, error);
25501
+ }
25502
+ saveMockData('AssetOTIoT', 'assetOTInboundRulesExport', 'default', data);
25503
+ done();
25504
+ } catch (err) {
25505
+ log.error(`Test Failure: ${err}`);
25506
+ done(err);
25507
+ }
25508
+ });
25509
+ } catch (error) {
25510
+ log.error(`Adapter Exception: ${error}`);
25511
+ done(error);
25512
+ }
25513
+ }).timeout(attemptTimeout);
25514
+ });
25515
+
25516
+ describe('#assetOTInboundRulesExportGet - errors', () => {
25517
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25518
+ try {
25519
+ a.assetOTInboundRulesExportGet('fakedata', 'fakedata', (data, error) => {
25520
+ try {
25521
+ if (stub) {
25522
+ const displayE = 'Error 400 received on request';
25523
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25524
+ } else {
25525
+ runCommonAsserts(data, error);
25526
+ }
25527
+ saveMockData('AssetOTIoT', 'assetOTInboundRulesExportGet', 'default', data);
25528
+ done();
25529
+ } catch (err) {
25530
+ log.error(`Test Failure: ${err}`);
25531
+ done(err);
25532
+ }
25533
+ });
25534
+ } catch (error) {
25535
+ log.error(`Adapter Exception: ${error}`);
25536
+ done(error);
25537
+ }
25538
+ }).timeout(attemptTimeout);
25539
+ });
25540
+
25541
+ describe('#assetOTInboundRulesExcludedDestinationCandidatesList - errors', () => {
25542
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25543
+ try {
25544
+ a.assetOTInboundRulesExcludedDestinationCandidatesList('fakedata', 555, null, null, (data, error) => {
25545
+ try {
25546
+ if (stub) {
25547
+ const displayE = 'Error 400 received on request';
25548
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25549
+ } else {
25550
+ runCommonAsserts(data, error);
25551
+ }
25552
+ saveMockData('AssetOTIoT', 'assetOTInboundRulesExcludedDestinationCandidatesList', 'default', data);
25553
+ done();
25554
+ } catch (err) {
25555
+ log.error(`Test Failure: ${err}`);
25556
+ done(err);
25557
+ }
25558
+ });
25559
+ } catch (error) {
25560
+ log.error(`Adapter Exception: ${error}`);
25561
+ done(error);
25562
+ }
25563
+ }).timeout(attemptTimeout);
25564
+ });
25565
+
25566
+ describe('#assetOTInboundRulesFiltersList - errors', () => {
25567
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25568
+ try {
25569
+ a.assetOTInboundRulesFiltersList('fakedata', (data, error) => {
25570
+ try {
25571
+ if (stub) {
25572
+ const displayE = 'Error 400 received on request';
25573
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25574
+ } else {
25575
+ runCommonAsserts(data, error);
25576
+ }
25577
+ saveMockData('AssetOTIoT', 'assetOTInboundRulesFiltersList', 'default', data);
25578
+ done();
25579
+ } catch (err) {
25580
+ log.error(`Test Failure: ${err}`);
25581
+ done(err);
25582
+ }
25583
+ });
25584
+ } catch (error) {
25585
+ log.error(`Adapter Exception: ${error}`);
25586
+ done(error);
25587
+ }
25588
+ }).timeout(attemptTimeout);
25589
+ });
25590
+
25591
+ describe('#assetOTInboundRulesDesinationCandidatesFiltersList - errors', () => {
25592
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25593
+ try {
25594
+ a.assetOTInboundRulesDesinationCandidatesFiltersList('fakedata', (data, error) => {
25595
+ try {
25596
+ if (stub) {
25597
+ const displayE = 'Error 400 received on request';
25598
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25599
+ } else {
25600
+ runCommonAsserts(data, error);
25601
+ }
25602
+ saveMockData('AssetOTIoT', 'assetOTInboundRulesDesinationCandidatesFiltersList', 'default', data);
25603
+ done();
25604
+ } catch (err) {
25605
+ log.error(`Test Failure: ${err}`);
25606
+ done(err);
25607
+ }
25608
+ });
25609
+ } catch (error) {
25610
+ log.error(`Adapter Exception: ${error}`);
25611
+ done(error);
25612
+ }
25613
+ }).timeout(attemptTimeout);
25614
+ });
25615
+
25616
+ describe('#assetOTInboundRulesSourceCandidatesFiltersList - errors', () => {
25617
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25618
+ try {
25619
+ a.assetOTInboundRulesSourceCandidatesFiltersList('fakedata', (data, error) => {
25620
+ try {
25621
+ if (stub) {
25622
+ const displayE = 'Error 400 received on request';
25623
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25624
+ } else {
25625
+ runCommonAsserts(data, error);
25626
+ }
25627
+ saveMockData('AssetOTIoT', 'assetOTInboundRulesSourceCandidatesFiltersList', 'default', data);
25628
+ done();
25629
+ } catch (err) {
25630
+ log.error(`Test Failure: ${err}`);
25631
+ done(err);
25632
+ }
25633
+ });
25634
+ } catch (error) {
25635
+ log.error(`Adapter Exception: ${error}`);
25636
+ done(error);
25637
+ }
25638
+ }).timeout(attemptTimeout);
25639
+ });
25640
+
25641
+ describe('#assetOTInboundRulesDestinationCandidatesList - errors', () => {
25642
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25643
+ try {
25644
+ a.assetOTInboundRulesDestinationCandidatesList('fakedata', 555, null, null, (data, error) => {
25645
+ try {
25646
+ if (stub) {
25647
+ const displayE = 'Error 400 received on request';
25648
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25649
+ } else {
25650
+ runCommonAsserts(data, error);
25651
+ }
25652
+ saveMockData('AssetOTIoT', 'assetOTInboundRulesDestinationCandidatesList', 'default', data);
25653
+ done();
25654
+ } catch (err) {
25655
+ log.error(`Test Failure: ${err}`);
25656
+ done(err);
25657
+ }
25658
+ });
25659
+ } catch (error) {
25660
+ log.error(`Adapter Exception: ${error}`);
25661
+ done(error);
25662
+ }
25663
+ }).timeout(attemptTimeout);
25664
+ });
25665
+
25666
+ describe('#assetOTInboundRulesSourceCandidatesList - errors', () => {
25667
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25668
+ try {
25669
+ a.assetOTInboundRulesSourceCandidatesList('fakedata', 555, null, null, 555, (data, error) => {
25670
+ try {
25671
+ if (stub) {
25672
+ const displayE = 'Error 400 received on request';
25673
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25674
+ } else {
25675
+ runCommonAsserts(data, error);
25676
+ }
25677
+ saveMockData('AssetOTIoT', 'assetOTInboundRulesSourceCandidatesList', 'default', data);
25678
+ done();
25679
+ } catch (err) {
25680
+ log.error(`Test Failure: ${err}`);
25681
+ done(err);
25682
+ }
25683
+ });
25684
+ } catch (error) {
25685
+ log.error(`Adapter Exception: ${error}`);
25686
+ done(error);
25687
+ }
25688
+ }).timeout(attemptTimeout);
25689
+ });
25690
+
25691
+ describe('#assetOTInboundRulesReviewApprove - errors', () => {
25692
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25693
+ try {
25694
+ a.assetOTInboundRulesReviewApprove('fakedata', 'fakedata', (data, error) => {
25695
+ try {
25696
+ if (stub) {
25697
+ const displayE = 'Error 400 received on request';
25698
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25699
+ } else {
25700
+ runCommonAsserts(data, error);
25701
+ }
25702
+ saveMockData('AssetOTIoT', 'assetOTInboundRulesReviewApprove', 'default', data);
25703
+ done();
25704
+ } catch (err) {
25705
+ log.error(`Test Failure: ${err}`);
25706
+ done(err);
25707
+ }
25708
+ });
25709
+ } catch (error) {
25710
+ log.error(`Adapter Exception: ${error}`);
25711
+ done(error);
25712
+ }
25713
+ }).timeout(attemptTimeout);
25714
+ });
25715
+
25716
+ const assetOTIoTAssetOTInboundRulesReviewApproveWithChangesBodyParam = {
25717
+ review: {},
25718
+ ruleInfo: {}
25719
+ };
25720
+ describe('#assetOTInboundRulesReviewApproveWithChanges - errors', () => {
25721
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25722
+ try {
25723
+ a.assetOTInboundRulesReviewApproveWithChanges('fakedata', 'fakedata', assetOTIoTAssetOTInboundRulesReviewApproveWithChangesBodyParam, (data, error) => {
25724
+ try {
25725
+ if (stub) {
25726
+ const displayE = 'Error 400 received on request';
25727
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25728
+ } else {
25729
+ runCommonAsserts(data, error);
25730
+ }
25731
+ saveMockData('AssetOTIoT', 'assetOTInboundRulesReviewApproveWithChanges', 'default', data);
25732
+ done();
25733
+ } catch (err) {
25734
+ log.error(`Test Failure: ${err}`);
25735
+ done(err);
25736
+ }
25737
+ });
25738
+ } catch (error) {
25739
+ log.error(`Adapter Exception: ${error}`);
25740
+ done(error);
25741
+ }
25742
+ }).timeout(attemptTimeout);
25743
+ });
25744
+
25745
+ describe('#assetOTInboundRulesReviewDeny - errors', () => {
25746
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25747
+ try {
25748
+ a.assetOTInboundRulesReviewDeny('fakedata', 'fakedata', (data, error) => {
25749
+ try {
25750
+ if (stub) {
25751
+ const displayE = 'Error 400 received on request';
25752
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25753
+ } else {
25754
+ runCommonAsserts(data, error);
25755
+ }
25756
+ saveMockData('AssetOTIoT', 'assetOTInboundRulesReviewDeny', 'default', data);
25757
+ done();
25758
+ } catch (err) {
25759
+ log.error(`Test Failure: ${err}`);
25760
+ done(err);
25761
+ }
25762
+ });
25763
+ } catch (error) {
25764
+ log.error(`Adapter Exception: ${error}`);
25765
+ done(error);
25766
+ }
25767
+ }).timeout(attemptTimeout);
25768
+ });
25769
+
25770
+ describe('#assetOTInboundRuleGet - errors', () => {
25771
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25772
+ try {
25773
+ a.assetOTInboundRuleGet('fakedata', 'fakedata', (data, error) => {
25774
+ try {
25775
+ if (stub) {
25776
+ const displayE = 'Error 400 received on request';
25777
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25778
+ } else {
25779
+ runCommonAsserts(data, error);
25780
+ }
25781
+ saveMockData('AssetOTIoT', 'assetOTInboundRuleGet', 'default', data);
25782
+ done();
25783
+ } catch (err) {
25784
+ log.error(`Test Failure: ${err}`);
25785
+ done(err);
25786
+ }
25787
+ });
25788
+ } catch (error) {
25789
+ log.error(`Adapter Exception: ${error}`);
25790
+ done(error);
25791
+ }
25792
+ }).timeout(attemptTimeout);
25793
+ });
25794
+
25795
+ const assetOTIoTAssetOTInboundRuleUpdateBodyParam = {};
25796
+ describe('#assetOTInboundRuleUpdate - errors', () => {
25797
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25798
+ try {
25799
+ a.assetOTInboundRuleUpdate('fakedata', 'fakedata', assetOTIoTAssetOTInboundRuleUpdateBodyParam, (data, error) => {
25800
+ try {
25801
+ if (stub) {
25802
+ const displayE = 'Error 400 received on request';
25803
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25804
+ } else {
25805
+ runCommonAsserts(data, error);
25806
+ }
25807
+ saveMockData('AssetOTIoT', 'assetOTInboundRuleUpdate', 'default', data);
25808
+ done();
25809
+ } catch (err) {
25810
+ log.error(`Test Failure: ${err}`);
25811
+ done(err);
25812
+ }
25813
+ });
25814
+ } catch (error) {
25815
+ log.error(`Adapter Exception: ${error}`);
25816
+ done(error);
25817
+ }
25818
+ }).timeout(attemptTimeout);
25819
+ });
25820
+
25821
+ describe('#assetOTInboundRuleDelete - errors', () => {
25822
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25823
+ try {
25824
+ a.assetOTInboundRuleDelete('fakedata', 'fakedata', (data, error) => {
25825
+ try {
25826
+ if (stub) {
25827
+ const displayE = 'Error 400 received on request';
25828
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25829
+ } else {
25830
+ runCommonAsserts(data, error);
25831
+ }
25832
+ saveMockData('AssetOTIoT', 'assetOTInboundRuleDelete', 'default', data);
25833
+ done();
25834
+ } catch (err) {
25835
+ log.error(`Test Failure: ${err}`);
25836
+ done(err);
25837
+ }
25838
+ });
25839
+ } catch (error) {
25840
+ log.error(`Adapter Exception: ${error}`);
25841
+ done(error);
25842
+ }
25843
+ }).timeout(attemptTimeout);
25844
+ });
25845
+
25846
+ describe('#assetOTOutboundAllowRulesDestinationCandidatesListV2 - errors', () => {
25847
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25848
+ try {
25849
+ a.assetOTOutboundAllowRulesDestinationCandidatesListV2('fakedata', 555, null, null, 555, (data, error) => {
25850
+ try {
25851
+ if (stub) {
25852
+ const displayE = 'Error 400 received on request';
25853
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25854
+ } else {
25855
+ runCommonAsserts(data, error);
25856
+ }
25857
+ saveMockData('AssetOTIoT', 'assetOTOutboundAllowRulesDestinationCandidatesListV2', 'default', data);
25858
+ done();
25859
+ } catch (err) {
25860
+ log.error(`Test Failure: ${err}`);
25861
+ done(err);
25862
+ }
25863
+ });
25864
+ } catch (error) {
25865
+ log.error(`Adapter Exception: ${error}`);
25866
+ done(error);
25867
+ }
25868
+ }).timeout(attemptTimeout);
25869
+ });
25870
+
25871
+ describe('#assetsListV2 - errors', () => {
25872
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25873
+ try {
25874
+ a.assetsListV2(555, null, null, null, null, null, null, null, (data, error) => {
25875
+ try {
25876
+ if (stub) {
25877
+ const displayE = 'Error 400 received on request';
25878
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25879
+ } else {
25880
+ runCommonAsserts(data, error);
25881
+ }
25882
+ saveMockData('Assets', 'assetsListV2', 'default', data);
25883
+ done();
25884
+ } catch (err) {
25885
+ log.error(`Test Failure: ${err}`);
25886
+ done(err);
25887
+ }
25888
+ });
25889
+ } catch (error) {
25890
+ log.error(`Adapter Exception: ${error}`);
25891
+ done(error);
25892
+ }
25893
+ }).timeout(attemptTimeout);
25894
+ });
25895
+
25896
+ const assetsAssetTypeUpdateBodyParam = {
25897
+ type: null
25898
+ };
25899
+ describe('#assetTypeUpdate - errors', () => {
25900
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25901
+ try {
25902
+ a.assetTypeUpdate('fakedata', assetsAssetTypeUpdateBodyParam, (data, error) => {
25903
+ try {
25904
+ if (stub) {
25905
+ const displayE = 'Error 400 received on request';
25906
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25907
+ } else {
25908
+ runCommonAsserts(data, error);
25909
+ }
25910
+ saveMockData('Assets', 'assetTypeUpdate', 'default', data);
25911
+ done();
25912
+ } catch (err) {
25913
+ log.error(`Test Failure: ${err}`);
25914
+ done(err);
25915
+ }
25916
+ });
25917
+ } catch (error) {
25918
+ log.error(`Adapter Exception: ${error}`);
25919
+ done(error);
25920
+ }
25921
+ }).timeout(attemptTimeout);
25922
+ });
25923
+
25924
+ describe('#assetsLinuxScriptGet - errors', () => {
25925
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25926
+ try {
25927
+ a.assetsLinuxScriptGet((data, error) => {
25928
+ try {
25929
+ if (stub) {
25930
+ const displayE = 'Error 400 received on request';
25931
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25932
+ } else {
25933
+ runCommonAsserts(data, error);
25934
+ }
25935
+ saveMockData('Assets', 'assetsLinuxScriptGet', 'default', data);
25936
+ done();
25937
+ } catch (err) {
25938
+ log.error(`Test Failure: ${err}`);
25939
+ done(err);
25940
+ }
25941
+ });
25942
+ } catch (error) {
25943
+ log.error(`Adapter Exception: ${error}`);
25944
+ done(error);
25945
+ }
25946
+ }).timeout(attemptTimeout);
25947
+ });
25948
+
25949
+ describe('#assetsLinuxScriptAvailableGet - errors', () => {
25950
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25951
+ try {
25952
+ a.assetsLinuxScriptAvailableGet((data, error) => {
25953
+ try {
25954
+ if (stub) {
25955
+ const displayE = 'Error 400 received on request';
25956
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25957
+ } else {
25958
+ runCommonAsserts(data, error);
25959
+ }
25960
+ saveMockData('Assets', 'assetsLinuxScriptAvailableGet', 'default', data);
25961
+ done();
25962
+ } catch (err) {
25963
+ log.error(`Test Failure: ${err}`);
25964
+ done(err);
25965
+ }
25966
+ });
25967
+ } catch (error) {
25968
+ log.error(`Adapter Exception: ${error}`);
25969
+ done(error);
25970
+ }
25971
+ }).timeout(attemptTimeout);
25972
+ });
25973
+
25974
+ describe('#groupsMFAInboundPoliciesSimulateTest - errors', () => {
25975
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
25976
+ try {
25977
+ a.groupsMFAInboundPoliciesSimulateTest('fakedata', 'fakedata', 'fakedata', 'fakedata', null, 'fakedata', null, 555, 555, (data, error) => {
25978
+ try {
25979
+ if (stub) {
25980
+ const displayE = 'Error 400 received on request';
25981
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
25982
+ } else {
25983
+ runCommonAsserts(data, error);
25984
+ }
25985
+ saveMockData('Group', 'groupsMFAInboundPoliciesSimulateTest', 'default', data);
25986
+ done();
25987
+ } catch (err) {
25988
+ log.error(`Test Failure: ${err}`);
25989
+ done(err);
25990
+ }
25991
+ });
25992
+ } catch (error) {
25993
+ log.error(`Adapter Exception: ${error}`);
25994
+ done(error);
25995
+ }
25996
+ }).timeout(attemptTimeout);
25997
+ });
25998
+
25999
+ describe('#groupsMFAInboundPoliciesSimulateDestinationCandidatesList - errors', () => {
26000
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26001
+ try {
26002
+ a.groupsMFAInboundPoliciesSimulateDestinationCandidatesList('fakedata', 'fakedata', 555, null, null, (data, error) => {
26003
+ try {
26004
+ if (stub) {
26005
+ const displayE = 'Error 400 received on request';
26006
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26007
+ } else {
26008
+ runCommonAsserts(data, error);
26009
+ }
26010
+ saveMockData('Group', 'groupsMFAInboundPoliciesSimulateDestinationCandidatesList', 'default', data);
26011
+ done();
26012
+ } catch (err) {
26013
+ log.error(`Test Failure: ${err}`);
26014
+ done(err);
26015
+ }
26016
+ });
26017
+ } catch (error) {
26018
+ log.error(`Adapter Exception: ${error}`);
26019
+ done(error);
26020
+ }
26021
+ }).timeout(attemptTimeout);
26022
+ });
26023
+
26024
+ describe('#groupsMFAInboundPoliciesSimulateResolveGet - errors', () => {
26025
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26026
+ try {
26027
+ a.groupsMFAInboundPoliciesSimulateResolveGet('fakedata', 'fakedata', null, (data, error) => {
26028
+ try {
26029
+ if (stub) {
26030
+ const displayE = 'Error 400 received on request';
26031
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26032
+ } else {
26033
+ runCommonAsserts(data, error);
26034
+ }
26035
+ saveMockData('Group', 'groupsMFAInboundPoliciesSimulateResolveGet', 'default', data);
26036
+ done();
26037
+ } catch (err) {
26038
+ log.error(`Test Failure: ${err}`);
26039
+ done(err);
26040
+ }
26041
+ });
26042
+ } catch (error) {
26043
+ log.error(`Adapter Exception: ${error}`);
26044
+ done(error);
26045
+ }
26046
+ }).timeout(attemptTimeout);
26047
+ });
26048
+
26049
+ describe('#groupsMFAInboundPoliciesSimulateSourceUserCandidatesList - errors', () => {
26050
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26051
+ try {
26052
+ a.groupsMFAInboundPoliciesSimulateSourceUserCandidatesList('fakedata', 'fakedata', 555, null, null, (data, error) => {
26053
+ try {
26054
+ if (stub) {
26055
+ const displayE = 'Error 400 received on request';
26056
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26057
+ } else {
26058
+ runCommonAsserts(data, error);
26059
+ }
26060
+ saveMockData('Group', 'groupsMFAInboundPoliciesSimulateSourceUserCandidatesList', 'default', data);
26061
+ done();
26062
+ } catch (err) {
26063
+ log.error(`Test Failure: ${err}`);
26064
+ done(err);
26065
+ }
26066
+ });
26067
+ } catch (error) {
26068
+ log.error(`Adapter Exception: ${error}`);
26069
+ done(error);
26070
+ }
26071
+ }).timeout(attemptTimeout);
26072
+ });
26073
+
26074
+ describe('#groupsMFAOutboundPoliciesSimulateTest - errors', () => {
26075
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26076
+ try {
26077
+ a.groupsMFAOutboundPoliciesSimulateTest('fakedata', 'fakedata', 'fakedata', 'fakedata', null, 'fakedata', null, 555, 555, (data, error) => {
26078
+ try {
26079
+ if (stub) {
26080
+ const displayE = 'Error 400 received on request';
26081
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26082
+ } else {
26083
+ runCommonAsserts(data, error);
26084
+ }
26085
+ saveMockData('Group', 'groupsMFAOutboundPoliciesSimulateTest', 'default', data);
26086
+ done();
26087
+ } catch (err) {
26088
+ log.error(`Test Failure: ${err}`);
26089
+ done(err);
26090
+ }
26091
+ });
26092
+ } catch (error) {
26093
+ log.error(`Adapter Exception: ${error}`);
26094
+ done(error);
26095
+ }
26096
+ }).timeout(attemptTimeout);
26097
+ });
26098
+
26099
+ describe('#groupsMFAOutboundPoliciesSimulateDestinationCandidatesList - errors', () => {
26100
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26101
+ try {
26102
+ a.groupsMFAOutboundPoliciesSimulateDestinationCandidatesList('fakedata', 'fakedata', 555, null, null, (data, error) => {
26103
+ try {
26104
+ if (stub) {
26105
+ const displayE = 'Error 400 received on request';
26106
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26107
+ } else {
26108
+ runCommonAsserts(data, error);
26109
+ }
26110
+ saveMockData('Group', 'groupsMFAOutboundPoliciesSimulateDestinationCandidatesList', 'default', data);
26111
+ done();
26112
+ } catch (err) {
26113
+ log.error(`Test Failure: ${err}`);
26114
+ done(err);
26115
+ }
26116
+ });
26117
+ } catch (error) {
26118
+ log.error(`Adapter Exception: ${error}`);
26119
+ done(error);
26120
+ }
26121
+ }).timeout(attemptTimeout);
26122
+ });
26123
+
26124
+ describe('#groupsMFAOutboundPoliciesSimulateResolveGet - errors', () => {
26125
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26126
+ try {
26127
+ a.groupsMFAOutboundPoliciesSimulateResolveGet('fakedata', 'fakedata', null, (data, error) => {
26128
+ try {
26129
+ if (stub) {
26130
+ const displayE = 'Error 400 received on request';
26131
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26132
+ } else {
26133
+ runCommonAsserts(data, error);
26134
+ }
26135
+ saveMockData('Group', 'groupsMFAOutboundPoliciesSimulateResolveGet', 'default', data);
26136
+ done();
26137
+ } catch (err) {
26138
+ log.error(`Test Failure: ${err}`);
26139
+ done(err);
26140
+ }
26141
+ });
26142
+ } catch (error) {
26143
+ log.error(`Adapter Exception: ${error}`);
26144
+ done(error);
26145
+ }
26146
+ }).timeout(attemptTimeout);
26147
+ });
26148
+
26149
+ describe('#groupsMFAOutboundPoliciesSimulateSourceUserCandidatesList - errors', () => {
26150
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26151
+ try {
26152
+ a.groupsMFAOutboundPoliciesSimulateSourceUserCandidatesList('fakedata', 'fakedata', 555, null, null, (data, error) => {
26153
+ try {
26154
+ if (stub) {
26155
+ const displayE = 'Error 400 received on request';
26156
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26157
+ } else {
26158
+ runCommonAsserts(data, error);
26159
+ }
26160
+ saveMockData('Group', 'groupsMFAOutboundPoliciesSimulateSourceUserCandidatesList', 'default', data);
26161
+ done();
26162
+ } catch (err) {
26163
+ log.error(`Test Failure: ${err}`);
26164
+ done(err);
26165
+ }
26166
+ });
26167
+ } catch (error) {
26168
+ log.error(`Adapter Exception: ${error}`);
26169
+ done(error);
26170
+ }
26171
+ }).timeout(attemptTimeout);
26172
+ });
26173
+
26174
+ describe('#groupsInboundRulesList - errors', () => {
26175
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26176
+ try {
26177
+ a.groupsInboundRulesList('fakedata', 'fakedata', 555, null, null, null, null, null, null, 555, (data, error) => {
26178
+ try {
26179
+ if (stub) {
26180
+ const displayE = 'Error 400 received on request';
26181
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26182
+ } else {
26183
+ runCommonAsserts(data, error);
26184
+ }
26185
+ saveMockData('Group', 'groupsInboundRulesList', 'default', data);
26186
+ done();
26187
+ } catch (err) {
26188
+ log.error(`Test Failure: ${err}`);
26189
+ done(err);
26190
+ }
26191
+ });
26192
+ } catch (error) {
26193
+ log.error(`Adapter Exception: ${error}`);
26194
+ done(error);
26195
+ }
26196
+ }).timeout(attemptTimeout);
26197
+ });
26198
+
26199
+ const groupGroupsInboundRulesCreateBodyParam = {};
26200
+ describe('#groupsInboundRulesCreate - errors', () => {
26201
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26202
+ try {
26203
+ a.groupsInboundRulesCreate('fakedata', 'fakedata', groupGroupsInboundRulesCreateBodyParam, (data, error) => {
26204
+ try {
26205
+ if (stub) {
26206
+ const displayE = 'Error 400 received on request';
26207
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26208
+ } else {
26209
+ runCommonAsserts(data, error);
26210
+ }
26211
+ saveMockData('Group', 'groupsInboundRulesCreate', 'default', data);
26212
+ done();
26213
+ } catch (err) {
26214
+ log.error(`Test Failure: ${err}`);
26215
+ done(err);
26216
+ }
26217
+ });
26218
+ } catch (error) {
26219
+ log.error(`Adapter Exception: ${error}`);
26220
+ done(error);
26221
+ }
26222
+ }).timeout(attemptTimeout);
26223
+ });
26224
+
26225
+ const groupGroupsInboundRulesExportBodyParam = {};
26226
+ describe('#groupsInboundRulesExport - errors', () => {
26227
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26228
+ try {
26229
+ a.groupsInboundRulesExport('fakedata', 'fakedata', groupGroupsInboundRulesExportBodyParam, (data, error) => {
26230
+ try {
26231
+ if (stub) {
26232
+ const displayE = 'Error 400 received on request';
26233
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26234
+ } else {
26235
+ runCommonAsserts(data, error);
26236
+ }
26237
+ saveMockData('Group', 'groupsInboundRulesExport', 'default', data);
26238
+ done();
26239
+ } catch (err) {
26240
+ log.error(`Test Failure: ${err}`);
26241
+ done(err);
26242
+ }
26243
+ });
26244
+ } catch (error) {
26245
+ log.error(`Adapter Exception: ${error}`);
26246
+ done(error);
26247
+ }
26248
+ }).timeout(attemptTimeout);
26249
+ });
26250
+
26251
+ describe('#groupsInboundRulesExportGet - errors', () => {
26252
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26253
+ try {
26254
+ a.groupsInboundRulesExportGet('fakedata', 'fakedata', 'fakedata', (data, error) => {
26255
+ try {
26256
+ if (stub) {
26257
+ const displayE = 'Error 400 received on request';
26258
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26259
+ } else {
26260
+ runCommonAsserts(data, error);
26261
+ }
26262
+ saveMockData('Group', 'groupsInboundRulesExportGet', 'default', data);
26263
+ done();
26264
+ } catch (err) {
26265
+ log.error(`Test Failure: ${err}`);
26266
+ done(err);
26267
+ }
26268
+ });
26269
+ } catch (error) {
26270
+ log.error(`Adapter Exception: ${error}`);
26271
+ done(error);
26272
+ }
26273
+ }).timeout(attemptTimeout);
26274
+ });
26275
+
26276
+ describe('#groupsInboundRulesExcludedDestinationCandidatesList - errors', () => {
26277
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26278
+ try {
26279
+ a.groupsInboundRulesExcludedDestinationCandidatesList('fakedata', 'fakedata', 555, null, null, (data, error) => {
26280
+ try {
26281
+ if (stub) {
26282
+ const displayE = 'Error 400 received on request';
26283
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26284
+ } else {
26285
+ runCommonAsserts(data, error);
26286
+ }
26287
+ saveMockData('Group', 'groupsInboundRulesExcludedDestinationCandidatesList', 'default', data);
26288
+ done();
26289
+ } catch (err) {
26290
+ log.error(`Test Failure: ${err}`);
26291
+ done(err);
26292
+ }
26293
+ });
26294
+ } catch (error) {
26295
+ log.error(`Adapter Exception: ${error}`);
26296
+ done(error);
26297
+ }
26298
+ }).timeout(attemptTimeout);
26299
+ });
26300
+
26301
+ describe('#groupsInboundRulesFiltersList - errors', () => {
26302
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26303
+ try {
26304
+ a.groupsInboundRulesFiltersList('fakedata', 'fakedata', (data, error) => {
26305
+ try {
26306
+ if (stub) {
26307
+ const displayE = 'Error 400 received on request';
26308
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26309
+ } else {
26310
+ runCommonAsserts(data, error);
26311
+ }
26312
+ saveMockData('Group', 'groupsInboundRulesFiltersList', 'default', data);
26313
+ done();
26314
+ } catch (err) {
26315
+ log.error(`Test Failure: ${err}`);
26316
+ done(err);
26317
+ }
26318
+ });
26319
+ } catch (error) {
26320
+ log.error(`Adapter Exception: ${error}`);
26321
+ done(error);
26322
+ }
26323
+ }).timeout(attemptTimeout);
26324
+ });
26325
+
26326
+ describe('#groupsInboundRulesSourceCandidatesFiltersList - errors', () => {
26327
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26328
+ try {
26329
+ a.groupsInboundRulesSourceCandidatesFiltersList('fakedata', 'fakedata', (data, error) => {
26330
+ try {
26331
+ if (stub) {
26332
+ const displayE = 'Error 400 received on request';
26333
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26334
+ } else {
26335
+ runCommonAsserts(data, error);
26336
+ }
26337
+ saveMockData('Group', 'groupsInboundRulesSourceCandidatesFiltersList', 'default', data);
26338
+ done();
26339
+ } catch (err) {
26340
+ log.error(`Test Failure: ${err}`);
26341
+ done(err);
26342
+ }
26343
+ });
26344
+ } catch (error) {
26345
+ log.error(`Adapter Exception: ${error}`);
26346
+ done(error);
26347
+ }
26348
+ }).timeout(attemptTimeout);
26349
+ });
26350
+
26351
+ describe('#groupsInboundRulesDesinationCandidatesFiltersList - errors', () => {
26352
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26353
+ try {
26354
+ a.groupsInboundRulesDesinationCandidatesFiltersList('fakedata', 'fakedata', (data, error) => {
26355
+ try {
26356
+ if (stub) {
26357
+ const displayE = 'Error 400 received on request';
26358
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26359
+ } else {
26360
+ runCommonAsserts(data, error);
26361
+ }
26362
+ saveMockData('Group', 'groupsInboundRulesDesinationCandidatesFiltersList', 'default', data);
26363
+ done();
26364
+ } catch (err) {
26365
+ log.error(`Test Failure: ${err}`);
26366
+ done(err);
26367
+ }
26368
+ });
26369
+ } catch (error) {
26370
+ log.error(`Adapter Exception: ${error}`);
26371
+ done(error);
26372
+ }
26373
+ }).timeout(attemptTimeout);
26374
+ });
26375
+
26376
+ describe('#groupsInboundRulesDestinationCandidatesList - errors', () => {
26377
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26378
+ try {
26379
+ a.groupsInboundRulesDestinationCandidatesList('fakedata', 'fakedata', 555, null, null, (data, error) => {
26380
+ try {
26381
+ if (stub) {
26382
+ const displayE = 'Error 400 received on request';
26383
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26384
+ } else {
26385
+ runCommonAsserts(data, error);
26386
+ }
26387
+ saveMockData('Group', 'groupsInboundRulesDestinationCandidatesList', 'default', data);
26388
+ done();
26389
+ } catch (err) {
26390
+ log.error(`Test Failure: ${err}`);
26391
+ done(err);
26392
+ }
26393
+ });
26394
+ } catch (error) {
26395
+ log.error(`Adapter Exception: ${error}`);
26396
+ done(error);
26397
+ }
26398
+ }).timeout(attemptTimeout);
26399
+ });
26400
+
26401
+ describe('#groupsInboundRulesSourceCandidatesList - errors', () => {
26402
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26403
+ try {
26404
+ a.groupsInboundRulesSourceCandidatesList('fakedata', 'fakedata', 555, null, null, 555, (data, error) => {
26405
+ try {
26406
+ if (stub) {
26407
+ const displayE = 'Error 400 received on request';
26408
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26409
+ } else {
26410
+ runCommonAsserts(data, error);
26411
+ }
26412
+ saveMockData('Group', 'groupsInboundRulesSourceCandidatesList', 'default', data);
26413
+ done();
26414
+ } catch (err) {
26415
+ log.error(`Test Failure: ${err}`);
26416
+ done(err);
26417
+ }
26418
+ });
26419
+ } catch (error) {
26420
+ log.error(`Adapter Exception: ${error}`);
26421
+ done(error);
26422
+ }
26423
+ }).timeout(attemptTimeout);
26424
+ });
26425
+
26426
+ describe('#groupsInboundRulesReviewApprove - errors', () => {
26427
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26428
+ try {
26429
+ a.groupsInboundRulesReviewApprove('fakedata', 'fakedata', 'fakedata', (data, error) => {
26430
+ try {
26431
+ if (stub) {
26432
+ const displayE = 'Error 400 received on request';
26433
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26434
+ } else {
26435
+ runCommonAsserts(data, error);
26436
+ }
26437
+ saveMockData('Group', 'groupsInboundRulesReviewApprove', 'default', data);
26438
+ done();
26439
+ } catch (err) {
26440
+ log.error(`Test Failure: ${err}`);
26441
+ done(err);
26442
+ }
26443
+ });
26444
+ } catch (error) {
26445
+ log.error(`Adapter Exception: ${error}`);
26446
+ done(error);
26447
+ }
26448
+ }).timeout(attemptTimeout);
26449
+ });
26450
+
26451
+ const groupGroupsInboundRulesReviewApproveWithChangesBodyParam = {
26452
+ review: {},
26453
+ ruleInfo: {}
26454
+ };
26455
+ describe('#groupsInboundRulesReviewApproveWithChanges - errors', () => {
26456
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26457
+ try {
26458
+ a.groupsInboundRulesReviewApproveWithChanges('fakedata', 'fakedata', 'fakedata', groupGroupsInboundRulesReviewApproveWithChangesBodyParam, (data, error) => {
26459
+ try {
26460
+ if (stub) {
26461
+ const displayE = 'Error 400 received on request';
26462
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26463
+ } else {
26464
+ runCommonAsserts(data, error);
26465
+ }
26466
+ saveMockData('Group', 'groupsInboundRulesReviewApproveWithChanges', 'default', data);
26467
+ done();
26468
+ } catch (err) {
26469
+ log.error(`Test Failure: ${err}`);
26470
+ done(err);
26471
+ }
26472
+ });
26473
+ } catch (error) {
26474
+ log.error(`Adapter Exception: ${error}`);
26475
+ done(error);
26476
+ }
26477
+ }).timeout(attemptTimeout);
26478
+ });
26479
+
26480
+ describe('#groupsInboundRulesReviewDeny - errors', () => {
26481
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26482
+ try {
26483
+ a.groupsInboundRulesReviewDeny('fakedata', 'fakedata', 'fakedata', (data, error) => {
26484
+ try {
26485
+ if (stub) {
26486
+ const displayE = 'Error 400 received on request';
26487
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26488
+ } else {
26489
+ runCommonAsserts(data, error);
26490
+ }
26491
+ saveMockData('Group', 'groupsInboundRulesReviewDeny', 'default', data);
26492
+ done();
26493
+ } catch (err) {
26494
+ log.error(`Test Failure: ${err}`);
26495
+ done(err);
26496
+ }
26497
+ });
26498
+ } catch (error) {
26499
+ log.error(`Adapter Exception: ${error}`);
26500
+ done(error);
26501
+ }
26502
+ }).timeout(attemptTimeout);
26503
+ });
26504
+
26505
+ describe('#groupsInboundRuleGet - errors', () => {
26506
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26507
+ try {
26508
+ a.groupsInboundRuleGet('fakedata', 'fakedata', 'fakedata', (data, error) => {
26509
+ try {
26510
+ if (stub) {
26511
+ const displayE = 'Error 400 received on request';
26512
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26513
+ } else {
26514
+ runCommonAsserts(data, error);
26515
+ }
26516
+ saveMockData('Group', 'groupsInboundRuleGet', 'default', data);
26517
+ done();
26518
+ } catch (err) {
26519
+ log.error(`Test Failure: ${err}`);
26520
+ done(err);
26521
+ }
26522
+ });
26523
+ } catch (error) {
26524
+ log.error(`Adapter Exception: ${error}`);
26525
+ done(error);
26526
+ }
26527
+ }).timeout(attemptTimeout);
26528
+ });
26529
+
26530
+ const groupGroupsInboundRuleUpdateBodyParam = {};
26531
+ describe('#groupsInboundRuleUpdate - errors', () => {
26532
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26533
+ try {
26534
+ a.groupsInboundRuleUpdate('fakedata', 'fakedata', 'fakedata', groupGroupsInboundRuleUpdateBodyParam, (data, error) => {
26535
+ try {
26536
+ if (stub) {
26537
+ const displayE = 'Error 400 received on request';
26538
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26539
+ } else {
26540
+ runCommonAsserts(data, error);
26541
+ }
26542
+ saveMockData('Group', 'groupsInboundRuleUpdate', 'default', data);
26543
+ done();
26544
+ } catch (err) {
26545
+ log.error(`Test Failure: ${err}`);
26546
+ done(err);
26547
+ }
26548
+ });
26549
+ } catch (error) {
26550
+ log.error(`Adapter Exception: ${error}`);
26551
+ done(error);
26552
+ }
26553
+ }).timeout(attemptTimeout);
26554
+ });
26555
+
26556
+ describe('#groupsInboundRuleDelete - errors', () => {
26557
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26558
+ try {
26559
+ a.groupsInboundRuleDelete('fakedata', 'fakedata', 'fakedata', (data, error) => {
26560
+ try {
26561
+ if (stub) {
26562
+ const displayE = 'Error 400 received on request';
26563
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26564
+ } else {
26565
+ runCommonAsserts(data, error);
26566
+ }
26567
+ saveMockData('Group', 'groupsInboundRuleDelete', 'default', data);
26568
+ done();
26569
+ } catch (err) {
26570
+ log.error(`Test Failure: ${err}`);
26571
+ done(err);
26572
+ }
26573
+ });
26574
+ } catch (error) {
26575
+ log.error(`Adapter Exception: ${error}`);
26576
+ done(error);
26577
+ }
26578
+ }).timeout(attemptTimeout);
26579
+ });
26580
+
26581
+ describe('#groupsOutboundAllowRulesDestinationCandidatesListV2 - errors', () => {
26582
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26583
+ try {
26584
+ a.groupsOutboundAllowRulesDestinationCandidatesListV2('fakedata', 'fakedata', 555, null, null, 555, (data, error) => {
26585
+ try {
26586
+ if (stub) {
26587
+ const displayE = 'Error 400 received on request';
26588
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26589
+ } else {
26590
+ runCommonAsserts(data, error);
26591
+ }
26592
+ saveMockData('Group', 'groupsOutboundAllowRulesDestinationCandidatesListV2', 'default', data);
26593
+ done();
26594
+ } catch (err) {
26595
+ log.error(`Test Failure: ${err}`);
26596
+ done(err);
26597
+ }
26598
+ });
26599
+ } catch (error) {
26600
+ log.error(`Adapter Exception: ${error}`);
26601
+ done(error);
26602
+ }
26603
+ }).timeout(attemptTimeout);
26604
+ });
26605
+
26606
+ describe('#groupsListV2 - errors', () => {
26607
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26608
+ try {
26609
+ a.groupsListV2(555, null, null, null, null, (data, error) => {
26610
+ try {
26611
+ if (stub) {
26612
+ const displayE = 'Error 400 received on request';
26613
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26614
+ } else {
26615
+ runCommonAsserts(data, error);
26616
+ }
26617
+ saveMockData('Groups', 'groupsListV2', 'default', data);
26618
+ done();
26619
+ } catch (err) {
26620
+ log.error(`Test Failure: ${err}`);
26621
+ done(err);
26622
+ }
26623
+ });
26624
+ } catch (error) {
26625
+ log.error(`Adapter Exception: ${error}`);
26626
+ done(error);
26627
+ }
26628
+ }).timeout(attemptTimeout);
26629
+ });
26630
+
26631
+ describe('#groupsMFAIdentityPoliciesList - errors', () => {
26632
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26633
+ try {
26634
+ a.groupsMFAIdentityPoliciesList('fakedata', 'fakedata', 555, null, null, null, null, null, null, null, (data, error) => {
26635
+ try {
26636
+ if (stub) {
26637
+ const displayE = 'Error 400 received on request';
26638
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26639
+ } else {
26640
+ runCommonAsserts(data, error);
26641
+ }
26642
+ saveMockData('Groups', 'groupsMFAIdentityPoliciesList', 'default', data);
26643
+ done();
26644
+ } catch (err) {
26645
+ log.error(`Test Failure: ${err}`);
26646
+ done(err);
26647
+ }
26648
+ });
26649
+ } catch (error) {
26650
+ log.error(`Adapter Exception: ${error}`);
26651
+ done(error);
26652
+ }
26653
+ }).timeout(attemptTimeout);
26654
+ });
26655
+
26656
+ const groupsGroupsMFAIdentityPoliciesCreateBodyParam = {};
26657
+ describe('#groupsMFAIdentityPoliciesCreate - errors', () => {
26658
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26659
+ try {
26660
+ a.groupsMFAIdentityPoliciesCreate('fakedata', 'fakedata', groupsGroupsMFAIdentityPoliciesCreateBodyParam, (data, error) => {
26661
+ try {
26662
+ if (stub) {
26663
+ const displayE = 'Error 400 received on request';
26664
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26665
+ } else {
26666
+ runCommonAsserts(data, error);
26667
+ }
26668
+ saveMockData('Groups', 'groupsMFAIdentityPoliciesCreate', 'default', data);
26669
+ done();
26670
+ } catch (err) {
26671
+ log.error(`Test Failure: ${err}`);
26672
+ done(err);
26673
+ }
26674
+ });
26675
+ } catch (error) {
26676
+ log.error(`Adapter Exception: ${error}`);
26677
+ done(error);
26678
+ }
26679
+ }).timeout(attemptTimeout);
26680
+ });
26681
+
26682
+ describe('#groupsMFAIdentityPoliciesGet - errors', () => {
26683
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26684
+ try {
26685
+ a.groupsMFAIdentityPoliciesGet('fakedata', 'fakedata', 'fakedata', (data, error) => {
26686
+ try {
26687
+ if (stub) {
26688
+ const displayE = 'Error 400 received on request';
26689
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26690
+ } else {
26691
+ runCommonAsserts(data, error);
26692
+ }
26693
+ saveMockData('Groups', 'groupsMFAIdentityPoliciesGet', 'default', data);
26694
+ done();
26695
+ } catch (err) {
26696
+ log.error(`Test Failure: ${err}`);
26697
+ done(err);
26698
+ }
26699
+ });
26700
+ } catch (error) {
26701
+ log.error(`Adapter Exception: ${error}`);
26702
+ done(error);
26703
+ }
26704
+ }).timeout(attemptTimeout);
26705
+ });
26706
+
26707
+ const groupsGroupsMFAIdentityPoliciesUpdateBodyParam = {};
26708
+ describe('#groupsMFAIdentityPoliciesUpdate - errors', () => {
26709
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26710
+ try {
26711
+ a.groupsMFAIdentityPoliciesUpdate('fakedata', 'fakedata', 'fakedata', groupsGroupsMFAIdentityPoliciesUpdateBodyParam, (data, error) => {
26712
+ try {
26713
+ if (stub) {
26714
+ const displayE = 'Error 400 received on request';
26715
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26716
+ } else {
26717
+ runCommonAsserts(data, error);
26718
+ }
26719
+ saveMockData('Groups', 'groupsMFAIdentityPoliciesUpdate', 'default', data);
26720
+ done();
26721
+ } catch (err) {
26722
+ log.error(`Test Failure: ${err}`);
26723
+ done(err);
26724
+ }
26725
+ });
26726
+ } catch (error) {
26727
+ log.error(`Adapter Exception: ${error}`);
26728
+ done(error);
26729
+ }
26730
+ }).timeout(attemptTimeout);
26731
+ });
26732
+
26733
+ describe('#groupsMFAIdentityPoliciesDelete - errors', () => {
26734
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26735
+ try {
26736
+ a.groupsMFAIdentityPoliciesDelete('fakedata', 'fakedata', 'fakedata', (data, error) => {
26737
+ try {
26738
+ if (stub) {
26739
+ const displayE = 'Error 400 received on request';
26740
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26741
+ } else {
26742
+ runCommonAsserts(data, error);
26743
+ }
26744
+ saveMockData('Groups', 'groupsMFAIdentityPoliciesDelete', 'default', data);
26745
+ done();
26746
+ } catch (err) {
26747
+ log.error(`Test Failure: ${err}`);
26748
+ done(err);
26749
+ }
26750
+ });
26751
+ } catch (error) {
26752
+ log.error(`Adapter Exception: ${error}`);
26753
+ done(error);
26754
+ }
26755
+ }).timeout(attemptTimeout);
26756
+ });
26757
+
26758
+ describe('#groupsMFAIdentityPoliciesDestinationCandidatesList - errors', () => {
26759
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26760
+ try {
26761
+ a.groupsMFAIdentityPoliciesDestinationCandidatesList('fakedata', 'fakedata', 555, null, null, (data, error) => {
26762
+ try {
26763
+ if (stub) {
26764
+ const displayE = 'Error 400 received on request';
26765
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26766
+ } else {
26767
+ runCommonAsserts(data, error);
26768
+ }
26769
+ saveMockData('Groups', 'groupsMFAIdentityPoliciesDestinationCandidatesList', 'default', data);
26770
+ done();
26771
+ } catch (err) {
26772
+ log.error(`Test Failure: ${err}`);
26773
+ done(err);
26774
+ }
26775
+ });
26776
+ } catch (error) {
26777
+ log.error(`Adapter Exception: ${error}`);
26778
+ done(error);
26779
+ }
26780
+ }).timeout(attemptTimeout);
26781
+ });
26782
+
26783
+ describe('#groupsMFAIdentityPoliciesExcludedSourceCandidatesList - errors', () => {
26784
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26785
+ try {
26786
+ a.groupsMFAIdentityPoliciesExcludedSourceCandidatesList('fakedata', 'fakedata', 555, null, null, null, (data, error) => {
26787
+ try {
26788
+ if (stub) {
26789
+ const displayE = 'Error 400 received on request';
26790
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26791
+ } else {
26792
+ runCommonAsserts(data, error);
26793
+ }
26794
+ saveMockData('Groups', 'groupsMFAIdentityPoliciesExcludedSourceCandidatesList', 'default', data);
26795
+ done();
26796
+ } catch (err) {
26797
+ log.error(`Test Failure: ${err}`);
26798
+ done(err);
26799
+ }
26800
+ });
26801
+ } catch (error) {
26802
+ log.error(`Adapter Exception: ${error}`);
26803
+ done(error);
26804
+ }
26805
+ }).timeout(attemptTimeout);
26806
+ });
26807
+
26808
+ describe('#groupsMFAIdentityPoliciesFiltersList - errors', () => {
26809
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26810
+ try {
26811
+ a.groupsMFAIdentityPoliciesFiltersList('fakedata', 'fakedata', (data, error) => {
26812
+ try {
26813
+ if (stub) {
26814
+ const displayE = 'Error 400 received on request';
26815
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26816
+ } else {
26817
+ runCommonAsserts(data, error);
26818
+ }
26819
+ saveMockData('Groups', 'groupsMFAIdentityPoliciesFiltersList', 'default', data);
26820
+ done();
26821
+ } catch (err) {
26822
+ log.error(`Test Failure: ${err}`);
26823
+ done(err);
26824
+ }
26825
+ });
26826
+ } catch (error) {
26827
+ log.error(`Adapter Exception: ${error}`);
26828
+ done(error);
26829
+ }
26830
+ }).timeout(attemptTimeout);
26831
+ });
26832
+
26833
+ describe('#groupsMFAIdentityPoliciesDestinationCandidatesFiltersList - errors', () => {
26834
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26835
+ try {
26836
+ a.groupsMFAIdentityPoliciesDestinationCandidatesFiltersList('fakedata', 'fakedata', 555, null, null, (data, error) => {
26837
+ try {
26838
+ if (stub) {
26839
+ const displayE = 'Error 400 received on request';
26840
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26841
+ } else {
26842
+ runCommonAsserts(data, error);
26843
+ }
26844
+ saveMockData('Groups', 'groupsMFAIdentityPoliciesDestinationCandidatesFiltersList', 'default', data);
26845
+ done();
26846
+ } catch (err) {
26847
+ log.error(`Test Failure: ${err}`);
26848
+ done(err);
26849
+ }
26850
+ });
26851
+ } catch (error) {
26852
+ log.error(`Adapter Exception: ${error}`);
26853
+ done(error);
26854
+ }
26855
+ }).timeout(attemptTimeout);
26856
+ });
26857
+
26858
+ describe('#groupsMFAIdentityPoliciesSourceCandidatesFiltersList - errors', () => {
26859
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26860
+ try {
26861
+ a.groupsMFAIdentityPoliciesSourceCandidatesFiltersList('fakedata', 'fakedata', 555, null, null, (data, error) => {
26862
+ try {
26863
+ if (stub) {
26864
+ const displayE = 'Error 400 received on request';
26865
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26866
+ } else {
26867
+ runCommonAsserts(data, error);
26868
+ }
26869
+ saveMockData('Groups', 'groupsMFAIdentityPoliciesSourceCandidatesFiltersList', 'default', data);
26870
+ done();
26871
+ } catch (err) {
26872
+ log.error(`Test Failure: ${err}`);
26873
+ done(err);
26874
+ }
26875
+ });
26876
+ } catch (error) {
26877
+ log.error(`Adapter Exception: ${error}`);
26878
+ done(error);
26879
+ }
26880
+ }).timeout(attemptTimeout);
26881
+ });
26882
+
26883
+ describe('#groupsMFAIdentityPoliciesSourceUsersCandidatesFiltersList - errors', () => {
26884
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26885
+ try {
26886
+ a.groupsMFAIdentityPoliciesSourceUsersCandidatesFiltersList('fakedata', 'fakedata', 555, null, null, (data, error) => {
26887
+ try {
26888
+ if (stub) {
26889
+ const displayE = 'Error 400 received on request';
26890
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26891
+ } else {
26892
+ runCommonAsserts(data, error);
26893
+ }
26894
+ saveMockData('Groups', 'groupsMFAIdentityPoliciesSourceUsersCandidatesFiltersList', 'default', data);
26895
+ done();
26896
+ } catch (err) {
26897
+ log.error(`Test Failure: ${err}`);
26898
+ done(err);
26899
+ }
26900
+ });
26901
+ } catch (error) {
26902
+ log.error(`Adapter Exception: ${error}`);
26903
+ done(error);
26904
+ }
26905
+ }).timeout(attemptTimeout);
26906
+ });
26907
+
26908
+ describe('#groupsMFAIdentityPoliciesMFAMethodsList - errors', () => {
26909
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26910
+ try {
26911
+ a.groupsMFAIdentityPoliciesMFAMethodsList('fakedata', 'fakedata', (data, error) => {
26912
+ try {
26913
+ if (stub) {
26914
+ const displayE = 'Error 400 received on request';
26915
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26916
+ } else {
26917
+ runCommonAsserts(data, error);
26918
+ }
26919
+ saveMockData('Groups', 'groupsMFAIdentityPoliciesMFAMethodsList', 'default', data);
26920
+ done();
26921
+ } catch (err) {
26922
+ log.error(`Test Failure: ${err}`);
26923
+ done(err);
26924
+ }
26925
+ });
26926
+ } catch (error) {
26927
+ log.error(`Adapter Exception: ${error}`);
26928
+ done(error);
26929
+ }
26930
+ }).timeout(attemptTimeout);
26931
+ });
26932
+
26933
+ describe('#groupsMFAIdentityPoliciesSourceCandidatesList - errors', () => {
26934
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26935
+ try {
26936
+ a.groupsMFAIdentityPoliciesSourceCandidatesList('fakedata', 'fakedata', 555, null, null, (data, error) => {
26937
+ try {
26938
+ if (stub) {
26939
+ const displayE = 'Error 400 received on request';
26940
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26941
+ } else {
26942
+ runCommonAsserts(data, error);
26943
+ }
26944
+ saveMockData('Groups', 'groupsMFAIdentityPoliciesSourceCandidatesList', 'default', data);
26945
+ done();
26946
+ } catch (err) {
26947
+ log.error(`Test Failure: ${err}`);
26948
+ done(err);
26949
+ }
26950
+ });
26951
+ } catch (error) {
26952
+ log.error(`Adapter Exception: ${error}`);
26953
+ done(error);
26954
+ }
26955
+ }).timeout(attemptTimeout);
26956
+ });
26957
+
26958
+ describe('#groupsMFAIdentityPoliciesSourceUserCandidatesList - errors', () => {
26959
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26960
+ try {
26961
+ a.groupsMFAIdentityPoliciesSourceUserCandidatesList('fakedata', 'fakedata', 555, null, null, (data, error) => {
26962
+ try {
26963
+ if (stub) {
26964
+ const displayE = 'Error 400 received on request';
26965
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26966
+ } else {
26967
+ runCommonAsserts(data, error);
26968
+ }
26969
+ saveMockData('Groups', 'groupsMFAIdentityPoliciesSourceUserCandidatesList', 'default', data);
26970
+ done();
26971
+ } catch (err) {
26972
+ log.error(`Test Failure: ${err}`);
26973
+ done(err);
26974
+ }
26975
+ });
26976
+ } catch (error) {
26977
+ log.error(`Adapter Exception: ${error}`);
26978
+ done(error);
26979
+ }
26980
+ }).timeout(attemptTimeout);
26981
+ });
26982
+
26983
+ describe('#groupsMFAInboundPoliciesSimulateSourceCandidatesList - errors', () => {
26984
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
26985
+ try {
26986
+ a.groupsMFAInboundPoliciesSimulateSourceCandidatesList('fakedata', 'fakedata', 555, null, null, (data, error) => {
26987
+ try {
26988
+ if (stub) {
26989
+ const displayE = 'Error 400 received on request';
26990
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
26991
+ } else {
26992
+ runCommonAsserts(data, error);
26993
+ }
26994
+ saveMockData('Groups', 'groupsMFAInboundPoliciesSimulateSourceCandidatesList', 'default', data);
26995
+ done();
26996
+ } catch (err) {
26997
+ log.error(`Test Failure: ${err}`);
26998
+ done(err);
26999
+ }
27000
+ });
27001
+ } catch (error) {
27002
+ log.error(`Adapter Exception: ${error}`);
27003
+ done(error);
27004
+ }
27005
+ }).timeout(attemptTimeout);
27006
+ });
27007
+
27008
+ describe('#groupsMFAOutboundPoliciesSimulateSourceCandidatesList - errors', () => {
27009
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27010
+ try {
27011
+ a.groupsMFAOutboundPoliciesSimulateSourceCandidatesList('fakedata', 'fakedata', 555, null, null, (data, error) => {
27012
+ try {
27013
+ if (stub) {
27014
+ const displayE = 'Error 400 received on request';
27015
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27016
+ } else {
27017
+ runCommonAsserts(data, error);
27018
+ }
27019
+ saveMockData('Groups', 'groupsMFAOutboundPoliciesSimulateSourceCandidatesList', 'default', data);
27020
+ done();
27021
+ } catch (err) {
27022
+ log.error(`Test Failure: ${err}`);
27023
+ done(err);
27024
+ }
27025
+ });
27026
+ } catch (error) {
27027
+ log.error(`Adapter Exception: ${error}`);
27028
+ done(error);
27029
+ }
27030
+ }).timeout(attemptTimeout);
27031
+ });
27032
+
27033
+ const groupsCustomTagGroupsMembersAddBodyParam = {
27034
+ membersId: [
27035
+ 'a:a:8ErCHXe8'
27036
+ ]
27037
+ };
27038
+ describe('#tagGroupsMembersAdd - errors', () => {
27039
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27040
+ try {
27041
+ a.tagGroupsMembersAdd('fakedata', groupsCustomTagGroupsMembersAddBodyParam, (data, error) => {
27042
+ try {
27043
+ if (stub) {
27044
+ const displayE = 'Error 400 received on request';
27045
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27046
+ } else {
27047
+ runCommonAsserts(data, error);
27048
+ }
27049
+ saveMockData('GroupsCustom', 'tagGroupsMembersAdd', 'default', data);
27050
+ done();
27051
+ } catch (err) {
27052
+ log.error(`Test Failure: ${err}`);
27053
+ done(err);
27054
+ }
27055
+ });
27056
+ } catch (error) {
27057
+ log.error(`Adapter Exception: ${error}`);
27058
+ done(error);
27059
+ }
27060
+ }).timeout(attemptTimeout);
27061
+ });
27062
+
27063
+ describe('#tagGroupsCandidatesList - errors', () => {
27064
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27065
+ try {
27066
+ a.tagGroupsCandidatesList(555, null, null, null, (data, error) => {
27067
+ try {
27068
+ if (stub) {
27069
+ const displayE = 'Error 400 received on request';
27070
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27071
+ } else {
27072
+ runCommonAsserts(data, error);
27073
+ }
27074
+ saveMockData('GroupsTag', 'tagGroupsCandidatesList', 'default', data);
27075
+ done();
27076
+ } catch (err) {
27077
+ log.error(`Test Failure: ${err}`);
27078
+ done(err);
27079
+ }
27080
+ });
27081
+ } catch (error) {
27082
+ log.error(`Adapter Exception: ${error}`);
27083
+ done(error);
27084
+ }
27085
+ }).timeout(attemptTimeout);
27086
+ });
27087
+
27088
+ describe('#mFAInboundPoliciesSimulateResolveGet - errors', () => {
27089
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27090
+ try {
27091
+ a.mFAInboundPoliciesSimulateResolveGet(null, (data, error) => {
27092
+ try {
27093
+ if (stub) {
27094
+ const displayE = 'Error 400 received on request';
27095
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27096
+ } else {
27097
+ runCommonAsserts(data, error);
27098
+ }
27099
+ saveMockData('MFAInbound', 'mFAInboundPoliciesSimulateResolveGet', 'default', data);
27100
+ done();
27101
+ } catch (err) {
27102
+ log.error(`Test Failure: ${err}`);
27103
+ done(err);
27104
+ }
27105
+ });
27106
+ } catch (error) {
27107
+ log.error(`Adapter Exception: ${error}`);
27108
+ done(error);
27109
+ }
27110
+ }).timeout(attemptTimeout);
27111
+ });
27112
+
27113
+ describe('#mFAOutboundPoliciesSimulateResolveGet - errors', () => {
27114
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27115
+ try {
27116
+ a.mFAOutboundPoliciesSimulateResolveGet(null, (data, error) => {
27117
+ try {
27118
+ if (stub) {
27119
+ const displayE = 'Error 400 received on request';
27120
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27121
+ } else {
27122
+ runCommonAsserts(data, error);
27123
+ }
27124
+ saveMockData('MFAOutbound', 'mFAOutboundPoliciesSimulateResolveGet', 'default', data);
27125
+ done();
27126
+ } catch (err) {
27127
+ log.error(`Test Failure: ${err}`);
27128
+ done(err);
27129
+ }
27130
+ });
27131
+ } catch (error) {
27132
+ log.error(`Adapter Exception: ${error}`);
27133
+ done(error);
27134
+ }
27135
+ }).timeout(attemptTimeout);
27136
+ });
27137
+
27138
+ describe('#inboundRulesReviewApprove - errors', () => {
27139
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27140
+ try {
27141
+ a.inboundRulesReviewApprove('fakedata', (data, error) => {
27142
+ try {
27143
+ if (stub) {
27144
+ const displayE = 'Error 400 received on request';
27145
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27146
+ } else {
27147
+ runCommonAsserts(data, error);
27148
+ }
27149
+ saveMockData('Rules', 'inboundRulesReviewApprove', 'default', data);
27150
+ done();
27151
+ } catch (err) {
27152
+ log.error(`Test Failure: ${err}`);
27153
+ done(err);
27154
+ }
27155
+ });
27156
+ } catch (error) {
27157
+ log.error(`Adapter Exception: ${error}`);
27158
+ done(error);
27159
+ }
27160
+ }).timeout(attemptTimeout);
27161
+ });
27162
+
27163
+ describe('#inboundRulesReviewDeny - errors', () => {
27164
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27165
+ try {
27166
+ a.inboundRulesReviewDeny('fakedata', (data, error) => {
27167
+ try {
27168
+ if (stub) {
27169
+ const displayE = 'Error 400 received on request';
27170
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27171
+ } else {
27172
+ runCommonAsserts(data, error);
27173
+ }
27174
+ saveMockData('Rules', 'inboundRulesReviewDeny', 'default', data);
27175
+ done();
27176
+ } catch (err) {
27177
+ log.error(`Test Failure: ${err}`);
27178
+ done(err);
27179
+ }
27180
+ });
27181
+ } catch (error) {
27182
+ log.error(`Adapter Exception: ${error}`);
27183
+ done(error);
27184
+ }
27185
+ }).timeout(attemptTimeout);
27186
+ });
27187
+
27188
+ describe('#inboundRulesList - errors', () => {
27189
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27190
+ try {
27191
+ a.inboundRulesList(555, null, null, null, null, null, null, (data, error) => {
27192
+ try {
27193
+ if (stub) {
27194
+ const displayE = 'Error 400 received on request';
27195
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27196
+ } else {
27197
+ runCommonAsserts(data, error);
27198
+ }
27199
+ saveMockData('RulesInbound', 'inboundRulesList', 'default', data);
27200
+ done();
27201
+ } catch (err) {
27202
+ log.error(`Test Failure: ${err}`);
27203
+ done(err);
27204
+ }
27205
+ });
27206
+ } catch (error) {
27207
+ log.error(`Adapter Exception: ${error}`);
27208
+ done(error);
27209
+ }
27210
+ }).timeout(attemptTimeout);
27211
+ });
27212
+
27213
+ const rulesInboundInboundRulesCreateBodyParam = {};
27214
+ describe('#inboundRulesCreate - errors', () => {
27215
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27216
+ try {
27217
+ a.inboundRulesCreate(rulesInboundInboundRulesCreateBodyParam, (data, error) => {
27218
+ try {
27219
+ if (stub) {
27220
+ const displayE = 'Error 400 received on request';
27221
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27222
+ } else {
27223
+ runCommonAsserts(data, error);
27224
+ }
27225
+ saveMockData('RulesInbound', 'inboundRulesCreate', 'default', data);
27226
+ done();
27227
+ } catch (err) {
27228
+ log.error(`Test Failure: ${err}`);
27229
+ done(err);
27230
+ }
27231
+ });
27232
+ } catch (error) {
27233
+ log.error(`Adapter Exception: ${error}`);
27234
+ done(error);
27235
+ }
27236
+ }).timeout(attemptTimeout);
27237
+ });
27238
+
27239
+ const rulesInboundInboundRulesExportBodyParam = {};
27240
+ describe('#inboundRulesExport - errors', () => {
27241
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27242
+ try {
27243
+ a.inboundRulesExport(rulesInboundInboundRulesExportBodyParam, (data, error) => {
27244
+ try {
27245
+ if (stub) {
27246
+ const displayE = 'Error 400 received on request';
27247
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27248
+ } else {
27249
+ runCommonAsserts(data, error);
27250
+ }
27251
+ saveMockData('RulesInbound', 'inboundRulesExport', 'default', data);
27252
+ done();
27253
+ } catch (err) {
27254
+ log.error(`Test Failure: ${err}`);
27255
+ done(err);
27256
+ }
27257
+ });
27258
+ } catch (error) {
27259
+ log.error(`Adapter Exception: ${error}`);
27260
+ done(error);
27261
+ }
27262
+ }).timeout(attemptTimeout);
27263
+ });
27264
+
27265
+ describe('#inboundRulesExportGet - errors', () => {
27266
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27267
+ try {
27268
+ a.inboundRulesExportGet('fakedata', (data, error) => {
27269
+ try {
27270
+ if (stub) {
27271
+ const displayE = 'Error 400 received on request';
27272
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27273
+ } else {
27274
+ runCommonAsserts(data, error);
27275
+ }
27276
+ saveMockData('RulesInbound', 'inboundRulesExportGet', 'default', data);
27277
+ done();
27278
+ } catch (err) {
27279
+ log.error(`Test Failure: ${err}`);
27280
+ done(err);
27281
+ }
27282
+ });
27283
+ } catch (error) {
27284
+ log.error(`Adapter Exception: ${error}`);
27285
+ done(error);
27286
+ }
27287
+ }).timeout(attemptTimeout);
27288
+ });
27289
+
27290
+ describe('#inboundRulesExcludedDestinationCandidatesList - errors', () => {
27291
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27292
+ try {
27293
+ a.inboundRulesExcludedDestinationCandidatesList(555, null, null, (data, error) => {
27294
+ try {
27295
+ if (stub) {
27296
+ const displayE = 'Error 400 received on request';
27297
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27298
+ } else {
27299
+ runCommonAsserts(data, error);
27300
+ }
27301
+ saveMockData('RulesInbound', 'inboundRulesExcludedDestinationCandidatesList', 'default', data);
27302
+ done();
27303
+ } catch (err) {
27304
+ log.error(`Test Failure: ${err}`);
27305
+ done(err);
27306
+ }
27307
+ });
27308
+ } catch (error) {
27309
+ log.error(`Adapter Exception: ${error}`);
27310
+ done(error);
27311
+ }
27312
+ }).timeout(attemptTimeout);
27313
+ });
27314
+
27315
+ describe('#inboundRulesFiltersList - errors', () => {
27316
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27317
+ try {
27318
+ a.inboundRulesFiltersList((data, error) => {
27319
+ try {
27320
+ if (stub) {
27321
+ const displayE = 'Error 400 received on request';
27322
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27323
+ } else {
27324
+ runCommonAsserts(data, error);
27325
+ }
27326
+ saveMockData('RulesInbound', 'inboundRulesFiltersList', 'default', data);
27327
+ done();
27328
+ } catch (err) {
27329
+ log.error(`Test Failure: ${err}`);
27330
+ done(err);
27331
+ }
27332
+ });
27333
+ } catch (error) {
27334
+ log.error(`Adapter Exception: ${error}`);
27335
+ done(error);
27336
+ }
27337
+ }).timeout(attemptTimeout);
27338
+ });
27339
+
27340
+ describe('#inboundRulesDesinationCandidatesFiltersList - errors', () => {
27341
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27342
+ try {
27343
+ a.inboundRulesDesinationCandidatesFiltersList((data, error) => {
27344
+ try {
27345
+ if (stub) {
27346
+ const displayE = 'Error 400 received on request';
27347
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27348
+ } else {
27349
+ runCommonAsserts(data, error);
27350
+ }
27351
+ saveMockData('RulesInbound', 'inboundRulesDesinationCandidatesFiltersList', 'default', data);
27352
+ done();
27353
+ } catch (err) {
27354
+ log.error(`Test Failure: ${err}`);
27355
+ done(err);
27356
+ }
27357
+ });
27358
+ } catch (error) {
27359
+ log.error(`Adapter Exception: ${error}`);
27360
+ done(error);
27361
+ }
27362
+ }).timeout(attemptTimeout);
27363
+ });
27364
+
27365
+ describe('#inboundRulesSourceCandidatesFiltersList - errors', () => {
27366
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27367
+ try {
27368
+ a.inboundRulesSourceCandidatesFiltersList((data, error) => {
27369
+ try {
27370
+ if (stub) {
27371
+ const displayE = 'Error 400 received on request';
27372
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27373
+ } else {
27374
+ runCommonAsserts(data, error);
27375
+ }
27376
+ saveMockData('RulesInbound', 'inboundRulesSourceCandidatesFiltersList', 'default', data);
27377
+ done();
27378
+ } catch (err) {
27379
+ log.error(`Test Failure: ${err}`);
27380
+ done(err);
27381
+ }
27382
+ });
27383
+ } catch (error) {
27384
+ log.error(`Adapter Exception: ${error}`);
27385
+ done(error);
27386
+ }
27387
+ }).timeout(attemptTimeout);
27388
+ });
27389
+
27390
+ describe('#inboundRulesDestinationCandidatesList - errors', () => {
27391
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27392
+ try {
27393
+ a.inboundRulesDestinationCandidatesList(555, null, null, (data, error) => {
27394
+ try {
27395
+ if (stub) {
27396
+ const displayE = 'Error 400 received on request';
27397
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27398
+ } else {
27399
+ runCommonAsserts(data, error);
27400
+ }
27401
+ saveMockData('RulesInbound', 'inboundRulesDestinationCandidatesList', 'default', data);
27402
+ done();
27403
+ } catch (err) {
27404
+ log.error(`Test Failure: ${err}`);
27405
+ done(err);
27406
+ }
27407
+ });
27408
+ } catch (error) {
27409
+ log.error(`Adapter Exception: ${error}`);
27410
+ done(error);
27411
+ }
27412
+ }).timeout(attemptTimeout);
27413
+ });
27414
+
27415
+ describe('#inboundRulesSourceCandidatesList - errors', () => {
27416
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27417
+ try {
27418
+ a.inboundRulesSourceCandidatesList(555, null, null, 555, (data, error) => {
27419
+ try {
27420
+ if (stub) {
27421
+ const displayE = 'Error 400 received on request';
27422
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27423
+ } else {
27424
+ runCommonAsserts(data, error);
27425
+ }
27426
+ saveMockData('RulesInbound', 'inboundRulesSourceCandidatesList', 'default', data);
27427
+ done();
27428
+ } catch (err) {
27429
+ log.error(`Test Failure: ${err}`);
27430
+ done(err);
27431
+ }
27432
+ });
27433
+ } catch (error) {
27434
+ log.error(`Adapter Exception: ${error}`);
27435
+ done(error);
27436
+ }
27437
+ }).timeout(attemptTimeout);
27438
+ });
27439
+
27440
+ const rulesInboundInboundRulesReviewApproveWithChangesBodyParam = {
27441
+ review: {},
27442
+ ruleInfo: {}
27443
+ };
27444
+ describe('#inboundRulesReviewApproveWithChanges - errors', () => {
27445
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27446
+ try {
27447
+ a.inboundRulesReviewApproveWithChanges('fakedata', rulesInboundInboundRulesReviewApproveWithChangesBodyParam, (data, error) => {
27448
+ try {
27449
+ if (stub) {
27450
+ const displayE = 'Error 400 received on request';
27451
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27452
+ } else {
27453
+ runCommonAsserts(data, error);
27454
+ }
27455
+ saveMockData('RulesInbound', 'inboundRulesReviewApproveWithChanges', 'default', data);
27456
+ done();
27457
+ } catch (err) {
27458
+ log.error(`Test Failure: ${err}`);
27459
+ done(err);
27460
+ }
27461
+ });
27462
+ } catch (error) {
27463
+ log.error(`Adapter Exception: ${error}`);
27464
+ done(error);
27465
+ }
27466
+ }).timeout(attemptTimeout);
27467
+ });
27468
+
27469
+ describe('#inboundRuleGet - errors', () => {
27470
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27471
+ try {
27472
+ a.inboundRuleGet('fakedata', (data, error) => {
27473
+ try {
27474
+ if (stub) {
27475
+ const displayE = 'Error 400 received on request';
27476
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27477
+ } else {
27478
+ runCommonAsserts(data, error);
27479
+ }
27480
+ saveMockData('RulesInbound', 'inboundRuleGet', 'default', data);
27481
+ done();
27482
+ } catch (err) {
27483
+ log.error(`Test Failure: ${err}`);
27484
+ done(err);
27485
+ }
27486
+ });
27487
+ } catch (error) {
27488
+ log.error(`Adapter Exception: ${error}`);
27489
+ done(error);
27490
+ }
27491
+ }).timeout(attemptTimeout);
27492
+ });
27493
+
27494
+ const rulesInboundInboundRuleUpdateBodyParam = {};
27495
+ describe('#inboundRuleUpdate - errors', () => {
27496
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27497
+ try {
27498
+ a.inboundRuleUpdate('fakedata', rulesInboundInboundRuleUpdateBodyParam, (data, error) => {
27499
+ try {
27500
+ if (stub) {
27501
+ const displayE = 'Error 400 received on request';
27502
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27503
+ } else {
27504
+ runCommonAsserts(data, error);
27505
+ }
27506
+ saveMockData('RulesInbound', 'inboundRuleUpdate', 'default', data);
27507
+ done();
27508
+ } catch (err) {
27509
+ log.error(`Test Failure: ${err}`);
27510
+ done(err);
27511
+ }
27512
+ });
27513
+ } catch (error) {
27514
+ log.error(`Adapter Exception: ${error}`);
27515
+ done(error);
27516
+ }
27517
+ }).timeout(attemptTimeout);
27518
+ });
27519
+
27520
+ describe('#inboundRuleDelete - errors', () => {
27521
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27522
+ try {
27523
+ a.inboundRuleDelete('fakedata', (data, error) => {
27524
+ try {
27525
+ if (stub) {
27526
+ const displayE = 'Error 400 received on request';
27527
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27528
+ } else {
27529
+ runCommonAsserts(data, error);
27530
+ }
27531
+ saveMockData('RulesInbound', 'inboundRuleDelete', 'default', data);
27532
+ done();
27533
+ } catch (err) {
27534
+ log.error(`Test Failure: ${err}`);
27535
+ done(err);
27536
+ }
27537
+ });
27538
+ } catch (error) {
27539
+ log.error(`Adapter Exception: ${error}`);
27540
+ done(error);
27541
+ }
27542
+ }).timeout(attemptTimeout);
27543
+ });
27544
+
27545
+ describe('#outboundAllowRulesDestinationCandidatesListV2 - errors', () => {
27546
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27547
+ try {
27548
+ a.outboundAllowRulesDestinationCandidatesListV2(555, null, null, 555, (data, error) => {
27549
+ try {
27550
+ if (stub) {
27551
+ const displayE = 'Error 400 received on request';
27552
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27553
+ } else {
27554
+ runCommonAsserts(data, error);
27555
+ }
27556
+ saveMockData('RulesOutboundAllow', 'outboundAllowRulesDestinationCandidatesListV2', 'default', data);
27557
+ done();
27558
+ } catch (err) {
27559
+ log.error(`Test Failure: ${err}`);
27560
+ done(err);
27561
+ }
27562
+ });
27563
+ } catch (error) {
27564
+ log.error(`Adapter Exception: ${error}`);
27565
+ done(error);
27566
+ }
27567
+ }).timeout(attemptTimeout);
27568
+ });
27569
+
27570
+ describe('#settingsInactiveAssetsList - errors', () => {
27571
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27572
+ try {
27573
+ a.settingsInactiveAssetsList((data, error) => {
27574
+ try {
27575
+ if (stub) {
27576
+ const displayE = 'Error 400 received on request';
27577
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27578
+ } else {
27579
+ runCommonAsserts(data, error);
27580
+ }
27581
+ saveMockData('SettingsInactiveAssets', 'settingsInactiveAssetsList', 'default', data);
27582
+ done();
27583
+ } catch (err) {
27584
+ log.error(`Test Failure: ${err}`);
27585
+ done(err);
27586
+ }
27587
+ });
27588
+ } catch (error) {
27589
+ log.error(`Adapter Exception: ${error}`);
27590
+ done(error);
27591
+ }
27592
+ }).timeout(attemptTimeout);
27593
+ });
27594
+
27595
+ const settingsInactiveAssetsSettingsInactiveAssetsUpdateBodyParam = {
27596
+ lastActiveDurationInMonths: 11
27597
+ };
27598
+ describe('#settingsInactiveAssetsUpdate - errors', () => {
27599
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27600
+ try {
27601
+ a.settingsInactiveAssetsUpdate(settingsInactiveAssetsSettingsInactiveAssetsUpdateBodyParam, (data, error) => {
27602
+ try {
27603
+ if (stub) {
27604
+ const displayE = 'Error 400 received on request';
27605
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27606
+ } else {
27607
+ runCommonAsserts(data, error);
27608
+ }
27609
+ saveMockData('SettingsInactiveAssets', 'settingsInactiveAssetsUpdate', 'default', data);
27610
+ done();
27611
+ } catch (err) {
27612
+ log.error(`Test Failure: ${err}`);
27613
+ done(err);
27614
+ }
27615
+ });
27616
+ } catch (error) {
27617
+ log.error(`Adapter Exception: ${error}`);
27618
+ done(error);
27619
+ }
27620
+ }).timeout(attemptTimeout);
27621
+ });
27622
+
27623
+ describe('#settingsLicensesGet - errors', () => {
27624
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27625
+ try {
27626
+ a.settingsLicensesGet('fakedata', (data, error) => {
27627
+ try {
27628
+ if (stub) {
27629
+ const displayE = 'Error 400 received on request';
27630
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27631
+ } else {
27632
+ runCommonAsserts(data, error);
27633
+ }
27634
+ saveMockData('SettingsLicenses', 'settingsLicensesGet', 'default', data);
27635
+ done();
27636
+ } catch (err) {
27637
+ log.error(`Test Failure: ${err}`);
27638
+ done(err);
27639
+ }
27640
+ });
27641
+ } catch (error) {
27642
+ log.error(`Adapter Exception: ${error}`);
27643
+ done(error);
27644
+ }
27645
+ }).timeout(attemptTimeout);
27646
+ });
27647
+
27648
+ describe('#mFAIdentityPoliciesList - errors', () => {
27649
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27650
+ try {
27651
+ a.mFAIdentityPoliciesList(555, null, null, null, null, null, null, null, (data, error) => {
27652
+ try {
27653
+ if (stub) {
27654
+ const displayE = 'Error 400 received on request';
27655
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27656
+ } else {
27657
+ runCommonAsserts(data, error);
27658
+ }
27659
+ saveMockData('MFAIdentity', 'mFAIdentityPoliciesList', 'default', data);
27660
+ done();
27661
+ } catch (err) {
27662
+ log.error(`Test Failure: ${err}`);
27663
+ done(err);
27664
+ }
27665
+ });
27666
+ } catch (error) {
27667
+ log.error(`Adapter Exception: ${error}`);
27668
+ done(error);
27669
+ }
27670
+ }).timeout(attemptTimeout);
27671
+ });
27672
+
27673
+ const mFAIdentityMFAIdentityPoliciesCreateBodyParam = {};
27674
+ describe('#mFAIdentityPoliciesCreate - errors', () => {
27675
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27676
+ try {
27677
+ a.mFAIdentityPoliciesCreate(mFAIdentityMFAIdentityPoliciesCreateBodyParam, (data, error) => {
27678
+ try {
27679
+ if (stub) {
27680
+ const displayE = 'Error 400 received on request';
27681
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27682
+ } else {
27683
+ runCommonAsserts(data, error);
27684
+ }
27685
+ saveMockData('MFAIdentity', 'mFAIdentityPoliciesCreate', 'default', data);
27686
+ done();
27687
+ } catch (err) {
27688
+ log.error(`Test Failure: ${err}`);
27689
+ done(err);
27690
+ }
27691
+ });
27692
+ } catch (error) {
27693
+ log.error(`Adapter Exception: ${error}`);
27694
+ done(error);
27695
+ }
27696
+ }).timeout(attemptTimeout);
27697
+ });
27698
+
27699
+ describe('#mFAIdentityPoliciesGet - errors', () => {
27700
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27701
+ try {
27702
+ a.mFAIdentityPoliciesGet('fakedata', (data, error) => {
27703
+ try {
27704
+ if (stub) {
27705
+ const displayE = 'Error 400 received on request';
27706
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27707
+ } else {
27708
+ runCommonAsserts(data, error);
27709
+ }
27710
+ saveMockData('MFAIdentity', 'mFAIdentityPoliciesGet', 'default', data);
27711
+ done();
27712
+ } catch (err) {
27713
+ log.error(`Test Failure: ${err}`);
27714
+ done(err);
27715
+ }
27716
+ });
27717
+ } catch (error) {
27718
+ log.error(`Adapter Exception: ${error}`);
27719
+ done(error);
27720
+ }
27721
+ }).timeout(attemptTimeout);
27722
+ });
27723
+
27724
+ const mFAIdentityMFAIdentityPoliciesUpdateBodyParam = {};
27725
+ describe('#mFAIdentityPoliciesUpdate - errors', () => {
27726
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27727
+ try {
27728
+ a.mFAIdentityPoliciesUpdate('fakedata', mFAIdentityMFAIdentityPoliciesUpdateBodyParam, (data, error) => {
27729
+ try {
27730
+ if (stub) {
27731
+ const displayE = 'Error 400 received on request';
27732
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27733
+ } else {
27734
+ runCommonAsserts(data, error);
27735
+ }
27736
+ saveMockData('MFAIdentity', 'mFAIdentityPoliciesUpdate', 'default', data);
27737
+ done();
27738
+ } catch (err) {
27739
+ log.error(`Test Failure: ${err}`);
27740
+ done(err);
27741
+ }
27742
+ });
27743
+ } catch (error) {
27744
+ log.error(`Adapter Exception: ${error}`);
27745
+ done(error);
27746
+ }
27747
+ }).timeout(attemptTimeout);
27748
+ });
27749
+
27750
+ describe('#mFAIdentityPoliciesDelete - errors', () => {
27751
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27752
+ try {
27753
+ a.mFAIdentityPoliciesDelete('fakedata', (data, error) => {
27754
+ try {
27755
+ if (stub) {
27756
+ const displayE = 'Error 400 received on request';
27757
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27758
+ } else {
27759
+ runCommonAsserts(data, error);
27760
+ }
27761
+ saveMockData('MFAIdentity', 'mFAIdentityPoliciesDelete', 'default', data);
27762
+ done();
27763
+ } catch (err) {
27764
+ log.error(`Test Failure: ${err}`);
27765
+ done(err);
27766
+ }
27767
+ });
27768
+ } catch (error) {
27769
+ log.error(`Adapter Exception: ${error}`);
27770
+ done(error);
27771
+ }
27772
+ }).timeout(attemptTimeout);
27773
+ });
27774
+
27775
+ describe('#mFAIdentityPoliciesDestinationCandidatesList - errors', () => {
27776
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27777
+ try {
27778
+ a.mFAIdentityPoliciesDestinationCandidatesList(555, null, null, (data, error) => {
27779
+ try {
27780
+ if (stub) {
27781
+ const displayE = 'Error 400 received on request';
27782
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27783
+ } else {
27784
+ runCommonAsserts(data, error);
27785
+ }
27786
+ saveMockData('MFAIdentity', 'mFAIdentityPoliciesDestinationCandidatesList', 'default', data);
27787
+ done();
27788
+ } catch (err) {
27789
+ log.error(`Test Failure: ${err}`);
27790
+ done(err);
27791
+ }
27792
+ });
27793
+ } catch (error) {
27794
+ log.error(`Adapter Exception: ${error}`);
27795
+ done(error);
27796
+ }
27797
+ }).timeout(attemptTimeout);
27798
+ });
27799
+
27800
+ describe('#mFAIdentityPoliciesExcludedSourceCandidatesList - errors', () => {
27801
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27802
+ try {
27803
+ a.mFAIdentityPoliciesExcludedSourceCandidatesList(555, null, null, null, (data, error) => {
27804
+ try {
27805
+ if (stub) {
27806
+ const displayE = 'Error 400 received on request';
27807
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27808
+ } else {
27809
+ runCommonAsserts(data, error);
27810
+ }
27811
+ saveMockData('MFAIdentity', 'mFAIdentityPoliciesExcludedSourceCandidatesList', 'default', data);
27812
+ done();
27813
+ } catch (err) {
27814
+ log.error(`Test Failure: ${err}`);
27815
+ done(err);
27816
+ }
27817
+ });
27818
+ } catch (error) {
27819
+ log.error(`Adapter Exception: ${error}`);
27820
+ done(error);
27821
+ }
27822
+ }).timeout(attemptTimeout);
27823
+ });
27824
+
27825
+ describe('#mFAIdentityPoliciesFiltersList - errors', () => {
27826
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27827
+ try {
27828
+ a.mFAIdentityPoliciesFiltersList((data, error) => {
27829
+ try {
27830
+ if (stub) {
27831
+ const displayE = 'Error 400 received on request';
27832
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27833
+ } else {
27834
+ runCommonAsserts(data, error);
27835
+ }
27836
+ saveMockData('MFAIdentity', 'mFAIdentityPoliciesFiltersList', 'default', data);
27837
+ done();
27838
+ } catch (err) {
27839
+ log.error(`Test Failure: ${err}`);
27840
+ done(err);
27841
+ }
27842
+ });
27843
+ } catch (error) {
27844
+ log.error(`Adapter Exception: ${error}`);
27845
+ done(error);
27846
+ }
27847
+ }).timeout(attemptTimeout);
27848
+ });
27849
+
27850
+ describe('#mFAIdentityPoliciesDestinationCandidatesFiltersList - errors', () => {
27851
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27852
+ try {
27853
+ a.mFAIdentityPoliciesDestinationCandidatesFiltersList(555, null, null, (data, error) => {
27854
+ try {
27855
+ if (stub) {
27856
+ const displayE = 'Error 400 received on request';
27857
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27858
+ } else {
27859
+ runCommonAsserts(data, error);
27860
+ }
27861
+ saveMockData('MFAIdentity', 'mFAIdentityPoliciesDestinationCandidatesFiltersList', 'default', data);
27862
+ done();
27863
+ } catch (err) {
27864
+ log.error(`Test Failure: ${err}`);
27865
+ done(err);
27866
+ }
27867
+ });
27868
+ } catch (error) {
27869
+ log.error(`Adapter Exception: ${error}`);
27870
+ done(error);
27871
+ }
27872
+ }).timeout(attemptTimeout);
27873
+ });
27874
+
27875
+ describe('#mFAIdentityPoliciesSourceCandidatesFiltersList - errors', () => {
27876
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27877
+ try {
27878
+ a.mFAIdentityPoliciesSourceCandidatesFiltersList(555, null, null, (data, error) => {
27879
+ try {
27880
+ if (stub) {
27881
+ const displayE = 'Error 400 received on request';
27882
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27883
+ } else {
27884
+ runCommonAsserts(data, error);
27885
+ }
27886
+ saveMockData('MFAIdentity', 'mFAIdentityPoliciesSourceCandidatesFiltersList', 'default', data);
27887
+ done();
27888
+ } catch (err) {
27889
+ log.error(`Test Failure: ${err}`);
27890
+ done(err);
27891
+ }
27892
+ });
27893
+ } catch (error) {
27894
+ log.error(`Adapter Exception: ${error}`);
27895
+ done(error);
27896
+ }
27897
+ }).timeout(attemptTimeout);
27898
+ });
27899
+
27900
+ describe('#mFAIdentityPoliciesSourceUsersCandidatesFiltersList - errors', () => {
27901
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27902
+ try {
27903
+ a.mFAIdentityPoliciesSourceUsersCandidatesFiltersList(555, null, null, (data, error) => {
27904
+ try {
27905
+ if (stub) {
27906
+ const displayE = 'Error 400 received on request';
27907
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27908
+ } else {
27909
+ runCommonAsserts(data, error);
27910
+ }
27911
+ saveMockData('MFAIdentity', 'mFAIdentityPoliciesSourceUsersCandidatesFiltersList', 'default', data);
27912
+ done();
27913
+ } catch (err) {
27914
+ log.error(`Test Failure: ${err}`);
27915
+ done(err);
27916
+ }
27917
+ });
27918
+ } catch (error) {
27919
+ log.error(`Adapter Exception: ${error}`);
27920
+ done(error);
27921
+ }
27922
+ }).timeout(attemptTimeout);
27923
+ });
27924
+
27925
+ describe('#mFAIdentityPoliciesMFAMethodsList - errors', () => {
27926
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27927
+ try {
27928
+ a.mFAIdentityPoliciesMFAMethodsList((data, error) => {
27929
+ try {
27930
+ if (stub) {
27931
+ const displayE = 'Error 400 received on request';
27932
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27933
+ } else {
27934
+ runCommonAsserts(data, error);
27935
+ }
27936
+ saveMockData('MFAIdentity', 'mFAIdentityPoliciesMFAMethodsList', 'default', data);
27937
+ done();
27938
+ } catch (err) {
27939
+ log.error(`Test Failure: ${err}`);
27940
+ done(err);
27941
+ }
27942
+ });
27943
+ } catch (error) {
27944
+ log.error(`Adapter Exception: ${error}`);
27945
+ done(error);
27946
+ }
27947
+ }).timeout(attemptTimeout);
27948
+ });
27949
+
27950
+ describe('#mFAIdentityPoliciesSourceCandidatesList - errors', () => {
27951
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27952
+ try {
27953
+ a.mFAIdentityPoliciesSourceCandidatesList(555, null, null, (data, error) => {
27954
+ try {
27955
+ if (stub) {
27956
+ const displayE = 'Error 400 received on request';
27957
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27958
+ } else {
27959
+ runCommonAsserts(data, error);
27960
+ }
27961
+ saveMockData('MFAIdentity', 'mFAIdentityPoliciesSourceCandidatesList', 'default', data);
27962
+ done();
27963
+ } catch (err) {
27964
+ log.error(`Test Failure: ${err}`);
27965
+ done(err);
27966
+ }
27967
+ });
27968
+ } catch (error) {
27969
+ log.error(`Adapter Exception: ${error}`);
27970
+ done(error);
27971
+ }
27972
+ }).timeout(attemptTimeout);
27973
+ });
27974
+
27975
+ describe('#mFAIdentityPoliciesSourceUserCandidatesList - errors', () => {
27976
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
27977
+ try {
27978
+ a.mFAIdentityPoliciesSourceUserCandidatesList(555, null, null, (data, error) => {
27979
+ try {
27980
+ if (stub) {
27981
+ const displayE = 'Error 400 received on request';
27982
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
27983
+ } else {
27984
+ runCommonAsserts(data, error);
27985
+ }
27986
+ saveMockData('MFAIdentity', 'mFAIdentityPoliciesSourceUserCandidatesList', 'default', data);
27987
+ done();
27988
+ } catch (err) {
27989
+ log.error(`Test Failure: ${err}`);
27990
+ done(err);
27991
+ }
27992
+ });
27993
+ } catch (error) {
27994
+ log.error(`Adapter Exception: ${error}`);
27995
+ done(error);
27996
+ }
27997
+ }).timeout(attemptTimeout);
27998
+ });
27999
+
28000
+ describe('#userMFAIdentityPoliciesList - errors', () => {
28001
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
28002
+ try {
28003
+ a.userMFAIdentityPoliciesList('fakedata', 555, null, null, null, null, null, null, null, (data, error) => {
28004
+ try {
28005
+ if (stub) {
28006
+ const displayE = 'Error 400 received on request';
28007
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
28008
+ } else {
28009
+ runCommonAsserts(data, error);
28010
+ }
28011
+ saveMockData('User', 'userMFAIdentityPoliciesList', 'default', data);
28012
+ done();
28013
+ } catch (err) {
28014
+ log.error(`Test Failure: ${err}`);
28015
+ done(err);
28016
+ }
28017
+ });
28018
+ } catch (error) {
28019
+ log.error(`Adapter Exception: ${error}`);
28020
+ done(error);
28021
+ }
28022
+ }).timeout(attemptTimeout);
28023
+ });
28024
+
28025
+ const userUserMFAIdentityPoliciesCreateBodyParam = {};
28026
+ describe('#userMFAIdentityPoliciesCreate - errors', () => {
28027
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
28028
+ try {
28029
+ a.userMFAIdentityPoliciesCreate('fakedata', userUserMFAIdentityPoliciesCreateBodyParam, (data, error) => {
28030
+ try {
28031
+ if (stub) {
28032
+ const displayE = 'Error 400 received on request';
28033
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
28034
+ } else {
28035
+ runCommonAsserts(data, error);
28036
+ }
28037
+ saveMockData('User', 'userMFAIdentityPoliciesCreate', 'default', data);
28038
+ done();
28039
+ } catch (err) {
28040
+ log.error(`Test Failure: ${err}`);
28041
+ done(err);
28042
+ }
28043
+ });
28044
+ } catch (error) {
28045
+ log.error(`Adapter Exception: ${error}`);
28046
+ done(error);
28047
+ }
28048
+ }).timeout(attemptTimeout);
28049
+ });
28050
+
28051
+ describe('#userMFAIdentityPoliciesGet - errors', () => {
28052
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
28053
+ try {
28054
+ a.userMFAIdentityPoliciesGet('fakedata', 'fakedata', (data, error) => {
28055
+ try {
28056
+ if (stub) {
28057
+ const displayE = 'Error 400 received on request';
28058
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
28059
+ } else {
28060
+ runCommonAsserts(data, error);
28061
+ }
28062
+ saveMockData('User', 'userMFAIdentityPoliciesGet', 'default', data);
28063
+ done();
28064
+ } catch (err) {
28065
+ log.error(`Test Failure: ${err}`);
28066
+ done(err);
28067
+ }
28068
+ });
28069
+ } catch (error) {
28070
+ log.error(`Adapter Exception: ${error}`);
28071
+ done(error);
28072
+ }
28073
+ }).timeout(attemptTimeout);
28074
+ });
28075
+
28076
+ const userUserMFAIdentityPoliciesUpdateBodyParam = {};
28077
+ describe('#userMFAIdentityPoliciesUpdate - errors', () => {
28078
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
28079
+ try {
28080
+ a.userMFAIdentityPoliciesUpdate('fakedata', 'fakedata', userUserMFAIdentityPoliciesUpdateBodyParam, (data, error) => {
28081
+ try {
28082
+ if (stub) {
28083
+ const displayE = 'Error 400 received on request';
28084
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
28085
+ } else {
28086
+ runCommonAsserts(data, error);
28087
+ }
28088
+ saveMockData('User', 'userMFAIdentityPoliciesUpdate', 'default', data);
28089
+ done();
28090
+ } catch (err) {
28091
+ log.error(`Test Failure: ${err}`);
28092
+ done(err);
28093
+ }
28094
+ });
28095
+ } catch (error) {
28096
+ log.error(`Adapter Exception: ${error}`);
28097
+ done(error);
28098
+ }
28099
+ }).timeout(attemptTimeout);
28100
+ });
28101
+
28102
+ describe('#userMFAIdentityPoliciesDelete - errors', () => {
28103
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
28104
+ try {
28105
+ a.userMFAIdentityPoliciesDelete('fakedata', 'fakedata', (data, error) => {
28106
+ try {
28107
+ if (stub) {
28108
+ const displayE = 'Error 400 received on request';
28109
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
28110
+ } else {
28111
+ runCommonAsserts(data, error);
28112
+ }
28113
+ saveMockData('User', 'userMFAIdentityPoliciesDelete', 'default', data);
28114
+ done();
28115
+ } catch (err) {
28116
+ log.error(`Test Failure: ${err}`);
28117
+ done(err);
28118
+ }
28119
+ });
28120
+ } catch (error) {
28121
+ log.error(`Adapter Exception: ${error}`);
28122
+ done(error);
28123
+ }
28124
+ }).timeout(attemptTimeout);
28125
+ });
28126
+
28127
+ describe('#userMFAIdentityPoliciesDestinationCandidatesList - errors', () => {
28128
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
28129
+ try {
28130
+ a.userMFAIdentityPoliciesDestinationCandidatesList('fakedata', 555, null, null, (data, error) => {
28131
+ try {
28132
+ if (stub) {
28133
+ const displayE = 'Error 400 received on request';
28134
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
28135
+ } else {
28136
+ runCommonAsserts(data, error);
28137
+ }
28138
+ saveMockData('User', 'userMFAIdentityPoliciesDestinationCandidatesList', 'default', data);
28139
+ done();
28140
+ } catch (err) {
28141
+ log.error(`Test Failure: ${err}`);
28142
+ done(err);
28143
+ }
28144
+ });
28145
+ } catch (error) {
28146
+ log.error(`Adapter Exception: ${error}`);
28147
+ done(error);
28148
+ }
28149
+ }).timeout(attemptTimeout);
28150
+ });
28151
+
28152
+ describe('#userMFAIdentityPoliciesExcludedSourceCandidatesList - errors', () => {
28153
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
28154
+ try {
28155
+ a.userMFAIdentityPoliciesExcludedSourceCandidatesList('fakedata', 555, null, null, null, (data, error) => {
28156
+ try {
28157
+ if (stub) {
28158
+ const displayE = 'Error 400 received on request';
28159
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
28160
+ } else {
28161
+ runCommonAsserts(data, error);
28162
+ }
28163
+ saveMockData('User', 'userMFAIdentityPoliciesExcludedSourceCandidatesList', 'default', data);
28164
+ done();
28165
+ } catch (err) {
28166
+ log.error(`Test Failure: ${err}`);
28167
+ done(err);
28168
+ }
28169
+ });
28170
+ } catch (error) {
28171
+ log.error(`Adapter Exception: ${error}`);
28172
+ done(error);
28173
+ }
28174
+ }).timeout(attemptTimeout);
28175
+ });
28176
+
28177
+ describe('#userMFAIdentityPoliciesFiltersList - errors', () => {
28178
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
28179
+ try {
28180
+ a.userMFAIdentityPoliciesFiltersList('fakedata', (data, error) => {
28181
+ try {
28182
+ if (stub) {
28183
+ const displayE = 'Error 400 received on request';
28184
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
28185
+ } else {
28186
+ runCommonAsserts(data, error);
28187
+ }
28188
+ saveMockData('User', 'userMFAIdentityPoliciesFiltersList', 'default', data);
28189
+ done();
28190
+ } catch (err) {
28191
+ log.error(`Test Failure: ${err}`);
28192
+ done(err);
28193
+ }
28194
+ });
28195
+ } catch (error) {
28196
+ log.error(`Adapter Exception: ${error}`);
28197
+ done(error);
28198
+ }
28199
+ }).timeout(attemptTimeout);
28200
+ });
28201
+
28202
+ describe('#userMFAIdentityPoliciesDestinationCandidatesFiltersList - errors', () => {
28203
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
28204
+ try {
28205
+ a.userMFAIdentityPoliciesDestinationCandidatesFiltersList('fakedata', 555, null, null, (data, error) => {
28206
+ try {
28207
+ if (stub) {
28208
+ const displayE = 'Error 400 received on request';
28209
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
28210
+ } else {
28211
+ runCommonAsserts(data, error);
28212
+ }
28213
+ saveMockData('User', 'userMFAIdentityPoliciesDestinationCandidatesFiltersList', 'default', data);
28214
+ done();
28215
+ } catch (err) {
28216
+ log.error(`Test Failure: ${err}`);
28217
+ done(err);
28218
+ }
28219
+ });
28220
+ } catch (error) {
28221
+ log.error(`Adapter Exception: ${error}`);
28222
+ done(error);
28223
+ }
28224
+ }).timeout(attemptTimeout);
28225
+ });
28226
+
28227
+ describe('#userMFAIdentityPoliciesSourceCandidatesFiltersList - errors', () => {
28228
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
28229
+ try {
28230
+ a.userMFAIdentityPoliciesSourceCandidatesFiltersList('fakedata', 555, null, null, (data, error) => {
28231
+ try {
28232
+ if (stub) {
28233
+ const displayE = 'Error 400 received on request';
28234
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
28235
+ } else {
28236
+ runCommonAsserts(data, error);
28237
+ }
28238
+ saveMockData('User', 'userMFAIdentityPoliciesSourceCandidatesFiltersList', 'default', data);
28239
+ done();
28240
+ } catch (err) {
28241
+ log.error(`Test Failure: ${err}`);
28242
+ done(err);
28243
+ }
28244
+ });
28245
+ } catch (error) {
28246
+ log.error(`Adapter Exception: ${error}`);
28247
+ done(error);
28248
+ }
28249
+ }).timeout(attemptTimeout);
28250
+ });
28251
+
28252
+ describe('#userMFAIdentityPoliciesSourceUsersCandidatesFiltersList - errors', () => {
28253
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
28254
+ try {
28255
+ a.userMFAIdentityPoliciesSourceUsersCandidatesFiltersList('fakedata', 555, null, null, (data, error) => {
28256
+ try {
28257
+ if (stub) {
28258
+ const displayE = 'Error 400 received on request';
28259
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
28260
+ } else {
28261
+ runCommonAsserts(data, error);
28262
+ }
28263
+ saveMockData('User', 'userMFAIdentityPoliciesSourceUsersCandidatesFiltersList', 'default', data);
28264
+ done();
28265
+ } catch (err) {
28266
+ log.error(`Test Failure: ${err}`);
28267
+ done(err);
28268
+ }
28269
+ });
28270
+ } catch (error) {
28271
+ log.error(`Adapter Exception: ${error}`);
28272
+ done(error);
28273
+ }
28274
+ }).timeout(attemptTimeout);
28275
+ });
28276
+
28277
+ describe('#userMFAIdentityPoliciesMFAMethodsList - errors', () => {
28278
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
28279
+ try {
28280
+ a.userMFAIdentityPoliciesMFAMethodsList('fakedata', (data, error) => {
28281
+ try {
28282
+ if (stub) {
28283
+ const displayE = 'Error 400 received on request';
28284
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
28285
+ } else {
28286
+ runCommonAsserts(data, error);
28287
+ }
28288
+ saveMockData('User', 'userMFAIdentityPoliciesMFAMethodsList', 'default', data);
28289
+ done();
28290
+ } catch (err) {
28291
+ log.error(`Test Failure: ${err}`);
28292
+ done(err);
28293
+ }
28294
+ });
28295
+ } catch (error) {
28296
+ log.error(`Adapter Exception: ${error}`);
28297
+ done(error);
28298
+ }
28299
+ }).timeout(attemptTimeout);
28300
+ });
28301
+
28302
+ describe('#userMFAIdentityPoliciesSourceCandidatesList - errors', () => {
28303
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
28304
+ try {
28305
+ a.userMFAIdentityPoliciesSourceCandidatesList('fakedata', 555, null, null, (data, error) => {
28306
+ try {
28307
+ if (stub) {
28308
+ const displayE = 'Error 400 received on request';
28309
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
28310
+ } else {
28311
+ runCommonAsserts(data, error);
28312
+ }
28313
+ saveMockData('User', 'userMFAIdentityPoliciesSourceCandidatesList', 'default', data);
28314
+ done();
28315
+ } catch (err) {
28316
+ log.error(`Test Failure: ${err}`);
28317
+ done(err);
28318
+ }
28319
+ });
28320
+ } catch (error) {
28321
+ log.error(`Adapter Exception: ${error}`);
28322
+ done(error);
28323
+ }
28324
+ }).timeout(attemptTimeout);
28325
+ });
28326
+
28327
+ describe('#userMFAIdentityPoliciesSourceUserCandidatesList - errors', () => {
28328
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
28329
+ try {
28330
+ a.userMFAIdentityPoliciesSourceUserCandidatesList('fakedata', 555, null, null, (data, error) => {
28331
+ try {
28332
+ if (stub) {
28333
+ const displayE = 'Error 400 received on request';
28334
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
28335
+ } else {
28336
+ runCommonAsserts(data, error);
28337
+ }
28338
+ saveMockData('User', 'userMFAIdentityPoliciesSourceUserCandidatesList', 'default', data);
28339
+ done();
28340
+ } catch (err) {
28341
+ log.error(`Test Failure: ${err}`);
28342
+ done(err);
28343
+ }
28344
+ });
28345
+ } catch (error) {
28346
+ log.error(`Adapter Exception: ${error}`);
28347
+ done(error);
28348
+ }
28349
+ }).timeout(attemptTimeout);
28350
+ });
28351
+
28352
+ describe('#usersListQueryV2 - errors', () => {
28353
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
28354
+ try {
28355
+ a.usersListQueryV2(555, null, null, null, null, null, null, null, (data, error) => {
28356
+ try {
28357
+ if (stub) {
28358
+ const displayE = 'Error 400 received on request';
28359
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
28360
+ } else {
28361
+ runCommonAsserts(data, error);
28362
+ }
28363
+ saveMockData('Users', 'usersListQueryV2', 'default', data);
28364
+ done();
28365
+ } catch (err) {
28366
+ log.error(`Test Failure: ${err}`);
28367
+ done(err);
28368
+ }
28369
+ });
28370
+ } catch (error) {
28371
+ log.error(`Adapter Exception: ${error}`);
28372
+ done(error);
28373
+ }
28374
+ }).timeout(attemptTimeout);
28375
+ });
28376
+
28377
+ describe('#segmentServerDownload - errors', () => {
28378
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
28379
+ try {
28380
+ a.segmentServerDownload((data, error) => {
28381
+ try {
28382
+ if (stub) {
28383
+ const displayE = 'Error 400 received on request';
28384
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
28385
+ } else {
28386
+ runCommonAsserts(data, error);
28387
+ }
28388
+ saveMockData('Download', 'segmentServerDownload', 'default', data);
28389
+ done();
28390
+ } catch (err) {
28391
+ log.error(`Test Failure: ${err}`);
28392
+ done(err);
28393
+ }
28394
+ });
28395
+ } catch (error) {
28396
+ log.error(`Adapter Exception: ${error}`);
28397
+ done(error);
28398
+ }
28399
+ }).timeout(attemptTimeout);
28400
+ });
28401
+
28402
+ describe('#connectServerDownload - errors', () => {
28403
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
28404
+ try {
28405
+ a.connectServerDownload((data, error) => {
28406
+ try {
28407
+ if (stub) {
28408
+ const displayE = 'Error 400 received on request';
28409
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
28410
+ } else {
28411
+ runCommonAsserts(data, error);
28412
+ }
28413
+ saveMockData('Download', 'connectServerDownload', 'default', data);
28414
+ done();
28415
+ } catch (err) {
28416
+ log.error(`Test Failure: ${err}`);
28417
+ done(err);
28418
+ }
28419
+ });
28420
+ } catch (error) {
28421
+ log.error(`Adapter Exception: ${error}`);
28422
+ done(error);
28423
+ }
28424
+ }).timeout(attemptTimeout);
28425
+ });
28426
+
28427
+ describe('#connectClientDownload - errors', () => {
28428
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
28429
+ try {
28430
+ a.connectClientDownload('fakedata', (data, error) => {
28431
+ try {
28432
+ if (stub) {
28433
+ const displayE = 'Error 400 received on request';
28434
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
28435
+ } else {
28436
+ runCommonAsserts(data, error);
28437
+ }
28438
+ saveMockData('Download', 'connectClientDownload', 'default', data);
28439
+ done();
28440
+ } catch (err) {
28441
+ log.error(`Test Failure: ${err}`);
28442
+ done(err);
28443
+ }
28444
+ });
28445
+ } catch (error) {
28446
+ log.error(`Adapter Exception: ${error}`);
28447
+ done(error);
28448
+ }
28449
+ }).timeout(attemptTimeout);
28450
+ });
28451
+
28452
+ describe('#cloudConnectorInstallerDownload - errors', () => {
28453
+ it('should work if integrated but since no mockdata should error when run standalone', (done) => {
28454
+ try {
28455
+ a.cloudConnectorInstallerDownload((data, error) => {
28456
+ try {
28457
+ if (stub) {
28458
+ const displayE = 'Error 400 received on request';
28459
+ runErrorAsserts(data, error, 'AD.500', 'Test-zero_networks-connectorRest-handleEndResponse', displayE);
28460
+ } else {
28461
+ runCommonAsserts(data, error);
28462
+ }
28463
+ saveMockData('Download', 'cloudConnectorInstallerDownload', 'default', data);
28464
+ done();
28465
+ } catch (err) {
28466
+ log.error(`Test Failure: ${err}`);
28467
+ done(err);
28468
+ }
28469
+ });
28470
+ } catch (error) {
28471
+ log.error(`Adapter Exception: ${error}`);
28472
+ done(error);
28473
+ }
28474
+ }).timeout(attemptTimeout);
28475
+ });
23776
28476
  });
23777
28477
  });