@itentialopensource/adapter-f5_bigiq 0.5.7 → 0.6.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 (55) hide show
  1. package/.eslintrc.js +1 -0
  2. package/AUTH.md +4 -4
  3. package/BROKER.md +4 -4
  4. package/CALLS.md +621 -9
  5. package/ENHANCE.md +3 -3
  6. package/PROPERTIES.md +24 -9
  7. package/README.md +24 -23
  8. package/SUMMARY.md +2 -2
  9. package/SYSTEMINFO.md +1 -1
  10. package/TAB1.md +2 -2
  11. package/TAB2.md +9 -5
  12. package/TROUBLESHOOT.md +10 -1
  13. package/UTILITIES.md +473 -0
  14. package/adapter.js +11315 -5
  15. package/adapterBase.js +52 -16
  16. package/entities/BIGIPAuthentication/action.json +106 -0
  17. package/entities/BIGIPAuthentication/schema.json +23 -0
  18. package/entities/BIGIPConfigurationManagement/action.json +310 -0
  19. package/entities/BIGIPConfigurationManagement/schema.json +33 -0
  20. package/entities/BIGIPLocalTrafficManager/action.json +1042 -0
  21. package/entities/BIGIPLocalTrafficManager/schema.json +69 -0
  22. package/entities/BIGIPNetwork/action.json +432 -0
  23. package/entities/BIGIPNetwork/schema.json +39 -0
  24. package/entities/BIGIPSystem/action.json +209 -0
  25. package/entities/BIGIPSystem/schema.json +28 -0
  26. package/package.json +24 -28
  27. package/pronghorn.json +5973 -13
  28. package/propertiesSchema.json +68 -7
  29. package/report/adapterInfo.json +8 -8
  30. package/report/auto-adapter-openapi.json +20632 -0
  31. package/report/updateReport1748555375038.json +120 -0
  32. package/sampleProperties.json +4 -0
  33. package/test/integration/adapterTestBasicGet.js +88 -54
  34. package/test/integration/adapterTestConnectivity.js +15 -16
  35. package/test/integration/adapterTestIntegration.js +2597 -38
  36. package/test/unit/adapterBaseTestUnit.js +641 -39
  37. package/test/unit/adapterTestUnit.js +4822 -61
  38. package/utils/adapterInfo.js +114 -164
  39. package/utils/argParser.js +44 -0
  40. package/utils/checkMigrate.js +77 -38
  41. package/utils/entitiesToDB.js +53 -42
  42. package/utils/logger.js +26 -0
  43. package/utils/modify.js +56 -55
  44. package/utils/mongoDbConnection.js +79 -0
  45. package/utils/mongoUtils.js +162 -0
  46. package/utils/taskMover.js +31 -32
  47. package/utils/tbScript.js +36 -172
  48. package/utils/tbUtils.js +84 -226
  49. package/utils/troubleshootingAdapter.js +68 -84
  50. package/utils/updateAdapterConfig.js +158 -0
  51. package/utils/addAuth.js +0 -94
  52. package/utils/artifactize.js +0 -146
  53. package/utils/basicGet.js +0 -50
  54. package/utils/packModificationScript.js +0 -35
  55. package/utils/patches2bundledDeps.js +0 -90
@@ -18,10 +18,10 @@ const { expect } = require('chai');
18
18
  const { use } = require('chai');
19
19
  const td = require('testdouble');
20
20
  const Ajv = require('ajv');
21
+ const log = require('../../utils/logger');
21
22
 
22
23
  const ajv = new Ajv({ strictSchema: false, allErrors: true, allowUnionTypes: true });
23
24
  const anything = td.matchers.anything();
24
- let logLevel = 'none';
25
25
  const isRapidFail = false;
26
26
 
27
27
  // read in the properties from the sampleProperties files
@@ -36,13 +36,17 @@ const samProps = require(`${adaptdir}/sampleProperties.json`).properties;
36
36
  // these variables can be changed to run in integrated mode so easier to set them here
37
37
  // always check these in with bogus data!!!
38
38
  samProps.stub = true;
39
- samProps.host = 'replace.hostorip.here';
40
- samProps.authentication.username = 'username';
41
- samProps.authentication.password = 'password';
42
- samProps.protocol = 'http';
43
- samProps.port = 80;
44
- samProps.ssl.enabled = false;
45
- samProps.ssl.accept_invalid_cert = false;
39
+
40
+ // uncomment if connecting
41
+ // samProps.host = 'replace.hostorip.here';
42
+ // samProps.authentication.username = 'username';
43
+ // samProps.authentication.password = 'password';
44
+ // samProps.authentication.token = 'password';
45
+ // samProps.protocol = 'http';
46
+ // samProps.port = 80;
47
+ // samProps.ssl.enabled = false;
48
+ // samProps.ssl.accept_invalid_cert = false;
49
+
46
50
  samProps.request.attempt_timeout = 1200000;
47
51
  const attemptTimeout = samProps.request.attempt_timeout;
48
52
  const { stub } = samProps;
