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