@itentialopensource/adapter-f5_bigiq 0.2.0 → 0.3.1
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/CHANGELOG.md +16 -0
- package/adapter.js +4221 -2
- package/entities/BIGIPDeviceClustering/action.json +46 -0
- package/entities/BIGIPDeviceClustering/schema.json +20 -0
- package/entities/BIGIPDeviceReferenceLookup/action.json +25 -0
- package/entities/BIGIPDeviceReferenceLookup/schema.json +19 -0
- package/entities/BIGIPIHealth/action.json +313 -0
- package/entities/BIGIPIHealth/schema.json +33 -0
- package/entities/BIGIPSoftwareImageManagement/action.json +46 -0
- package/entities/BIGIPSoftwareImageManagement/schema.json +20 -0
- package/entities/BIGIPTMSHScripting/action.json +107 -0
- package/entities/BIGIPTMSHScripting/schema.json +23 -0
- package/entities/BIGIPUUIDLookup/action.json +25 -0
- package/entities/BIGIPUUIDLookup/schema.json +19 -0
- package/entities/BIGIQSystemClusterStatus/action.json +46 -0
- package/entities/BIGIQSystemClusterStatus/schema.json +20 -0
- package/entities/Device/action.json +84 -0
- package/entities/Device/schema.json +5 -1
- package/entities/DeviceBackups/action.json +148 -0
- package/entities/DeviceBackups/schema.json +25 -0
- package/entities/DeviceImport/action.json +86 -0
- package/entities/DeviceImport/schema.json +22 -0
- package/entities/DeviceUpgrades/action.json +45 -0
- package/entities/DeviceUpgrades/schema.json +20 -0
- package/entities/Qkview/action.json +148 -0
- package/entities/Qkview/schema.json +25 -0
- package/package.json +1 -1
- package/pronghorn.json +5173 -3300
- package/refs?service=git-upload-pack +0 -0
- package/report/AdditionalF5.OpenApi3Json.json +3886 -0
- package/test/integration/adapterTestIntegration.js +1427 -0
- package/test/unit/adapterTestUnit.js +1151 -0
|
@@ -6507,6 +6507,52 @@ describe('[unit] F5BigIQ Adapter Test', () => {
|
|
|
6507
6507
|
}).timeout(attemptTimeout);
|
|
6508
6508
|
});
|
|
6509
6509
|
|
|
6510
|
+
describe('#performDeviceDiscoveryTask - errors', () => {
|
|
6511
|
+
it('should have a performDeviceDiscoveryTask function', (done) => {
|
|
6512
|
+
try {
|
|
6513
|
+
assert.equal(true, typeof a.performDeviceDiscoveryTask === 'function');
|
|
6514
|
+
done();
|
|
6515
|
+
} catch (error) {
|
|
6516
|
+
log.error(`Test Failure: ${error}`);
|
|
6517
|
+
done(error);
|
|
6518
|
+
}
|
|
6519
|
+
}).timeout(attemptTimeout);
|
|
6520
|
+
it('should error if - missing objectId', (done) => {
|
|
6521
|
+
try {
|
|
6522
|
+
a.performDeviceDiscoveryTask(null, null, (data, error) => {
|
|
6523
|
+
try {
|
|
6524
|
+
const displayE = 'objectId is required';
|
|
6525
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-performDeviceDiscoveryTask', displayE);
|
|
6526
|
+
done();
|
|
6527
|
+
} catch (err) {
|
|
6528
|
+
log.error(`Test Failure: ${err}`);
|
|
6529
|
+
done(err);
|
|
6530
|
+
}
|
|
6531
|
+
});
|
|
6532
|
+
} catch (error) {
|
|
6533
|
+
log.error(`Adapter Exception: ${error}`);
|
|
6534
|
+
done(error);
|
|
6535
|
+
}
|
|
6536
|
+
}).timeout(attemptTimeout);
|
|
6537
|
+
it('should error if - missing body', (done) => {
|
|
6538
|
+
try {
|
|
6539
|
+
a.performDeviceDiscoveryTask('fakedata', null, (data, error) => {
|
|
6540
|
+
try {
|
|
6541
|
+
const displayE = 'body is required';
|
|
6542
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-performDeviceDiscoveryTask', displayE);
|
|
6543
|
+
done();
|
|
6544
|
+
} catch (err) {
|
|
6545
|
+
log.error(`Test Failure: ${err}`);
|
|
6546
|
+
done(err);
|
|
6547
|
+
}
|
|
6548
|
+
});
|
|
6549
|
+
} catch (error) {
|
|
6550
|
+
log.error(`Adapter Exception: ${error}`);
|
|
6551
|
+
done(error);
|
|
6552
|
+
}
|
|
6553
|
+
}).timeout(attemptTimeout);
|
|
6554
|
+
});
|
|
6555
|
+
|
|
6510
6556
|
describe('#postDeviceTrustTask - errors', () => {
|
|
6511
6557
|
it('should have a postDeviceTrustTask function', (done) => {
|
|
6512
6558
|
try {
|
|
@@ -10962,5 +11008,1110 @@ describe('[unit] F5BigIQ Adapter Test', () => {
|
|
|
10962
11008
|
}
|
|
10963
11009
|
}).timeout(attemptTimeout);
|
|
10964
11010
|
});
|
|
11011
|
+
|
|
11012
|
+
describe('#getResolveMachineId - errors', () => {
|
|
11013
|
+
it('should have a getResolveMachineId function', (done) => {
|
|
11014
|
+
try {
|
|
11015
|
+
assert.equal(true, typeof a.getResolveMachineId === 'function');
|
|
11016
|
+
done();
|
|
11017
|
+
} catch (error) {
|
|
11018
|
+
log.error(`Test Failure: ${error}`);
|
|
11019
|
+
done(error);
|
|
11020
|
+
}
|
|
11021
|
+
}).timeout(attemptTimeout);
|
|
11022
|
+
});
|
|
11023
|
+
|
|
11024
|
+
describe('#getExampleQkview - errors', () => {
|
|
11025
|
+
it('should have a getExampleQkview function', (done) => {
|
|
11026
|
+
try {
|
|
11027
|
+
assert.equal(true, typeof a.getExampleQkview === 'function');
|
|
11028
|
+
done();
|
|
11029
|
+
} catch (error) {
|
|
11030
|
+
log.error(`Test Failure: ${error}`);
|
|
11031
|
+
done(error);
|
|
11032
|
+
}
|
|
11033
|
+
}).timeout(attemptTimeout);
|
|
11034
|
+
});
|
|
11035
|
+
|
|
11036
|
+
describe('#retrieveQkviewTasks - errors', () => {
|
|
11037
|
+
it('should have a retrieveQkviewTasks function', (done) => {
|
|
11038
|
+
try {
|
|
11039
|
+
assert.equal(true, typeof a.retrieveQkviewTasks === 'function');
|
|
11040
|
+
done();
|
|
11041
|
+
} catch (error) {
|
|
11042
|
+
log.error(`Test Failure: ${error}`);
|
|
11043
|
+
done(error);
|
|
11044
|
+
}
|
|
11045
|
+
}).timeout(attemptTimeout);
|
|
11046
|
+
});
|
|
11047
|
+
|
|
11048
|
+
describe('#generateaQkview - errors', () => {
|
|
11049
|
+
it('should have a generateaQkview function', (done) => {
|
|
11050
|
+
try {
|
|
11051
|
+
assert.equal(true, typeof a.generateaQkview === 'function');
|
|
11052
|
+
done();
|
|
11053
|
+
} catch (error) {
|
|
11054
|
+
log.error(`Test Failure: ${error}`);
|
|
11055
|
+
done(error);
|
|
11056
|
+
}
|
|
11057
|
+
}).timeout(attemptTimeout);
|
|
11058
|
+
it('should error if - missing body', (done) => {
|
|
11059
|
+
try {
|
|
11060
|
+
a.generateaQkview(null, (data, error) => {
|
|
11061
|
+
try {
|
|
11062
|
+
const displayE = 'body is required';
|
|
11063
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-generateaQkview', displayE);
|
|
11064
|
+
done();
|
|
11065
|
+
} catch (err) {
|
|
11066
|
+
log.error(`Test Failure: ${err}`);
|
|
11067
|
+
done(err);
|
|
11068
|
+
}
|
|
11069
|
+
});
|
|
11070
|
+
} catch (error) {
|
|
11071
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11072
|
+
done(error);
|
|
11073
|
+
}
|
|
11074
|
+
}).timeout(attemptTimeout);
|
|
11075
|
+
});
|
|
11076
|
+
|
|
11077
|
+
describe('#queryBIGIQQkviewTask - errors', () => {
|
|
11078
|
+
it('should have a queryBIGIQQkviewTask function', (done) => {
|
|
11079
|
+
try {
|
|
11080
|
+
assert.equal(true, typeof a.queryBIGIQQkviewTask === 'function');
|
|
11081
|
+
done();
|
|
11082
|
+
} catch (error) {
|
|
11083
|
+
log.error(`Test Failure: ${error}`);
|
|
11084
|
+
done(error);
|
|
11085
|
+
}
|
|
11086
|
+
}).timeout(attemptTimeout);
|
|
11087
|
+
it('should error if - missing bIGIQQKVIEWTASKID', (done) => {
|
|
11088
|
+
try {
|
|
11089
|
+
a.queryBIGIQQkviewTask(null, (data, error) => {
|
|
11090
|
+
try {
|
|
11091
|
+
const displayE = 'bIGIQQKVIEWTASKID is required';
|
|
11092
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-queryBIGIQQkviewTask', displayE);
|
|
11093
|
+
done();
|
|
11094
|
+
} catch (err) {
|
|
11095
|
+
log.error(`Test Failure: ${err}`);
|
|
11096
|
+
done(err);
|
|
11097
|
+
}
|
|
11098
|
+
});
|
|
11099
|
+
} catch (error) {
|
|
11100
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11101
|
+
done(error);
|
|
11102
|
+
}
|
|
11103
|
+
}).timeout(attemptTimeout);
|
|
11104
|
+
});
|
|
11105
|
+
|
|
11106
|
+
describe('#deleteBIGIQQkview - errors', () => {
|
|
11107
|
+
it('should have a deleteBIGIQQkview function', (done) => {
|
|
11108
|
+
try {
|
|
11109
|
+
assert.equal(true, typeof a.deleteBIGIQQkview === 'function');
|
|
11110
|
+
done();
|
|
11111
|
+
} catch (error) {
|
|
11112
|
+
log.error(`Test Failure: ${error}`);
|
|
11113
|
+
done(error);
|
|
11114
|
+
}
|
|
11115
|
+
}).timeout(attemptTimeout);
|
|
11116
|
+
it('should error if - missing bIGIQQKVIEWTASKID', (done) => {
|
|
11117
|
+
try {
|
|
11118
|
+
a.deleteBIGIQQkview(null, (data, error) => {
|
|
11119
|
+
try {
|
|
11120
|
+
const displayE = 'bIGIQQKVIEWTASKID is required';
|
|
11121
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteBIGIQQkview', displayE);
|
|
11122
|
+
done();
|
|
11123
|
+
} catch (err) {
|
|
11124
|
+
log.error(`Test Failure: ${err}`);
|
|
11125
|
+
done(err);
|
|
11126
|
+
}
|
|
11127
|
+
});
|
|
11128
|
+
} catch (error) {
|
|
11129
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11130
|
+
done(error);
|
|
11131
|
+
}
|
|
11132
|
+
}).timeout(attemptTimeout);
|
|
11133
|
+
});
|
|
11134
|
+
|
|
11135
|
+
describe('#queryBIGIPQkviewTask - errors', () => {
|
|
11136
|
+
it('should have a queryBIGIPQkviewTask function', (done) => {
|
|
11137
|
+
try {
|
|
11138
|
+
assert.equal(true, typeof a.queryBIGIPQkviewTask === 'function');
|
|
11139
|
+
done();
|
|
11140
|
+
} catch (error) {
|
|
11141
|
+
log.error(`Test Failure: ${error}`);
|
|
11142
|
+
done(error);
|
|
11143
|
+
}
|
|
11144
|
+
}).timeout(attemptTimeout);
|
|
11145
|
+
it('should error if - missing bIGIPQKVIEWTASKID', (done) => {
|
|
11146
|
+
try {
|
|
11147
|
+
a.queryBIGIPQkviewTask(null, (data, error) => {
|
|
11148
|
+
try {
|
|
11149
|
+
const displayE = 'bIGIPQKVIEWTASKID is required';
|
|
11150
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-queryBIGIPQkviewTask', displayE);
|
|
11151
|
+
done();
|
|
11152
|
+
} catch (err) {
|
|
11153
|
+
log.error(`Test Failure: ${err}`);
|
|
11154
|
+
done(err);
|
|
11155
|
+
}
|
|
11156
|
+
});
|
|
11157
|
+
} catch (error) {
|
|
11158
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11159
|
+
done(error);
|
|
11160
|
+
}
|
|
11161
|
+
}).timeout(attemptTimeout);
|
|
11162
|
+
});
|
|
11163
|
+
|
|
11164
|
+
describe('#deleteaBIGIQQkview - errors', () => {
|
|
11165
|
+
it('should have a deleteaBIGIQQkview function', (done) => {
|
|
11166
|
+
try {
|
|
11167
|
+
assert.equal(true, typeof a.deleteaBIGIQQkview === 'function');
|
|
11168
|
+
done();
|
|
11169
|
+
} catch (error) {
|
|
11170
|
+
log.error(`Test Failure: ${error}`);
|
|
11171
|
+
done(error);
|
|
11172
|
+
}
|
|
11173
|
+
}).timeout(attemptTimeout);
|
|
11174
|
+
it('should error if - missing bIGIPQKVIEWTASKID', (done) => {
|
|
11175
|
+
try {
|
|
11176
|
+
a.deleteaBIGIQQkview(null, (data, error) => {
|
|
11177
|
+
try {
|
|
11178
|
+
const displayE = 'bIGIPQKVIEWTASKID is required';
|
|
11179
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteaBIGIQQkview', displayE);
|
|
11180
|
+
done();
|
|
11181
|
+
} catch (err) {
|
|
11182
|
+
log.error(`Test Failure: ${err}`);
|
|
11183
|
+
done(err);
|
|
11184
|
+
}
|
|
11185
|
+
});
|
|
11186
|
+
} catch (error) {
|
|
11187
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11188
|
+
done(error);
|
|
11189
|
+
}
|
|
11190
|
+
}).timeout(attemptTimeout);
|
|
11191
|
+
});
|
|
11192
|
+
|
|
11193
|
+
describe('#getExampleBIGIPiHealthReport - errors', () => {
|
|
11194
|
+
it('should have a getExampleBIGIPiHealthReport function', (done) => {
|
|
11195
|
+
try {
|
|
11196
|
+
assert.equal(true, typeof a.getExampleBIGIPiHealthReport === 'function');
|
|
11197
|
+
done();
|
|
11198
|
+
} catch (error) {
|
|
11199
|
+
log.error(`Test Failure: ${error}`);
|
|
11200
|
+
done(error);
|
|
11201
|
+
}
|
|
11202
|
+
}).timeout(attemptTimeout);
|
|
11203
|
+
});
|
|
11204
|
+
|
|
11205
|
+
describe('#getExampleBIGIPiHealthUploads - errors', () => {
|
|
11206
|
+
it('should have a getExampleBIGIPiHealthUploads function', (done) => {
|
|
11207
|
+
try {
|
|
11208
|
+
assert.equal(true, typeof a.getExampleBIGIPiHealthUploads === 'function');
|
|
11209
|
+
done();
|
|
11210
|
+
} catch (error) {
|
|
11211
|
+
log.error(`Test Failure: ${error}`);
|
|
11212
|
+
done(error);
|
|
11213
|
+
}
|
|
11214
|
+
}).timeout(attemptTimeout);
|
|
11215
|
+
});
|
|
11216
|
+
|
|
11217
|
+
describe('#getExampleBIGIPiHealthCredentials - errors', () => {
|
|
11218
|
+
it('should have a getExampleBIGIPiHealthCredentials function', (done) => {
|
|
11219
|
+
try {
|
|
11220
|
+
assert.equal(true, typeof a.getExampleBIGIPiHealthCredentials === 'function');
|
|
11221
|
+
done();
|
|
11222
|
+
} catch (error) {
|
|
11223
|
+
log.error(`Test Failure: ${error}`);
|
|
11224
|
+
done(error);
|
|
11225
|
+
}
|
|
11226
|
+
}).timeout(attemptTimeout);
|
|
11227
|
+
});
|
|
11228
|
+
|
|
11229
|
+
describe('#getExampleBIGIPiHealthConfig - errors', () => {
|
|
11230
|
+
it('should have a getExampleBIGIPiHealthConfig function', (done) => {
|
|
11231
|
+
try {
|
|
11232
|
+
assert.equal(true, typeof a.getExampleBIGIPiHealthConfig === 'function');
|
|
11233
|
+
done();
|
|
11234
|
+
} catch (error) {
|
|
11235
|
+
log.error(`Test Failure: ${error}`);
|
|
11236
|
+
done(error);
|
|
11237
|
+
}
|
|
11238
|
+
}).timeout(attemptTimeout);
|
|
11239
|
+
});
|
|
11240
|
+
|
|
11241
|
+
describe('#retrieveBIGIPiHealthReports - errors', () => {
|
|
11242
|
+
it('should have a retrieveBIGIPiHealthReports function', (done) => {
|
|
11243
|
+
try {
|
|
11244
|
+
assert.equal(true, typeof a.retrieveBIGIPiHealthReports === 'function');
|
|
11245
|
+
done();
|
|
11246
|
+
} catch (error) {
|
|
11247
|
+
log.error(`Test Failure: ${error}`);
|
|
11248
|
+
done(error);
|
|
11249
|
+
}
|
|
11250
|
+
}).timeout(attemptTimeout);
|
|
11251
|
+
});
|
|
11252
|
+
|
|
11253
|
+
describe('#generateBIGIPiHealthReport - errors', () => {
|
|
11254
|
+
it('should have a generateBIGIPiHealthReport function', (done) => {
|
|
11255
|
+
try {
|
|
11256
|
+
assert.equal(true, typeof a.generateBIGIPiHealthReport === 'function');
|
|
11257
|
+
done();
|
|
11258
|
+
} catch (error) {
|
|
11259
|
+
log.error(`Test Failure: ${error}`);
|
|
11260
|
+
done(error);
|
|
11261
|
+
}
|
|
11262
|
+
}).timeout(attemptTimeout);
|
|
11263
|
+
it('should error if - missing body', (done) => {
|
|
11264
|
+
try {
|
|
11265
|
+
a.generateBIGIPiHealthReport(null, (data, error) => {
|
|
11266
|
+
try {
|
|
11267
|
+
const displayE = 'body is required';
|
|
11268
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-generateBIGIPiHealthReport', displayE);
|
|
11269
|
+
done();
|
|
11270
|
+
} catch (err) {
|
|
11271
|
+
log.error(`Test Failure: ${err}`);
|
|
11272
|
+
done(err);
|
|
11273
|
+
}
|
|
11274
|
+
});
|
|
11275
|
+
} catch (error) {
|
|
11276
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11277
|
+
done(error);
|
|
11278
|
+
}
|
|
11279
|
+
}).timeout(attemptTimeout);
|
|
11280
|
+
});
|
|
11281
|
+
|
|
11282
|
+
describe('#retrieveBIGIPiHealthCredentials - errors', () => {
|
|
11283
|
+
it('should have a retrieveBIGIPiHealthCredentials function', (done) => {
|
|
11284
|
+
try {
|
|
11285
|
+
assert.equal(true, typeof a.retrieveBIGIPiHealthCredentials === 'function');
|
|
11286
|
+
done();
|
|
11287
|
+
} catch (error) {
|
|
11288
|
+
log.error(`Test Failure: ${error}`);
|
|
11289
|
+
done(error);
|
|
11290
|
+
}
|
|
11291
|
+
}).timeout(attemptTimeout);
|
|
11292
|
+
});
|
|
11293
|
+
|
|
11294
|
+
describe('#createTestBIGIPiHealthCredentials - errors', () => {
|
|
11295
|
+
it('should have a createTestBIGIPiHealthCredentials function', (done) => {
|
|
11296
|
+
try {
|
|
11297
|
+
assert.equal(true, typeof a.createTestBIGIPiHealthCredentials === 'function');
|
|
11298
|
+
done();
|
|
11299
|
+
} catch (error) {
|
|
11300
|
+
log.error(`Test Failure: ${error}`);
|
|
11301
|
+
done(error);
|
|
11302
|
+
}
|
|
11303
|
+
}).timeout(attemptTimeout);
|
|
11304
|
+
it('should error if - missing body', (done) => {
|
|
11305
|
+
try {
|
|
11306
|
+
a.createTestBIGIPiHealthCredentials(null, (data, error) => {
|
|
11307
|
+
try {
|
|
11308
|
+
const displayE = 'body is required';
|
|
11309
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createTestBIGIPiHealthCredentials', displayE);
|
|
11310
|
+
done();
|
|
11311
|
+
} catch (err) {
|
|
11312
|
+
log.error(`Test Failure: ${err}`);
|
|
11313
|
+
done(err);
|
|
11314
|
+
}
|
|
11315
|
+
});
|
|
11316
|
+
} catch (error) {
|
|
11317
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11318
|
+
done(error);
|
|
11319
|
+
}
|
|
11320
|
+
}).timeout(attemptTimeout);
|
|
11321
|
+
});
|
|
11322
|
+
|
|
11323
|
+
describe('#retrieveBIGIPiHealthConfig - errors', () => {
|
|
11324
|
+
it('should have a retrieveBIGIPiHealthConfig function', (done) => {
|
|
11325
|
+
try {
|
|
11326
|
+
assert.equal(true, typeof a.retrieveBIGIPiHealthConfig === 'function');
|
|
11327
|
+
done();
|
|
11328
|
+
} catch (error) {
|
|
11329
|
+
log.error(`Test Failure: ${error}`);
|
|
11330
|
+
done(error);
|
|
11331
|
+
}
|
|
11332
|
+
}).timeout(attemptTimeout);
|
|
11333
|
+
});
|
|
11334
|
+
|
|
11335
|
+
describe('#updateBIGIPiHealthConfig - errors', () => {
|
|
11336
|
+
it('should have a updateBIGIPiHealthConfig function', (done) => {
|
|
11337
|
+
try {
|
|
11338
|
+
assert.equal(true, typeof a.updateBIGIPiHealthConfig === 'function');
|
|
11339
|
+
done();
|
|
11340
|
+
} catch (error) {
|
|
11341
|
+
log.error(`Test Failure: ${error}`);
|
|
11342
|
+
done(error);
|
|
11343
|
+
}
|
|
11344
|
+
}).timeout(attemptTimeout);
|
|
11345
|
+
it('should error if - missing body', (done) => {
|
|
11346
|
+
try {
|
|
11347
|
+
a.updateBIGIPiHealthConfig(null, (data, error) => {
|
|
11348
|
+
try {
|
|
11349
|
+
const displayE = 'body is required';
|
|
11350
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-updateBIGIPiHealthConfig', displayE);
|
|
11351
|
+
done();
|
|
11352
|
+
} catch (err) {
|
|
11353
|
+
log.error(`Test Failure: ${err}`);
|
|
11354
|
+
done(err);
|
|
11355
|
+
}
|
|
11356
|
+
});
|
|
11357
|
+
} catch (error) {
|
|
11358
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11359
|
+
done(error);
|
|
11360
|
+
}
|
|
11361
|
+
}).timeout(attemptTimeout);
|
|
11362
|
+
});
|
|
11363
|
+
|
|
11364
|
+
describe('#retrieveBIGIPiHealthUploads - errors', () => {
|
|
11365
|
+
it('should have a retrieveBIGIPiHealthUploads function', (done) => {
|
|
11366
|
+
try {
|
|
11367
|
+
assert.equal(true, typeof a.retrieveBIGIPiHealthUploads === 'function');
|
|
11368
|
+
done();
|
|
11369
|
+
} catch (error) {
|
|
11370
|
+
log.error(`Test Failure: ${error}`);
|
|
11371
|
+
done(error);
|
|
11372
|
+
}
|
|
11373
|
+
}).timeout(attemptTimeout);
|
|
11374
|
+
});
|
|
11375
|
+
|
|
11376
|
+
describe('#createBIGIPiHealthUploadTask - errors', () => {
|
|
11377
|
+
it('should have a createBIGIPiHealthUploadTask function', (done) => {
|
|
11378
|
+
try {
|
|
11379
|
+
assert.equal(true, typeof a.createBIGIPiHealthUploadTask === 'function');
|
|
11380
|
+
done();
|
|
11381
|
+
} catch (error) {
|
|
11382
|
+
log.error(`Test Failure: ${error}`);
|
|
11383
|
+
done(error);
|
|
11384
|
+
}
|
|
11385
|
+
}).timeout(attemptTimeout);
|
|
11386
|
+
it('should error if - missing body', (done) => {
|
|
11387
|
+
try {
|
|
11388
|
+
a.createBIGIPiHealthUploadTask(null, (data, error) => {
|
|
11389
|
+
try {
|
|
11390
|
+
const displayE = 'body is required';
|
|
11391
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createBIGIPiHealthUploadTask', displayE);
|
|
11392
|
+
done();
|
|
11393
|
+
} catch (err) {
|
|
11394
|
+
log.error(`Test Failure: ${err}`);
|
|
11395
|
+
done(err);
|
|
11396
|
+
}
|
|
11397
|
+
});
|
|
11398
|
+
} catch (error) {
|
|
11399
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11400
|
+
done(error);
|
|
11401
|
+
}
|
|
11402
|
+
}).timeout(attemptTimeout);
|
|
11403
|
+
});
|
|
11404
|
+
|
|
11405
|
+
describe('#queryUploadTaskStatus - errors', () => {
|
|
11406
|
+
it('should have a queryUploadTaskStatus function', (done) => {
|
|
11407
|
+
try {
|
|
11408
|
+
assert.equal(true, typeof a.queryUploadTaskStatus === 'function');
|
|
11409
|
+
done();
|
|
11410
|
+
} catch (error) {
|
|
11411
|
+
log.error(`Test Failure: ${error}`);
|
|
11412
|
+
done(error);
|
|
11413
|
+
}
|
|
11414
|
+
}).timeout(attemptTimeout);
|
|
11415
|
+
it('should error if - missing iHealthUploadTaskId', (done) => {
|
|
11416
|
+
try {
|
|
11417
|
+
a.queryUploadTaskStatus(null, (data, error) => {
|
|
11418
|
+
try {
|
|
11419
|
+
const displayE = 'iHealthUploadTaskId is required';
|
|
11420
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-queryUploadTaskStatus', displayE);
|
|
11421
|
+
done();
|
|
11422
|
+
} catch (err) {
|
|
11423
|
+
log.error(`Test Failure: ${err}`);
|
|
11424
|
+
done(err);
|
|
11425
|
+
}
|
|
11426
|
+
});
|
|
11427
|
+
} catch (error) {
|
|
11428
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11429
|
+
done(error);
|
|
11430
|
+
}
|
|
11431
|
+
}).timeout(attemptTimeout);
|
|
11432
|
+
});
|
|
11433
|
+
|
|
11434
|
+
describe('#modifyTestBIGIPiHealthCredentials - errors', () => {
|
|
11435
|
+
it('should have a modifyTestBIGIPiHealthCredentials function', (done) => {
|
|
11436
|
+
try {
|
|
11437
|
+
assert.equal(true, typeof a.modifyTestBIGIPiHealthCredentials === 'function');
|
|
11438
|
+
done();
|
|
11439
|
+
} catch (error) {
|
|
11440
|
+
log.error(`Test Failure: ${error}`);
|
|
11441
|
+
done(error);
|
|
11442
|
+
}
|
|
11443
|
+
}).timeout(attemptTimeout);
|
|
11444
|
+
it('should error if - missing credentialsId', (done) => {
|
|
11445
|
+
try {
|
|
11446
|
+
a.modifyTestBIGIPiHealthCredentials(null, null, (data, error) => {
|
|
11447
|
+
try {
|
|
11448
|
+
const displayE = 'credentialsId is required';
|
|
11449
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-modifyTestBIGIPiHealthCredentials', displayE);
|
|
11450
|
+
done();
|
|
11451
|
+
} catch (err) {
|
|
11452
|
+
log.error(`Test Failure: ${err}`);
|
|
11453
|
+
done(err);
|
|
11454
|
+
}
|
|
11455
|
+
});
|
|
11456
|
+
} catch (error) {
|
|
11457
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11458
|
+
done(error);
|
|
11459
|
+
}
|
|
11460
|
+
}).timeout(attemptTimeout);
|
|
11461
|
+
it('should error if - missing body', (done) => {
|
|
11462
|
+
try {
|
|
11463
|
+
a.modifyTestBIGIPiHealthCredentials('fakeparam', null, (data, error) => {
|
|
11464
|
+
try {
|
|
11465
|
+
const displayE = 'body is required';
|
|
11466
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-modifyTestBIGIPiHealthCredentials', displayE);
|
|
11467
|
+
done();
|
|
11468
|
+
} catch (err) {
|
|
11469
|
+
log.error(`Test Failure: ${err}`);
|
|
11470
|
+
done(err);
|
|
11471
|
+
}
|
|
11472
|
+
});
|
|
11473
|
+
} catch (error) {
|
|
11474
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11475
|
+
done(error);
|
|
11476
|
+
}
|
|
11477
|
+
}).timeout(attemptTimeout);
|
|
11478
|
+
});
|
|
11479
|
+
|
|
11480
|
+
describe('#deleteTestBIGIPiHealthCredentials - errors', () => {
|
|
11481
|
+
it('should have a deleteTestBIGIPiHealthCredentials function', (done) => {
|
|
11482
|
+
try {
|
|
11483
|
+
assert.equal(true, typeof a.deleteTestBIGIPiHealthCredentials === 'function');
|
|
11484
|
+
done();
|
|
11485
|
+
} catch (error) {
|
|
11486
|
+
log.error(`Test Failure: ${error}`);
|
|
11487
|
+
done(error);
|
|
11488
|
+
}
|
|
11489
|
+
}).timeout(attemptTimeout);
|
|
11490
|
+
it('should error if - missing credentialsId', (done) => {
|
|
11491
|
+
try {
|
|
11492
|
+
a.deleteTestBIGIPiHealthCredentials(null, (data, error) => {
|
|
11493
|
+
try {
|
|
11494
|
+
const displayE = 'credentialsId is required';
|
|
11495
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteTestBIGIPiHealthCredentials', displayE);
|
|
11496
|
+
done();
|
|
11497
|
+
} catch (err) {
|
|
11498
|
+
log.error(`Test Failure: ${err}`);
|
|
11499
|
+
done(err);
|
|
11500
|
+
}
|
|
11501
|
+
});
|
|
11502
|
+
} catch (error) {
|
|
11503
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11504
|
+
done(error);
|
|
11505
|
+
}
|
|
11506
|
+
}).timeout(attemptTimeout);
|
|
11507
|
+
});
|
|
11508
|
+
|
|
11509
|
+
describe('#verifyProperSystemStatus - errors', () => {
|
|
11510
|
+
it('should have a verifyProperSystemStatus function', (done) => {
|
|
11511
|
+
try {
|
|
11512
|
+
assert.equal(true, typeof a.verifyProperSystemStatus === 'function');
|
|
11513
|
+
done();
|
|
11514
|
+
} catch (error) {
|
|
11515
|
+
log.error(`Test Failure: ${error}`);
|
|
11516
|
+
done(error);
|
|
11517
|
+
}
|
|
11518
|
+
}).timeout(attemptTimeout);
|
|
11519
|
+
});
|
|
11520
|
+
|
|
11521
|
+
describe('#verifyProperHAStatus - errors', () => {
|
|
11522
|
+
it('should have a verifyProperHAStatus function', (done) => {
|
|
11523
|
+
try {
|
|
11524
|
+
assert.equal(true, typeof a.verifyProperHAStatus === 'function');
|
|
11525
|
+
done();
|
|
11526
|
+
} catch (error) {
|
|
11527
|
+
log.error(`Test Failure: ${error}`);
|
|
11528
|
+
done(error);
|
|
11529
|
+
}
|
|
11530
|
+
}).timeout(attemptTimeout);
|
|
11531
|
+
});
|
|
11532
|
+
|
|
11533
|
+
describe('#getExampleBackupRestoreTask - errors', () => {
|
|
11534
|
+
it('should have a getExampleBackupRestoreTask function', (done) => {
|
|
11535
|
+
try {
|
|
11536
|
+
assert.equal(true, typeof a.getExampleBackupRestoreTask === 'function');
|
|
11537
|
+
done();
|
|
11538
|
+
} catch (error) {
|
|
11539
|
+
log.error(`Test Failure: ${error}`);
|
|
11540
|
+
done(error);
|
|
11541
|
+
}
|
|
11542
|
+
}).timeout(attemptTimeout);
|
|
11543
|
+
});
|
|
11544
|
+
|
|
11545
|
+
describe('#retrieveallBackupTasks - errors', () => {
|
|
11546
|
+
it('should have a retrieveallBackupTasks function', (done) => {
|
|
11547
|
+
try {
|
|
11548
|
+
assert.equal(true, typeof a.retrieveallBackupTasks === 'function');
|
|
11549
|
+
done();
|
|
11550
|
+
} catch (error) {
|
|
11551
|
+
log.error(`Test Failure: ${error}`);
|
|
11552
|
+
done(error);
|
|
11553
|
+
}
|
|
11554
|
+
}).timeout(attemptTimeout);
|
|
11555
|
+
});
|
|
11556
|
+
|
|
11557
|
+
describe('#generateBackupofDevice - errors', () => {
|
|
11558
|
+
it('should have a generateBackupofDevice function', (done) => {
|
|
11559
|
+
try {
|
|
11560
|
+
assert.equal(true, typeof a.generateBackupofDevice === 'function');
|
|
11561
|
+
done();
|
|
11562
|
+
} catch (error) {
|
|
11563
|
+
log.error(`Test Failure: ${error}`);
|
|
11564
|
+
done(error);
|
|
11565
|
+
}
|
|
11566
|
+
}).timeout(attemptTimeout);
|
|
11567
|
+
it('should error if - missing body', (done) => {
|
|
11568
|
+
try {
|
|
11569
|
+
a.generateBackupofDevice(null, (data, error) => {
|
|
11570
|
+
try {
|
|
11571
|
+
const displayE = 'body is required';
|
|
11572
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-generateBackupofDevice', displayE);
|
|
11573
|
+
done();
|
|
11574
|
+
} catch (err) {
|
|
11575
|
+
log.error(`Test Failure: ${err}`);
|
|
11576
|
+
done(err);
|
|
11577
|
+
}
|
|
11578
|
+
});
|
|
11579
|
+
} catch (error) {
|
|
11580
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11581
|
+
done(error);
|
|
11582
|
+
}
|
|
11583
|
+
}).timeout(attemptTimeout);
|
|
11584
|
+
});
|
|
11585
|
+
|
|
11586
|
+
describe('#queryBackupTaskStatus - errors', () => {
|
|
11587
|
+
it('should have a queryBackupTaskStatus function', (done) => {
|
|
11588
|
+
try {
|
|
11589
|
+
assert.equal(true, typeof a.queryBackupTaskStatus === 'function');
|
|
11590
|
+
done();
|
|
11591
|
+
} catch (error) {
|
|
11592
|
+
log.error(`Test Failure: ${error}`);
|
|
11593
|
+
done(error);
|
|
11594
|
+
}
|
|
11595
|
+
}).timeout(attemptTimeout);
|
|
11596
|
+
it('should error if - missing backupTaskId', (done) => {
|
|
11597
|
+
try {
|
|
11598
|
+
a.queryBackupTaskStatus(null, (data, error) => {
|
|
11599
|
+
try {
|
|
11600
|
+
const displayE = 'backupTaskId is required';
|
|
11601
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-queryBackupTaskStatus', displayE);
|
|
11602
|
+
done();
|
|
11603
|
+
} catch (err) {
|
|
11604
|
+
log.error(`Test Failure: ${err}`);
|
|
11605
|
+
done(err);
|
|
11606
|
+
}
|
|
11607
|
+
});
|
|
11608
|
+
} catch (error) {
|
|
11609
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11610
|
+
done(error);
|
|
11611
|
+
}
|
|
11612
|
+
}).timeout(attemptTimeout);
|
|
11613
|
+
});
|
|
11614
|
+
|
|
11615
|
+
describe('#deleteBackupFile - errors', () => {
|
|
11616
|
+
it('should have a deleteBackupFile function', (done) => {
|
|
11617
|
+
try {
|
|
11618
|
+
assert.equal(true, typeof a.deleteBackupFile === 'function');
|
|
11619
|
+
done();
|
|
11620
|
+
} catch (error) {
|
|
11621
|
+
log.error(`Test Failure: ${error}`);
|
|
11622
|
+
done(error);
|
|
11623
|
+
}
|
|
11624
|
+
}).timeout(attemptTimeout);
|
|
11625
|
+
it('should error if - missing backupTaskId', (done) => {
|
|
11626
|
+
try {
|
|
11627
|
+
a.deleteBackupFile(null, (data, error) => {
|
|
11628
|
+
try {
|
|
11629
|
+
const displayE = 'backupTaskId is required';
|
|
11630
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-deleteBackupFile', displayE);
|
|
11631
|
+
done();
|
|
11632
|
+
} catch (err) {
|
|
11633
|
+
log.error(`Test Failure: ${err}`);
|
|
11634
|
+
done(err);
|
|
11635
|
+
}
|
|
11636
|
+
});
|
|
11637
|
+
} catch (error) {
|
|
11638
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11639
|
+
done(error);
|
|
11640
|
+
}
|
|
11641
|
+
}).timeout(attemptTimeout);
|
|
11642
|
+
});
|
|
11643
|
+
|
|
11644
|
+
describe('#generateBackupFileDownloadPathHash - errors', () => {
|
|
11645
|
+
it('should have a generateBackupFileDownloadPathHash function', (done) => {
|
|
11646
|
+
try {
|
|
11647
|
+
assert.equal(true, typeof a.generateBackupFileDownloadPathHash === 'function');
|
|
11648
|
+
done();
|
|
11649
|
+
} catch (error) {
|
|
11650
|
+
log.error(`Test Failure: ${error}`);
|
|
11651
|
+
done(error);
|
|
11652
|
+
}
|
|
11653
|
+
}).timeout(attemptTimeout);
|
|
11654
|
+
it('should error if - missing body', (done) => {
|
|
11655
|
+
try {
|
|
11656
|
+
a.generateBackupFileDownloadPathHash(null, (data, error) => {
|
|
11657
|
+
try {
|
|
11658
|
+
const displayE = 'body is required';
|
|
11659
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-generateBackupFileDownloadPathHash', displayE);
|
|
11660
|
+
done();
|
|
11661
|
+
} catch (err) {
|
|
11662
|
+
log.error(`Test Failure: ${err}`);
|
|
11663
|
+
done(err);
|
|
11664
|
+
}
|
|
11665
|
+
});
|
|
11666
|
+
} catch (error) {
|
|
11667
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11668
|
+
done(error);
|
|
11669
|
+
}
|
|
11670
|
+
}).timeout(attemptTimeout);
|
|
11671
|
+
});
|
|
11672
|
+
|
|
11673
|
+
describe('#downloadBackupFileusingPathHash - errors', () => {
|
|
11674
|
+
it('should have a downloadBackupFileusingPathHash function', (done) => {
|
|
11675
|
+
try {
|
|
11676
|
+
assert.equal(true, typeof a.downloadBackupFileusingPathHash === 'function');
|
|
11677
|
+
done();
|
|
11678
|
+
} catch (error) {
|
|
11679
|
+
log.error(`Test Failure: ${error}`);
|
|
11680
|
+
done(error);
|
|
11681
|
+
}
|
|
11682
|
+
}).timeout(attemptTimeout);
|
|
11683
|
+
it('should error if - missing pathHash', (done) => {
|
|
11684
|
+
try {
|
|
11685
|
+
a.downloadBackupFileusingPathHash(null, (data, error) => {
|
|
11686
|
+
try {
|
|
11687
|
+
const displayE = 'pathHash is required';
|
|
11688
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-downloadBackupFileusingPathHash', displayE);
|
|
11689
|
+
done();
|
|
11690
|
+
} catch (err) {
|
|
11691
|
+
log.error(`Test Failure: ${err}`);
|
|
11692
|
+
done(err);
|
|
11693
|
+
}
|
|
11694
|
+
});
|
|
11695
|
+
} catch (error) {
|
|
11696
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11697
|
+
done(error);
|
|
11698
|
+
}
|
|
11699
|
+
}).timeout(attemptTimeout);
|
|
11700
|
+
});
|
|
11701
|
+
|
|
11702
|
+
describe('#getExampleBIGIPscripts - errors', () => {
|
|
11703
|
+
it('should have a getExampleBIGIPscripts function', (done) => {
|
|
11704
|
+
try {
|
|
11705
|
+
assert.equal(true, typeof a.getExampleBIGIPscripts === 'function');
|
|
11706
|
+
done();
|
|
11707
|
+
} catch (error) {
|
|
11708
|
+
log.error(`Test Failure: ${error}`);
|
|
11709
|
+
done(error);
|
|
11710
|
+
}
|
|
11711
|
+
}).timeout(attemptTimeout);
|
|
11712
|
+
});
|
|
11713
|
+
|
|
11714
|
+
describe('#retrieveallBIGIPscripts - errors', () => {
|
|
11715
|
+
it('should have a retrieveallBIGIPscripts function', (done) => {
|
|
11716
|
+
try {
|
|
11717
|
+
assert.equal(true, typeof a.retrieveallBIGIPscripts === 'function');
|
|
11718
|
+
done();
|
|
11719
|
+
} catch (error) {
|
|
11720
|
+
log.error(`Test Failure: ${error}`);
|
|
11721
|
+
done(error);
|
|
11722
|
+
}
|
|
11723
|
+
}).timeout(attemptTimeout);
|
|
11724
|
+
});
|
|
11725
|
+
|
|
11726
|
+
describe('#createaBIGIPscript - errors', () => {
|
|
11727
|
+
it('should have a createaBIGIPscript function', (done) => {
|
|
11728
|
+
try {
|
|
11729
|
+
assert.equal(true, typeof a.createaBIGIPscript === 'function');
|
|
11730
|
+
done();
|
|
11731
|
+
} catch (error) {
|
|
11732
|
+
log.error(`Test Failure: ${error}`);
|
|
11733
|
+
done(error);
|
|
11734
|
+
}
|
|
11735
|
+
}).timeout(attemptTimeout);
|
|
11736
|
+
it('should error if - missing body', (done) => {
|
|
11737
|
+
try {
|
|
11738
|
+
a.createaBIGIPscript(null, (data, error) => {
|
|
11739
|
+
try {
|
|
11740
|
+
const displayE = 'body is required';
|
|
11741
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-createaBIGIPscript', displayE);
|
|
11742
|
+
done();
|
|
11743
|
+
} catch (err) {
|
|
11744
|
+
log.error(`Test Failure: ${err}`);
|
|
11745
|
+
done(err);
|
|
11746
|
+
}
|
|
11747
|
+
});
|
|
11748
|
+
} catch (error) {
|
|
11749
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11750
|
+
done(error);
|
|
11751
|
+
}
|
|
11752
|
+
}).timeout(attemptTimeout);
|
|
11753
|
+
});
|
|
11754
|
+
|
|
11755
|
+
describe('#executeaBIGIPscript - errors', () => {
|
|
11756
|
+
it('should have a executeaBIGIPscript function', (done) => {
|
|
11757
|
+
try {
|
|
11758
|
+
assert.equal(true, typeof a.executeaBIGIPscript === 'function');
|
|
11759
|
+
done();
|
|
11760
|
+
} catch (error) {
|
|
11761
|
+
log.error(`Test Failure: ${error}`);
|
|
11762
|
+
done(error);
|
|
11763
|
+
}
|
|
11764
|
+
}).timeout(attemptTimeout);
|
|
11765
|
+
it('should error if - missing body', (done) => {
|
|
11766
|
+
try {
|
|
11767
|
+
a.executeaBIGIPscript(null, (data, error) => {
|
|
11768
|
+
try {
|
|
11769
|
+
const displayE = 'body is required';
|
|
11770
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-executeaBIGIPscript', displayE);
|
|
11771
|
+
done();
|
|
11772
|
+
} catch (err) {
|
|
11773
|
+
log.error(`Test Failure: ${err}`);
|
|
11774
|
+
done(err);
|
|
11775
|
+
}
|
|
11776
|
+
});
|
|
11777
|
+
} catch (error) {
|
|
11778
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11779
|
+
done(error);
|
|
11780
|
+
}
|
|
11781
|
+
}).timeout(attemptTimeout);
|
|
11782
|
+
});
|
|
11783
|
+
|
|
11784
|
+
describe('#queryBIGIPscriptstatus - errors', () => {
|
|
11785
|
+
it('should have a queryBIGIPscriptstatus function', (done) => {
|
|
11786
|
+
try {
|
|
11787
|
+
assert.equal(true, typeof a.queryBIGIPscriptstatus === 'function');
|
|
11788
|
+
done();
|
|
11789
|
+
} catch (error) {
|
|
11790
|
+
log.error(`Test Failure: ${error}`);
|
|
11791
|
+
done(error);
|
|
11792
|
+
}
|
|
11793
|
+
}).timeout(attemptTimeout);
|
|
11794
|
+
it('should error if - missing scriptTaskId', (done) => {
|
|
11795
|
+
try {
|
|
11796
|
+
a.queryBIGIPscriptstatus(null, (data, error) => {
|
|
11797
|
+
try {
|
|
11798
|
+
const displayE = 'scriptTaskId is required';
|
|
11799
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-queryBIGIPscriptstatus', displayE);
|
|
11800
|
+
done();
|
|
11801
|
+
} catch (err) {
|
|
11802
|
+
log.error(`Test Failure: ${err}`);
|
|
11803
|
+
done(err);
|
|
11804
|
+
}
|
|
11805
|
+
});
|
|
11806
|
+
} catch (error) {
|
|
11807
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11808
|
+
done(error);
|
|
11809
|
+
}
|
|
11810
|
+
}).timeout(attemptTimeout);
|
|
11811
|
+
});
|
|
11812
|
+
|
|
11813
|
+
describe('#retrieveallSoftwareImages - errors', () => {
|
|
11814
|
+
it('should have a retrieveallSoftwareImages function', (done) => {
|
|
11815
|
+
try {
|
|
11816
|
+
assert.equal(true, typeof a.retrieveallSoftwareImages === 'function');
|
|
11817
|
+
done();
|
|
11818
|
+
} catch (error) {
|
|
11819
|
+
log.error(`Test Failure: ${error}`);
|
|
11820
|
+
done(error);
|
|
11821
|
+
}
|
|
11822
|
+
}).timeout(attemptTimeout);
|
|
11823
|
+
});
|
|
11824
|
+
|
|
11825
|
+
describe('#retrieveallBIGIPsandimageslots - errors', () => {
|
|
11826
|
+
it('should have a retrieveallBIGIPsandimageslots function', (done) => {
|
|
11827
|
+
try {
|
|
11828
|
+
assert.equal(true, typeof a.retrieveallBIGIPsandimageslots === 'function');
|
|
11829
|
+
done();
|
|
11830
|
+
} catch (error) {
|
|
11831
|
+
log.error(`Test Failure: ${error}`);
|
|
11832
|
+
done(error);
|
|
11833
|
+
}
|
|
11834
|
+
}).timeout(attemptTimeout);
|
|
11835
|
+
});
|
|
11836
|
+
|
|
11837
|
+
describe('#retrievaallUpgradeTasks - errors', () => {
|
|
11838
|
+
it('should have a retrievaallUpgradeTasks function', (done) => {
|
|
11839
|
+
try {
|
|
11840
|
+
assert.equal(true, typeof a.retrievaallUpgradeTasks === 'function');
|
|
11841
|
+
done();
|
|
11842
|
+
} catch (error) {
|
|
11843
|
+
log.error(`Test Failure: ${error}`);
|
|
11844
|
+
done(error);
|
|
11845
|
+
}
|
|
11846
|
+
}).timeout(attemptTimeout);
|
|
11847
|
+
});
|
|
11848
|
+
|
|
11849
|
+
describe('#performSoftwareUpgrade - errors', () => {
|
|
11850
|
+
it('should have a performSoftwareUpgrade function', (done) => {
|
|
11851
|
+
try {
|
|
11852
|
+
assert.equal(true, typeof a.performSoftwareUpgrade === 'function');
|
|
11853
|
+
done();
|
|
11854
|
+
} catch (error) {
|
|
11855
|
+
log.error(`Test Failure: ${error}`);
|
|
11856
|
+
done(error);
|
|
11857
|
+
}
|
|
11858
|
+
}).timeout(attemptTimeout);
|
|
11859
|
+
it('should error if - missing body', (done) => {
|
|
11860
|
+
try {
|
|
11861
|
+
a.performSoftwareUpgrade(null, (data, error) => {
|
|
11862
|
+
try {
|
|
11863
|
+
const displayE = 'body is required';
|
|
11864
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-performSoftwareUpgrade', displayE);
|
|
11865
|
+
done();
|
|
11866
|
+
} catch (err) {
|
|
11867
|
+
log.error(`Test Failure: ${err}`);
|
|
11868
|
+
done(err);
|
|
11869
|
+
}
|
|
11870
|
+
});
|
|
11871
|
+
} catch (error) {
|
|
11872
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11873
|
+
done(error);
|
|
11874
|
+
}
|
|
11875
|
+
}).timeout(attemptTimeout);
|
|
11876
|
+
});
|
|
11877
|
+
|
|
11878
|
+
describe('#retrieveBIGIPdevices - errors', () => {
|
|
11879
|
+
it('should have a retrieveBIGIPdevices function', (done) => {
|
|
11880
|
+
try {
|
|
11881
|
+
assert.equal(true, typeof a.retrieveBIGIPdevices === 'function');
|
|
11882
|
+
done();
|
|
11883
|
+
} catch (error) {
|
|
11884
|
+
log.error(`Test Failure: ${error}`);
|
|
11885
|
+
done(error);
|
|
11886
|
+
}
|
|
11887
|
+
}).timeout(attemptTimeout);
|
|
11888
|
+
});
|
|
11889
|
+
|
|
11890
|
+
describe('#retrieveDeviceGroups - errors', () => {
|
|
11891
|
+
it('should have a retrieveDeviceGroups function', (done) => {
|
|
11892
|
+
try {
|
|
11893
|
+
assert.equal(true, typeof a.retrieveDeviceGroups === 'function');
|
|
11894
|
+
done();
|
|
11895
|
+
} catch (error) {
|
|
11896
|
+
log.error(`Test Failure: ${error}`);
|
|
11897
|
+
done(error);
|
|
11898
|
+
}
|
|
11899
|
+
}).timeout(attemptTimeout);
|
|
11900
|
+
});
|
|
11901
|
+
|
|
11902
|
+
describe('#retrieveBIGIPHealthSummary - errors', () => {
|
|
11903
|
+
it('should have a retrieveBIGIPHealthSummary function', (done) => {
|
|
11904
|
+
try {
|
|
11905
|
+
assert.equal(true, typeof a.retrieveBIGIPHealthSummary === 'function');
|
|
11906
|
+
done();
|
|
11907
|
+
} catch (error) {
|
|
11908
|
+
log.error(`Test Failure: ${error}`);
|
|
11909
|
+
done(error);
|
|
11910
|
+
}
|
|
11911
|
+
}).timeout(attemptTimeout);
|
|
11912
|
+
it('should error if - missing instanceUuid', (done) => {
|
|
11913
|
+
try {
|
|
11914
|
+
a.retrieveBIGIPHealthSummary(null, (data, error) => {
|
|
11915
|
+
try {
|
|
11916
|
+
const displayE = 'instanceUuid is required';
|
|
11917
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-retrieveBIGIPHealthSummary', displayE);
|
|
11918
|
+
done();
|
|
11919
|
+
} catch (err) {
|
|
11920
|
+
log.error(`Test Failure: ${err}`);
|
|
11921
|
+
done(err);
|
|
11922
|
+
}
|
|
11923
|
+
});
|
|
11924
|
+
} catch (error) {
|
|
11925
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11926
|
+
done(error);
|
|
11927
|
+
}
|
|
11928
|
+
}).timeout(attemptTimeout);
|
|
11929
|
+
});
|
|
11930
|
+
|
|
11931
|
+
describe('#retrieveBIGIPDeviceImportTasks - errors', () => {
|
|
11932
|
+
it('should have a retrieveBIGIPDeviceImportTasks function', (done) => {
|
|
11933
|
+
try {
|
|
11934
|
+
assert.equal(true, typeof a.retrieveBIGIPDeviceImportTasks === 'function');
|
|
11935
|
+
done();
|
|
11936
|
+
} catch (error) {
|
|
11937
|
+
log.error(`Test Failure: ${error}`);
|
|
11938
|
+
done(error);
|
|
11939
|
+
}
|
|
11940
|
+
}).timeout(attemptTimeout);
|
|
11941
|
+
});
|
|
11942
|
+
|
|
11943
|
+
describe('#performBIGIPDeviceImportusingmachineId - errors', () => {
|
|
11944
|
+
it('should have a performBIGIPDeviceImportusingmachineId function', (done) => {
|
|
11945
|
+
try {
|
|
11946
|
+
assert.equal(true, typeof a.performBIGIPDeviceImportusingmachineId === 'function');
|
|
11947
|
+
done();
|
|
11948
|
+
} catch (error) {
|
|
11949
|
+
log.error(`Test Failure: ${error}`);
|
|
11950
|
+
done(error);
|
|
11951
|
+
}
|
|
11952
|
+
}).timeout(attemptTimeout);
|
|
11953
|
+
it('should error if - missing body', (done) => {
|
|
11954
|
+
try {
|
|
11955
|
+
a.performBIGIPDeviceImportusingmachineId(null, (data, error) => {
|
|
11956
|
+
try {
|
|
11957
|
+
const displayE = 'body is required';
|
|
11958
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-performBIGIPDeviceImportusingmachineId', displayE);
|
|
11959
|
+
done();
|
|
11960
|
+
} catch (err) {
|
|
11961
|
+
log.error(`Test Failure: ${err}`);
|
|
11962
|
+
done(err);
|
|
11963
|
+
}
|
|
11964
|
+
});
|
|
11965
|
+
} catch (error) {
|
|
11966
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11967
|
+
done(error);
|
|
11968
|
+
}
|
|
11969
|
+
}).timeout(attemptTimeout);
|
|
11970
|
+
});
|
|
11971
|
+
|
|
11972
|
+
describe('#performBIGIPDeviceImportusingImportTask - errors', () => {
|
|
11973
|
+
it('should have a performBIGIPDeviceImportusingImportTask function', (done) => {
|
|
11974
|
+
try {
|
|
11975
|
+
assert.equal(true, typeof a.performBIGIPDeviceImportusingImportTask === 'function');
|
|
11976
|
+
done();
|
|
11977
|
+
} catch (error) {
|
|
11978
|
+
log.error(`Test Failure: ${error}`);
|
|
11979
|
+
done(error);
|
|
11980
|
+
}
|
|
11981
|
+
}).timeout(attemptTimeout);
|
|
11982
|
+
it('should error if - missing deviceImportId', (done) => {
|
|
11983
|
+
try {
|
|
11984
|
+
a.performBIGIPDeviceImportusingImportTask(null, null, (data, error) => {
|
|
11985
|
+
try {
|
|
11986
|
+
const displayE = 'deviceImportId is required';
|
|
11987
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-performBIGIPDeviceImportusingImportTask', displayE);
|
|
11988
|
+
done();
|
|
11989
|
+
} catch (err) {
|
|
11990
|
+
log.error(`Test Failure: ${err}`);
|
|
11991
|
+
done(err);
|
|
11992
|
+
}
|
|
11993
|
+
});
|
|
11994
|
+
} catch (error) {
|
|
11995
|
+
log.error(`Adapter Exception: ${error}`);
|
|
11996
|
+
done(error);
|
|
11997
|
+
}
|
|
11998
|
+
}).timeout(attemptTimeout);
|
|
11999
|
+
it('should error if - missing body', (done) => {
|
|
12000
|
+
try {
|
|
12001
|
+
a.performBIGIPDeviceImportusingImportTask('fakeparam', null, (data, error) => {
|
|
12002
|
+
try {
|
|
12003
|
+
const displayE = 'body is required';
|
|
12004
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-performBIGIPDeviceImportusingImportTask', displayE);
|
|
12005
|
+
done();
|
|
12006
|
+
} catch (err) {
|
|
12007
|
+
log.error(`Test Failure: ${err}`);
|
|
12008
|
+
done(err);
|
|
12009
|
+
}
|
|
12010
|
+
});
|
|
12011
|
+
} catch (error) {
|
|
12012
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12013
|
+
done(error);
|
|
12014
|
+
}
|
|
12015
|
+
}).timeout(attemptTimeout);
|
|
12016
|
+
});
|
|
12017
|
+
|
|
12018
|
+
describe('#monitorImportTask - errors', () => {
|
|
12019
|
+
it('should have a monitorImportTask function', (done) => {
|
|
12020
|
+
try {
|
|
12021
|
+
assert.equal(true, typeof a.monitorImportTask === 'function');
|
|
12022
|
+
done();
|
|
12023
|
+
} catch (error) {
|
|
12024
|
+
log.error(`Test Failure: ${error}`);
|
|
12025
|
+
done(error);
|
|
12026
|
+
}
|
|
12027
|
+
}).timeout(attemptTimeout);
|
|
12028
|
+
it('should error if - missing deviceImportId', (done) => {
|
|
12029
|
+
try {
|
|
12030
|
+
a.monitorImportTask(null, (data, error) => {
|
|
12031
|
+
try {
|
|
12032
|
+
const displayE = 'deviceImportId is required';
|
|
12033
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-monitorImportTask', displayE);
|
|
12034
|
+
done();
|
|
12035
|
+
} catch (err) {
|
|
12036
|
+
log.error(`Test Failure: ${err}`);
|
|
12037
|
+
done(err);
|
|
12038
|
+
}
|
|
12039
|
+
});
|
|
12040
|
+
} catch (error) {
|
|
12041
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12042
|
+
done(error);
|
|
12043
|
+
}
|
|
12044
|
+
}).timeout(attemptTimeout);
|
|
12045
|
+
});
|
|
12046
|
+
|
|
12047
|
+
describe('#queryDevicebyDeviceReference - errors', () => {
|
|
12048
|
+
it('should have a queryDevicebyDeviceReference function', (done) => {
|
|
12049
|
+
try {
|
|
12050
|
+
assert.equal(true, typeof a.queryDevicebyDeviceReference === 'function');
|
|
12051
|
+
done();
|
|
12052
|
+
} catch (error) {
|
|
12053
|
+
log.error(`Test Failure: ${error}`);
|
|
12054
|
+
done(error);
|
|
12055
|
+
}
|
|
12056
|
+
}).timeout(attemptTimeout);
|
|
12057
|
+
it('should error if - missing uuid', (done) => {
|
|
12058
|
+
try {
|
|
12059
|
+
a.queryDevicebyDeviceReference(null, (data, error) => {
|
|
12060
|
+
try {
|
|
12061
|
+
const displayE = 'uuid is required';
|
|
12062
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-queryDevicebyDeviceReference', displayE);
|
|
12063
|
+
done();
|
|
12064
|
+
} catch (err) {
|
|
12065
|
+
log.error(`Test Failure: ${err}`);
|
|
12066
|
+
done(err);
|
|
12067
|
+
}
|
|
12068
|
+
});
|
|
12069
|
+
} catch (error) {
|
|
12070
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12071
|
+
done(error);
|
|
12072
|
+
}
|
|
12073
|
+
}).timeout(attemptTimeout);
|
|
12074
|
+
});
|
|
12075
|
+
|
|
12076
|
+
describe('#queryDSCGroup - errors', () => {
|
|
12077
|
+
it('should have a queryDSCGroup function', (done) => {
|
|
12078
|
+
try {
|
|
12079
|
+
assert.equal(true, typeof a.queryDSCGroup === 'function');
|
|
12080
|
+
done();
|
|
12081
|
+
} catch (error) {
|
|
12082
|
+
log.error(`Test Failure: ${error}`);
|
|
12083
|
+
done(error);
|
|
12084
|
+
}
|
|
12085
|
+
}).timeout(attemptTimeout);
|
|
12086
|
+
});
|
|
12087
|
+
|
|
12088
|
+
describe('#queryDSCGroupByGroupId - errors', () => {
|
|
12089
|
+
it('should have a queryDSCGroupByGroupId function', (done) => {
|
|
12090
|
+
try {
|
|
12091
|
+
assert.equal(true, typeof a.queryDSCGroupByGroupId === 'function');
|
|
12092
|
+
done();
|
|
12093
|
+
} catch (error) {
|
|
12094
|
+
log.error(`Test Failure: ${error}`);
|
|
12095
|
+
done(error);
|
|
12096
|
+
}
|
|
12097
|
+
}).timeout(attemptTimeout);
|
|
12098
|
+
it('should error if - missing groupId', (done) => {
|
|
12099
|
+
try {
|
|
12100
|
+
a.queryDSCGroupByGroupId(null, (data, error) => {
|
|
12101
|
+
try {
|
|
12102
|
+
const displayE = 'groupId is required';
|
|
12103
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-f5_bigiq-adapter-queryDSCGroupByGroupId', displayE);
|
|
12104
|
+
done();
|
|
12105
|
+
} catch (err) {
|
|
12106
|
+
log.error(`Test Failure: ${err}`);
|
|
12107
|
+
done(err);
|
|
12108
|
+
}
|
|
12109
|
+
});
|
|
12110
|
+
} catch (error) {
|
|
12111
|
+
log.error(`Adapter Exception: ${error}`);
|
|
12112
|
+
done(error);
|
|
12113
|
+
}
|
|
12114
|
+
}).timeout(attemptTimeout);
|
|
12115
|
+
});
|
|
10965
12116
|
});
|
|
10966
12117
|
});
|