@@ -64,43 +68,6 @@ global.pronghornProps = {
64
68
 
65
69
  global.$HOME = `${__dirname}/../..`;
66
70
 
67
- // set the log levels that Pronghorn uses, spam and trace are not defaulted in so without
68
- // this you may error on log.trace calls.
69
- const myCustomLevels = {
70
- levels: {
71
- spam: 6,
72
- trace: 5,
73
- debug: 4,
74
- info: 3,
75
- warn: 2,
76
- error: 1,
77
- none: 0
78
- }
79
- };
80
-
81
- // need to see if there is a log level passed in
82
- process.argv.forEach((val) => {
83
- // is there a log level defined to be passed in?
84
- if (val.indexOf('--LOG') === 0) {
85
- // get the desired log level
86
- const inputVal = val.split('=')[1];
87
-
88
- // validate the log level is supported, if so set it
89
- if (Object.hasOwnProperty.call(myCustomLevels.levels, inputVal)) {
90
- logLevel = inputVal;
91
- }
92
- }
93
- });
94
-
95
- // need to set global logging
96
- global.log = winston.createLogger({
97
- level: logLevel,
98
- levels: myCustomLevels.levels,
99
- transports: [
100
- new winston.transports.Console()
101
- ]
102
- });
103
-
104
71
  /**
105
72
  * Runs the error asserts for the test
106
73
  */
@@ -314,16 +281,16 @@ describe('[unit] F5BigIQ Adapter Test', () => {
314
281
  assert.notEqual(undefined, packageDotJson.dependencies);
315
282
  assert.notEqual(null, packageDotJson.dependencies);
316
283
  assert.notEqual('', packageDotJson.dependencies);
317
- assert.equal('^8.17.1', packageDotJson.dependencies.ajv);
318
- assert.equal('^1.8.2', packageDotJson.dependencies.axios);
319
- assert.equal('^11.0.0', packageDotJson.dependencies.commander);
320
- assert.equal('^11.2.0', packageDotJson.dependencies['fs-extra']);
321
- assert.equal('^10.8.2', packageDotJson.dependencies.mocha);
322
- assert.equal('^2.0.1', packageDotJson.dependencies['mocha-param']);
323
- assert.equal('^0.4.4', packageDotJson.dependencies.ping);
324
- assert.equal('^1.4.10', packageDotJson.dependencies['readline-sync']);
325
- assert.equal('^7.6.3', packageDotJson.dependencies.semver);
326
- assert.equal('^3.17.0', packageDotJson.dependencies.winston);
284
+ assert.equal('8.17.1', packageDotJson.dependencies.ajv);
285
+ assert.equal('1.9.0', packageDotJson.dependencies.axios);
286
+ assert.equal('11.1.0', packageDotJson.dependencies.commander);
287
+ assert.equal('11.3.0', packageDotJson.dependencies['fs-extra']);
288
+ assert.equal('10.8.2', packageDotJson.dependencies.mocha);
289
+ assert.equal('2.0.1', packageDotJson.dependencies['mocha-param']);
290
+ assert.equal('0.4.4', packageDotJson.dependencies.ping);
291
+ assert.equal('1.4.10', packageDotJson.dependencies['readline-sync']);
292
+ assert.equal('7.7.2', packageDotJson.dependencies.semver);
293
+ assert.equal('3.17.0', packageDotJson.dependencies.winston);
327
294
  done();
328
295
  } catch (error) {
329
296
  log.error(`Test Failure: ${error}`);
@@ -336,12 +303,12 @@ describe('[unit] F5BigIQ Adapter Test', () => {
336
303
  assert.notEqual(undefined, packageDotJson.devDependencies);
337
304
  assert.notEqual(null, packageDotJson.devDependencies);
338
305
  assert.notEqual('', packageDotJson.devDependencies);
339
- assert.equal('^4.3.7', packageDotJson.devDependencies.chai);
340
- assert.equal('^8.44.0', packageDotJson.devDependencies.eslint);
341
- assert.equal('^15.0.0', packageDotJson.devDependencies['eslint-config-airbnb-base']);
342
- assert.equal('^2.27.5', packageDotJson.devDependencies['eslint-plugin-import']);
343
- assert.equal('^3.1.0', packageDotJson.devDependencies['eslint-plugin-json']);
344
- assert.equal('^3.18.0', packageDotJson.devDependencies.testdouble);
306
+ assert.equal('4.5.0', packageDotJson.devDependencies.chai);
307
+ assert.equal('8.57.0', packageDotJson.devDependencies.eslint);
308
+ assert.equal('15.0.0', packageDotJson.devDependencies['eslint-config-airbnb-base']);
309
+ assert.equal('2.31.0', packageDotJson.devDependencies['eslint-plugin-import']);
310
+ assert.equal('3.1.0', packageDotJson.devDependencies['eslint-plugin-json']);
311
+ assert.equal('3.18.0', packageDotJson.devDependencies.testdouble);
345
312
  done();
346
313
  } catch (error) {
347
314
  log.error(`Test Failure: ${error}`);
@@ -13904,5 +13871,4799 @@ describe('[unit] F5BigIQ Adapter Test', () => {
13904
13871
  }
13905
13872
  }).timeout(attemptTimeout);
13906
13873
  });
13874
+
13875
+ describe('#getNetVlans - errors', () => {
13876
+ it('should have a getNetVlans function', (done) => {
13877
+ try {
13878
+ assert.equal(true, typeof a.getNetVlans === 'function');
13879
+ done();
13880
+ } catch (error) {
13881
+ log.error(`Test Failure: ${error}`);
13882
+ done(error);
13883
+ }
13884
+ }).timeout(attemptTimeout);
13885
+ it('should error if - missing uuid', (done) => {
13886
+ try {
13887
+ a.getNetVlans(null, null, null, (data, error) => {
13888
+ try {
13889
+ const displayE = 'uuid is required';
13890
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getNetVlans', displayE);
13891
+ done();
13892
+ } catch (err) {
13893
+ log.error(`Test Failure: ${err}`);
13894
+ done(err);
13895
+ }
13896
+ });
13897
+ } catch (error) {
13898
+ log.error(`Adapter Exception: ${error}`);
13899
+ done(error);
13900
+ }
13901
+ }).timeout(attemptTimeout);
13902
+ });
13903
+
13904
+ describe('#createNetVlan - errors', () => {
13905
+ it('should have a createNetVlan function', (done) => {
13906
+ try {
13907
+ assert.equal(true, typeof a.createNetVlan === 'function');
13908
+ done();
13909
+ } catch (error) {
13910
+ log.error(`Test Failure: ${error}`);
13911
+ done(error);
13912
+ }
13913
+ }).timeout(attemptTimeout);
13914
+ it('should error if - missing uuid', (done) => {
13915
+ try {
13916
+ a.createNetVlan(null, null, null, (data, error) => {
13917
+ try {
13918
+ const displayE = 'uuid is required';
13919
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createNetVlan', displayE);
13920
+ done();
13921
+ } catch (err) {
13922
+ log.error(`Test Failure: ${err}`);
13923
+ done(err);
13924
+ }
13925
+ });
13926
+ } catch (error) {
13927
+ log.error(`Adapter Exception: ${error}`);
13928
+ done(error);
13929
+ }
13930
+ }).timeout(attemptTimeout);
13931
+ it('should error if - missing body', (done) => {
13932
+ try {
13933
+ a.createNetVlan('fakeparam', null, null, (data, error) => {
13934
+ try {
13935
+ const displayE = 'body is required';
13936
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createNetVlan', displayE);
13937
+ done();
13938
+ } catch (err) {
13939
+ log.error(`Test Failure: ${err}`);
13940
+ done(err);
13941
+ }
13942
+ });
13943
+ } catch (error) {
13944
+ log.error(`Adapter Exception: ${error}`);
13945
+ done(error);
13946
+ }
13947
+ }).timeout(attemptTimeout);
13948
+ });
13949
+
13950
+ describe('#getNetVlanById - errors', () => {
13951
+ it('should have a getNetVlanById function', (done) => {
13952
+ try {
13953
+ assert.equal(true, typeof a.getNetVlanById === 'function');
13954
+ done();
13955
+ } catch (error) {
13956
+ log.error(`Test Failure: ${error}`);
13957
+ done(error);
13958
+ }
13959
+ }).timeout(attemptTimeout);
13960
+ it('should error if - missing uuid', (done) => {
13961
+ try {
13962
+ a.getNetVlanById(null, null, null, null, (data, error) => {
13963
+ try {
13964
+ const displayE = 'uuid is required';
13965
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getNetVlanById', displayE);
13966
+ done();
13967
+ } catch (err) {
13968
+ log.error(`Test Failure: ${err}`);
13969
+ done(err);
13970
+ }
13971
+ });
13972
+ } catch (error) {
13973
+ log.error(`Adapter Exception: ${error}`);
13974
+ done(error);
13975
+ }
13976
+ }).timeout(attemptTimeout);
13977
+ it('should error if - missing resourceId', (done) => {
13978
+ try {
13979
+ a.getNetVlanById('fakeparam', null, null, null, (data, error) => {
13980
+ try {
13981
+ const displayE = 'resourceId is required';
13982
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getNetVlanById', displayE);
13983
+ done();
13984
+ } catch (err) {
13985
+ log.error(`Test Failure: ${err}`);
13986
+ done(err);
13987
+ }
13988
+ });
13989
+ } catch (error) {
13990
+ log.error(`Adapter Exception: ${error}`);
13991
+ done(error);
13992
+ }
13993
+ }).timeout(attemptTimeout);
13994
+ });
13995
+
13996
+ describe('#updateNetVlan - errors', () => {
13997
+ it('should have a updateNetVlan function', (done) => {
13998
+ try {
13999
+ assert.equal(true, typeof a.updateNetVlan === 'function');
14000
+ done();
14001
+ } catch (error) {
14002
+ log.error(`Test Failure: ${error}`);
14003
+ done(error);
14004
+ }
14005
+ }).timeout(attemptTimeout);
14006
+ it('should error if - missing uuid', (done) => {
14007
+ try {
14008
+ a.updateNetVlan(null, null, null, null, (data, error) => {
14009
+ try {
14010
+ const displayE = 'uuid is required';
14011
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateNetVlan', displayE);
14012
+ done();
14013
+ } catch (err) {
14014
+ log.error(`Test Failure: ${err}`);
14015
+ done(err);
14016
+ }
14017
+ });
14018
+ } catch (error) {
14019
+ log.error(`Adapter Exception: ${error}`);
14020
+ done(error);
14021
+ }
14022
+ }).timeout(attemptTimeout);
14023
+ it('should error if - missing resourceId', (done) => {
14024
+ try {
14025
+ a.updateNetVlan('fakeparam', null, null, null, (data, error) => {
14026
+ try {
14027
+ const displayE = 'resourceId is required';
14028
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateNetVlan', displayE);
14029
+ done();
14030
+ } catch (err) {
14031
+ log.error(`Test Failure: ${err}`);
14032
+ done(err);
14033
+ }
14034
+ });
14035
+ } catch (error) {
14036
+ log.error(`Adapter Exception: ${error}`);
14037
+ done(error);
14038
+ }
14039
+ }).timeout(attemptTimeout);
14040
+ it('should error if - missing body', (done) => {
14041
+ try {
14042
+ a.updateNetVlan('fakeparam', 'fakeparam', null, null, (data, error) => {
14043
+ try {
14044
+ const displayE = 'body is required';
14045
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateNetVlan', displayE);
14046
+ done();
14047
+ } catch (err) {
14048
+ log.error(`Test Failure: ${err}`);
14049
+ done(err);
14050
+ }
14051
+ });
14052
+ } catch (error) {
14053
+ log.error(`Adapter Exception: ${error}`);
14054
+ done(error);
14055
+ }
14056
+ }).timeout(attemptTimeout);
14057
+ });
14058
+
14059
+ describe('#deleteNetVlan - errors', () => {
14060
+ it('should have a deleteNetVlan function', (done) => {
14061
+ try {
14062
+ assert.equal(true, typeof a.deleteNetVlan === 'function');
14063
+ done();
14064
+ } catch (error) {
14065
+ log.error(`Test Failure: ${error}`);
14066
+ done(error);
14067
+ }
14068
+ }).timeout(attemptTimeout);
14069
+ it('should error if - missing uuid', (done) => {
14070
+ try {
14071
+ a.deleteNetVlan(null, null, null, (data, error) => {
14072
+ try {
14073
+ const displayE = 'uuid is required';
14074
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteNetVlan', displayE);
14075
+ done();
14076
+ } catch (err) {
14077
+ log.error(`Test Failure: ${err}`);
14078
+ done(err);
14079
+ }
14080
+ });
14081
+ } catch (error) {
14082
+ log.error(`Adapter Exception: ${error}`);
14083
+ done(error);
14084
+ }
14085
+ }).timeout(attemptTimeout);
14086
+ it('should error if - missing resourceId', (done) => {
14087
+ try {
14088
+ a.deleteNetVlan('fakeparam', null, null, (data, error) => {
14089
+ try {
14090
+ const displayE = 'resourceId is required';
14091
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteNetVlan', displayE);
14092
+ done();
14093
+ } catch (err) {
14094
+ log.error(`Test Failure: ${err}`);
14095
+ done(err);
14096
+ }
14097
+ });
14098
+ } catch (error) {
14099
+ log.error(`Adapter Exception: ${error}`);
14100
+ done(error);
14101
+ }
14102
+ }).timeout(attemptTimeout);
14103
+ });
14104
+
14105
+ describe('#patchNetVlan - errors', () => {
14106
+ it('should have a patchNetVlan function', (done) => {
14107
+ try {
14108
+ assert.equal(true, typeof a.patchNetVlan === 'function');
14109
+ done();
14110
+ } catch (error) {
14111
+ log.error(`Test Failure: ${error}`);
14112
+ done(error);
14113
+ }
14114
+ }).timeout(attemptTimeout);
14115
+ it('should error if - missing uuid', (done) => {
14116
+ try {
14117
+ a.patchNetVlan(null, null, null, null, (data, error) => {
14118
+ try {
14119
+ const displayE = 'uuid is required';
14120
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchNetVlan', displayE);
14121
+ done();
14122
+ } catch (err) {
14123
+ log.error(`Test Failure: ${err}`);
14124
+ done(err);
14125
+ }
14126
+ });
14127
+ } catch (error) {
14128
+ log.error(`Adapter Exception: ${error}`);
14129
+ done(error);
14130
+ }
14131
+ }).timeout(attemptTimeout);
14132
+ it('should error if - missing resourceId', (done) => {
14133
+ try {
14134
+ a.patchNetVlan('fakeparam', null, null, null, (data, error) => {
14135
+ try {
14136
+ const displayE = 'resourceId is required';
14137
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchNetVlan', displayE);
14138
+ done();
14139
+ } catch (err) {
14140
+ log.error(`Test Failure: ${err}`);
14141
+ done(err);
14142
+ }
14143
+ });
14144
+ } catch (error) {
14145
+ log.error(`Adapter Exception: ${error}`);
14146
+ done(error);
14147
+ }
14148
+ }).timeout(attemptTimeout);
14149
+ it('should error if - missing body', (done) => {
14150
+ try {
14151
+ a.patchNetVlan('fakeparam', 'fakeparam', null, null, (data, error) => {
14152
+ try {
14153
+ const displayE = 'body is required';
14154
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchNetVlan', displayE);
14155
+ done();
14156
+ } catch (err) {
14157
+ log.error(`Test Failure: ${err}`);
14158
+ done(err);
14159
+ }
14160
+ });
14161
+ } catch (error) {
14162
+ log.error(`Adapter Exception: ${error}`);
14163
+ done(error);
14164
+ }
14165
+ }).timeout(attemptTimeout);
14166
+ });
14167
+
14168
+ describe('#getAllNetSelfIPs - errors', () => {
14169
+ it('should have a getAllNetSelfIPs function', (done) => {
14170
+ try {
14171
+ assert.equal(true, typeof a.getAllNetSelfIPs === 'function');
14172
+ done();
14173
+ } catch (error) {
14174
+ log.error(`Test Failure: ${error}`);
14175
+ done(error);
14176
+ }
14177
+ }).timeout(attemptTimeout);
14178
+ it('should error if - missing uuid', (done) => {
14179
+ try {
14180
+ a.getAllNetSelfIPs(null, null, null, (data, error) => {
14181
+ try {
14182
+ const displayE = 'uuid is required';
14183
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getAllNetSelfIPs', displayE);
14184
+ done();
14185
+ } catch (err) {
14186
+ log.error(`Test Failure: ${err}`);
14187
+ done(err);
14188
+ }
14189
+ });
14190
+ } catch (error) {
14191
+ log.error(`Adapter Exception: ${error}`);
14192
+ done(error);
14193
+ }
14194
+ }).timeout(attemptTimeout);
14195
+ });
14196
+
14197
+ describe('#createNetSelfIP - errors', () => {
14198
+ it('should have a createNetSelfIP function', (done) => {
14199
+ try {
14200
+ assert.equal(true, typeof a.createNetSelfIP === 'function');
14201
+ done();
14202
+ } catch (error) {
14203
+ log.error(`Test Failure: ${error}`);
14204
+ done(error);
14205
+ }
14206
+ }).timeout(attemptTimeout);
14207
+ it('should error if - missing uuid', (done) => {
14208
+ try {
14209
+ a.createNetSelfIP(null, null, null, (data, error) => {
14210
+ try {
14211
+ const displayE = 'uuid is required';
14212
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createNetSelfIP', displayE);
14213
+ done();
14214
+ } catch (err) {
14215
+ log.error(`Test Failure: ${err}`);
14216
+ done(err);
14217
+ }
14218
+ });
14219
+ } catch (error) {
14220
+ log.error(`Adapter Exception: ${error}`);
14221
+ done(error);
14222
+ }
14223
+ }).timeout(attemptTimeout);
14224
+ it('should error if - missing body', (done) => {
14225
+ try {
14226
+ a.createNetSelfIP('fakeparam', null, null, (data, error) => {
14227
+ try {
14228
+ const displayE = 'body is required';
14229
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createNetSelfIP', displayE);
14230
+ done();
14231
+ } catch (err) {
14232
+ log.error(`Test Failure: ${err}`);
14233
+ done(err);
14234
+ }
14235
+ });
14236
+ } catch (error) {
14237
+ log.error(`Adapter Exception: ${error}`);
14238
+ done(error);
14239
+ }
14240
+ }).timeout(attemptTimeout);
14241
+ });
14242
+
14243
+ describe('#getNetSelfIPByName - errors', () => {
14244
+ it('should have a getNetSelfIPByName function', (done) => {
14245
+ try {
14246
+ assert.equal(true, typeof a.getNetSelfIPByName === 'function');
14247
+ done();
14248
+ } catch (error) {
14249
+ log.error(`Test Failure: ${error}`);
14250
+ done(error);
14251
+ }
14252
+ }).timeout(attemptTimeout);
14253
+ it('should error if - missing uuid', (done) => {
14254
+ try {
14255
+ a.getNetSelfIPByName(null, null, null, null, (data, error) => {
14256
+ try {
14257
+ const displayE = 'uuid is required';
14258
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getNetSelfIPByName', displayE);
14259
+ done();
14260
+ } catch (err) {
14261
+ log.error(`Test Failure: ${err}`);
14262
+ done(err);
14263
+ }
14264
+ });
14265
+ } catch (error) {
14266
+ log.error(`Adapter Exception: ${error}`);
14267
+ done(error);
14268
+ }
14269
+ }).timeout(attemptTimeout);
14270
+ it('should error if - missing name', (done) => {
14271
+ try {
14272
+ a.getNetSelfIPByName('fakeparam', null, null, null, (data, error) => {
14273
+ try {
14274
+ const displayE = 'name is required';
14275
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getNetSelfIPByName', displayE);
14276
+ done();
14277
+ } catch (err) {
14278
+ log.error(`Test Failure: ${err}`);
14279
+ done(err);
14280
+ }
14281
+ });
14282
+ } catch (error) {
14283
+ log.error(`Adapter Exception: ${error}`);
14284
+ done(error);
14285
+ }
14286
+ }).timeout(attemptTimeout);
14287
+ });
14288
+
14289
+ describe('#updateNetSelfIP - errors', () => {
14290
+ it('should have a updateNetSelfIP function', (done) => {
14291
+ try {
14292
+ assert.equal(true, typeof a.updateNetSelfIP === 'function');
14293
+ done();
14294
+ } catch (error) {
14295
+ log.error(`Test Failure: ${error}`);
14296
+ done(error);
14297
+ }
14298
+ }).timeout(attemptTimeout);
14299
+ it('should error if - missing uuid', (done) => {
14300
+ try {
14301
+ a.updateNetSelfIP(null, null, null, null, (data, error) => {
14302
+ try {
14303
+ const displayE = 'uuid is required';
14304
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateNetSelfIP', displayE);
14305
+ done();
14306
+ } catch (err) {
14307
+ log.error(`Test Failure: ${err}`);
14308
+ done(err);
14309
+ }
14310
+ });
14311
+ } catch (error) {
14312
+ log.error(`Adapter Exception: ${error}`);
14313
+ done(error);
14314
+ }
14315
+ }).timeout(attemptTimeout);
14316
+ it('should error if - missing name', (done) => {
14317
+ try {
14318
+ a.updateNetSelfIP('fakeparam', null, null, null, (data, error) => {
14319
+ try {
14320
+ const displayE = 'name is required';
14321
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateNetSelfIP', displayE);
14322
+ done();
14323
+ } catch (err) {
14324
+ log.error(`Test Failure: ${err}`);
14325
+ done(err);
14326
+ }
14327
+ });
14328
+ } catch (error) {
14329
+ log.error(`Adapter Exception: ${error}`);
14330
+ done(error);
14331
+ }
14332
+ }).timeout(attemptTimeout);
14333
+ it('should error if - missing body', (done) => {
14334
+ try {
14335
+ a.updateNetSelfIP('fakeparam', 'fakeparam', null, null, (data, error) => {
14336
+ try {
14337
+ const displayE = 'body is required';
14338
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateNetSelfIP', displayE);
14339
+ done();
14340
+ } catch (err) {
14341
+ log.error(`Test Failure: ${err}`);
14342
+ done(err);
14343
+ }
14344
+ });
14345
+ } catch (error) {
14346
+ log.error(`Adapter Exception: ${error}`);
14347
+ done(error);
14348
+ }
14349
+ }).timeout(attemptTimeout);
14350
+ });
14351
+
14352
+ describe('#deleteNetSelfIP - errors', () => {
14353
+ it('should have a deleteNetSelfIP function', (done) => {
14354
+ try {
14355
+ assert.equal(true, typeof a.deleteNetSelfIP === 'function');
14356
+ done();
14357
+ } catch (error) {
14358
+ log.error(`Test Failure: ${error}`);
14359
+ done(error);
14360
+ }
14361
+ }).timeout(attemptTimeout);
14362
+ it('should error if - missing uuid', (done) => {
14363
+ try {
14364
+ a.deleteNetSelfIP(null, null, null, (data, error) => {
14365
+ try {
14366
+ const displayE = 'uuid is required';
14367
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteNetSelfIP', displayE);
14368
+ done();
14369
+ } catch (err) {
14370
+ log.error(`Test Failure: ${err}`);
14371
+ done(err);
14372
+ }
14373
+ });
14374
+ } catch (error) {
14375
+ log.error(`Adapter Exception: ${error}`);
14376
+ done(error);
14377
+ }
14378
+ }).timeout(attemptTimeout);
14379
+ it('should error if - missing name', (done) => {
14380
+ try {
14381
+ a.deleteNetSelfIP('fakeparam', null, null, (data, error) => {
14382
+ try {
14383
+ const displayE = 'name is required';
14384
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteNetSelfIP', displayE);
14385
+ done();
14386
+ } catch (err) {
14387
+ log.error(`Test Failure: ${err}`);
14388
+ done(err);
14389
+ }
14390
+ });
14391
+ } catch (error) {
14392
+ log.error(`Adapter Exception: ${error}`);
14393
+ done(error);
14394
+ }
14395
+ }).timeout(attemptTimeout);
14396
+ });
14397
+
14398
+ describe('#patchNetSelfIP - errors', () => {
14399
+ it('should have a patchNetSelfIP function', (done) => {
14400
+ try {
14401
+ assert.equal(true, typeof a.patchNetSelfIP === 'function');
14402
+ done();
14403
+ } catch (error) {
14404
+ log.error(`Test Failure: ${error}`);
14405
+ done(error);
14406
+ }
14407
+ }).timeout(attemptTimeout);
14408
+ it('should error if - missing uuid', (done) => {
14409
+ try {
14410
+ a.patchNetSelfIP(null, null, null, null, (data, error) => {
14411
+ try {
14412
+ const displayE = 'uuid is required';
14413
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchNetSelfIP', displayE);
14414
+ done();
14415
+ } catch (err) {
14416
+ log.error(`Test Failure: ${err}`);
14417
+ done(err);
14418
+ }
14419
+ });
14420
+ } catch (error) {
14421
+ log.error(`Adapter Exception: ${error}`);
14422
+ done(error);
14423
+ }
14424
+ }).timeout(attemptTimeout);
14425
+ it('should error if - missing name', (done) => {
14426
+ try {
14427
+ a.patchNetSelfIP('fakeparam', null, null, null, (data, error) => {
14428
+ try {
14429
+ const displayE = 'name is required';
14430
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchNetSelfIP', displayE);
14431
+ done();
14432
+ } catch (err) {
14433
+ log.error(`Test Failure: ${err}`);
14434
+ done(err);
14435
+ }
14436
+ });
14437
+ } catch (error) {
14438
+ log.error(`Adapter Exception: ${error}`);
14439
+ done(error);
14440
+ }
14441
+ }).timeout(attemptTimeout);
14442
+ it('should error if - missing body', (done) => {
14443
+ try {
14444
+ a.patchNetSelfIP('fakeparam', 'fakeparam', null, null, (data, error) => {
14445
+ try {
14446
+ const displayE = 'body is required';
14447
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchNetSelfIP', displayE);
14448
+ done();
14449
+ } catch (err) {
14450
+ log.error(`Test Failure: ${err}`);
14451
+ done(err);
14452
+ }
14453
+ });
14454
+ } catch (error) {
14455
+ log.error(`Adapter Exception: ${error}`);
14456
+ done(error);
14457
+ }
14458
+ }).timeout(attemptTimeout);
14459
+ });
14460
+
14461
+ describe('#getNetRoutes - errors', () => {
14462
+ it('should have a getNetRoutes function', (done) => {
14463
+ try {
14464
+ assert.equal(true, typeof a.getNetRoutes === 'function');
14465
+ done();
14466
+ } catch (error) {
14467
+ log.error(`Test Failure: ${error}`);
14468
+ done(error);
14469
+ }
14470
+ }).timeout(attemptTimeout);
14471
+ it('should error if - missing uuid', (done) => {
14472
+ try {
14473
+ a.getNetRoutes(null, null, null, (data, error) => {
14474
+ try {
14475
+ const displayE = 'uuid is required';
14476
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getNetRoutes', displayE);
14477
+ done();
14478
+ } catch (err) {
14479
+ log.error(`Test Failure: ${err}`);
14480
+ done(err);
14481
+ }
14482
+ });
14483
+ } catch (error) {
14484
+ log.error(`Adapter Exception: ${error}`);
14485
+ done(error);
14486
+ }
14487
+ }).timeout(attemptTimeout);
14488
+ });
14489
+
14490
+ describe('#createNetRoute - errors', () => {
14491
+ it('should have a createNetRoute function', (done) => {
14492
+ try {
14493
+ assert.equal(true, typeof a.createNetRoute === 'function');
14494
+ done();
14495
+ } catch (error) {
14496
+ log.error(`Test Failure: ${error}`);
14497
+ done(error);
14498
+ }
14499
+ }).timeout(attemptTimeout);
14500
+ it('should error if - missing uuid', (done) => {
14501
+ try {
14502
+ a.createNetRoute(null, null, null, (data, error) => {
14503
+ try {
14504
+ const displayE = 'uuid is required';
14505
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createNetRoute', displayE);
14506
+ done();
14507
+ } catch (err) {
14508
+ log.error(`Test Failure: ${err}`);
14509
+ done(err);
14510
+ }
14511
+ });
14512
+ } catch (error) {
14513
+ log.error(`Adapter Exception: ${error}`);
14514
+ done(error);
14515
+ }
14516
+ }).timeout(attemptTimeout);
14517
+ it('should error if - missing body', (done) => {
14518
+ try {
14519
+ a.createNetRoute('fakeparam', null, null, (data, error) => {
14520
+ try {
14521
+ const displayE = 'body is required';
14522
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createNetRoute', displayE);
14523
+ done();
14524
+ } catch (err) {
14525
+ log.error(`Test Failure: ${err}`);
14526
+ done(err);
14527
+ }
14528
+ });
14529
+ } catch (error) {
14530
+ log.error(`Adapter Exception: ${error}`);
14531
+ done(error);
14532
+ }
14533
+ }).timeout(attemptTimeout);
14534
+ });
14535
+
14536
+ describe('#getNetRouteByName - errors', () => {
14537
+ it('should have a getNetRouteByName function', (done) => {
14538
+ try {
14539
+ assert.equal(true, typeof a.getNetRouteByName === 'function');
14540
+ done();
14541
+ } catch (error) {
14542
+ log.error(`Test Failure: ${error}`);
14543
+ done(error);
14544
+ }
14545
+ }).timeout(attemptTimeout);
14546
+ it('should error if - missing uuid', (done) => {
14547
+ try {
14548
+ a.getNetRouteByName(null, null, null, null, (data, error) => {
14549
+ try {
14550
+ const displayE = 'uuid is required';
14551
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getNetRouteByName', displayE);
14552
+ done();
14553
+ } catch (err) {
14554
+ log.error(`Test Failure: ${err}`);
14555
+ done(err);
14556
+ }
14557
+ });
14558
+ } catch (error) {
14559
+ log.error(`Adapter Exception: ${error}`);
14560
+ done(error);
14561
+ }
14562
+ }).timeout(attemptTimeout);
14563
+ it('should error if - missing name', (done) => {
14564
+ try {
14565
+ a.getNetRouteByName('fakeparam', null, null, null, (data, error) => {
14566
+ try {
14567
+ const displayE = 'name is required';
14568
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getNetRouteByName', displayE);
14569
+ done();
14570
+ } catch (err) {
14571
+ log.error(`Test Failure: ${err}`);
14572
+ done(err);
14573
+ }
14574
+ });
14575
+ } catch (error) {
14576
+ log.error(`Adapter Exception: ${error}`);
14577
+ done(error);
14578
+ }
14579
+ }).timeout(attemptTimeout);
14580
+ });
14581
+
14582
+ describe('#updateNetRoute - errors', () => {
14583
+ it('should have a updateNetRoute function', (done) => {
14584
+ try {
14585
+ assert.equal(true, typeof a.updateNetRoute === 'function');
14586
+ done();
14587
+ } catch (error) {
14588
+ log.error(`Test Failure: ${error}`);
14589
+ done(error);
14590
+ }
14591
+ }).timeout(attemptTimeout);
14592
+ it('should error if - missing uuid', (done) => {
14593
+ try {
14594
+ a.updateNetRoute(null, null, null, null, (data, error) => {
14595
+ try {
14596
+ const displayE = 'uuid is required';
14597
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateNetRoute', displayE);
14598
+ done();
14599
+ } catch (err) {
14600
+ log.error(`Test Failure: ${err}`);
14601
+ done(err);
14602
+ }
14603
+ });
14604
+ } catch (error) {
14605
+ log.error(`Adapter Exception: ${error}`);
14606
+ done(error);
14607
+ }
14608
+ }).timeout(attemptTimeout);
14609
+ it('should error if - missing name', (done) => {
14610
+ try {
14611
+ a.updateNetRoute('fakeparam', null, null, null, (data, error) => {
14612
+ try {
14613
+ const displayE = 'name is required';
14614
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateNetRoute', displayE);
14615
+ done();
14616
+ } catch (err) {
14617
+ log.error(`Test Failure: ${err}`);
14618
+ done(err);
14619
+ }
14620
+ });
14621
+ } catch (error) {
14622
+ log.error(`Adapter Exception: ${error}`);
14623
+ done(error);
14624
+ }
14625
+ }).timeout(attemptTimeout);
14626
+ it('should error if - missing body', (done) => {
14627
+ try {
14628
+ a.updateNetRoute('fakeparam', 'fakeparam', null, null, (data, error) => {
14629
+ try {
14630
+ const displayE = 'body is required';
14631
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateNetRoute', displayE);
14632
+ done();
14633
+ } catch (err) {
14634
+ log.error(`Test Failure: ${err}`);
14635
+ done(err);
14636
+ }
14637
+ });
14638
+ } catch (error) {
14639
+ log.error(`Adapter Exception: ${error}`);
14640
+ done(error);
14641
+ }
14642
+ }).timeout(attemptTimeout);
14643
+ });
14644
+
14645
+ describe('#deleteNetRoute - errors', () => {
14646
+ it('should have a deleteNetRoute function', (done) => {
14647
+ try {
14648
+ assert.equal(true, typeof a.deleteNetRoute === 'function');
14649
+ done();
14650
+ } catch (error) {
14651
+ log.error(`Test Failure: ${error}`);
14652
+ done(error);
14653
+ }
14654
+ }).timeout(attemptTimeout);
14655
+ it('should error if - missing uuid', (done) => {
14656
+ try {
14657
+ a.deleteNetRoute(null, null, null, (data, error) => {
14658
+ try {
14659
+ const displayE = 'uuid is required';
14660
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteNetRoute', displayE);
14661
+ done();
14662
+ } catch (err) {
14663
+ log.error(`Test Failure: ${err}`);
14664
+ done(err);
14665
+ }
14666
+ });
14667
+ } catch (error) {
14668
+ log.error(`Adapter Exception: ${error}`);
14669
+ done(error);
14670
+ }
14671
+ }).timeout(attemptTimeout);
14672
+ it('should error if - missing name', (done) => {
14673
+ try {
14674
+ a.deleteNetRoute('fakeparam', null, null, (data, error) => {
14675
+ try {
14676
+ const displayE = 'name is required';
14677
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteNetRoute', displayE);
14678
+ done();
14679
+ } catch (err) {
14680
+ log.error(`Test Failure: ${err}`);
14681
+ done(err);
14682
+ }
14683
+ });
14684
+ } catch (error) {
14685
+ log.error(`Adapter Exception: ${error}`);
14686
+ done(error);
14687
+ }
14688
+ }).timeout(attemptTimeout);
14689
+ });
14690
+
14691
+ describe('#patchNetRoute - errors', () => {
14692
+ it('should have a patchNetRoute function', (done) => {
14693
+ try {
14694
+ assert.equal(true, typeof a.patchNetRoute === 'function');
14695
+ done();
14696
+ } catch (error) {
14697
+ log.error(`Test Failure: ${error}`);
14698
+ done(error);
14699
+ }
14700
+ }).timeout(attemptTimeout);
14701
+ it('should error if - missing uuid', (done) => {
14702
+ try {
14703
+ a.patchNetRoute(null, null, null, null, (data, error) => {
14704
+ try {
14705
+ const displayE = 'uuid is required';
14706
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchNetRoute', displayE);
14707
+ done();
14708
+ } catch (err) {
14709
+ log.error(`Test Failure: ${err}`);
14710
+ done(err);
14711
+ }
14712
+ });
14713
+ } catch (error) {
14714
+ log.error(`Adapter Exception: ${error}`);
14715
+ done(error);
14716
+ }
14717
+ }).timeout(attemptTimeout);
14718
+ it('should error if - missing name', (done) => {
14719
+ try {
14720
+ a.patchNetRoute('fakeparam', null, null, null, (data, error) => {
14721
+ try {
14722
+ const displayE = 'name is required';
14723
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchNetRoute', displayE);
14724
+ done();
14725
+ } catch (err) {
14726
+ log.error(`Test Failure: ${err}`);
14727
+ done(err);
14728
+ }
14729
+ });
14730
+ } catch (error) {
14731
+ log.error(`Adapter Exception: ${error}`);
14732
+ done(error);
14733
+ }
14734
+ }).timeout(attemptTimeout);
14735
+ it('should error if - missing body', (done) => {
14736
+ try {
14737
+ a.patchNetRoute('fakeparam', 'fakeparam', null, null, (data, error) => {
14738
+ try {
14739
+ const displayE = 'body is required';
14740
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchNetRoute', displayE);
14741
+ done();
14742
+ } catch (err) {
14743
+ log.error(`Test Failure: ${err}`);
14744
+ done(err);
14745
+ }
14746
+ });
14747
+ } catch (error) {
14748
+ log.error(`Adapter Exception: ${error}`);
14749
+ done(error);
14750
+ }
14751
+ }).timeout(attemptTimeout);
14752
+ });
14753
+
14754
+ describe('#getNetInterfaces - errors', () => {
14755
+ it('should have a getNetInterfaces function', (done) => {
14756
+ try {
14757
+ assert.equal(true, typeof a.getNetInterfaces === 'function');
14758
+ done();
14759
+ } catch (error) {
14760
+ log.error(`Test Failure: ${error}`);
14761
+ done(error);
14762
+ }
14763
+ }).timeout(attemptTimeout);
14764
+ it('should error if - missing uuid', (done) => {
14765
+ try {
14766
+ a.getNetInterfaces(null, null, null, (data, error) => {
14767
+ try {
14768
+ const displayE = 'uuid is required';
14769
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getNetInterfaces', displayE);
14770
+ done();
14771
+ } catch (err) {
14772
+ log.error(`Test Failure: ${err}`);
14773
+ done(err);
14774
+ }
14775
+ });
14776
+ } catch (error) {
14777
+ log.error(`Adapter Exception: ${error}`);
14778
+ done(error);
14779
+ }
14780
+ }).timeout(attemptTimeout);
14781
+ });
14782
+
14783
+ describe('#getNetInterfaceByName - errors', () => {
14784
+ it('should have a getNetInterfaceByName function', (done) => {
14785
+ try {
14786
+ assert.equal(true, typeof a.getNetInterfaceByName === 'function');
14787
+ done();
14788
+ } catch (error) {
14789
+ log.error(`Test Failure: ${error}`);
14790
+ done(error);
14791
+ }
14792
+ }).timeout(attemptTimeout);
14793
+ it('should error if - missing uuid', (done) => {
14794
+ try {
14795
+ a.getNetInterfaceByName(null, null, null, null, (data, error) => {
14796
+ try {
14797
+ const displayE = 'uuid is required';
14798
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getNetInterfaceByName', displayE);
14799
+ done();
14800
+ } catch (err) {
14801
+ log.error(`Test Failure: ${err}`);
14802
+ done(err);
14803
+ }
14804
+ });
14805
+ } catch (error) {
14806
+ log.error(`Adapter Exception: ${error}`);
14807
+ done(error);
14808
+ }
14809
+ }).timeout(attemptTimeout);
14810
+ it('should error if - missing name', (done) => {
14811
+ try {
14812
+ a.getNetInterfaceByName('fakeparam', null, null, null, (data, error) => {
14813
+ try {
14814
+ const displayE = 'name is required';
14815
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getNetInterfaceByName', displayE);
14816
+ done();
14817
+ } catch (err) {
14818
+ log.error(`Test Failure: ${err}`);
14819
+ done(err);
14820
+ }
14821
+ });
14822
+ } catch (error) {
14823
+ log.error(`Adapter Exception: ${error}`);
14824
+ done(error);
14825
+ }
14826
+ }).timeout(attemptTimeout);
14827
+ });
14828
+
14829
+ describe('#updateNetInterface - errors', () => {
14830
+ it('should have a updateNetInterface function', (done) => {
14831
+ try {
14832
+ assert.equal(true, typeof a.updateNetInterface === 'function');
14833
+ done();
14834
+ } catch (error) {
14835
+ log.error(`Test Failure: ${error}`);
14836
+ done(error);
14837
+ }
14838
+ }).timeout(attemptTimeout);
14839
+ it('should error if - missing uuid', (done) => {
14840
+ try {
14841
+ a.updateNetInterface(null, null, null, null, (data, error) => {
14842
+ try {
14843
+ const displayE = 'uuid is required';
14844
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateNetInterface', displayE);
14845
+ done();
14846
+ } catch (err) {
14847
+ log.error(`Test Failure: ${err}`);
14848
+ done(err);
14849
+ }
14850
+ });
14851
+ } catch (error) {
14852
+ log.error(`Adapter Exception: ${error}`);
14853
+ done(error);
14854
+ }
14855
+ }).timeout(attemptTimeout);
14856
+ it('should error if - missing name', (done) => {
14857
+ try {
14858
+ a.updateNetInterface('fakeparam', null, null, null, (data, error) => {
14859
+ try {
14860
+ const displayE = 'name is required';
14861
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateNetInterface', displayE);
14862
+ done();
14863
+ } catch (err) {
14864
+ log.error(`Test Failure: ${err}`);
14865
+ done(err);
14866
+ }
14867
+ });
14868
+ } catch (error) {
14869
+ log.error(`Adapter Exception: ${error}`);
14870
+ done(error);
14871
+ }
14872
+ }).timeout(attemptTimeout);
14873
+ it('should error if - missing body', (done) => {
14874
+ try {
14875
+ a.updateNetInterface('fakeparam', 'fakeparam', null, null, (data, error) => {
14876
+ try {
14877
+ const displayE = 'body is required';
14878
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateNetInterface', displayE);
14879
+ done();
14880
+ } catch (err) {
14881
+ log.error(`Test Failure: ${err}`);
14882
+ done(err);
14883
+ }
14884
+ });
14885
+ } catch (error) {
14886
+ log.error(`Adapter Exception: ${error}`);
14887
+ done(error);
14888
+ }
14889
+ }).timeout(attemptTimeout);
14890
+ });
14891
+
14892
+ describe('#getlTMNodes - errors', () => {
14893
+ it('should have a getlTMNodes function', (done) => {
14894
+ try {
14895
+ assert.equal(true, typeof a.getlTMNodes === 'function');
14896
+ done();
14897
+ } catch (error) {
14898
+ log.error(`Test Failure: ${error}`);
14899
+ done(error);
14900
+ }
14901
+ }).timeout(attemptTimeout);
14902
+ it('should error if - missing uuid', (done) => {
14903
+ try {
14904
+ a.getlTMNodes(null, null, null, (data, error) => {
14905
+ try {
14906
+ const displayE = 'uuid is required';
14907
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getlTMNodes', displayE);
14908
+ done();
14909
+ } catch (err) {
14910
+ log.error(`Test Failure: ${err}`);
14911
+ done(err);
14912
+ }
14913
+ });
14914
+ } catch (error) {
14915
+ log.error(`Adapter Exception: ${error}`);
14916
+ done(error);
14917
+ }
14918
+ }).timeout(attemptTimeout);
14919
+ });
14920
+
14921
+ describe('#createLtmNode - errors', () => {
14922
+ it('should have a createLtmNode function', (done) => {
14923
+ try {
14924
+ assert.equal(true, typeof a.createLtmNode === 'function');
14925
+ done();
14926
+ } catch (error) {
14927
+ log.error(`Test Failure: ${error}`);
14928
+ done(error);
14929
+ }
14930
+ }).timeout(attemptTimeout);
14931
+ it('should error if - missing uuid', (done) => {
14932
+ try {
14933
+ a.createLtmNode(null, null, null, (data, error) => {
14934
+ try {
14935
+ const displayE = 'uuid is required';
14936
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createLtmNode', displayE);
14937
+ done();
14938
+ } catch (err) {
14939
+ log.error(`Test Failure: ${err}`);
14940
+ done(err);
14941
+ }
14942
+ });
14943
+ } catch (error) {
14944
+ log.error(`Adapter Exception: ${error}`);
14945
+ done(error);
14946
+ }
14947
+ }).timeout(attemptTimeout);
14948
+ it('should error if - missing body', (done) => {
14949
+ try {
14950
+ a.createLtmNode('fakeparam', null, null, (data, error) => {
14951
+ try {
14952
+ const displayE = 'body is required';
14953
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createLtmNode', displayE);
14954
+ done();
14955
+ } catch (err) {
14956
+ log.error(`Test Failure: ${err}`);
14957
+ done(err);
14958
+ }
14959
+ });
14960
+ } catch (error) {
14961
+ log.error(`Adapter Exception: ${error}`);
14962
+ done(error);
14963
+ }
14964
+ }).timeout(attemptTimeout);
14965
+ });
14966
+
14967
+ describe('#getLtmNodeById - errors', () => {
14968
+ it('should have a getLtmNodeById function', (done) => {
14969
+ try {
14970
+ assert.equal(true, typeof a.getLtmNodeById === 'function');
14971
+ done();
14972
+ } catch (error) {
14973
+ log.error(`Test Failure: ${error}`);
14974
+ done(error);
14975
+ }
14976
+ }).timeout(attemptTimeout);
14977
+ it('should error if - missing uuid', (done) => {
14978
+ try {
14979
+ a.getLtmNodeById(null, null, null, null, (data, error) => {
14980
+ try {
14981
+ const displayE = 'uuid is required';
14982
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getLtmNodeById', displayE);
14983
+ done();
14984
+ } catch (err) {
14985
+ log.error(`Test Failure: ${err}`);
14986
+ done(err);
14987
+ }
14988
+ });
14989
+ } catch (error) {
14990
+ log.error(`Adapter Exception: ${error}`);
14991
+ done(error);
14992
+ }
14993
+ }).timeout(attemptTimeout);
14994
+ it('should error if - missing resourceId', (done) => {
14995
+ try {
14996
+ a.getLtmNodeById('fakeparam', null, null, null, (data, error) => {
14997
+ try {
14998
+ const displayE = 'resourceId is required';
14999
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getLtmNodeById', displayE);
15000
+ done();
15001
+ } catch (err) {
15002
+ log.error(`Test Failure: ${err}`);
15003
+ done(err);
15004
+ }
15005
+ });
15006
+ } catch (error) {
15007
+ log.error(`Adapter Exception: ${error}`);
15008
+ done(error);
15009
+ }
15010
+ }).timeout(attemptTimeout);
15011
+ });
15012
+
15013
+ describe('#updateLtmNode - errors', () => {
15014
+ it('should have a updateLtmNode function', (done) => {
15015
+ try {
15016
+ assert.equal(true, typeof a.updateLtmNode === 'function');
15017
+ done();
15018
+ } catch (error) {
15019
+ log.error(`Test Failure: ${error}`);
15020
+ done(error);
15021
+ }
15022
+ }).timeout(attemptTimeout);
15023
+ it('should error if - missing uuid', (done) => {
15024
+ try {
15025
+ a.updateLtmNode(null, null, null, null, (data, error) => {
15026
+ try {
15027
+ const displayE = 'uuid is required';
15028
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateLtmNode', displayE);
15029
+ done();
15030
+ } catch (err) {
15031
+ log.error(`Test Failure: ${err}`);
15032
+ done(err);
15033
+ }
15034
+ });
15035
+ } catch (error) {
15036
+ log.error(`Adapter Exception: ${error}`);
15037
+ done(error);
15038
+ }
15039
+ }).timeout(attemptTimeout);
15040
+ it('should error if - missing resourceId', (done) => {
15041
+ try {
15042
+ a.updateLtmNode('fakeparam', null, null, null, (data, error) => {
15043
+ try {
15044
+ const displayE = 'resourceId is required';
15045
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateLtmNode', displayE);
15046
+ done();
15047
+ } catch (err) {
15048
+ log.error(`Test Failure: ${err}`);
15049
+ done(err);
15050
+ }
15051
+ });
15052
+ } catch (error) {
15053
+ log.error(`Adapter Exception: ${error}`);
15054
+ done(error);
15055
+ }
15056
+ }).timeout(attemptTimeout);
15057
+ it('should error if - missing body', (done) => {
15058
+ try {
15059
+ a.updateLtmNode('fakeparam', 'fakeparam', null, null, (data, error) => {
15060
+ try {
15061
+ const displayE = 'body is required';
15062
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateLtmNode', displayE);
15063
+ done();
15064
+ } catch (err) {
15065
+ log.error(`Test Failure: ${err}`);
15066
+ done(err);
15067
+ }
15068
+ });
15069
+ } catch (error) {
15070
+ log.error(`Adapter Exception: ${error}`);
15071
+ done(error);
15072
+ }
15073
+ }).timeout(attemptTimeout);
15074
+ });
15075
+
15076
+ describe('#deleteLtmNode - errors', () => {
15077
+ it('should have a deleteLtmNode function', (done) => {
15078
+ try {
15079
+ assert.equal(true, typeof a.deleteLtmNode === 'function');
15080
+ done();
15081
+ } catch (error) {
15082
+ log.error(`Test Failure: ${error}`);
15083
+ done(error);
15084
+ }
15085
+ }).timeout(attemptTimeout);
15086
+ it('should error if - missing uuid', (done) => {
15087
+ try {
15088
+ a.deleteLtmNode(null, null, null, (data, error) => {
15089
+ try {
15090
+ const displayE = 'uuid is required';
15091
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteLtmNode', displayE);
15092
+ done();
15093
+ } catch (err) {
15094
+ log.error(`Test Failure: ${err}`);
15095
+ done(err);
15096
+ }
15097
+ });
15098
+ } catch (error) {
15099
+ log.error(`Adapter Exception: ${error}`);
15100
+ done(error);
15101
+ }
15102
+ }).timeout(attemptTimeout);
15103
+ it('should error if - missing resourceId', (done) => {
15104
+ try {
15105
+ a.deleteLtmNode('fakeparam', null, null, (data, error) => {
15106
+ try {
15107
+ const displayE = 'resourceId is required';
15108
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteLtmNode', displayE);
15109
+ done();
15110
+ } catch (err) {
15111
+ log.error(`Test Failure: ${err}`);
15112
+ done(err);
15113
+ }
15114
+ });
15115
+ } catch (error) {
15116
+ log.error(`Adapter Exception: ${error}`);
15117
+ done(error);
15118
+ }
15119
+ }).timeout(attemptTimeout);
15120
+ });
15121
+
15122
+ describe('#patchLtmNode - errors', () => {
15123
+ it('should have a patchLtmNode function', (done) => {
15124
+ try {
15125
+ assert.equal(true, typeof a.patchLtmNode === 'function');
15126
+ done();
15127
+ } catch (error) {
15128
+ log.error(`Test Failure: ${error}`);
15129
+ done(error);
15130
+ }
15131
+ }).timeout(attemptTimeout);
15132
+ it('should error if - missing uuid', (done) => {
15133
+ try {
15134
+ a.patchLtmNode(null, null, null, null, (data, error) => {
15135
+ try {
15136
+ const displayE = 'uuid is required';
15137
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchLtmNode', displayE);
15138
+ done();
15139
+ } catch (err) {
15140
+ log.error(`Test Failure: ${err}`);
15141
+ done(err);
15142
+ }
15143
+ });
15144
+ } catch (error) {
15145
+ log.error(`Adapter Exception: ${error}`);
15146
+ done(error);
15147
+ }
15148
+ }).timeout(attemptTimeout);
15149
+ it('should error if - missing resourceId', (done) => {
15150
+ try {
15151
+ a.patchLtmNode('fakeparam', null, null, null, (data, error) => {
15152
+ try {
15153
+ const displayE = 'resourceId is required';
15154
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchLtmNode', displayE);
15155
+ done();
15156
+ } catch (err) {
15157
+ log.error(`Test Failure: ${err}`);
15158
+ done(err);
15159
+ }
15160
+ });
15161
+ } catch (error) {
15162
+ log.error(`Adapter Exception: ${error}`);
15163
+ done(error);
15164
+ }
15165
+ }).timeout(attemptTimeout);
15166
+ it('should error if - missing body', (done) => {
15167
+ try {
15168
+ a.patchLtmNode('fakeparam', 'fakeparam', null, null, (data, error) => {
15169
+ try {
15170
+ const displayE = 'body is required';
15171
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchLtmNode', displayE);
15172
+ done();
15173
+ } catch (err) {
15174
+ log.error(`Test Failure: ${err}`);
15175
+ done(err);
15176
+ }
15177
+ });
15178
+ } catch (error) {
15179
+ log.error(`Adapter Exception: ${error}`);
15180
+ done(error);
15181
+ }
15182
+ }).timeout(attemptTimeout);
15183
+ });
15184
+
15185
+ describe('#getLtmVirtualServers - errors', () => {
15186
+ it('should have a getLtmVirtualServers function', (done) => {
15187
+ try {
15188
+ assert.equal(true, typeof a.getLtmVirtualServers === 'function');
15189
+ done();
15190
+ } catch (error) {
15191
+ log.error(`Test Failure: ${error}`);
15192
+ done(error);
15193
+ }
15194
+ }).timeout(attemptTimeout);
15195
+ it('should error if - missing uuid', (done) => {
15196
+ try {
15197
+ a.getLtmVirtualServers(null, null, null, (data, error) => {
15198
+ try {
15199
+ const displayE = 'uuid is required';
15200
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getLtmVirtualServers', displayE);
15201
+ done();
15202
+ } catch (err) {
15203
+ log.error(`Test Failure: ${err}`);
15204
+ done(err);
15205
+ }
15206
+ });
15207
+ } catch (error) {
15208
+ log.error(`Adapter Exception: ${error}`);
15209
+ done(error);
15210
+ }
15211
+ }).timeout(attemptTimeout);
15212
+ });
15213
+
15214
+ describe('#createLtmVirtualServer - errors', () => {
15215
+ it('should have a createLtmVirtualServer function', (done) => {
15216
+ try {
15217
+ assert.equal(true, typeof a.createLtmVirtualServer === 'function');
15218
+ done();
15219
+ } catch (error) {
15220
+ log.error(`Test Failure: ${error}`);
15221
+ done(error);
15222
+ }
15223
+ }).timeout(attemptTimeout);
15224
+ it('should error if - missing uuid', (done) => {
15225
+ try {
15226
+ a.createLtmVirtualServer(null, null, null, (data, error) => {
15227
+ try {
15228
+ const displayE = 'uuid is required';
15229
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createLtmVirtualServer', displayE);
15230
+ done();
15231
+ } catch (err) {
15232
+ log.error(`Test Failure: ${err}`);
15233
+ done(err);
15234
+ }
15235
+ });
15236
+ } catch (error) {
15237
+ log.error(`Adapter Exception: ${error}`);
15238
+ done(error);
15239
+ }
15240
+ }).timeout(attemptTimeout);
15241
+ it('should error if - missing body', (done) => {
15242
+ try {
15243
+ a.createLtmVirtualServer('fakeparam', null, null, (data, error) => {
15244
+ try {
15245
+ const displayE = 'body is required';
15246
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createLtmVirtualServer', displayE);
15247
+ done();
15248
+ } catch (err) {
15249
+ log.error(`Test Failure: ${err}`);
15250
+ done(err);
15251
+ }
15252
+ });
15253
+ } catch (error) {
15254
+ log.error(`Adapter Exception: ${error}`);
15255
+ done(error);
15256
+ }
15257
+ }).timeout(attemptTimeout);
15258
+ });
15259
+
15260
+ describe('#getLtmVirtualServerById - errors', () => {
15261
+ it('should have a getLtmVirtualServerById function', (done) => {
15262
+ try {
15263
+ assert.equal(true, typeof a.getLtmVirtualServerById === 'function');
15264
+ done();
15265
+ } catch (error) {
15266
+ log.error(`Test Failure: ${error}`);
15267
+ done(error);
15268
+ }
15269
+ }).timeout(attemptTimeout);
15270
+ it('should error if - missing uuid', (done) => {
15271
+ try {
15272
+ a.getLtmVirtualServerById(null, null, null, null, (data, error) => {
15273
+ try {
15274
+ const displayE = 'uuid is required';
15275
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getLtmVirtualServerById', displayE);
15276
+ done();
15277
+ } catch (err) {
15278
+ log.error(`Test Failure: ${err}`);
15279
+ done(err);
15280
+ }
15281
+ });
15282
+ } catch (error) {
15283
+ log.error(`Adapter Exception: ${error}`);
15284
+ done(error);
15285
+ }
15286
+ }).timeout(attemptTimeout);
15287
+ it('should error if - missing resourceId', (done) => {
15288
+ try {
15289
+ a.getLtmVirtualServerById('fakeparam', null, null, null, (data, error) => {
15290
+ try {
15291
+ const displayE = 'resourceId is required';
15292
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getLtmVirtualServerById', displayE);
15293
+ done();
15294
+ } catch (err) {
15295
+ log.error(`Test Failure: ${err}`);
15296
+ done(err);
15297
+ }
15298
+ });
15299
+ } catch (error) {
15300
+ log.error(`Adapter Exception: ${error}`);
15301
+ done(error);
15302
+ }
15303
+ }).timeout(attemptTimeout);
15304
+ });
15305
+
15306
+ describe('#updateLtmVirtualServer - errors', () => {
15307
+ it('should have a updateLtmVirtualServer function', (done) => {
15308
+ try {
15309
+ assert.equal(true, typeof a.updateLtmVirtualServer === 'function');
15310
+ done();
15311
+ } catch (error) {
15312
+ log.error(`Test Failure: ${error}`);
15313
+ done(error);
15314
+ }
15315
+ }).timeout(attemptTimeout);
15316
+ it('should error if - missing uuid', (done) => {
15317
+ try {
15318
+ a.updateLtmVirtualServer(null, null, null, null, (data, error) => {
15319
+ try {
15320
+ const displayE = 'uuid is required';
15321
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateLtmVirtualServer', displayE);
15322
+ done();
15323
+ } catch (err) {
15324
+ log.error(`Test Failure: ${err}`);
15325
+ done(err);
15326
+ }
15327
+ });
15328
+ } catch (error) {
15329
+ log.error(`Adapter Exception: ${error}`);
15330
+ done(error);
15331
+ }
15332
+ }).timeout(attemptTimeout);
15333
+ it('should error if - missing resourceId', (done) => {
15334
+ try {
15335
+ a.updateLtmVirtualServer('fakeparam', null, null, null, (data, error) => {
15336
+ try {
15337
+ const displayE = 'resourceId is required';
15338
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateLtmVirtualServer', displayE);
15339
+ done();
15340
+ } catch (err) {
15341
+ log.error(`Test Failure: ${err}`);
15342
+ done(err);
15343
+ }
15344
+ });
15345
+ } catch (error) {
15346
+ log.error(`Adapter Exception: ${error}`);
15347
+ done(error);
15348
+ }
15349
+ }).timeout(attemptTimeout);
15350
+ it('should error if - missing body', (done) => {
15351
+ try {
15352
+ a.updateLtmVirtualServer('fakeparam', 'fakeparam', null, null, (data, error) => {
15353
+ try {
15354
+ const displayE = 'body is required';
15355
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateLtmVirtualServer', displayE);
15356
+ done();
15357
+ } catch (err) {
15358
+ log.error(`Test Failure: ${err}`);
15359
+ done(err);
15360
+ }
15361
+ });
15362
+ } catch (error) {
15363
+ log.error(`Adapter Exception: ${error}`);
15364
+ done(error);
15365
+ }
15366
+ }).timeout(attemptTimeout);
15367
+ });
15368
+
15369
+ describe('#patchLtmVirtualServer - errors', () => {
15370
+ it('should have a patchLtmVirtualServer function', (done) => {
15371
+ try {
15372
+ assert.equal(true, typeof a.patchLtmVirtualServer === 'function');
15373
+ done();
15374
+ } catch (error) {
15375
+ log.error(`Test Failure: ${error}`);
15376
+ done(error);
15377
+ }
15378
+ }).timeout(attemptTimeout);
15379
+ it('should error if - missing uuid', (done) => {
15380
+ try {
15381
+ a.patchLtmVirtualServer(null, null, null, null, (data, error) => {
15382
+ try {
15383
+ const displayE = 'uuid is required';
15384
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchLtmVirtualServer', displayE);
15385
+ done();
15386
+ } catch (err) {
15387
+ log.error(`Test Failure: ${err}`);
15388
+ done(err);
15389
+ }
15390
+ });
15391
+ } catch (error) {
15392
+ log.error(`Adapter Exception: ${error}`);
15393
+ done(error);
15394
+ }
15395
+ }).timeout(attemptTimeout);
15396
+ it('should error if - missing resourceId', (done) => {
15397
+ try {
15398
+ a.patchLtmVirtualServer('fakeparam', null, null, null, (data, error) => {
15399
+ try {
15400
+ const displayE = 'resourceId is required';
15401
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchLtmVirtualServer', displayE);
15402
+ done();
15403
+ } catch (err) {
15404
+ log.error(`Test Failure: ${err}`);
15405
+ done(err);
15406
+ }
15407
+ });
15408
+ } catch (error) {
15409
+ log.error(`Adapter Exception: ${error}`);
15410
+ done(error);
15411
+ }
15412
+ }).timeout(attemptTimeout);
15413
+ it('should error if - missing body', (done) => {
15414
+ try {
15415
+ a.patchLtmVirtualServer('fakeparam', 'fakeparam', null, null, (data, error) => {
15416
+ try {
15417
+ const displayE = 'body is required';
15418
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchLtmVirtualServer', displayE);
15419
+ done();
15420
+ } catch (err) {
15421
+ log.error(`Test Failure: ${err}`);
15422
+ done(err);
15423
+ }
15424
+ });
15425
+ } catch (error) {
15426
+ log.error(`Adapter Exception: ${error}`);
15427
+ done(error);
15428
+ }
15429
+ }).timeout(attemptTimeout);
15430
+ });
15431
+
15432
+ describe('#deleteLtmVirtualServerById - errors', () => {
15433
+ it('should have a deleteLtmVirtualServerById function', (done) => {
15434
+ try {
15435
+ assert.equal(true, typeof a.deleteLtmVirtualServerById === 'function');
15436
+ done();
15437
+ } catch (error) {
15438
+ log.error(`Test Failure: ${error}`);
15439
+ done(error);
15440
+ }
15441
+ }).timeout(attemptTimeout);
15442
+ it('should error if - missing uuid', (done) => {
15443
+ try {
15444
+ a.deleteLtmVirtualServerById(null, null, null, (data, error) => {
15445
+ try {
15446
+ const displayE = 'uuid is required';
15447
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteLtmVirtualServerById', displayE);
15448
+ done();
15449
+ } catch (err) {
15450
+ log.error(`Test Failure: ${err}`);
15451
+ done(err);
15452
+ }
15453
+ });
15454
+ } catch (error) {
15455
+ log.error(`Adapter Exception: ${error}`);
15456
+ done(error);
15457
+ }
15458
+ }).timeout(attemptTimeout);
15459
+ it('should error if - missing resourceId', (done) => {
15460
+ try {
15461
+ a.deleteLtmVirtualServerById('fakeparam', null, null, (data, error) => {
15462
+ try {
15463
+ const displayE = 'resourceId is required';
15464
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteLtmVirtualServerById', displayE);
15465
+ done();
15466
+ } catch (err) {
15467
+ log.error(`Test Failure: ${err}`);
15468
+ done(err);
15469
+ }
15470
+ });
15471
+ } catch (error) {
15472
+ log.error(`Adapter Exception: ${error}`);
15473
+ done(error);
15474
+ }
15475
+ }).timeout(attemptTimeout);
15476
+ });
15477
+
15478
+ describe('#getLtmVirtualAddresses - errors', () => {
15479
+ it('should have a getLtmVirtualAddresses function', (done) => {
15480
+ try {
15481
+ assert.equal(true, typeof a.getLtmVirtualAddresses === 'function');
15482
+ done();
15483
+ } catch (error) {
15484
+ log.error(`Test Failure: ${error}`);
15485
+ done(error);
15486
+ }
15487
+ }).timeout(attemptTimeout);
15488
+ it('should error if - missing uuid', (done) => {
15489
+ try {
15490
+ a.getLtmVirtualAddresses(null, null, null, (data, error) => {
15491
+ try {
15492
+ const displayE = 'uuid is required';
15493
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getLtmVirtualAddresses', displayE);
15494
+ done();
15495
+ } catch (err) {
15496
+ log.error(`Test Failure: ${err}`);
15497
+ done(err);
15498
+ }
15499
+ });
15500
+ } catch (error) {
15501
+ log.error(`Adapter Exception: ${error}`);
15502
+ done(error);
15503
+ }
15504
+ }).timeout(attemptTimeout);
15505
+ });
15506
+
15507
+ describe('#createLtmVirtualAddress - errors', () => {
15508
+ it('should have a createLtmVirtualAddress function', (done) => {
15509
+ try {
15510
+ assert.equal(true, typeof a.createLtmVirtualAddress === 'function');
15511
+ done();
15512
+ } catch (error) {
15513
+ log.error(`Test Failure: ${error}`);
15514
+ done(error);
15515
+ }
15516
+ }).timeout(attemptTimeout);
15517
+ it('should error if - missing uuid', (done) => {
15518
+ try {
15519
+ a.createLtmVirtualAddress(null, null, null, (data, error) => {
15520
+ try {
15521
+ const displayE = 'uuid is required';
15522
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createLtmVirtualAddress', displayE);
15523
+ done();
15524
+ } catch (err) {
15525
+ log.error(`Test Failure: ${err}`);
15526
+ done(err);
15527
+ }
15528
+ });
15529
+ } catch (error) {
15530
+ log.error(`Adapter Exception: ${error}`);
15531
+ done(error);
15532
+ }
15533
+ }).timeout(attemptTimeout);
15534
+ it('should error if - missing body', (done) => {
15535
+ try {
15536
+ a.createLtmVirtualAddress('fakeparam', null, null, (data, error) => {
15537
+ try {
15538
+ const displayE = 'body is required';
15539
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createLtmVirtualAddress', displayE);
15540
+ done();
15541
+ } catch (err) {
15542
+ log.error(`Test Failure: ${err}`);
15543
+ done(err);
15544
+ }
15545
+ });
15546
+ } catch (error) {
15547
+ log.error(`Adapter Exception: ${error}`);
15548
+ done(error);
15549
+ }
15550
+ }).timeout(attemptTimeout);
15551
+ });
15552
+
15553
+ describe('#getLtmVirtualAddressById - errors', () => {
15554
+ it('should have a getLtmVirtualAddressById function', (done) => {
15555
+ try {
15556
+ assert.equal(true, typeof a.getLtmVirtualAddressById === 'function');
15557
+ done();
15558
+ } catch (error) {
15559
+ log.error(`Test Failure: ${error}`);
15560
+ done(error);
15561
+ }
15562
+ }).timeout(attemptTimeout);
15563
+ it('should error if - missing uuid', (done) => {
15564
+ try {
15565
+ a.getLtmVirtualAddressById(null, null, null, null, (data, error) => {
15566
+ try {
15567
+ const displayE = 'uuid is required';
15568
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getLtmVirtualAddressById', displayE);
15569
+ done();
15570
+ } catch (err) {
15571
+ log.error(`Test Failure: ${err}`);
15572
+ done(err);
15573
+ }
15574
+ });
15575
+ } catch (error) {
15576
+ log.error(`Adapter Exception: ${error}`);
15577
+ done(error);
15578
+ }
15579
+ }).timeout(attemptTimeout);
15580
+ it('should error if - missing resourceId', (done) => {
15581
+ try {
15582
+ a.getLtmVirtualAddressById('fakeparam', null, null, null, (data, error) => {
15583
+ try {
15584
+ const displayE = 'resourceId is required';
15585
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getLtmVirtualAddressById', displayE);
15586
+ done();
15587
+ } catch (err) {
15588
+ log.error(`Test Failure: ${err}`);
15589
+ done(err);
15590
+ }
15591
+ });
15592
+ } catch (error) {
15593
+ log.error(`Adapter Exception: ${error}`);
15594
+ done(error);
15595
+ }
15596
+ }).timeout(attemptTimeout);
15597
+ });
15598
+
15599
+ describe('#updateLtmVirtualAddress - errors', () => {
15600
+ it('should have a updateLtmVirtualAddress function', (done) => {
15601
+ try {
15602
+ assert.equal(true, typeof a.updateLtmVirtualAddress === 'function');
15603
+ done();
15604
+ } catch (error) {
15605
+ log.error(`Test Failure: ${error}`);
15606
+ done(error);
15607
+ }
15608
+ }).timeout(attemptTimeout);
15609
+ it('should error if - missing uuid', (done) => {
15610
+ try {
15611
+ a.updateLtmVirtualAddress(null, null, null, null, (data, error) => {
15612
+ try {
15613
+ const displayE = 'uuid is required';
15614
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateLtmVirtualAddress', displayE);
15615
+ done();
15616
+ } catch (err) {
15617
+ log.error(`Test Failure: ${err}`);
15618
+ done(err);
15619
+ }
15620
+ });
15621
+ } catch (error) {
15622
+ log.error(`Adapter Exception: ${error}`);
15623
+ done(error);
15624
+ }
15625
+ }).timeout(attemptTimeout);
15626
+ it('should error if - missing resourceId', (done) => {
15627
+ try {
15628
+ a.updateLtmVirtualAddress('fakeparam', null, null, null, (data, error) => {
15629
+ try {
15630
+ const displayE = 'resourceId is required';
15631
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateLtmVirtualAddress', displayE);
15632
+ done();
15633
+ } catch (err) {
15634
+ log.error(`Test Failure: ${err}`);
15635
+ done(err);
15636
+ }
15637
+ });
15638
+ } catch (error) {
15639
+ log.error(`Adapter Exception: ${error}`);
15640
+ done(error);
15641
+ }
15642
+ }).timeout(attemptTimeout);
15643
+ it('should error if - missing body', (done) => {
15644
+ try {
15645
+ a.updateLtmVirtualAddress('fakeparam', 'fakeparam', null, null, (data, error) => {
15646
+ try {
15647
+ const displayE = 'body is required';
15648
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateLtmVirtualAddress', displayE);
15649
+ done();
15650
+ } catch (err) {
15651
+ log.error(`Test Failure: ${err}`);
15652
+ done(err);
15653
+ }
15654
+ });
15655
+ } catch (error) {
15656
+ log.error(`Adapter Exception: ${error}`);
15657
+ done(error);
15658
+ }
15659
+ }).timeout(attemptTimeout);
15660
+ });
15661
+
15662
+ describe('#deleteLtmVirtualAddress - errors', () => {
15663
+ it('should have a deleteLtmVirtualAddress function', (done) => {
15664
+ try {
15665
+ assert.equal(true, typeof a.deleteLtmVirtualAddress === 'function');
15666
+ done();
15667
+ } catch (error) {
15668
+ log.error(`Test Failure: ${error}`);
15669
+ done(error);
15670
+ }
15671
+ }).timeout(attemptTimeout);
15672
+ it('should error if - missing uuid', (done) => {
15673
+ try {
15674
+ a.deleteLtmVirtualAddress(null, null, null, (data, error) => {
15675
+ try {
15676
+ const displayE = 'uuid is required';
15677
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteLtmVirtualAddress', displayE);
15678
+ done();
15679
+ } catch (err) {
15680
+ log.error(`Test Failure: ${err}`);
15681
+ done(err);
15682
+ }
15683
+ });
15684
+ } catch (error) {
15685
+ log.error(`Adapter Exception: ${error}`);
15686
+ done(error);
15687
+ }
15688
+ }).timeout(attemptTimeout);
15689
+ it('should error if - missing resourceId', (done) => {
15690
+ try {
15691
+ a.deleteLtmVirtualAddress('fakeparam', null, null, (data, error) => {
15692
+ try {
15693
+ const displayE = 'resourceId is required';
15694
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteLtmVirtualAddress', displayE);
15695
+ done();
15696
+ } catch (err) {
15697
+ log.error(`Test Failure: ${err}`);
15698
+ done(err);
15699
+ }
15700
+ });
15701
+ } catch (error) {
15702
+ log.error(`Adapter Exception: ${error}`);
15703
+ done(error);
15704
+ }
15705
+ }).timeout(attemptTimeout);
15706
+ });
15707
+
15708
+ describe('#patchLtmVirtualAddress - errors', () => {
15709
+ it('should have a patchLtmVirtualAddress function', (done) => {
15710
+ try {
15711
+ assert.equal(true, typeof a.patchLtmVirtualAddress === 'function');
15712
+ done();
15713
+ } catch (error) {
15714
+ log.error(`Test Failure: ${error}`);
15715
+ done(error);
15716
+ }
15717
+ }).timeout(attemptTimeout);
15718
+ it('should error if - missing uuid', (done) => {
15719
+ try {
15720
+ a.patchLtmVirtualAddress(null, null, null, null, (data, error) => {
15721
+ try {
15722
+ const displayE = 'uuid is required';
15723
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchLtmVirtualAddress', displayE);
15724
+ done();
15725
+ } catch (err) {
15726
+ log.error(`Test Failure: ${err}`);
15727
+ done(err);
15728
+ }
15729
+ });
15730
+ } catch (error) {
15731
+ log.error(`Adapter Exception: ${error}`);
15732
+ done(error);
15733
+ }
15734
+ }).timeout(attemptTimeout);
15735
+ it('should error if - missing resourceId', (done) => {
15736
+ try {
15737
+ a.patchLtmVirtualAddress('fakeparam', null, null, null, (data, error) => {
15738
+ try {
15739
+ const displayE = 'resourceId is required';
15740
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchLtmVirtualAddress', displayE);
15741
+ done();
15742
+ } catch (err) {
15743
+ log.error(`Test Failure: ${err}`);
15744
+ done(err);
15745
+ }
15746
+ });
15747
+ } catch (error) {
15748
+ log.error(`Adapter Exception: ${error}`);
15749
+ done(error);
15750
+ }
15751
+ }).timeout(attemptTimeout);
15752
+ it('should error if - missing body', (done) => {
15753
+ try {
15754
+ a.patchLtmVirtualAddress('fakeparam', 'fakeparam', null, null, (data, error) => {
15755
+ try {
15756
+ const displayE = 'body is required';
15757
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchLtmVirtualAddress', displayE);
15758
+ done();
15759
+ } catch (err) {
15760
+ log.error(`Test Failure: ${err}`);
15761
+ done(err);
15762
+ }
15763
+ });
15764
+ } catch (error) {
15765
+ log.error(`Adapter Exception: ${error}`);
15766
+ done(error);
15767
+ }
15768
+ }).timeout(attemptTimeout);
15769
+ });
15770
+
15771
+ describe('#getLtmPools - errors', () => {
15772
+ it('should have a getLtmPools function', (done) => {
15773
+ try {
15774
+ assert.equal(true, typeof a.getLtmPools === 'function');
15775
+ done();
15776
+ } catch (error) {
15777
+ log.error(`Test Failure: ${error}`);
15778
+ done(error);
15779
+ }
15780
+ }).timeout(attemptTimeout);
15781
+ it('should error if - missing uuid', (done) => {
15782
+ try {
15783
+ a.getLtmPools(null, null, null, (data, error) => {
15784
+ try {
15785
+ const displayE = 'uuid is required';
15786
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getLtmPools', displayE);
15787
+ done();
15788
+ } catch (err) {
15789
+ log.error(`Test Failure: ${err}`);
15790
+ done(err);
15791
+ }
15792
+ });
15793
+ } catch (error) {
15794
+ log.error(`Adapter Exception: ${error}`);
15795
+ done(error);
15796
+ }
15797
+ }).timeout(attemptTimeout);
15798
+ });
15799
+
15800
+ describe('#createLtmPool - errors', () => {
15801
+ it('should have a createLtmPool function', (done) => {
15802
+ try {
15803
+ assert.equal(true, typeof a.createLtmPool === 'function');
15804
+ done();
15805
+ } catch (error) {
15806
+ log.error(`Test Failure: ${error}`);
15807
+ done(error);
15808
+ }
15809
+ }).timeout(attemptTimeout);
15810
+ it('should error if - missing uuid', (done) => {
15811
+ try {
15812
+ a.createLtmPool(null, null, null, (data, error) => {
15813
+ try {
15814
+ const displayE = 'uuid is required';
15815
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createLtmPool', displayE);
15816
+ done();
15817
+ } catch (err) {
15818
+ log.error(`Test Failure: ${err}`);
15819
+ done(err);
15820
+ }
15821
+ });
15822
+ } catch (error) {
15823
+ log.error(`Adapter Exception: ${error}`);
15824
+ done(error);
15825
+ }
15826
+ }).timeout(attemptTimeout);
15827
+ it('should error if - missing body', (done) => {
15828
+ try {
15829
+ a.createLtmPool('fakeparam', null, null, (data, error) => {
15830
+ try {
15831
+ const displayE = 'body is required';
15832
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createLtmPool', displayE);
15833
+ done();
15834
+ } catch (err) {
15835
+ log.error(`Test Failure: ${err}`);
15836
+ done(err);
15837
+ }
15838
+ });
15839
+ } catch (error) {
15840
+ log.error(`Adapter Exception: ${error}`);
15841
+ done(error);
15842
+ }
15843
+ }).timeout(attemptTimeout);
15844
+ });
15845
+
15846
+ describe('#updateLtmPool - errors', () => {
15847
+ it('should have a updateLtmPool function', (done) => {
15848
+ try {
15849
+ assert.equal(true, typeof a.updateLtmPool === 'function');
15850
+ done();
15851
+ } catch (error) {
15852
+ log.error(`Test Failure: ${error}`);
15853
+ done(error);
15854
+ }
15855
+ }).timeout(attemptTimeout);
15856
+ it('should error if - missing uuid', (done) => {
15857
+ try {
15858
+ a.updateLtmPool(null, null, null, null, (data, error) => {
15859
+ try {
15860
+ const displayE = 'uuid is required';
15861
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateLtmPool', displayE);
15862
+ done();
15863
+ } catch (err) {
15864
+ log.error(`Test Failure: ${err}`);
15865
+ done(err);
15866
+ }
15867
+ });
15868
+ } catch (error) {
15869
+ log.error(`Adapter Exception: ${error}`);
15870
+ done(error);
15871
+ }
15872
+ }).timeout(attemptTimeout);
15873
+ it('should error if - missing resourceId', (done) => {
15874
+ try {
15875
+ a.updateLtmPool('fakeparam', null, null, null, (data, error) => {
15876
+ try {
15877
+ const displayE = 'resourceId is required';
15878
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateLtmPool', displayE);
15879
+ done();
15880
+ } catch (err) {
15881
+ log.error(`Test Failure: ${err}`);
15882
+ done(err);
15883
+ }
15884
+ });
15885
+ } catch (error) {
15886
+ log.error(`Adapter Exception: ${error}`);
15887
+ done(error);
15888
+ }
15889
+ }).timeout(attemptTimeout);
15890
+ it('should error if - missing body', (done) => {
15891
+ try {
15892
+ a.updateLtmPool('fakeparam', 'fakeparam', null, null, (data, error) => {
15893
+ try {
15894
+ const displayE = 'body is required';
15895
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateLtmPool', displayE);
15896
+ done();
15897
+ } catch (err) {
15898
+ log.error(`Test Failure: ${err}`);
15899
+ done(err);
15900
+ }
15901
+ });
15902
+ } catch (error) {
15903
+ log.error(`Adapter Exception: ${error}`);
15904
+ done(error);
15905
+ }
15906
+ }).timeout(attemptTimeout);
15907
+ });
15908
+
15909
+ describe('#getLtmPoolById - errors', () => {
15910
+ it('should have a getLtmPoolById function', (done) => {
15911
+ try {
15912
+ assert.equal(true, typeof a.getLtmPoolById === 'function');
15913
+ done();
15914
+ } catch (error) {
15915
+ log.error(`Test Failure: ${error}`);
15916
+ done(error);
15917
+ }
15918
+ }).timeout(attemptTimeout);
15919
+ it('should error if - missing uuid', (done) => {
15920
+ try {
15921
+ a.getLtmPoolById(null, null, null, null, (data, error) => {
15922
+ try {
15923
+ const displayE = 'uuid is required';
15924
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getLtmPoolById', displayE);
15925
+ done();
15926
+ } catch (err) {
15927
+ log.error(`Test Failure: ${err}`);
15928
+ done(err);
15929
+ }
15930
+ });
15931
+ } catch (error) {
15932
+ log.error(`Adapter Exception: ${error}`);
15933
+ done(error);
15934
+ }
15935
+ }).timeout(attemptTimeout);
15936
+ it('should error if - missing resourceId', (done) => {
15937
+ try {
15938
+ a.getLtmPoolById('fakeparam', null, null, null, (data, error) => {
15939
+ try {
15940
+ const displayE = 'resourceId is required';
15941
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getLtmPoolById', displayE);
15942
+ done();
15943
+ } catch (err) {
15944
+ log.error(`Test Failure: ${err}`);
15945
+ done(err);
15946
+ }
15947
+ });
15948
+ } catch (error) {
15949
+ log.error(`Adapter Exception: ${error}`);
15950
+ done(error);
15951
+ }
15952
+ }).timeout(attemptTimeout);
15953
+ });
15954
+
15955
+ describe('#deleteLtmPool - errors', () => {
15956
+ it('should have a deleteLtmPool function', (done) => {
15957
+ try {
15958
+ assert.equal(true, typeof a.deleteLtmPool === 'function');
15959
+ done();
15960
+ } catch (error) {
15961
+ log.error(`Test Failure: ${error}`);
15962
+ done(error);
15963
+ }
15964
+ }).timeout(attemptTimeout);
15965
+ it('should error if - missing uuid', (done) => {
15966
+ try {
15967
+ a.deleteLtmPool(null, null, null, (data, error) => {
15968
+ try {
15969
+ const displayE = 'uuid is required';
15970
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteLtmPool', displayE);
15971
+ done();
15972
+ } catch (err) {
15973
+ log.error(`Test Failure: ${err}`);
15974
+ done(err);
15975
+ }
15976
+ });
15977
+ } catch (error) {
15978
+ log.error(`Adapter Exception: ${error}`);
15979
+ done(error);
15980
+ }
15981
+ }).timeout(attemptTimeout);
15982
+ it('should error if - missing resourceId', (done) => {
15983
+ try {
15984
+ a.deleteLtmPool('fakeparam', null, null, (data, error) => {
15985
+ try {
15986
+ const displayE = 'resourceId is required';
15987
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteLtmPool', displayE);
15988
+ done();
15989
+ } catch (err) {
15990
+ log.error(`Test Failure: ${err}`);
15991
+ done(err);
15992
+ }
15993
+ });
15994
+ } catch (error) {
15995
+ log.error(`Adapter Exception: ${error}`);
15996
+ done(error);
15997
+ }
15998
+ }).timeout(attemptTimeout);
15999
+ });
16000
+
16001
+ describe('#patchLtmPool - errors', () => {
16002
+ it('should have a patchLtmPool function', (done) => {
16003
+ try {
16004
+ assert.equal(true, typeof a.patchLtmPool === 'function');
16005
+ done();
16006
+ } catch (error) {
16007
+ log.error(`Test Failure: ${error}`);
16008
+ done(error);
16009
+ }
16010
+ }).timeout(attemptTimeout);
16011
+ it('should error if - missing uuid', (done) => {
16012
+ try {
16013
+ a.patchLtmPool(null, null, null, null, (data, error) => {
16014
+ try {
16015
+ const displayE = 'uuid is required';
16016
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchLtmPool', displayE);
16017
+ done();
16018
+ } catch (err) {
16019
+ log.error(`Test Failure: ${err}`);
16020
+ done(err);
16021
+ }
16022
+ });
16023
+ } catch (error) {
16024
+ log.error(`Adapter Exception: ${error}`);
16025
+ done(error);
16026
+ }
16027
+ }).timeout(attemptTimeout);
16028
+ it('should error if - missing resourceId', (done) => {
16029
+ try {
16030
+ a.patchLtmPool('fakeparam', null, null, null, (data, error) => {
16031
+ try {
16032
+ const displayE = 'resourceId is required';
16033
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchLtmPool', displayE);
16034
+ done();
16035
+ } catch (err) {
16036
+ log.error(`Test Failure: ${err}`);
16037
+ done(err);
16038
+ }
16039
+ });
16040
+ } catch (error) {
16041
+ log.error(`Adapter Exception: ${error}`);
16042
+ done(error);
16043
+ }
16044
+ }).timeout(attemptTimeout);
16045
+ it('should error if - missing body', (done) => {
16046
+ try {
16047
+ a.patchLtmPool('fakeparam', 'fakeparam', null, null, (data, error) => {
16048
+ try {
16049
+ const displayE = 'body is required';
16050
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchLtmPool', displayE);
16051
+ done();
16052
+ } catch (err) {
16053
+ log.error(`Test Failure: ${err}`);
16054
+ done(err);
16055
+ }
16056
+ });
16057
+ } catch (error) {
16058
+ log.error(`Adapter Exception: ${error}`);
16059
+ done(error);
16060
+ }
16061
+ }).timeout(attemptTimeout);
16062
+ });
16063
+
16064
+ describe('#getLtmIRules - errors', () => {
16065
+ it('should have a getLtmIRules function', (done) => {
16066
+ try {
16067
+ assert.equal(true, typeof a.getLtmIRules === 'function');
16068
+ done();
16069
+ } catch (error) {
16070
+ log.error(`Test Failure: ${error}`);
16071
+ done(error);
16072
+ }
16073
+ }).timeout(attemptTimeout);
16074
+ it('should error if - missing uuid', (done) => {
16075
+ try {
16076
+ a.getLtmIRules(null, null, null, (data, error) => {
16077
+ try {
16078
+ const displayE = 'uuid is required';
16079
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getLtmIRules', displayE);
16080
+ done();
16081
+ } catch (err) {
16082
+ log.error(`Test Failure: ${err}`);
16083
+ done(err);
16084
+ }
16085
+ });
16086
+ } catch (error) {
16087
+ log.error(`Adapter Exception: ${error}`);
16088
+ done(error);
16089
+ }
16090
+ }).timeout(attemptTimeout);
16091
+ });
16092
+
16093
+ describe('#createLtmIRule - errors', () => {
16094
+ it('should have a createLtmIRule function', (done) => {
16095
+ try {
16096
+ assert.equal(true, typeof a.createLtmIRule === 'function');
16097
+ done();
16098
+ } catch (error) {
16099
+ log.error(`Test Failure: ${error}`);
16100
+ done(error);
16101
+ }
16102
+ }).timeout(attemptTimeout);
16103
+ it('should error if - missing uuid', (done) => {
16104
+ try {
16105
+ a.createLtmIRule(null, null, null, (data, error) => {
16106
+ try {
16107
+ const displayE = 'uuid is required';
16108
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createLtmIRule', displayE);
16109
+ done();
16110
+ } catch (err) {
16111
+ log.error(`Test Failure: ${err}`);
16112
+ done(err);
16113
+ }
16114
+ });
16115
+ } catch (error) {
16116
+ log.error(`Adapter Exception: ${error}`);
16117
+ done(error);
16118
+ }
16119
+ }).timeout(attemptTimeout);
16120
+ it('should error if - missing body', (done) => {
16121
+ try {
16122
+ a.createLtmIRule('fakeparam', null, null, (data, error) => {
16123
+ try {
16124
+ const displayE = 'body is required';
16125
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createLtmIRule', displayE);
16126
+ done();
16127
+ } catch (err) {
16128
+ log.error(`Test Failure: ${err}`);
16129
+ done(err);
16130
+ }
16131
+ });
16132
+ } catch (error) {
16133
+ log.error(`Adapter Exception: ${error}`);
16134
+ done(error);
16135
+ }
16136
+ }).timeout(attemptTimeout);
16137
+ });
16138
+
16139
+ describe('#getLtmIRuleByid - errors', () => {
16140
+ it('should have a getLtmIRuleByid function', (done) => {
16141
+ try {
16142
+ assert.equal(true, typeof a.getLtmIRuleByid === 'function');
16143
+ done();
16144
+ } catch (error) {
16145
+ log.error(`Test Failure: ${error}`);
16146
+ done(error);
16147
+ }
16148
+ }).timeout(attemptTimeout);
16149
+ it('should error if - missing uuid', (done) => {
16150
+ try {
16151
+ a.getLtmIRuleByid(null, null, null, null, (data, error) => {
16152
+ try {
16153
+ const displayE = 'uuid is required';
16154
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getLtmIRuleByid', displayE);
16155
+ done();
16156
+ } catch (err) {
16157
+ log.error(`Test Failure: ${err}`);
16158
+ done(err);
16159
+ }
16160
+ });
16161
+ } catch (error) {
16162
+ log.error(`Adapter Exception: ${error}`);
16163
+ done(error);
16164
+ }
16165
+ }).timeout(attemptTimeout);
16166
+ it('should error if - missing resourceId', (done) => {
16167
+ try {
16168
+ a.getLtmIRuleByid('fakeparam', null, null, null, (data, error) => {
16169
+ try {
16170
+ const displayE = 'resourceId is required';
16171
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getLtmIRuleByid', displayE);
16172
+ done();
16173
+ } catch (err) {
16174
+ log.error(`Test Failure: ${err}`);
16175
+ done(err);
16176
+ }
16177
+ });
16178
+ } catch (error) {
16179
+ log.error(`Adapter Exception: ${error}`);
16180
+ done(error);
16181
+ }
16182
+ }).timeout(attemptTimeout);
16183
+ });
16184
+
16185
+ describe('#updateLtmIRule - errors', () => {
16186
+ it('should have a updateLtmIRule function', (done) => {
16187
+ try {
16188
+ assert.equal(true, typeof a.updateLtmIRule === 'function');
16189
+ done();
16190
+ } catch (error) {
16191
+ log.error(`Test Failure: ${error}`);
16192
+ done(error);
16193
+ }
16194
+ }).timeout(attemptTimeout);
16195
+ it('should error if - missing uuid', (done) => {
16196
+ try {
16197
+ a.updateLtmIRule(null, null, null, null, (data, error) => {
16198
+ try {
16199
+ const displayE = 'uuid is required';
16200
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateLtmIRule', displayE);
16201
+ done();
16202
+ } catch (err) {
16203
+ log.error(`Test Failure: ${err}`);
16204
+ done(err);
16205
+ }
16206
+ });
16207
+ } catch (error) {
16208
+ log.error(`Adapter Exception: ${error}`);
16209
+ done(error);
16210
+ }
16211
+ }).timeout(attemptTimeout);
16212
+ it('should error if - missing resourceId', (done) => {
16213
+ try {
16214
+ a.updateLtmIRule('fakeparam', null, null, null, (data, error) => {
16215
+ try {
16216
+ const displayE = 'resourceId is required';
16217
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateLtmIRule', displayE);
16218
+ done();
16219
+ } catch (err) {
16220
+ log.error(`Test Failure: ${err}`);
16221
+ done(err);
16222
+ }
16223
+ });
16224
+ } catch (error) {
16225
+ log.error(`Adapter Exception: ${error}`);
16226
+ done(error);
16227
+ }
16228
+ }).timeout(attemptTimeout);
16229
+ it('should error if - missing body', (done) => {
16230
+ try {
16231
+ a.updateLtmIRule('fakeparam', 'fakeparam', null, null, (data, error) => {
16232
+ try {
16233
+ const displayE = 'body is required';
16234
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateLtmIRule', displayE);
16235
+ done();
16236
+ } catch (err) {
16237
+ log.error(`Test Failure: ${err}`);
16238
+ done(err);
16239
+ }
16240
+ });
16241
+ } catch (error) {
16242
+ log.error(`Adapter Exception: ${error}`);
16243
+ done(error);
16244
+ }
16245
+ }).timeout(attemptTimeout);
16246
+ });
16247
+
16248
+ describe('#deleteLtmIRule - errors', () => {
16249
+ it('should have a deleteLtmIRule function', (done) => {
16250
+ try {
16251
+ assert.equal(true, typeof a.deleteLtmIRule === 'function');
16252
+ done();
16253
+ } catch (error) {
16254
+ log.error(`Test Failure: ${error}`);
16255
+ done(error);
16256
+ }
16257
+ }).timeout(attemptTimeout);
16258
+ it('should error if - missing uuid', (done) => {
16259
+ try {
16260
+ a.deleteLtmIRule(null, null, null, (data, error) => {
16261
+ try {
16262
+ const displayE = 'uuid is required';
16263
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteLtmIRule', displayE);
16264
+ done();
16265
+ } catch (err) {
16266
+ log.error(`Test Failure: ${err}`);
16267
+ done(err);
16268
+ }
16269
+ });
16270
+ } catch (error) {
16271
+ log.error(`Adapter Exception: ${error}`);
16272
+ done(error);
16273
+ }
16274
+ }).timeout(attemptTimeout);
16275
+ it('should error if - missing resourceId', (done) => {
16276
+ try {
16277
+ a.deleteLtmIRule('fakeparam', null, null, (data, error) => {
16278
+ try {
16279
+ const displayE = 'resourceId is required';
16280
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteLtmIRule', displayE);
16281
+ done();
16282
+ } catch (err) {
16283
+ log.error(`Test Failure: ${err}`);
16284
+ done(err);
16285
+ }
16286
+ });
16287
+ } catch (error) {
16288
+ log.error(`Adapter Exception: ${error}`);
16289
+ done(error);
16290
+ }
16291
+ }).timeout(attemptTimeout);
16292
+ });
16293
+
16294
+ describe('#patchLtmIRule - errors', () => {
16295
+ it('should have a patchLtmIRule function', (done) => {
16296
+ try {
16297
+ assert.equal(true, typeof a.patchLtmIRule === 'function');
16298
+ done();
16299
+ } catch (error) {
16300
+ log.error(`Test Failure: ${error}`);
16301
+ done(error);
16302
+ }
16303
+ }).timeout(attemptTimeout);
16304
+ it('should error if - missing uuid', (done) => {
16305
+ try {
16306
+ a.patchLtmIRule(null, null, null, null, (data, error) => {
16307
+ try {
16308
+ const displayE = 'uuid is required';
16309
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchLtmIRule', displayE);
16310
+ done();
16311
+ } catch (err) {
16312
+ log.error(`Test Failure: ${err}`);
16313
+ done(err);
16314
+ }
16315
+ });
16316
+ } catch (error) {
16317
+ log.error(`Adapter Exception: ${error}`);
16318
+ done(error);
16319
+ }
16320
+ }).timeout(attemptTimeout);
16321
+ it('should error if - missing resourceId', (done) => {
16322
+ try {
16323
+ a.patchLtmIRule('fakeparam', null, null, null, (data, error) => {
16324
+ try {
16325
+ const displayE = 'resourceId is required';
16326
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchLtmIRule', displayE);
16327
+ done();
16328
+ } catch (err) {
16329
+ log.error(`Test Failure: ${err}`);
16330
+ done(err);
16331
+ }
16332
+ });
16333
+ } catch (error) {
16334
+ log.error(`Adapter Exception: ${error}`);
16335
+ done(error);
16336
+ }
16337
+ }).timeout(attemptTimeout);
16338
+ it('should error if - missing body', (done) => {
16339
+ try {
16340
+ a.patchLtmIRule('fakeparam', 'fakeparam', null, null, (data, error) => {
16341
+ try {
16342
+ const displayE = 'body is required';
16343
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchLtmIRule', displayE);
16344
+ done();
16345
+ } catch (err) {
16346
+ log.error(`Test Failure: ${err}`);
16347
+ done(err);
16348
+ }
16349
+ });
16350
+ } catch (error) {
16351
+ log.error(`Adapter Exception: ${error}`);
16352
+ done(error);
16353
+ }
16354
+ }).timeout(attemptTimeout);
16355
+ });
16356
+
16357
+ describe('#getLtmPolicies - errors', () => {
16358
+ it('should have a getLtmPolicies function', (done) => {
16359
+ try {
16360
+ assert.equal(true, typeof a.getLtmPolicies === 'function');
16361
+ done();
16362
+ } catch (error) {
16363
+ log.error(`Test Failure: ${error}`);
16364
+ done(error);
16365
+ }
16366
+ }).timeout(attemptTimeout);
16367
+ it('should error if - missing uuid', (done) => {
16368
+ try {
16369
+ a.getLtmPolicies(null, null, null, (data, error) => {
16370
+ try {
16371
+ const displayE = 'uuid is required';
16372
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getLtmPolicies', displayE);
16373
+ done();
16374
+ } catch (err) {
16375
+ log.error(`Test Failure: ${err}`);
16376
+ done(err);
16377
+ }
16378
+ });
16379
+ } catch (error) {
16380
+ log.error(`Adapter Exception: ${error}`);
16381
+ done(error);
16382
+ }
16383
+ }).timeout(attemptTimeout);
16384
+ });
16385
+
16386
+ describe('#createLtmPolicy - errors', () => {
16387
+ it('should have a createLtmPolicy function', (done) => {
16388
+ try {
16389
+ assert.equal(true, typeof a.createLtmPolicy === 'function');
16390
+ done();
16391
+ } catch (error) {
16392
+ log.error(`Test Failure: ${error}`);
16393
+ done(error);
16394
+ }
16395
+ }).timeout(attemptTimeout);
16396
+ it('should error if - missing uuid', (done) => {
16397
+ try {
16398
+ a.createLtmPolicy(null, null, null, (data, error) => {
16399
+ try {
16400
+ const displayE = 'uuid is required';
16401
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createLtmPolicy', displayE);
16402
+ done();
16403
+ } catch (err) {
16404
+ log.error(`Test Failure: ${err}`);
16405
+ done(err);
16406
+ }
16407
+ });
16408
+ } catch (error) {
16409
+ log.error(`Adapter Exception: ${error}`);
16410
+ done(error);
16411
+ }
16412
+ }).timeout(attemptTimeout);
16413
+ it('should error if - missing body', (done) => {
16414
+ try {
16415
+ a.createLtmPolicy('fakeparam', null, null, (data, error) => {
16416
+ try {
16417
+ const displayE = 'body is required';
16418
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createLtmPolicy', displayE);
16419
+ done();
16420
+ } catch (err) {
16421
+ log.error(`Test Failure: ${err}`);
16422
+ done(err);
16423
+ }
16424
+ });
16425
+ } catch (error) {
16426
+ log.error(`Adapter Exception: ${error}`);
16427
+ done(error);
16428
+ }
16429
+ }).timeout(attemptTimeout);
16430
+ });
16431
+
16432
+ describe('#getLtmPolicyById - errors', () => {
16433
+ it('should have a getLtmPolicyById function', (done) => {
16434
+ try {
16435
+ assert.equal(true, typeof a.getLtmPolicyById === 'function');
16436
+ done();
16437
+ } catch (error) {
16438
+ log.error(`Test Failure: ${error}`);
16439
+ done(error);
16440
+ }
16441
+ }).timeout(attemptTimeout);
16442
+ it('should error if - missing uuid', (done) => {
16443
+ try {
16444
+ a.getLtmPolicyById(null, null, null, null, (data, error) => {
16445
+ try {
16446
+ const displayE = 'uuid is required';
16447
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getLtmPolicyById', displayE);
16448
+ done();
16449
+ } catch (err) {
16450
+ log.error(`Test Failure: ${err}`);
16451
+ done(err);
16452
+ }
16453
+ });
16454
+ } catch (error) {
16455
+ log.error(`Adapter Exception: ${error}`);
16456
+ done(error);
16457
+ }
16458
+ }).timeout(attemptTimeout);
16459
+ it('should error if - missing resourceId', (done) => {
16460
+ try {
16461
+ a.getLtmPolicyById('fakeparam', null, null, null, (data, error) => {
16462
+ try {
16463
+ const displayE = 'resourceId is required';
16464
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getLtmPolicyById', displayE);
16465
+ done();
16466
+ } catch (err) {
16467
+ log.error(`Test Failure: ${err}`);
16468
+ done(err);
16469
+ }
16470
+ });
16471
+ } catch (error) {
16472
+ log.error(`Adapter Exception: ${error}`);
16473
+ done(error);
16474
+ }
16475
+ }).timeout(attemptTimeout);
16476
+ });
16477
+
16478
+ describe('#updateLtmPolicy - errors', () => {
16479
+ it('should have a updateLtmPolicy function', (done) => {
16480
+ try {
16481
+ assert.equal(true, typeof a.updateLtmPolicy === 'function');
16482
+ done();
16483
+ } catch (error) {
16484
+ log.error(`Test Failure: ${error}`);
16485
+ done(error);
16486
+ }
16487
+ }).timeout(attemptTimeout);
16488
+ it('should error if - missing uuid', (done) => {
16489
+ try {
16490
+ a.updateLtmPolicy(null, null, null, null, (data, error) => {
16491
+ try {
16492
+ const displayE = 'uuid is required';
16493
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateLtmPolicy', displayE);
16494
+ done();
16495
+ } catch (err) {
16496
+ log.error(`Test Failure: ${err}`);
16497
+ done(err);
16498
+ }
16499
+ });
16500
+ } catch (error) {
16501
+ log.error(`Adapter Exception: ${error}`);
16502
+ done(error);
16503
+ }
16504
+ }).timeout(attemptTimeout);
16505
+ it('should error if - missing resourceId', (done) => {
16506
+ try {
16507
+ a.updateLtmPolicy('fakeparam', null, null, null, (data, error) => {
16508
+ try {
16509
+ const displayE = 'resourceId is required';
16510
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateLtmPolicy', displayE);
16511
+ done();
16512
+ } catch (err) {
16513
+ log.error(`Test Failure: ${err}`);
16514
+ done(err);
16515
+ }
16516
+ });
16517
+ } catch (error) {
16518
+ log.error(`Adapter Exception: ${error}`);
16519
+ done(error);
16520
+ }
16521
+ }).timeout(attemptTimeout);
16522
+ it('should error if - missing body', (done) => {
16523
+ try {
16524
+ a.updateLtmPolicy('fakeparam', 'fakeparam', null, null, (data, error) => {
16525
+ try {
16526
+ const displayE = 'body is required';
16527
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateLtmPolicy', displayE);
16528
+ done();
16529
+ } catch (err) {
16530
+ log.error(`Test Failure: ${err}`);
16531
+ done(err);
16532
+ }
16533
+ });
16534
+ } catch (error) {
16535
+ log.error(`Adapter Exception: ${error}`);
16536
+ done(error);
16537
+ }
16538
+ }).timeout(attemptTimeout);
16539
+ });
16540
+
16541
+ describe('#deleteLtmPolicy - errors', () => {
16542
+ it('should have a deleteLtmPolicy function', (done) => {
16543
+ try {
16544
+ assert.equal(true, typeof a.deleteLtmPolicy === 'function');
16545
+ done();
16546
+ } catch (error) {
16547
+ log.error(`Test Failure: ${error}`);
16548
+ done(error);
16549
+ }
16550
+ }).timeout(attemptTimeout);
16551
+ it('should error if - missing uuid', (done) => {
16552
+ try {
16553
+ a.deleteLtmPolicy(null, null, null, (data, error) => {
16554
+ try {
16555
+ const displayE = 'uuid is required';
16556
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteLtmPolicy', displayE);
16557
+ done();
16558
+ } catch (err) {
16559
+ log.error(`Test Failure: ${err}`);
16560
+ done(err);
16561
+ }
16562
+ });
16563
+ } catch (error) {
16564
+ log.error(`Adapter Exception: ${error}`);
16565
+ done(error);
16566
+ }
16567
+ }).timeout(attemptTimeout);
16568
+ it('should error if - missing resourceId', (done) => {
16569
+ try {
16570
+ a.deleteLtmPolicy('fakeparam', null, null, (data, error) => {
16571
+ try {
16572
+ const displayE = 'resourceId is required';
16573
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteLtmPolicy', displayE);
16574
+ done();
16575
+ } catch (err) {
16576
+ log.error(`Test Failure: ${err}`);
16577
+ done(err);
16578
+ }
16579
+ });
16580
+ } catch (error) {
16581
+ log.error(`Adapter Exception: ${error}`);
16582
+ done(error);
16583
+ }
16584
+ }).timeout(attemptTimeout);
16585
+ });
16586
+
16587
+ describe('#patchLtmPolicy - errors', () => {
16588
+ it('should have a patchLtmPolicy function', (done) => {
16589
+ try {
16590
+ assert.equal(true, typeof a.patchLtmPolicy === 'function');
16591
+ done();
16592
+ } catch (error) {
16593
+ log.error(`Test Failure: ${error}`);
16594
+ done(error);
16595
+ }
16596
+ }).timeout(attemptTimeout);
16597
+ it('should error if - missing uuid', (done) => {
16598
+ try {
16599
+ a.patchLtmPolicy(null, null, null, null, (data, error) => {
16600
+ try {
16601
+ const displayE = 'uuid is required';
16602
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchLtmPolicy', displayE);
16603
+ done();
16604
+ } catch (err) {
16605
+ log.error(`Test Failure: ${err}`);
16606
+ done(err);
16607
+ }
16608
+ });
16609
+ } catch (error) {
16610
+ log.error(`Adapter Exception: ${error}`);
16611
+ done(error);
16612
+ }
16613
+ }).timeout(attemptTimeout);
16614
+ it('should error if - missing resourceId', (done) => {
16615
+ try {
16616
+ a.patchLtmPolicy('fakeparam', null, null, null, (data, error) => {
16617
+ try {
16618
+ const displayE = 'resourceId is required';
16619
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchLtmPolicy', displayE);
16620
+ done();
16621
+ } catch (err) {
16622
+ log.error(`Test Failure: ${err}`);
16623
+ done(err);
16624
+ }
16625
+ });
16626
+ } catch (error) {
16627
+ log.error(`Adapter Exception: ${error}`);
16628
+ done(error);
16629
+ }
16630
+ }).timeout(attemptTimeout);
16631
+ it('should error if - missing body', (done) => {
16632
+ try {
16633
+ a.patchLtmPolicy('fakeparam', 'fakeparam', null, null, (data, error) => {
16634
+ try {
16635
+ const displayE = 'body is required';
16636
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchLtmPolicy', displayE);
16637
+ done();
16638
+ } catch (err) {
16639
+ log.error(`Test Failure: ${err}`);
16640
+ done(err);
16641
+ }
16642
+ });
16643
+ } catch (error) {
16644
+ log.error(`Adapter Exception: ${error}`);
16645
+ done(error);
16646
+ }
16647
+ }).timeout(attemptTimeout);
16648
+ });
16649
+
16650
+ describe('#getLtmSnats - errors', () => {
16651
+ it('should have a getLtmSnats function', (done) => {
16652
+ try {
16653
+ assert.equal(true, typeof a.getLtmSnats === 'function');
16654
+ done();
16655
+ } catch (error) {
16656
+ log.error(`Test Failure: ${error}`);
16657
+ done(error);
16658
+ }
16659
+ }).timeout(attemptTimeout);
16660
+ it('should error if - missing uuid', (done) => {
16661
+ try {
16662
+ a.getLtmSnats(null, null, null, (data, error) => {
16663
+ try {
16664
+ const displayE = 'uuid is required';
16665
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getLtmSnats', displayE);
16666
+ done();
16667
+ } catch (err) {
16668
+ log.error(`Test Failure: ${err}`);
16669
+ done(err);
16670
+ }
16671
+ });
16672
+ } catch (error) {
16673
+ log.error(`Adapter Exception: ${error}`);
16674
+ done(error);
16675
+ }
16676
+ }).timeout(attemptTimeout);
16677
+ });
16678
+
16679
+ describe('#createLtmSnat - errors', () => {
16680
+ it('should have a createLtmSnat function', (done) => {
16681
+ try {
16682
+ assert.equal(true, typeof a.createLtmSnat === 'function');
16683
+ done();
16684
+ } catch (error) {
16685
+ log.error(`Test Failure: ${error}`);
16686
+ done(error);
16687
+ }
16688
+ }).timeout(attemptTimeout);
16689
+ it('should error if - missing uuid', (done) => {
16690
+ try {
16691
+ a.createLtmSnat(null, null, null, (data, error) => {
16692
+ try {
16693
+ const displayE = 'uuid is required';
16694
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createLtmSnat', displayE);
16695
+ done();
16696
+ } catch (err) {
16697
+ log.error(`Test Failure: ${err}`);
16698
+ done(err);
16699
+ }
16700
+ });
16701
+ } catch (error) {
16702
+ log.error(`Adapter Exception: ${error}`);
16703
+ done(error);
16704
+ }
16705
+ }).timeout(attemptTimeout);
16706
+ it('should error if - missing body', (done) => {
16707
+ try {
16708
+ a.createLtmSnat('fakeparam', null, null, (data, error) => {
16709
+ try {
16710
+ const displayE = 'body is required';
16711
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createLtmSnat', displayE);
16712
+ done();
16713
+ } catch (err) {
16714
+ log.error(`Test Failure: ${err}`);
16715
+ done(err);
16716
+ }
16717
+ });
16718
+ } catch (error) {
16719
+ log.error(`Adapter Exception: ${error}`);
16720
+ done(error);
16721
+ }
16722
+ }).timeout(attemptTimeout);
16723
+ });
16724
+
16725
+ describe('#getLtmSnatByName - errors', () => {
16726
+ it('should have a getLtmSnatByName function', (done) => {
16727
+ try {
16728
+ assert.equal(true, typeof a.getLtmSnatByName === 'function');
16729
+ done();
16730
+ } catch (error) {
16731
+ log.error(`Test Failure: ${error}`);
16732
+ done(error);
16733
+ }
16734
+ }).timeout(attemptTimeout);
16735
+ it('should error if - missing uuid', (done) => {
16736
+ try {
16737
+ a.getLtmSnatByName(null, null, null, null, (data, error) => {
16738
+ try {
16739
+ const displayE = 'uuid is required';
16740
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getLtmSnatByName', displayE);
16741
+ done();
16742
+ } catch (err) {
16743
+ log.error(`Test Failure: ${err}`);
16744
+ done(err);
16745
+ }
16746
+ });
16747
+ } catch (error) {
16748
+ log.error(`Adapter Exception: ${error}`);
16749
+ done(error);
16750
+ }
16751
+ }).timeout(attemptTimeout);
16752
+ it('should error if - missing name', (done) => {
16753
+ try {
16754
+ a.getLtmSnatByName('fakeparam', null, null, null, (data, error) => {
16755
+ try {
16756
+ const displayE = 'name is required';
16757
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getLtmSnatByName', displayE);
16758
+ done();
16759
+ } catch (err) {
16760
+ log.error(`Test Failure: ${err}`);
16761
+ done(err);
16762
+ }
16763
+ });
16764
+ } catch (error) {
16765
+ log.error(`Adapter Exception: ${error}`);
16766
+ done(error);
16767
+ }
16768
+ }).timeout(attemptTimeout);
16769
+ });
16770
+
16771
+ describe('#updateLtmSnat - errors', () => {
16772
+ it('should have a updateLtmSnat function', (done) => {
16773
+ try {
16774
+ assert.equal(true, typeof a.updateLtmSnat === 'function');
16775
+ done();
16776
+ } catch (error) {
16777
+ log.error(`Test Failure: ${error}`);
16778
+ done(error);
16779
+ }
16780
+ }).timeout(attemptTimeout);
16781
+ it('should error if - missing uuid', (done) => {
16782
+ try {
16783
+ a.updateLtmSnat(null, null, null, null, (data, error) => {
16784
+ try {
16785
+ const displayE = 'uuid is required';
16786
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateLtmSnat', displayE);
16787
+ done();
16788
+ } catch (err) {
16789
+ log.error(`Test Failure: ${err}`);
16790
+ done(err);
16791
+ }
16792
+ });
16793
+ } catch (error) {
16794
+ log.error(`Adapter Exception: ${error}`);
16795
+ done(error);
16796
+ }
16797
+ }).timeout(attemptTimeout);
16798
+ it('should error if - missing name', (done) => {
16799
+ try {
16800
+ a.updateLtmSnat('fakeparam', null, null, null, (data, error) => {
16801
+ try {
16802
+ const displayE = 'name is required';
16803
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateLtmSnat', displayE);
16804
+ done();
16805
+ } catch (err) {
16806
+ log.error(`Test Failure: ${err}`);
16807
+ done(err);
16808
+ }
16809
+ });
16810
+ } catch (error) {
16811
+ log.error(`Adapter Exception: ${error}`);
16812
+ done(error);
16813
+ }
16814
+ }).timeout(attemptTimeout);
16815
+ it('should error if - missing body', (done) => {
16816
+ try {
16817
+ a.updateLtmSnat('fakeparam', 'fakeparam', null, null, (data, error) => {
16818
+ try {
16819
+ const displayE = 'body is required';
16820
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateLtmSnat', displayE);
16821
+ done();
16822
+ } catch (err) {
16823
+ log.error(`Test Failure: ${err}`);
16824
+ done(err);
16825
+ }
16826
+ });
16827
+ } catch (error) {
16828
+ log.error(`Adapter Exception: ${error}`);
16829
+ done(error);
16830
+ }
16831
+ }).timeout(attemptTimeout);
16832
+ });
16833
+
16834
+ describe('#deleteLtmSnat - errors', () => {
16835
+ it('should have a deleteLtmSnat function', (done) => {
16836
+ try {
16837
+ assert.equal(true, typeof a.deleteLtmSnat === 'function');
16838
+ done();
16839
+ } catch (error) {
16840
+ log.error(`Test Failure: ${error}`);
16841
+ done(error);
16842
+ }
16843
+ }).timeout(attemptTimeout);
16844
+ it('should error if - missing uuid', (done) => {
16845
+ try {
16846
+ a.deleteLtmSnat(null, null, null, (data, error) => {
16847
+ try {
16848
+ const displayE = 'uuid is required';
16849
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteLtmSnat', displayE);
16850
+ done();
16851
+ } catch (err) {
16852
+ log.error(`Test Failure: ${err}`);
16853
+ done(err);
16854
+ }
16855
+ });
16856
+ } catch (error) {
16857
+ log.error(`Adapter Exception: ${error}`);
16858
+ done(error);
16859
+ }
16860
+ }).timeout(attemptTimeout);
16861
+ it('should error if - missing name', (done) => {
16862
+ try {
16863
+ a.deleteLtmSnat('fakeparam', null, null, (data, error) => {
16864
+ try {
16865
+ const displayE = 'name is required';
16866
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteLtmSnat', displayE);
16867
+ done();
16868
+ } catch (err) {
16869
+ log.error(`Test Failure: ${err}`);
16870
+ done(err);
16871
+ }
16872
+ });
16873
+ } catch (error) {
16874
+ log.error(`Adapter Exception: ${error}`);
16875
+ done(error);
16876
+ }
16877
+ }).timeout(attemptTimeout);
16878
+ });
16879
+
16880
+ describe('#getLtmSnatPools - errors', () => {
16881
+ it('should have a getLtmSnatPools function', (done) => {
16882
+ try {
16883
+ assert.equal(true, typeof a.getLtmSnatPools === 'function');
16884
+ done();
16885
+ } catch (error) {
16886
+ log.error(`Test Failure: ${error}`);
16887
+ done(error);
16888
+ }
16889
+ }).timeout(attemptTimeout);
16890
+ it('should error if - missing uuid', (done) => {
16891
+ try {
16892
+ a.getLtmSnatPools(null, null, null, (data, error) => {
16893
+ try {
16894
+ const displayE = 'uuid is required';
16895
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getLtmSnatPools', displayE);
16896
+ done();
16897
+ } catch (err) {
16898
+ log.error(`Test Failure: ${err}`);
16899
+ done(err);
16900
+ }
16901
+ });
16902
+ } catch (error) {
16903
+ log.error(`Adapter Exception: ${error}`);
16904
+ done(error);
16905
+ }
16906
+ }).timeout(attemptTimeout);
16907
+ });
16908
+
16909
+ describe('#createLtmSnatPool - errors', () => {
16910
+ it('should have a createLtmSnatPool function', (done) => {
16911
+ try {
16912
+ assert.equal(true, typeof a.createLtmSnatPool === 'function');
16913
+ done();
16914
+ } catch (error) {
16915
+ log.error(`Test Failure: ${error}`);
16916
+ done(error);
16917
+ }
16918
+ }).timeout(attemptTimeout);
16919
+ it('should error if - missing uuid', (done) => {
16920
+ try {
16921
+ a.createLtmSnatPool(null, null, null, (data, error) => {
16922
+ try {
16923
+ const displayE = 'uuid is required';
16924
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createLtmSnatPool', displayE);
16925
+ done();
16926
+ } catch (err) {
16927
+ log.error(`Test Failure: ${err}`);
16928
+ done(err);
16929
+ }
16930
+ });
16931
+ } catch (error) {
16932
+ log.error(`Adapter Exception: ${error}`);
16933
+ done(error);
16934
+ }
16935
+ }).timeout(attemptTimeout);
16936
+ it('should error if - missing body', (done) => {
16937
+ try {
16938
+ a.createLtmSnatPool('fakeparam', null, null, (data, error) => {
16939
+ try {
16940
+ const displayE = 'body is required';
16941
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createLtmSnatPool', displayE);
16942
+ done();
16943
+ } catch (err) {
16944
+ log.error(`Test Failure: ${err}`);
16945
+ done(err);
16946
+ }
16947
+ });
16948
+ } catch (error) {
16949
+ log.error(`Adapter Exception: ${error}`);
16950
+ done(error);
16951
+ }
16952
+ }).timeout(attemptTimeout);
16953
+ });
16954
+
16955
+ describe('#getLtmSnatPoolByName - errors', () => {
16956
+ it('should have a getLtmSnatPoolByName function', (done) => {
16957
+ try {
16958
+ assert.equal(true, typeof a.getLtmSnatPoolByName === 'function');
16959
+ done();
16960
+ } catch (error) {
16961
+ log.error(`Test Failure: ${error}`);
16962
+ done(error);
16963
+ }
16964
+ }).timeout(attemptTimeout);
16965
+ it('should error if - missing uuid', (done) => {
16966
+ try {
16967
+ a.getLtmSnatPoolByName(null, null, null, null, (data, error) => {
16968
+ try {
16969
+ const displayE = 'uuid is required';
16970
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getLtmSnatPoolByName', displayE);
16971
+ done();
16972
+ } catch (err) {
16973
+ log.error(`Test Failure: ${err}`);
16974
+ done(err);
16975
+ }
16976
+ });
16977
+ } catch (error) {
16978
+ log.error(`Adapter Exception: ${error}`);
16979
+ done(error);
16980
+ }
16981
+ }).timeout(attemptTimeout);
16982
+ it('should error if - missing name', (done) => {
16983
+ try {
16984
+ a.getLtmSnatPoolByName('fakeparam', null, null, null, (data, error) => {
16985
+ try {
16986
+ const displayE = 'name is required';
16987
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getLtmSnatPoolByName', displayE);
16988
+ done();
16989
+ } catch (err) {
16990
+ log.error(`Test Failure: ${err}`);
16991
+ done(err);
16992
+ }
16993
+ });
16994
+ } catch (error) {
16995
+ log.error(`Adapter Exception: ${error}`);
16996
+ done(error);
16997
+ }
16998
+ }).timeout(attemptTimeout);
16999
+ });
17000
+
17001
+ describe('#updateLtmSnatPool - errors', () => {
17002
+ it('should have a updateLtmSnatPool function', (done) => {
17003
+ try {
17004
+ assert.equal(true, typeof a.updateLtmSnatPool === 'function');
17005
+ done();
17006
+ } catch (error) {
17007
+ log.error(`Test Failure: ${error}`);
17008
+ done(error);
17009
+ }
17010
+ }).timeout(attemptTimeout);
17011
+ it('should error if - missing uuid', (done) => {
17012
+ try {
17013
+ a.updateLtmSnatPool(null, null, null, null, (data, error) => {
17014
+ try {
17015
+ const displayE = 'uuid is required';
17016
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateLtmSnatPool', displayE);
17017
+ done();
17018
+ } catch (err) {
17019
+ log.error(`Test Failure: ${err}`);
17020
+ done(err);
17021
+ }
17022
+ });
17023
+ } catch (error) {
17024
+ log.error(`Adapter Exception: ${error}`);
17025
+ done(error);
17026
+ }
17027
+ }).timeout(attemptTimeout);
17028
+ it('should error if - missing name', (done) => {
17029
+ try {
17030
+ a.updateLtmSnatPool('fakeparam', null, null, null, (data, error) => {
17031
+ try {
17032
+ const displayE = 'name is required';
17033
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateLtmSnatPool', displayE);
17034
+ done();
17035
+ } catch (err) {
17036
+ log.error(`Test Failure: ${err}`);
17037
+ done(err);
17038
+ }
17039
+ });
17040
+ } catch (error) {
17041
+ log.error(`Adapter Exception: ${error}`);
17042
+ done(error);
17043
+ }
17044
+ }).timeout(attemptTimeout);
17045
+ it('should error if - missing body', (done) => {
17046
+ try {
17047
+ a.updateLtmSnatPool('fakeparam', 'fakeparam', null, null, (data, error) => {
17048
+ try {
17049
+ const displayE = 'body is required';
17050
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateLtmSnatPool', displayE);
17051
+ done();
17052
+ } catch (err) {
17053
+ log.error(`Test Failure: ${err}`);
17054
+ done(err);
17055
+ }
17056
+ });
17057
+ } catch (error) {
17058
+ log.error(`Adapter Exception: ${error}`);
17059
+ done(error);
17060
+ }
17061
+ }).timeout(attemptTimeout);
17062
+ });
17063
+
17064
+ describe('#deleteLtmSnatPool - errors', () => {
17065
+ it('should have a deleteLtmSnatPool function', (done) => {
17066
+ try {
17067
+ assert.equal(true, typeof a.deleteLtmSnatPool === 'function');
17068
+ done();
17069
+ } catch (error) {
17070
+ log.error(`Test Failure: ${error}`);
17071
+ done(error);
17072
+ }
17073
+ }).timeout(attemptTimeout);
17074
+ it('should error if - missing uuid', (done) => {
17075
+ try {
17076
+ a.deleteLtmSnatPool(null, null, null, (data, error) => {
17077
+ try {
17078
+ const displayE = 'uuid is required';
17079
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteLtmSnatPool', displayE);
17080
+ done();
17081
+ } catch (err) {
17082
+ log.error(`Test Failure: ${err}`);
17083
+ done(err);
17084
+ }
17085
+ });
17086
+ } catch (error) {
17087
+ log.error(`Adapter Exception: ${error}`);
17088
+ done(error);
17089
+ }
17090
+ }).timeout(attemptTimeout);
17091
+ it('should error if - missing name', (done) => {
17092
+ try {
17093
+ a.deleteLtmSnatPool('fakeparam', null, null, (data, error) => {
17094
+ try {
17095
+ const displayE = 'name is required';
17096
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteLtmSnatPool', displayE);
17097
+ done();
17098
+ } catch (err) {
17099
+ log.error(`Test Failure: ${err}`);
17100
+ done(err);
17101
+ }
17102
+ });
17103
+ } catch (error) {
17104
+ log.error(`Adapter Exception: ${error}`);
17105
+ done(error);
17106
+ }
17107
+ }).timeout(attemptTimeout);
17108
+ });
17109
+
17110
+ describe('#getLtmNats - errors', () => {
17111
+ it('should have a getLtmNats function', (done) => {
17112
+ try {
17113
+ assert.equal(true, typeof a.getLtmNats === 'function');
17114
+ done();
17115
+ } catch (error) {
17116
+ log.error(`Test Failure: ${error}`);
17117
+ done(error);
17118
+ }
17119
+ }).timeout(attemptTimeout);
17120
+ it('should error if - missing uuid', (done) => {
17121
+ try {
17122
+ a.getLtmNats(null, null, null, (data, error) => {
17123
+ try {
17124
+ const displayE = 'uuid is required';
17125
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getLtmNats', displayE);
17126
+ done();
17127
+ } catch (err) {
17128
+ log.error(`Test Failure: ${err}`);
17129
+ done(err);
17130
+ }
17131
+ });
17132
+ } catch (error) {
17133
+ log.error(`Adapter Exception: ${error}`);
17134
+ done(error);
17135
+ }
17136
+ }).timeout(attemptTimeout);
17137
+ });
17138
+
17139
+ describe('#createLtmNat - errors', () => {
17140
+ it('should have a createLtmNat function', (done) => {
17141
+ try {
17142
+ assert.equal(true, typeof a.createLtmNat === 'function');
17143
+ done();
17144
+ } catch (error) {
17145
+ log.error(`Test Failure: ${error}`);
17146
+ done(error);
17147
+ }
17148
+ }).timeout(attemptTimeout);
17149
+ it('should error if - missing uuid', (done) => {
17150
+ try {
17151
+ a.createLtmNat(null, null, null, (data, error) => {
17152
+ try {
17153
+ const displayE = 'uuid is required';
17154
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createLtmNat', displayE);
17155
+ done();
17156
+ } catch (err) {
17157
+ log.error(`Test Failure: ${err}`);
17158
+ done(err);
17159
+ }
17160
+ });
17161
+ } catch (error) {
17162
+ log.error(`Adapter Exception: ${error}`);
17163
+ done(error);
17164
+ }
17165
+ }).timeout(attemptTimeout);
17166
+ it('should error if - missing body', (done) => {
17167
+ try {
17168
+ a.createLtmNat('fakeparam', null, null, (data, error) => {
17169
+ try {
17170
+ const displayE = 'body is required';
17171
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createLtmNat', displayE);
17172
+ done();
17173
+ } catch (err) {
17174
+ log.error(`Test Failure: ${err}`);
17175
+ done(err);
17176
+ }
17177
+ });
17178
+ } catch (error) {
17179
+ log.error(`Adapter Exception: ${error}`);
17180
+ done(error);
17181
+ }
17182
+ }).timeout(attemptTimeout);
17183
+ });
17184
+
17185
+ describe('#getLtmNatByName - errors', () => {
17186
+ it('should have a getLtmNatByName function', (done) => {
17187
+ try {
17188
+ assert.equal(true, typeof a.getLtmNatByName === 'function');
17189
+ done();
17190
+ } catch (error) {
17191
+ log.error(`Test Failure: ${error}`);
17192
+ done(error);
17193
+ }
17194
+ }).timeout(attemptTimeout);
17195
+ it('should error if - missing uuid', (done) => {
17196
+ try {
17197
+ a.getLtmNatByName(null, null, null, null, (data, error) => {
17198
+ try {
17199
+ const displayE = 'uuid is required';
17200
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getLtmNatByName', displayE);
17201
+ done();
17202
+ } catch (err) {
17203
+ log.error(`Test Failure: ${err}`);
17204
+ done(err);
17205
+ }
17206
+ });
17207
+ } catch (error) {
17208
+ log.error(`Adapter Exception: ${error}`);
17209
+ done(error);
17210
+ }
17211
+ }).timeout(attemptTimeout);
17212
+ it('should error if - missing name', (done) => {
17213
+ try {
17214
+ a.getLtmNatByName('fakeparam', null, null, null, (data, error) => {
17215
+ try {
17216
+ const displayE = 'name is required';
17217
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getLtmNatByName', displayE);
17218
+ done();
17219
+ } catch (err) {
17220
+ log.error(`Test Failure: ${err}`);
17221
+ done(err);
17222
+ }
17223
+ });
17224
+ } catch (error) {
17225
+ log.error(`Adapter Exception: ${error}`);
17226
+ done(error);
17227
+ }
17228
+ }).timeout(attemptTimeout);
17229
+ });
17230
+
17231
+ describe('#updateLtmNat - errors', () => {
17232
+ it('should have a updateLtmNat function', (done) => {
17233
+ try {
17234
+ assert.equal(true, typeof a.updateLtmNat === 'function');
17235
+ done();
17236
+ } catch (error) {
17237
+ log.error(`Test Failure: ${error}`);
17238
+ done(error);
17239
+ }
17240
+ }).timeout(attemptTimeout);
17241
+ it('should error if - missing uuid', (done) => {
17242
+ try {
17243
+ a.updateLtmNat(null, null, null, null, (data, error) => {
17244
+ try {
17245
+ const displayE = 'uuid is required';
17246
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateLtmNat', displayE);
17247
+ done();
17248
+ } catch (err) {
17249
+ log.error(`Test Failure: ${err}`);
17250
+ done(err);
17251
+ }
17252
+ });
17253
+ } catch (error) {
17254
+ log.error(`Adapter Exception: ${error}`);
17255
+ done(error);
17256
+ }
17257
+ }).timeout(attemptTimeout);
17258
+ it('should error if - missing name', (done) => {
17259
+ try {
17260
+ a.updateLtmNat('fakeparam', null, null, null, (data, error) => {
17261
+ try {
17262
+ const displayE = 'name is required';
17263
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateLtmNat', displayE);
17264
+ done();
17265
+ } catch (err) {
17266
+ log.error(`Test Failure: ${err}`);
17267
+ done(err);
17268
+ }
17269
+ });
17270
+ } catch (error) {
17271
+ log.error(`Adapter Exception: ${error}`);
17272
+ done(error);
17273
+ }
17274
+ }).timeout(attemptTimeout);
17275
+ it('should error if - missing body', (done) => {
17276
+ try {
17277
+ a.updateLtmNat('fakeparam', 'fakeparam', null, null, (data, error) => {
17278
+ try {
17279
+ const displayE = 'body is required';
17280
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateLtmNat', displayE);
17281
+ done();
17282
+ } catch (err) {
17283
+ log.error(`Test Failure: ${err}`);
17284
+ done(err);
17285
+ }
17286
+ });
17287
+ } catch (error) {
17288
+ log.error(`Adapter Exception: ${error}`);
17289
+ done(error);
17290
+ }
17291
+ }).timeout(attemptTimeout);
17292
+ });
17293
+
17294
+ describe('#deleteLtmNat - errors', () => {
17295
+ it('should have a deleteLtmNat function', (done) => {
17296
+ try {
17297
+ assert.equal(true, typeof a.deleteLtmNat === 'function');
17298
+ done();
17299
+ } catch (error) {
17300
+ log.error(`Test Failure: ${error}`);
17301
+ done(error);
17302
+ }
17303
+ }).timeout(attemptTimeout);
17304
+ it('should error if - missing uuid', (done) => {
17305
+ try {
17306
+ a.deleteLtmNat(null, null, null, (data, error) => {
17307
+ try {
17308
+ const displayE = 'uuid is required';
17309
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteLtmNat', displayE);
17310
+ done();
17311
+ } catch (err) {
17312
+ log.error(`Test Failure: ${err}`);
17313
+ done(err);
17314
+ }
17315
+ });
17316
+ } catch (error) {
17317
+ log.error(`Adapter Exception: ${error}`);
17318
+ done(error);
17319
+ }
17320
+ }).timeout(attemptTimeout);
17321
+ it('should error if - missing name', (done) => {
17322
+ try {
17323
+ a.deleteLtmNat('fakeparam', null, null, (data, error) => {
17324
+ try {
17325
+ const displayE = 'name is required';
17326
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteLtmNat', displayE);
17327
+ done();
17328
+ } catch (err) {
17329
+ log.error(`Test Failure: ${err}`);
17330
+ done(err);
17331
+ }
17332
+ });
17333
+ } catch (error) {
17334
+ log.error(`Adapter Exception: ${error}`);
17335
+ done(error);
17336
+ }
17337
+ }).timeout(attemptTimeout);
17338
+ });
17339
+
17340
+ describe('#getSysGlobalSettings - errors', () => {
17341
+ it('should have a getSysGlobalSettings function', (done) => {
17342
+ try {
17343
+ assert.equal(true, typeof a.getSysGlobalSettings === 'function');
17344
+ done();
17345
+ } catch (error) {
17346
+ log.error(`Test Failure: ${error}`);
17347
+ done(error);
17348
+ }
17349
+ }).timeout(attemptTimeout);
17350
+ it('should error if - missing uuid', (done) => {
17351
+ try {
17352
+ a.getSysGlobalSettings(null, null, null, (data, error) => {
17353
+ try {
17354
+ const displayE = 'uuid is required';
17355
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getSysGlobalSettings', displayE);
17356
+ done();
17357
+ } catch (err) {
17358
+ log.error(`Test Failure: ${err}`);
17359
+ done(err);
17360
+ }
17361
+ });
17362
+ } catch (error) {
17363
+ log.error(`Adapter Exception: ${error}`);
17364
+ done(error);
17365
+ }
17366
+ }).timeout(attemptTimeout);
17367
+ });
17368
+
17369
+ describe('#updateSysGlobalSettings - errors', () => {
17370
+ it('should have a updateSysGlobalSettings function', (done) => {
17371
+ try {
17372
+ assert.equal(true, typeof a.updateSysGlobalSettings === 'function');
17373
+ done();
17374
+ } catch (error) {
17375
+ log.error(`Test Failure: ${error}`);
17376
+ done(error);
17377
+ }
17378
+ }).timeout(attemptTimeout);
17379
+ it('should error if - missing uuid', (done) => {
17380
+ try {
17381
+ a.updateSysGlobalSettings(null, null, null, (data, error) => {
17382
+ try {
17383
+ const displayE = 'uuid is required';
17384
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateSysGlobalSettings', displayE);
17385
+ done();
17386
+ } catch (err) {
17387
+ log.error(`Test Failure: ${err}`);
17388
+ done(err);
17389
+ }
17390
+ });
17391
+ } catch (error) {
17392
+ log.error(`Adapter Exception: ${error}`);
17393
+ done(error);
17394
+ }
17395
+ }).timeout(attemptTimeout);
17396
+ it('should error if - missing body', (done) => {
17397
+ try {
17398
+ a.updateSysGlobalSettings('fakeparam', null, null, (data, error) => {
17399
+ try {
17400
+ const displayE = 'body is required';
17401
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateSysGlobalSettings', displayE);
17402
+ done();
17403
+ } catch (err) {
17404
+ log.error(`Test Failure: ${err}`);
17405
+ done(err);
17406
+ }
17407
+ });
17408
+ } catch (error) {
17409
+ log.error(`Adapter Exception: ${error}`);
17410
+ done(error);
17411
+ }
17412
+ }).timeout(attemptTimeout);
17413
+ });
17414
+
17415
+ describe('#patchSysGlobalSettings - errors', () => {
17416
+ it('should have a patchSysGlobalSettings function', (done) => {
17417
+ try {
17418
+ assert.equal(true, typeof a.patchSysGlobalSettings === 'function');
17419
+ done();
17420
+ } catch (error) {
17421
+ log.error(`Test Failure: ${error}`);
17422
+ done(error);
17423
+ }
17424
+ }).timeout(attemptTimeout);
17425
+ it('should error if - missing uuid', (done) => {
17426
+ try {
17427
+ a.patchSysGlobalSettings(null, null, null, (data, error) => {
17428
+ try {
17429
+ const displayE = 'uuid is required';
17430
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchSysGlobalSettings', displayE);
17431
+ done();
17432
+ } catch (err) {
17433
+ log.error(`Test Failure: ${err}`);
17434
+ done(err);
17435
+ }
17436
+ });
17437
+ } catch (error) {
17438
+ log.error(`Adapter Exception: ${error}`);
17439
+ done(error);
17440
+ }
17441
+ }).timeout(attemptTimeout);
17442
+ it('should error if - missing body', (done) => {
17443
+ try {
17444
+ a.patchSysGlobalSettings('fakeparam', null, null, (data, error) => {
17445
+ try {
17446
+ const displayE = 'body is required';
17447
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchSysGlobalSettings', displayE);
17448
+ done();
17449
+ } catch (err) {
17450
+ log.error(`Test Failure: ${err}`);
17451
+ done(err);
17452
+ }
17453
+ });
17454
+ } catch (error) {
17455
+ log.error(`Adapter Exception: ${error}`);
17456
+ done(error);
17457
+ }
17458
+ }).timeout(attemptTimeout);
17459
+ });
17460
+
17461
+ describe('#getSysNTPSettings - errors', () => {
17462
+ it('should have a getSysNTPSettings function', (done) => {
17463
+ try {
17464
+ assert.equal(true, typeof a.getSysNTPSettings === 'function');
17465
+ done();
17466
+ } catch (error) {
17467
+ log.error(`Test Failure: ${error}`);
17468
+ done(error);
17469
+ }
17470
+ }).timeout(attemptTimeout);
17471
+ it('should error if - missing uuid', (done) => {
17472
+ try {
17473
+ a.getSysNTPSettings(null, null, null, (data, error) => {
17474
+ try {
17475
+ const displayE = 'uuid is required';
17476
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getSysNTPSettings', displayE);
17477
+ done();
17478
+ } catch (err) {
17479
+ log.error(`Test Failure: ${err}`);
17480
+ done(err);
17481
+ }
17482
+ });
17483
+ } catch (error) {
17484
+ log.error(`Adapter Exception: ${error}`);
17485
+ done(error);
17486
+ }
17487
+ }).timeout(attemptTimeout);
17488
+ });
17489
+
17490
+ describe('#setSysNTPSettings - errors', () => {
17491
+ it('should have a setSysNTPSettings function', (done) => {
17492
+ try {
17493
+ assert.equal(true, typeof a.setSysNTPSettings === 'function');
17494
+ done();
17495
+ } catch (error) {
17496
+ log.error(`Test Failure: ${error}`);
17497
+ done(error);
17498
+ }
17499
+ }).timeout(attemptTimeout);
17500
+ it('should error if - missing uuid', (done) => {
17501
+ try {
17502
+ a.setSysNTPSettings(null, null, null, (data, error) => {
17503
+ try {
17504
+ const displayE = 'uuid is required';
17505
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-setSysNTPSettings', displayE);
17506
+ done();
17507
+ } catch (err) {
17508
+ log.error(`Test Failure: ${err}`);
17509
+ done(err);
17510
+ }
17511
+ });
17512
+ } catch (error) {
17513
+ log.error(`Adapter Exception: ${error}`);
17514
+ done(error);
17515
+ }
17516
+ }).timeout(attemptTimeout);
17517
+ it('should error if - missing body', (done) => {
17518
+ try {
17519
+ a.setSysNTPSettings('fakeparam', null, null, (data, error) => {
17520
+ try {
17521
+ const displayE = 'body is required';
17522
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-setSysNTPSettings', displayE);
17523
+ done();
17524
+ } catch (err) {
17525
+ log.error(`Test Failure: ${err}`);
17526
+ done(err);
17527
+ }
17528
+ });
17529
+ } catch (error) {
17530
+ log.error(`Adapter Exception: ${error}`);
17531
+ done(error);
17532
+ }
17533
+ }).timeout(attemptTimeout);
17534
+ });
17535
+
17536
+ describe('#getSysSoftwareImages - errors', () => {
17537
+ it('should have a getSysSoftwareImages function', (done) => {
17538
+ try {
17539
+ assert.equal(true, typeof a.getSysSoftwareImages === 'function');
17540
+ done();
17541
+ } catch (error) {
17542
+ log.error(`Test Failure: ${error}`);
17543
+ done(error);
17544
+ }
17545
+ }).timeout(attemptTimeout);
17546
+ it('should error if - missing uuid', (done) => {
17547
+ try {
17548
+ a.getSysSoftwareImages(null, null, null, (data, error) => {
17549
+ try {
17550
+ const displayE = 'uuid is required';
17551
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getSysSoftwareImages', displayE);
17552
+ done();
17553
+ } catch (err) {
17554
+ log.error(`Test Failure: ${err}`);
17555
+ done(err);
17556
+ }
17557
+ });
17558
+ } catch (error) {
17559
+ log.error(`Adapter Exception: ${error}`);
17560
+ done(error);
17561
+ }
17562
+ }).timeout(attemptTimeout);
17563
+ });
17564
+
17565
+ describe('#deleteSysSoftwareVolume - errors', () => {
17566
+ it('should have a deleteSysSoftwareVolume function', (done) => {
17567
+ try {
17568
+ assert.equal(true, typeof a.deleteSysSoftwareVolume === 'function');
17569
+ done();
17570
+ } catch (error) {
17571
+ log.error(`Test Failure: ${error}`);
17572
+ done(error);
17573
+ }
17574
+ }).timeout(attemptTimeout);
17575
+ it('should error if - missing uuid', (done) => {
17576
+ try {
17577
+ a.deleteSysSoftwareVolume(null, null, null, (data, error) => {
17578
+ try {
17579
+ const displayE = 'uuid is required';
17580
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteSysSoftwareVolume', displayE);
17581
+ done();
17582
+ } catch (err) {
17583
+ log.error(`Test Failure: ${err}`);
17584
+ done(err);
17585
+ }
17586
+ });
17587
+ } catch (error) {
17588
+ log.error(`Adapter Exception: ${error}`);
17589
+ done(error);
17590
+ }
17591
+ }).timeout(attemptTimeout);
17592
+ it('should error if - missing name', (done) => {
17593
+ try {
17594
+ a.deleteSysSoftwareVolume('fakeparam', null, null, (data, error) => {
17595
+ try {
17596
+ const displayE = 'name is required';
17597
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteSysSoftwareVolume', displayE);
17598
+ done();
17599
+ } catch (err) {
17600
+ log.error(`Test Failure: ${err}`);
17601
+ done(err);
17602
+ }
17603
+ });
17604
+ } catch (error) {
17605
+ log.error(`Adapter Exception: ${error}`);
17606
+ done(error);
17607
+ }
17608
+ }).timeout(attemptTimeout);
17609
+ });
17610
+
17611
+ describe('#getSysSoftwareVolumeByName - errors', () => {
17612
+ it('should have a getSysSoftwareVolumeByName function', (done) => {
17613
+ try {
17614
+ assert.equal(true, typeof a.getSysSoftwareVolumeByName === 'function');
17615
+ done();
17616
+ } catch (error) {
17617
+ log.error(`Test Failure: ${error}`);
17618
+ done(error);
17619
+ }
17620
+ }).timeout(attemptTimeout);
17621
+ it('should error if - missing uuid', (done) => {
17622
+ try {
17623
+ a.getSysSoftwareVolumeByName(null, null, null, null, (data, error) => {
17624
+ try {
17625
+ const displayE = 'uuid is required';
17626
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getSysSoftwareVolumeByName', displayE);
17627
+ done();
17628
+ } catch (err) {
17629
+ log.error(`Test Failure: ${err}`);
17630
+ done(err);
17631
+ }
17632
+ });
17633
+ } catch (error) {
17634
+ log.error(`Adapter Exception: ${error}`);
17635
+ done(error);
17636
+ }
17637
+ }).timeout(attemptTimeout);
17638
+ it('should error if - missing name', (done) => {
17639
+ try {
17640
+ a.getSysSoftwareVolumeByName('fakeparam', null, null, null, (data, error) => {
17641
+ try {
17642
+ const displayE = 'name is required';
17643
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getSysSoftwareVolumeByName', displayE);
17644
+ done();
17645
+ } catch (err) {
17646
+ log.error(`Test Failure: ${err}`);
17647
+ done(err);
17648
+ }
17649
+ });
17650
+ } catch (error) {
17651
+ log.error(`Adapter Exception: ${error}`);
17652
+ done(error);
17653
+ }
17654
+ }).timeout(attemptTimeout);
17655
+ });
17656
+
17657
+ describe('#getSysDnsSettings - errors', () => {
17658
+ it('should have a getSysDnsSettings function', (done) => {
17659
+ try {
17660
+ assert.equal(true, typeof a.getSysDnsSettings === 'function');
17661
+ done();
17662
+ } catch (error) {
17663
+ log.error(`Test Failure: ${error}`);
17664
+ done(error);
17665
+ }
17666
+ }).timeout(attemptTimeout);
17667
+ it('should error if - missing uuid', (done) => {
17668
+ try {
17669
+ a.getSysDnsSettings(null, null, null, (data, error) => {
17670
+ try {
17671
+ const displayE = 'uuid is required';
17672
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getSysDnsSettings', displayE);
17673
+ done();
17674
+ } catch (err) {
17675
+ log.error(`Test Failure: ${err}`);
17676
+ done(err);
17677
+ }
17678
+ });
17679
+ } catch (error) {
17680
+ log.error(`Adapter Exception: ${error}`);
17681
+ done(error);
17682
+ }
17683
+ }).timeout(attemptTimeout);
17684
+ });
17685
+
17686
+ describe('#setSysDnsSettings - errors', () => {
17687
+ it('should have a setSysDnsSettings function', (done) => {
17688
+ try {
17689
+ assert.equal(true, typeof a.setSysDnsSettings === 'function');
17690
+ done();
17691
+ } catch (error) {
17692
+ log.error(`Test Failure: ${error}`);
17693
+ done(error);
17694
+ }
17695
+ }).timeout(attemptTimeout);
17696
+ it('should error if - missing uuid', (done) => {
17697
+ try {
17698
+ a.setSysDnsSettings(null, null, null, (data, error) => {
17699
+ try {
17700
+ const displayE = 'uuid is required';
17701
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-setSysDnsSettings', displayE);
17702
+ done();
17703
+ } catch (err) {
17704
+ log.error(`Test Failure: ${err}`);
17705
+ done(err);
17706
+ }
17707
+ });
17708
+ } catch (error) {
17709
+ log.error(`Adapter Exception: ${error}`);
17710
+ done(error);
17711
+ }
17712
+ }).timeout(attemptTimeout);
17713
+ it('should error if - missing body', (done) => {
17714
+ try {
17715
+ a.setSysDnsSettings('fakeparam', null, null, (data, error) => {
17716
+ try {
17717
+ const displayE = 'body is required';
17718
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-setSysDnsSettings', displayE);
17719
+ done();
17720
+ } catch (err) {
17721
+ log.error(`Test Failure: ${err}`);
17722
+ done(err);
17723
+ }
17724
+ });
17725
+ } catch (error) {
17726
+ log.error(`Adapter Exception: ${error}`);
17727
+ done(error);
17728
+ }
17729
+ }).timeout(attemptTimeout);
17730
+ });
17731
+
17732
+ describe('#getCmTrafficGroups - errors', () => {
17733
+ it('should have a getCmTrafficGroups function', (done) => {
17734
+ try {
17735
+ assert.equal(true, typeof a.getCmTrafficGroups === 'function');
17736
+ done();
17737
+ } catch (error) {
17738
+ log.error(`Test Failure: ${error}`);
17739
+ done(error);
17740
+ }
17741
+ }).timeout(attemptTimeout);
17742
+ it('should error if - missing uuid', (done) => {
17743
+ try {
17744
+ a.getCmTrafficGroups(null, null, null, (data, error) => {
17745
+ try {
17746
+ const displayE = 'uuid is required';
17747
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getCmTrafficGroups', displayE);
17748
+ done();
17749
+ } catch (err) {
17750
+ log.error(`Test Failure: ${err}`);
17751
+ done(err);
17752
+ }
17753
+ });
17754
+ } catch (error) {
17755
+ log.error(`Adapter Exception: ${error}`);
17756
+ done(error);
17757
+ }
17758
+ }).timeout(attemptTimeout);
17759
+ });
17760
+
17761
+ describe('#createCmTrafficGroup - errors', () => {
17762
+ it('should have a createCmTrafficGroup function', (done) => {
17763
+ try {
17764
+ assert.equal(true, typeof a.createCmTrafficGroup === 'function');
17765
+ done();
17766
+ } catch (error) {
17767
+ log.error(`Test Failure: ${error}`);
17768
+ done(error);
17769
+ }
17770
+ }).timeout(attemptTimeout);
17771
+ it('should error if - missing uuid', (done) => {
17772
+ try {
17773
+ a.createCmTrafficGroup(null, null, null, (data, error) => {
17774
+ try {
17775
+ const displayE = 'uuid is required';
17776
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createCmTrafficGroup', displayE);
17777
+ done();
17778
+ } catch (err) {
17779
+ log.error(`Test Failure: ${err}`);
17780
+ done(err);
17781
+ }
17782
+ });
17783
+ } catch (error) {
17784
+ log.error(`Adapter Exception: ${error}`);
17785
+ done(error);
17786
+ }
17787
+ }).timeout(attemptTimeout);
17788
+ it('should error if - missing body', (done) => {
17789
+ try {
17790
+ a.createCmTrafficGroup('fakeparam', null, null, (data, error) => {
17791
+ try {
17792
+ const displayE = 'body is required';
17793
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createCmTrafficGroup', displayE);
17794
+ done();
17795
+ } catch (err) {
17796
+ log.error(`Test Failure: ${err}`);
17797
+ done(err);
17798
+ }
17799
+ });
17800
+ } catch (error) {
17801
+ log.error(`Adapter Exception: ${error}`);
17802
+ done(error);
17803
+ }
17804
+ }).timeout(attemptTimeout);
17805
+ });
17806
+
17807
+ describe('#getCmTrafficGroupByName - errors', () => {
17808
+ it('should have a getCmTrafficGroupByName function', (done) => {
17809
+ try {
17810
+ assert.equal(true, typeof a.getCmTrafficGroupByName === 'function');
17811
+ done();
17812
+ } catch (error) {
17813
+ log.error(`Test Failure: ${error}`);
17814
+ done(error);
17815
+ }
17816
+ }).timeout(attemptTimeout);
17817
+ it('should error if - missing uuid', (done) => {
17818
+ try {
17819
+ a.getCmTrafficGroupByName(null, null, null, null, (data, error) => {
17820
+ try {
17821
+ const displayE = 'uuid is required';
17822
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getCmTrafficGroupByName', displayE);
17823
+ done();
17824
+ } catch (err) {
17825
+ log.error(`Test Failure: ${err}`);
17826
+ done(err);
17827
+ }
17828
+ });
17829
+ } catch (error) {
17830
+ log.error(`Adapter Exception: ${error}`);
17831
+ done(error);
17832
+ }
17833
+ }).timeout(attemptTimeout);
17834
+ it('should error if - missing name', (done) => {
17835
+ try {
17836
+ a.getCmTrafficGroupByName('fakeparam', null, null, null, (data, error) => {
17837
+ try {
17838
+ const displayE = 'name is required';
17839
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getCmTrafficGroupByName', displayE);
17840
+ done();
17841
+ } catch (err) {
17842
+ log.error(`Test Failure: ${err}`);
17843
+ done(err);
17844
+ }
17845
+ });
17846
+ } catch (error) {
17847
+ log.error(`Adapter Exception: ${error}`);
17848
+ done(error);
17849
+ }
17850
+ }).timeout(attemptTimeout);
17851
+ });
17852
+
17853
+ describe('#updateCmTrafficGroup - errors', () => {
17854
+ it('should have a updateCmTrafficGroup function', (done) => {
17855
+ try {
17856
+ assert.equal(true, typeof a.updateCmTrafficGroup === 'function');
17857
+ done();
17858
+ } catch (error) {
17859
+ log.error(`Test Failure: ${error}`);
17860
+ done(error);
17861
+ }
17862
+ }).timeout(attemptTimeout);
17863
+ it('should error if - missing uuid', (done) => {
17864
+ try {
17865
+ a.updateCmTrafficGroup(null, null, null, null, (data, error) => {
17866
+ try {
17867
+ const displayE = 'uuid is required';
17868
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateCmTrafficGroup', displayE);
17869
+ done();
17870
+ } catch (err) {
17871
+ log.error(`Test Failure: ${err}`);
17872
+ done(err);
17873
+ }
17874
+ });
17875
+ } catch (error) {
17876
+ log.error(`Adapter Exception: ${error}`);
17877
+ done(error);
17878
+ }
17879
+ }).timeout(attemptTimeout);
17880
+ it('should error if - missing name', (done) => {
17881
+ try {
17882
+ a.updateCmTrafficGroup('fakeparam', null, null, null, (data, error) => {
17883
+ try {
17884
+ const displayE = 'name is required';
17885
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateCmTrafficGroup', displayE);
17886
+ done();
17887
+ } catch (err) {
17888
+ log.error(`Test Failure: ${err}`);
17889
+ done(err);
17890
+ }
17891
+ });
17892
+ } catch (error) {
17893
+ log.error(`Adapter Exception: ${error}`);
17894
+ done(error);
17895
+ }
17896
+ }).timeout(attemptTimeout);
17897
+ it('should error if - missing body', (done) => {
17898
+ try {
17899
+ a.updateCmTrafficGroup('fakeparam', 'fakeparam', null, null, (data, error) => {
17900
+ try {
17901
+ const displayE = 'body is required';
17902
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateCmTrafficGroup', displayE);
17903
+ done();
17904
+ } catch (err) {
17905
+ log.error(`Test Failure: ${err}`);
17906
+ done(err);
17907
+ }
17908
+ });
17909
+ } catch (error) {
17910
+ log.error(`Adapter Exception: ${error}`);
17911
+ done(error);
17912
+ }
17913
+ }).timeout(attemptTimeout);
17914
+ });
17915
+
17916
+ describe('#deleteCmTrafficGroup - errors', () => {
17917
+ it('should have a deleteCmTrafficGroup function', (done) => {
17918
+ try {
17919
+ assert.equal(true, typeof a.deleteCmTrafficGroup === 'function');
17920
+ done();
17921
+ } catch (error) {
17922
+ log.error(`Test Failure: ${error}`);
17923
+ done(error);
17924
+ }
17925
+ }).timeout(attemptTimeout);
17926
+ it('should error if - missing uuid', (done) => {
17927
+ try {
17928
+ a.deleteCmTrafficGroup(null, null, null, (data, error) => {
17929
+ try {
17930
+ const displayE = 'uuid is required';
17931
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteCmTrafficGroup', displayE);
17932
+ done();
17933
+ } catch (err) {
17934
+ log.error(`Test Failure: ${err}`);
17935
+ done(err);
17936
+ }
17937
+ });
17938
+ } catch (error) {
17939
+ log.error(`Adapter Exception: ${error}`);
17940
+ done(error);
17941
+ }
17942
+ }).timeout(attemptTimeout);
17943
+ it('should error if - missing name', (done) => {
17944
+ try {
17945
+ a.deleteCmTrafficGroup('fakeparam', null, null, (data, error) => {
17946
+ try {
17947
+ const displayE = 'name is required';
17948
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteCmTrafficGroup', displayE);
17949
+ done();
17950
+ } catch (err) {
17951
+ log.error(`Test Failure: ${err}`);
17952
+ done(err);
17953
+ }
17954
+ });
17955
+ } catch (error) {
17956
+ log.error(`Adapter Exception: ${error}`);
17957
+ done(error);
17958
+ }
17959
+ }).timeout(attemptTimeout);
17960
+ });
17961
+
17962
+ describe('#patchCmTrafficGroup - errors', () => {
17963
+ it('should have a patchCmTrafficGroup function', (done) => {
17964
+ try {
17965
+ assert.equal(true, typeof a.patchCmTrafficGroup === 'function');
17966
+ done();
17967
+ } catch (error) {
17968
+ log.error(`Test Failure: ${error}`);
17969
+ done(error);
17970
+ }
17971
+ }).timeout(attemptTimeout);
17972
+ it('should error if - missing uuid', (done) => {
17973
+ try {
17974
+ a.patchCmTrafficGroup(null, null, null, null, (data, error) => {
17975
+ try {
17976
+ const displayE = 'uuid is required';
17977
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchCmTrafficGroup', displayE);
17978
+ done();
17979
+ } catch (err) {
17980
+ log.error(`Test Failure: ${err}`);
17981
+ done(err);
17982
+ }
17983
+ });
17984
+ } catch (error) {
17985
+ log.error(`Adapter Exception: ${error}`);
17986
+ done(error);
17987
+ }
17988
+ }).timeout(attemptTimeout);
17989
+ it('should error if - missing name', (done) => {
17990
+ try {
17991
+ a.patchCmTrafficGroup('fakeparam', null, null, null, (data, error) => {
17992
+ try {
17993
+ const displayE = 'name is required';
17994
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchCmTrafficGroup', displayE);
17995
+ done();
17996
+ } catch (err) {
17997
+ log.error(`Test Failure: ${err}`);
17998
+ done(err);
17999
+ }
18000
+ });
18001
+ } catch (error) {
18002
+ log.error(`Adapter Exception: ${error}`);
18003
+ done(error);
18004
+ }
18005
+ }).timeout(attemptTimeout);
18006
+ it('should error if - missing body', (done) => {
18007
+ try {
18008
+ a.patchCmTrafficGroup('fakeparam', 'fakeparam', null, null, (data, error) => {
18009
+ try {
18010
+ const displayE = 'body is required';
18011
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-patchCmTrafficGroup', displayE);
18012
+ done();
18013
+ } catch (err) {
18014
+ log.error(`Test Failure: ${err}`);
18015
+ done(err);
18016
+ }
18017
+ });
18018
+ } catch (error) {
18019
+ log.error(`Adapter Exception: ${error}`);
18020
+ done(error);
18021
+ }
18022
+ }).timeout(attemptTimeout);
18023
+ });
18024
+
18025
+ describe('#getCmDevices - errors', () => {
18026
+ it('should have a getCmDevices function', (done) => {
18027
+ try {
18028
+ assert.equal(true, typeof a.getCmDevices === 'function');
18029
+ done();
18030
+ } catch (error) {
18031
+ log.error(`Test Failure: ${error}`);
18032
+ done(error);
18033
+ }
18034
+ }).timeout(attemptTimeout);
18035
+ it('should error if - missing uuid', (done) => {
18036
+ try {
18037
+ a.getCmDevices(null, null, null, (data, error) => {
18038
+ try {
18039
+ const displayE = 'uuid is required';
18040
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getCmDevices', displayE);
18041
+ done();
18042
+ } catch (err) {
18043
+ log.error(`Test Failure: ${err}`);
18044
+ done(err);
18045
+ }
18046
+ });
18047
+ } catch (error) {
18048
+ log.error(`Adapter Exception: ${error}`);
18049
+ done(error);
18050
+ }
18051
+ }).timeout(attemptTimeout);
18052
+ });
18053
+
18054
+ describe('#getCmDeviceByName - errors', () => {
18055
+ it('should have a getCmDeviceByName function', (done) => {
18056
+ try {
18057
+ assert.equal(true, typeof a.getCmDeviceByName === 'function');
18058
+ done();
18059
+ } catch (error) {
18060
+ log.error(`Test Failure: ${error}`);
18061
+ done(error);
18062
+ }
18063
+ }).timeout(attemptTimeout);
18064
+ it('should error if - missing uuid', (done) => {
18065
+ try {
18066
+ a.getCmDeviceByName(null, null, null, null, (data, error) => {
18067
+ try {
18068
+ const displayE = 'uuid is required';
18069
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getCmDeviceByName', displayE);
18070
+ done();
18071
+ } catch (err) {
18072
+ log.error(`Test Failure: ${err}`);
18073
+ done(err);
18074
+ }
18075
+ });
18076
+ } catch (error) {
18077
+ log.error(`Adapter Exception: ${error}`);
18078
+ done(error);
18079
+ }
18080
+ }).timeout(attemptTimeout);
18081
+ it('should error if - missing name', (done) => {
18082
+ try {
18083
+ a.getCmDeviceByName('fakeparam', null, null, null, (data, error) => {
18084
+ try {
18085
+ const displayE = 'name is required';
18086
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getCmDeviceByName', displayE);
18087
+ done();
18088
+ } catch (err) {
18089
+ log.error(`Test Failure: ${err}`);
18090
+ done(err);
18091
+ }
18092
+ });
18093
+ } catch (error) {
18094
+ log.error(`Adapter Exception: ${error}`);
18095
+ done(error);
18096
+ }
18097
+ }).timeout(attemptTimeout);
18098
+ });
18099
+
18100
+ describe('#updateCmDevice - errors', () => {
18101
+ it('should have a updateCmDevice function', (done) => {
18102
+ try {
18103
+ assert.equal(true, typeof a.updateCmDevice === 'function');
18104
+ done();
18105
+ } catch (error) {
18106
+ log.error(`Test Failure: ${error}`);
18107
+ done(error);
18108
+ }
18109
+ }).timeout(attemptTimeout);
18110
+ it('should error if - missing uuid', (done) => {
18111
+ try {
18112
+ a.updateCmDevice(null, null, null, null, (data, error) => {
18113
+ try {
18114
+ const displayE = 'uuid is required';
18115
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateCmDevice', displayE);
18116
+ done();
18117
+ } catch (err) {
18118
+ log.error(`Test Failure: ${err}`);
18119
+ done(err);
18120
+ }
18121
+ });
18122
+ } catch (error) {
18123
+ log.error(`Adapter Exception: ${error}`);
18124
+ done(error);
18125
+ }
18126
+ }).timeout(attemptTimeout);
18127
+ it('should error if - missing name', (done) => {
18128
+ try {
18129
+ a.updateCmDevice('fakeparam', null, null, null, (data, error) => {
18130
+ try {
18131
+ const displayE = 'name is required';
18132
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateCmDevice', displayE);
18133
+ done();
18134
+ } catch (err) {
18135
+ log.error(`Test Failure: ${err}`);
18136
+ done(err);
18137
+ }
18138
+ });
18139
+ } catch (error) {
18140
+ log.error(`Adapter Exception: ${error}`);
18141
+ done(error);
18142
+ }
18143
+ }).timeout(attemptTimeout);
18144
+ it('should error if - missing body', (done) => {
18145
+ try {
18146
+ a.updateCmDevice('fakeparam', 'fakeparam', null, null, (data, error) => {
18147
+ try {
18148
+ const displayE = 'body is required';
18149
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateCmDevice', displayE);
18150
+ done();
18151
+ } catch (err) {
18152
+ log.error(`Test Failure: ${err}`);
18153
+ done(err);
18154
+ }
18155
+ });
18156
+ } catch (error) {
18157
+ log.error(`Adapter Exception: ${error}`);
18158
+ done(error);
18159
+ }
18160
+ }).timeout(attemptTimeout);
18161
+ });
18162
+
18163
+ describe('#deleteCmDevice - errors', () => {
18164
+ it('should have a deleteCmDevice function', (done) => {
18165
+ try {
18166
+ assert.equal(true, typeof a.deleteCmDevice === 'function');
18167
+ done();
18168
+ } catch (error) {
18169
+ log.error(`Test Failure: ${error}`);
18170
+ done(error);
18171
+ }
18172
+ }).timeout(attemptTimeout);
18173
+ it('should error if - missing uuid', (done) => {
18174
+ try {
18175
+ a.deleteCmDevice(null, null, null, (data, error) => {
18176
+ try {
18177
+ const displayE = 'uuid is required';
18178
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteCmDevice', displayE);
18179
+ done();
18180
+ } catch (err) {
18181
+ log.error(`Test Failure: ${err}`);
18182
+ done(err);
18183
+ }
18184
+ });
18185
+ } catch (error) {
18186
+ log.error(`Adapter Exception: ${error}`);
18187
+ done(error);
18188
+ }
18189
+ }).timeout(attemptTimeout);
18190
+ it('should error if - missing name', (done) => {
18191
+ try {
18192
+ a.deleteCmDevice('fakeparam', null, null, (data, error) => {
18193
+ try {
18194
+ const displayE = 'name is required';
18195
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteCmDevice', displayE);
18196
+ done();
18197
+ } catch (err) {
18198
+ log.error(`Test Failure: ${err}`);
18199
+ done(err);
18200
+ }
18201
+ });
18202
+ } catch (error) {
18203
+ log.error(`Adapter Exception: ${error}`);
18204
+ done(error);
18205
+ }
18206
+ }).timeout(attemptTimeout);
18207
+ });
18208
+
18209
+ describe('#getCmDeviceGroups - errors', () => {
18210
+ it('should have a getCmDeviceGroups function', (done) => {
18211
+ try {
18212
+ assert.equal(true, typeof a.getCmDeviceGroups === 'function');
18213
+ done();
18214
+ } catch (error) {
18215
+ log.error(`Test Failure: ${error}`);
18216
+ done(error);
18217
+ }
18218
+ }).timeout(attemptTimeout);
18219
+ it('should error if - missing uuid', (done) => {
18220
+ try {
18221
+ a.getCmDeviceGroups(null, null, null, (data, error) => {
18222
+ try {
18223
+ const displayE = 'uuid is required';
18224
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getCmDeviceGroups', displayE);
18225
+ done();
18226
+ } catch (err) {
18227
+ log.error(`Test Failure: ${err}`);
18228
+ done(err);
18229
+ }
18230
+ });
18231
+ } catch (error) {
18232
+ log.error(`Adapter Exception: ${error}`);
18233
+ done(error);
18234
+ }
18235
+ }).timeout(attemptTimeout);
18236
+ });
18237
+
18238
+ describe('#createCmDeviceGroup - errors', () => {
18239
+ it('should have a createCmDeviceGroup function', (done) => {
18240
+ try {
18241
+ assert.equal(true, typeof a.createCmDeviceGroup === 'function');
18242
+ done();
18243
+ } catch (error) {
18244
+ log.error(`Test Failure: ${error}`);
18245
+ done(error);
18246
+ }
18247
+ }).timeout(attemptTimeout);
18248
+ it('should error if - missing uuid', (done) => {
18249
+ try {
18250
+ a.createCmDeviceGroup(null, null, null, (data, error) => {
18251
+ try {
18252
+ const displayE = 'uuid is required';
18253
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createCmDeviceGroup', displayE);
18254
+ done();
18255
+ } catch (err) {
18256
+ log.error(`Test Failure: ${err}`);
18257
+ done(err);
18258
+ }
18259
+ });
18260
+ } catch (error) {
18261
+ log.error(`Adapter Exception: ${error}`);
18262
+ done(error);
18263
+ }
18264
+ }).timeout(attemptTimeout);
18265
+ it('should error if - missing body', (done) => {
18266
+ try {
18267
+ a.createCmDeviceGroup('fakeparam', null, null, (data, error) => {
18268
+ try {
18269
+ const displayE = 'body is required';
18270
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createCmDeviceGroup', displayE);
18271
+ done();
18272
+ } catch (err) {
18273
+ log.error(`Test Failure: ${err}`);
18274
+ done(err);
18275
+ }
18276
+ });
18277
+ } catch (error) {
18278
+ log.error(`Adapter Exception: ${error}`);
18279
+ done(error);
18280
+ }
18281
+ }).timeout(attemptTimeout);
18282
+ });
18283
+
18284
+ describe('#getCmDeviceGroupByName - errors', () => {
18285
+ it('should have a getCmDeviceGroupByName function', (done) => {
18286
+ try {
18287
+ assert.equal(true, typeof a.getCmDeviceGroupByName === 'function');
18288
+ done();
18289
+ } catch (error) {
18290
+ log.error(`Test Failure: ${error}`);
18291
+ done(error);
18292
+ }
18293
+ }).timeout(attemptTimeout);
18294
+ it('should error if - missing uuid', (done) => {
18295
+ try {
18296
+ a.getCmDeviceGroupByName(null, null, null, null, (data, error) => {
18297
+ try {
18298
+ const displayE = 'uuid is required';
18299
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getCmDeviceGroupByName', displayE);
18300
+ done();
18301
+ } catch (err) {
18302
+ log.error(`Test Failure: ${err}`);
18303
+ done(err);
18304
+ }
18305
+ });
18306
+ } catch (error) {
18307
+ log.error(`Adapter Exception: ${error}`);
18308
+ done(error);
18309
+ }
18310
+ }).timeout(attemptTimeout);
18311
+ it('should error if - missing name', (done) => {
18312
+ try {
18313
+ a.getCmDeviceGroupByName('fakeparam', null, null, null, (data, error) => {
18314
+ try {
18315
+ const displayE = 'name is required';
18316
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getCmDeviceGroupByName', displayE);
18317
+ done();
18318
+ } catch (err) {
18319
+ log.error(`Test Failure: ${err}`);
18320
+ done(err);
18321
+ }
18322
+ });
18323
+ } catch (error) {
18324
+ log.error(`Adapter Exception: ${error}`);
18325
+ done(error);
18326
+ }
18327
+ }).timeout(attemptTimeout);
18328
+ });
18329
+
18330
+ describe('#updateCmDeviceGroup - errors', () => {
18331
+ it('should have a updateCmDeviceGroup function', (done) => {
18332
+ try {
18333
+ assert.equal(true, typeof a.updateCmDeviceGroup === 'function');
18334
+ done();
18335
+ } catch (error) {
18336
+ log.error(`Test Failure: ${error}`);
18337
+ done(error);
18338
+ }
18339
+ }).timeout(attemptTimeout);
18340
+ it('should error if - missing uuid', (done) => {
18341
+ try {
18342
+ a.updateCmDeviceGroup(null, null, null, null, (data, error) => {
18343
+ try {
18344
+ const displayE = 'uuid is required';
18345
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateCmDeviceGroup', displayE);
18346
+ done();
18347
+ } catch (err) {
18348
+ log.error(`Test Failure: ${err}`);
18349
+ done(err);
18350
+ }
18351
+ });
18352
+ } catch (error) {
18353
+ log.error(`Adapter Exception: ${error}`);
18354
+ done(error);
18355
+ }
18356
+ }).timeout(attemptTimeout);
18357
+ it('should error if - missing name', (done) => {
18358
+ try {
18359
+ a.updateCmDeviceGroup('fakeparam', null, null, null, (data, error) => {
18360
+ try {
18361
+ const displayE = 'name is required';
18362
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateCmDeviceGroup', displayE);
18363
+ done();
18364
+ } catch (err) {
18365
+ log.error(`Test Failure: ${err}`);
18366
+ done(err);
18367
+ }
18368
+ });
18369
+ } catch (error) {
18370
+ log.error(`Adapter Exception: ${error}`);
18371
+ done(error);
18372
+ }
18373
+ }).timeout(attemptTimeout);
18374
+ it('should error if - missing body', (done) => {
18375
+ try {
18376
+ a.updateCmDeviceGroup('fakeparam', 'fakeparam', null, null, (data, error) => {
18377
+ try {
18378
+ const displayE = 'body is required';
18379
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateCmDeviceGroup', displayE);
18380
+ done();
18381
+ } catch (err) {
18382
+ log.error(`Test Failure: ${err}`);
18383
+ done(err);
18384
+ }
18385
+ });
18386
+ } catch (error) {
18387
+ log.error(`Adapter Exception: ${error}`);
18388
+ done(error);
18389
+ }
18390
+ }).timeout(attemptTimeout);
18391
+ });
18392
+
18393
+ describe('#deleteCmDeviceGroup - errors', () => {
18394
+ it('should have a deleteCmDeviceGroup function', (done) => {
18395
+ try {
18396
+ assert.equal(true, typeof a.deleteCmDeviceGroup === 'function');
18397
+ done();
18398
+ } catch (error) {
18399
+ log.error(`Test Failure: ${error}`);
18400
+ done(error);
18401
+ }
18402
+ }).timeout(attemptTimeout);
18403
+ it('should error if - missing uuid', (done) => {
18404
+ try {
18405
+ a.deleteCmDeviceGroup(null, null, null, (data, error) => {
18406
+ try {
18407
+ const displayE = 'uuid is required';
18408
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteCmDeviceGroup', displayE);
18409
+ done();
18410
+ } catch (err) {
18411
+ log.error(`Test Failure: ${err}`);
18412
+ done(err);
18413
+ }
18414
+ });
18415
+ } catch (error) {
18416
+ log.error(`Adapter Exception: ${error}`);
18417
+ done(error);
18418
+ }
18419
+ }).timeout(attemptTimeout);
18420
+ it('should error if - missing name', (done) => {
18421
+ try {
18422
+ a.deleteCmDeviceGroup('fakeparam', null, null, (data, error) => {
18423
+ try {
18424
+ const displayE = 'name is required';
18425
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteCmDeviceGroup', displayE);
18426
+ done();
18427
+ } catch (err) {
18428
+ log.error(`Test Failure: ${err}`);
18429
+ done(err);
18430
+ }
18431
+ });
18432
+ } catch (error) {
18433
+ log.error(`Adapter Exception: ${error}`);
18434
+ done(error);
18435
+ }
18436
+ }).timeout(attemptTimeout);
18437
+ });
18438
+
18439
+ describe('#getAuthUsers - errors', () => {
18440
+ it('should have a getAuthUsers function', (done) => {
18441
+ try {
18442
+ assert.equal(true, typeof a.getAuthUsers === 'function');
18443
+ done();
18444
+ } catch (error) {
18445
+ log.error(`Test Failure: ${error}`);
18446
+ done(error);
18447
+ }
18448
+ }).timeout(attemptTimeout);
18449
+ it('should error if - missing uuid', (done) => {
18450
+ try {
18451
+ a.getAuthUsers(null, null, null, (data, error) => {
18452
+ try {
18453
+ const displayE = 'uuid is required';
18454
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getAuthUsers', displayE);
18455
+ done();
18456
+ } catch (err) {
18457
+ log.error(`Test Failure: ${err}`);
18458
+ done(err);
18459
+ }
18460
+ });
18461
+ } catch (error) {
18462
+ log.error(`Adapter Exception: ${error}`);
18463
+ done(error);
18464
+ }
18465
+ }).timeout(attemptTimeout);
18466
+ });
18467
+
18468
+ describe('#createAuthUser - errors', () => {
18469
+ it('should have a createAuthUser function', (done) => {
18470
+ try {
18471
+ assert.equal(true, typeof a.createAuthUser === 'function');
18472
+ done();
18473
+ } catch (error) {
18474
+ log.error(`Test Failure: ${error}`);
18475
+ done(error);
18476
+ }
18477
+ }).timeout(attemptTimeout);
18478
+ it('should error if - missing uuid', (done) => {
18479
+ try {
18480
+ a.createAuthUser(null, null, null, (data, error) => {
18481
+ try {
18482
+ const displayE = 'uuid is required';
18483
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createAuthUser', displayE);
18484
+ done();
18485
+ } catch (err) {
18486
+ log.error(`Test Failure: ${err}`);
18487
+ done(err);
18488
+ }
18489
+ });
18490
+ } catch (error) {
18491
+ log.error(`Adapter Exception: ${error}`);
18492
+ done(error);
18493
+ }
18494
+ }).timeout(attemptTimeout);
18495
+ it('should error if - missing body', (done) => {
18496
+ try {
18497
+ a.createAuthUser('fakeparam', null, null, (data, error) => {
18498
+ try {
18499
+ const displayE = 'body is required';
18500
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createAuthUser', displayE);
18501
+ done();
18502
+ } catch (err) {
18503
+ log.error(`Test Failure: ${err}`);
18504
+ done(err);
18505
+ }
18506
+ });
18507
+ } catch (error) {
18508
+ log.error(`Adapter Exception: ${error}`);
18509
+ done(error);
18510
+ }
18511
+ }).timeout(attemptTimeout);
18512
+ });
18513
+
18514
+ describe('#getAuthUserByName - errors', () => {
18515
+ it('should have a getAuthUserByName function', (done) => {
18516
+ try {
18517
+ assert.equal(true, typeof a.getAuthUserByName === 'function');
18518
+ done();
18519
+ } catch (error) {
18520
+ log.error(`Test Failure: ${error}`);
18521
+ done(error);
18522
+ }
18523
+ }).timeout(attemptTimeout);
18524
+ it('should error if - missing uuid', (done) => {
18525
+ try {
18526
+ a.getAuthUserByName(null, null, null, null, (data, error) => {
18527
+ try {
18528
+ const displayE = 'uuid is required';
18529
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getAuthUserByName', displayE);
18530
+ done();
18531
+ } catch (err) {
18532
+ log.error(`Test Failure: ${err}`);
18533
+ done(err);
18534
+ }
18535
+ });
18536
+ } catch (error) {
18537
+ log.error(`Adapter Exception: ${error}`);
18538
+ done(error);
18539
+ }
18540
+ }).timeout(attemptTimeout);
18541
+ it('should error if - missing name', (done) => {
18542
+ try {
18543
+ a.getAuthUserByName('fakeparam', null, null, null, (data, error) => {
18544
+ try {
18545
+ const displayE = 'name is required';
18546
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-getAuthUserByName', displayE);
18547
+ done();
18548
+ } catch (err) {
18549
+ log.error(`Test Failure: ${err}`);
18550
+ done(err);
18551
+ }
18552
+ });
18553
+ } catch (error) {
18554
+ log.error(`Adapter Exception: ${error}`);
18555
+ done(error);
18556
+ }
18557
+ }).timeout(attemptTimeout);
18558
+ });
18559
+
18560
+ describe('#updateAuthUser - errors', () => {
18561
+ it('should have a updateAuthUser function', (done) => {
18562
+ try {
18563
+ assert.equal(true, typeof a.updateAuthUser === 'function');
18564
+ done();
18565
+ } catch (error) {
18566
+ log.error(`Test Failure: ${error}`);
18567
+ done(error);
18568
+ }
18569
+ }).timeout(attemptTimeout);
18570
+ it('should error if - missing uuid', (done) => {
18571
+ try {
18572
+ a.updateAuthUser(null, null, null, null, (data, error) => {
18573
+ try {
18574
+ const displayE = 'uuid is required';
18575
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateAuthUser', displayE);
18576
+ done();
18577
+ } catch (err) {
18578
+ log.error(`Test Failure: ${err}`);
18579
+ done(err);
18580
+ }
18581
+ });
18582
+ } catch (error) {
18583
+ log.error(`Adapter Exception: ${error}`);
18584
+ done(error);
18585
+ }
18586
+ }).timeout(attemptTimeout);
18587
+ it('should error if - missing name', (done) => {
18588
+ try {
18589
+ a.updateAuthUser('fakeparam', null, null, null, (data, error) => {
18590
+ try {
18591
+ const displayE = 'name is required';
18592
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateAuthUser', displayE);
18593
+ done();
18594
+ } catch (err) {
18595
+ log.error(`Test Failure: ${err}`);
18596
+ done(err);
18597
+ }
18598
+ });
18599
+ } catch (error) {
18600
+ log.error(`Adapter Exception: ${error}`);
18601
+ done(error);
18602
+ }
18603
+ }).timeout(attemptTimeout);
18604
+ it('should error if - missing body', (done) => {
18605
+ try {
18606
+ a.updateAuthUser('fakeparam', 'fakeparam', null, null, (data, error) => {
18607
+ try {
18608
+ const displayE = 'body is required';
18609
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateAuthUser', displayE);
18610
+ done();
18611
+ } catch (err) {
18612
+ log.error(`Test Failure: ${err}`);
18613
+ done(err);
18614
+ }
18615
+ });
18616
+ } catch (error) {
18617
+ log.error(`Adapter Exception: ${error}`);
18618
+ done(error);
18619
+ }
18620
+ }).timeout(attemptTimeout);
18621
+ });
18622
+
18623
+ describe('#deleteAuthUser - errors', () => {
18624
+ it('should have a deleteAuthUser function', (done) => {
18625
+ try {
18626
+ assert.equal(true, typeof a.deleteAuthUser === 'function');
18627
+ done();
18628
+ } catch (error) {
18629
+ log.error(`Test Failure: ${error}`);
18630
+ done(error);
18631
+ }
18632
+ }).timeout(attemptTimeout);
18633
+ it('should error if - missing uuid', (done) => {
18634
+ try {
18635
+ a.deleteAuthUser(null, null, null, (data, error) => {
18636
+ try {
18637
+ const displayE = 'uuid is required';
18638
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteAuthUser', displayE);
18639
+ done();
18640
+ } catch (err) {
18641
+ log.error(`Test Failure: ${err}`);
18642
+ done(err);
18643
+ }
18644
+ });
18645
+ } catch (error) {
18646
+ log.error(`Adapter Exception: ${error}`);
18647
+ done(error);
18648
+ }
18649
+ }).timeout(attemptTimeout);
18650
+ it('should error if - missing name', (done) => {
18651
+ try {
18652
+ a.deleteAuthUser('fakeparam', null, null, (data, error) => {
18653
+ try {
18654
+ const displayE = 'name is required';
18655
+ runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteAuthUser', displayE);
18656
+ done();
18657
+ } catch (err) {
18658
+ log.error(`Test Failure: ${err}`);
18659
+ done(err);
18660
+ }
18661
+ });
18662
+ } catch (error) {
18663
+ log.error(`Adapter Exception: ${error}`);
18664
+ done(error);
18665
+ }
18666
+ }).timeout(attemptTimeout);
18667
+ });
13907
18668
  });
13908
18669
  });