@itentialopensource/adapter-nautobot_v2 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CALLS.md +697 -0
- package/adapter.js +12798 -0
- package/entities/Cloud/action.json +1260 -0
- package/entities/Cloud/schema.json +1169 -0
- package/entities/Core/action.json +24 -0
- package/entities/Core/schema.json +19 -0
- package/entities/Metrics/action.json +25 -0
- package/entities/Metrics/schema.json +19 -0
- package/entities/Ui/action.json +24 -0
- package/entities/Ui/schema.json +19 -0
- package/entities/Wireless/action.json +1037 -0
- package/entities/Wireless/schema.json +2181 -0
- package/package.json +2 -2
- package/pronghorn.json +13605 -0
- package/report/adapterInfo.json +7 -7
- package/test/integration/adapterTestIntegration.js +3063 -0
- package/test/unit/adapterTestUnit.js +3466 -0
|
@@ -42091,5 +42091,3068 @@ describe('[integration] Nautobot_v2 Adapter Test', () => {
|
|
|
42091
42091
|
}
|
|
42092
42092
|
}).timeout(attemptTimeout);
|
|
42093
42093
|
});
|
|
42094
|
+
|
|
42095
|
+
describe('#getCloudCloudAccounts - errors', () => {
|
|
42096
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42097
|
+
try {
|
|
42098
|
+
a.getCloudCloudAccounts(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
42099
|
+
try {
|
|
42100
|
+
if (stub) {
|
|
42101
|
+
const displayE = 'Error 400 received on request';
|
|
42102
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42103
|
+
} else {
|
|
42104
|
+
runCommonAsserts(data, error);
|
|
42105
|
+
}
|
|
42106
|
+
saveMockData('Cloud', 'getCloudCloudAccounts', 'default', data);
|
|
42107
|
+
done();
|
|
42108
|
+
} catch (err) {
|
|
42109
|
+
log.error(`Test Failure: ${err}`);
|
|
42110
|
+
done(err);
|
|
42111
|
+
}
|
|
42112
|
+
});
|
|
42113
|
+
} catch (error) {
|
|
42114
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42115
|
+
done(error);
|
|
42116
|
+
}
|
|
42117
|
+
}).timeout(attemptTimeout);
|
|
42118
|
+
});
|
|
42119
|
+
|
|
42120
|
+
const cloudPostCloudCloudAccountsBodyParam = {};
|
|
42121
|
+
describe('#postCloudCloudAccounts - errors', () => {
|
|
42122
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42123
|
+
try {
|
|
42124
|
+
a.postCloudCloudAccounts(null, cloudPostCloudCloudAccountsBodyParam, null, (data, error) => {
|
|
42125
|
+
try {
|
|
42126
|
+
if (stub) {
|
|
42127
|
+
const displayE = 'Error 400 received on request';
|
|
42128
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42129
|
+
} else {
|
|
42130
|
+
runCommonAsserts(data, error);
|
|
42131
|
+
}
|
|
42132
|
+
saveMockData('Cloud', 'postCloudCloudAccounts', 'default', data);
|
|
42133
|
+
done();
|
|
42134
|
+
} catch (err) {
|
|
42135
|
+
log.error(`Test Failure: ${err}`);
|
|
42136
|
+
done(err);
|
|
42137
|
+
}
|
|
42138
|
+
});
|
|
42139
|
+
} catch (error) {
|
|
42140
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42141
|
+
done(error);
|
|
42142
|
+
}
|
|
42143
|
+
}).timeout(attemptTimeout);
|
|
42144
|
+
});
|
|
42145
|
+
|
|
42146
|
+
const cloudPutCloudCloudAccountsBodyParam = [
|
|
42147
|
+
{}
|
|
42148
|
+
];
|
|
42149
|
+
describe('#putCloudCloudAccounts - errors', () => {
|
|
42150
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42151
|
+
try {
|
|
42152
|
+
a.putCloudCloudAccounts(null, cloudPutCloudCloudAccountsBodyParam, null, (data, error) => {
|
|
42153
|
+
try {
|
|
42154
|
+
if (stub) {
|
|
42155
|
+
const displayE = 'Error 400 received on request';
|
|
42156
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42157
|
+
} else {
|
|
42158
|
+
runCommonAsserts(data, error);
|
|
42159
|
+
}
|
|
42160
|
+
saveMockData('Cloud', 'putCloudCloudAccounts', 'default', data);
|
|
42161
|
+
done();
|
|
42162
|
+
} catch (err) {
|
|
42163
|
+
log.error(`Test Failure: ${err}`);
|
|
42164
|
+
done(err);
|
|
42165
|
+
}
|
|
42166
|
+
});
|
|
42167
|
+
} catch (error) {
|
|
42168
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42169
|
+
done(error);
|
|
42170
|
+
}
|
|
42171
|
+
}).timeout(attemptTimeout);
|
|
42172
|
+
});
|
|
42173
|
+
|
|
42174
|
+
const cloudPatchCloudCloudAccountsBodyParam = [
|
|
42175
|
+
{}
|
|
42176
|
+
];
|
|
42177
|
+
describe('#patchCloudCloudAccounts - errors', () => {
|
|
42178
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42179
|
+
try {
|
|
42180
|
+
a.patchCloudCloudAccounts(null, cloudPatchCloudCloudAccountsBodyParam, null, (data, error) => {
|
|
42181
|
+
try {
|
|
42182
|
+
if (stub) {
|
|
42183
|
+
const displayE = 'Error 400 received on request';
|
|
42184
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42185
|
+
} else {
|
|
42186
|
+
runCommonAsserts(data, error);
|
|
42187
|
+
}
|
|
42188
|
+
saveMockData('Cloud', 'patchCloudCloudAccounts', 'default', data);
|
|
42189
|
+
done();
|
|
42190
|
+
} catch (err) {
|
|
42191
|
+
log.error(`Test Failure: ${err}`);
|
|
42192
|
+
done(err);
|
|
42193
|
+
}
|
|
42194
|
+
});
|
|
42195
|
+
} catch (error) {
|
|
42196
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42197
|
+
done(error);
|
|
42198
|
+
}
|
|
42199
|
+
}).timeout(attemptTimeout);
|
|
42200
|
+
});
|
|
42201
|
+
|
|
42202
|
+
const cloudDeleteCloudCloudAccountsBodyParam = [
|
|
42203
|
+
{}
|
|
42204
|
+
];
|
|
42205
|
+
describe('#deleteCloudCloudAccounts - errors', () => {
|
|
42206
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42207
|
+
try {
|
|
42208
|
+
a.deleteCloudCloudAccounts(null, cloudDeleteCloudCloudAccountsBodyParam, null, (data, error) => {
|
|
42209
|
+
try {
|
|
42210
|
+
if (stub) {
|
|
42211
|
+
const displayE = 'Error 400 received on request';
|
|
42212
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42213
|
+
} else {
|
|
42214
|
+
runCommonAsserts(data, error);
|
|
42215
|
+
}
|
|
42216
|
+
saveMockData('Cloud', 'deleteCloudCloudAccounts', 'default', data);
|
|
42217
|
+
done();
|
|
42218
|
+
} catch (err) {
|
|
42219
|
+
log.error(`Test Failure: ${err}`);
|
|
42220
|
+
done(err);
|
|
42221
|
+
}
|
|
42222
|
+
});
|
|
42223
|
+
} catch (error) {
|
|
42224
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42225
|
+
done(error);
|
|
42226
|
+
}
|
|
42227
|
+
}).timeout(attemptTimeout);
|
|
42228
|
+
});
|
|
42229
|
+
|
|
42230
|
+
describe('#getCloudCloudAccountsId - errors', () => {
|
|
42231
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42232
|
+
try {
|
|
42233
|
+
a.getCloudCloudAccountsId(null, 'fakedata', null, null, null, (data, error) => {
|
|
42234
|
+
try {
|
|
42235
|
+
if (stub) {
|
|
42236
|
+
const displayE = 'Error 400 received on request';
|
|
42237
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42238
|
+
} else {
|
|
42239
|
+
runCommonAsserts(data, error);
|
|
42240
|
+
}
|
|
42241
|
+
saveMockData('Cloud', 'getCloudCloudAccountsId', 'default', data);
|
|
42242
|
+
done();
|
|
42243
|
+
} catch (err) {
|
|
42244
|
+
log.error(`Test Failure: ${err}`);
|
|
42245
|
+
done(err);
|
|
42246
|
+
}
|
|
42247
|
+
});
|
|
42248
|
+
} catch (error) {
|
|
42249
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42250
|
+
done(error);
|
|
42251
|
+
}
|
|
42252
|
+
}).timeout(attemptTimeout);
|
|
42253
|
+
});
|
|
42254
|
+
|
|
42255
|
+
const cloudPutCloudCloudAccountsIdBodyParam = {};
|
|
42256
|
+
describe('#putCloudCloudAccountsId - errors', () => {
|
|
42257
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42258
|
+
try {
|
|
42259
|
+
a.putCloudCloudAccountsId(null, 'fakedata', cloudPutCloudCloudAccountsIdBodyParam, null, (data, error) => {
|
|
42260
|
+
try {
|
|
42261
|
+
if (stub) {
|
|
42262
|
+
const displayE = 'Error 400 received on request';
|
|
42263
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42264
|
+
} else {
|
|
42265
|
+
runCommonAsserts(data, error);
|
|
42266
|
+
}
|
|
42267
|
+
saveMockData('Cloud', 'putCloudCloudAccountsId', 'default', data);
|
|
42268
|
+
done();
|
|
42269
|
+
} catch (err) {
|
|
42270
|
+
log.error(`Test Failure: ${err}`);
|
|
42271
|
+
done(err);
|
|
42272
|
+
}
|
|
42273
|
+
});
|
|
42274
|
+
} catch (error) {
|
|
42275
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42276
|
+
done(error);
|
|
42277
|
+
}
|
|
42278
|
+
}).timeout(attemptTimeout);
|
|
42279
|
+
});
|
|
42280
|
+
|
|
42281
|
+
const cloudPatchCloudCloudAccountsIdBodyParam = {
|
|
42282
|
+
type: null
|
|
42283
|
+
};
|
|
42284
|
+
describe('#patchCloudCloudAccountsId - errors', () => {
|
|
42285
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42286
|
+
try {
|
|
42287
|
+
a.patchCloudCloudAccountsId(null, 'fakedata', cloudPatchCloudCloudAccountsIdBodyParam, null, (data, error) => {
|
|
42288
|
+
try {
|
|
42289
|
+
if (stub) {
|
|
42290
|
+
const displayE = 'Error 400 received on request';
|
|
42291
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42292
|
+
} else {
|
|
42293
|
+
runCommonAsserts(data, error);
|
|
42294
|
+
}
|
|
42295
|
+
saveMockData('Cloud', 'patchCloudCloudAccountsId', 'default', data);
|
|
42296
|
+
done();
|
|
42297
|
+
} catch (err) {
|
|
42298
|
+
log.error(`Test Failure: ${err}`);
|
|
42299
|
+
done(err);
|
|
42300
|
+
}
|
|
42301
|
+
});
|
|
42302
|
+
} catch (error) {
|
|
42303
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42304
|
+
done(error);
|
|
42305
|
+
}
|
|
42306
|
+
}).timeout(attemptTimeout);
|
|
42307
|
+
});
|
|
42308
|
+
|
|
42309
|
+
describe('#deleteCloudCloudAccountsId - errors', () => {
|
|
42310
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42311
|
+
try {
|
|
42312
|
+
a.deleteCloudCloudAccountsId(null, 'fakedata', null, (data, error) => {
|
|
42313
|
+
try {
|
|
42314
|
+
if (stub) {
|
|
42315
|
+
const displayE = 'Error 400 received on request';
|
|
42316
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42317
|
+
} else {
|
|
42318
|
+
runCommonAsserts(data, error);
|
|
42319
|
+
}
|
|
42320
|
+
saveMockData('Cloud', 'deleteCloudCloudAccountsId', 'default', data);
|
|
42321
|
+
done();
|
|
42322
|
+
} catch (err) {
|
|
42323
|
+
log.error(`Test Failure: ${err}`);
|
|
42324
|
+
done(err);
|
|
42325
|
+
}
|
|
42326
|
+
});
|
|
42327
|
+
} catch (error) {
|
|
42328
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42329
|
+
done(error);
|
|
42330
|
+
}
|
|
42331
|
+
}).timeout(attemptTimeout);
|
|
42332
|
+
});
|
|
42333
|
+
|
|
42334
|
+
describe('#getCloudCloudAccountsIdNotes - errors', () => {
|
|
42335
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42336
|
+
try {
|
|
42337
|
+
a.getCloudCloudAccountsIdNotes(null, 'fakedata', null, null, null, null, null, (data, error) => {
|
|
42338
|
+
try {
|
|
42339
|
+
if (stub) {
|
|
42340
|
+
const displayE = 'Error 400 received on request';
|
|
42341
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42342
|
+
} else {
|
|
42343
|
+
runCommonAsserts(data, error);
|
|
42344
|
+
}
|
|
42345
|
+
saveMockData('Cloud', 'getCloudCloudAccountsIdNotes', 'default', data);
|
|
42346
|
+
done();
|
|
42347
|
+
} catch (err) {
|
|
42348
|
+
log.error(`Test Failure: ${err}`);
|
|
42349
|
+
done(err);
|
|
42350
|
+
}
|
|
42351
|
+
});
|
|
42352
|
+
} catch (error) {
|
|
42353
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42354
|
+
done(error);
|
|
42355
|
+
}
|
|
42356
|
+
}).timeout(attemptTimeout);
|
|
42357
|
+
});
|
|
42358
|
+
|
|
42359
|
+
const cloudPostCloudCloudAccountsIdNotesBodyParam = {};
|
|
42360
|
+
describe('#postCloudCloudAccountsIdNotes - errors', () => {
|
|
42361
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42362
|
+
try {
|
|
42363
|
+
a.postCloudCloudAccountsIdNotes(null, 'fakedata', cloudPostCloudCloudAccountsIdNotesBodyParam, null, (data, error) => {
|
|
42364
|
+
try {
|
|
42365
|
+
if (stub) {
|
|
42366
|
+
const displayE = 'Error 400 received on request';
|
|
42367
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42368
|
+
} else {
|
|
42369
|
+
runCommonAsserts(data, error);
|
|
42370
|
+
}
|
|
42371
|
+
saveMockData('Cloud', 'postCloudCloudAccountsIdNotes', 'default', data);
|
|
42372
|
+
done();
|
|
42373
|
+
} catch (err) {
|
|
42374
|
+
log.error(`Test Failure: ${err}`);
|
|
42375
|
+
done(err);
|
|
42376
|
+
}
|
|
42377
|
+
});
|
|
42378
|
+
} catch (error) {
|
|
42379
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42380
|
+
done(error);
|
|
42381
|
+
}
|
|
42382
|
+
}).timeout(attemptTimeout);
|
|
42383
|
+
});
|
|
42384
|
+
|
|
42385
|
+
describe('#getCloudCloudNetworkPrefixAssignments - errors', () => {
|
|
42386
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42387
|
+
try {
|
|
42388
|
+
a.getCloudCloudNetworkPrefixAssignments(null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
42389
|
+
try {
|
|
42390
|
+
if (stub) {
|
|
42391
|
+
const displayE = 'Error 400 received on request';
|
|
42392
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42393
|
+
} else {
|
|
42394
|
+
runCommonAsserts(data, error);
|
|
42395
|
+
}
|
|
42396
|
+
saveMockData('Cloud', 'getCloudCloudNetworkPrefixAssignments', 'default', data);
|
|
42397
|
+
done();
|
|
42398
|
+
} catch (err) {
|
|
42399
|
+
log.error(`Test Failure: ${err}`);
|
|
42400
|
+
done(err);
|
|
42401
|
+
}
|
|
42402
|
+
});
|
|
42403
|
+
} catch (error) {
|
|
42404
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42405
|
+
done(error);
|
|
42406
|
+
}
|
|
42407
|
+
}).timeout(attemptTimeout);
|
|
42408
|
+
});
|
|
42409
|
+
|
|
42410
|
+
const cloudPostCloudCloudNetworkPrefixAssignmentsBodyParam = {};
|
|
42411
|
+
describe('#postCloudCloudNetworkPrefixAssignments - errors', () => {
|
|
42412
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42413
|
+
try {
|
|
42414
|
+
a.postCloudCloudNetworkPrefixAssignments(null, cloudPostCloudCloudNetworkPrefixAssignmentsBodyParam, null, (data, error) => {
|
|
42415
|
+
try {
|
|
42416
|
+
if (stub) {
|
|
42417
|
+
const displayE = 'Error 400 received on request';
|
|
42418
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42419
|
+
} else {
|
|
42420
|
+
runCommonAsserts(data, error);
|
|
42421
|
+
}
|
|
42422
|
+
saveMockData('Cloud', 'postCloudCloudNetworkPrefixAssignments', 'default', data);
|
|
42423
|
+
done();
|
|
42424
|
+
} catch (err) {
|
|
42425
|
+
log.error(`Test Failure: ${err}`);
|
|
42426
|
+
done(err);
|
|
42427
|
+
}
|
|
42428
|
+
});
|
|
42429
|
+
} catch (error) {
|
|
42430
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42431
|
+
done(error);
|
|
42432
|
+
}
|
|
42433
|
+
}).timeout(attemptTimeout);
|
|
42434
|
+
});
|
|
42435
|
+
|
|
42436
|
+
const cloudPutCloudCloudNetworkPrefixAssignmentsBodyParam = [
|
|
42437
|
+
{}
|
|
42438
|
+
];
|
|
42439
|
+
describe('#putCloudCloudNetworkPrefixAssignments - errors', () => {
|
|
42440
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42441
|
+
try {
|
|
42442
|
+
a.putCloudCloudNetworkPrefixAssignments(null, cloudPutCloudCloudNetworkPrefixAssignmentsBodyParam, null, (data, error) => {
|
|
42443
|
+
try {
|
|
42444
|
+
if (stub) {
|
|
42445
|
+
const displayE = 'Error 400 received on request';
|
|
42446
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42447
|
+
} else {
|
|
42448
|
+
runCommonAsserts(data, error);
|
|
42449
|
+
}
|
|
42450
|
+
saveMockData('Cloud', 'putCloudCloudNetworkPrefixAssignments', 'default', data);
|
|
42451
|
+
done();
|
|
42452
|
+
} catch (err) {
|
|
42453
|
+
log.error(`Test Failure: ${err}`);
|
|
42454
|
+
done(err);
|
|
42455
|
+
}
|
|
42456
|
+
});
|
|
42457
|
+
} catch (error) {
|
|
42458
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42459
|
+
done(error);
|
|
42460
|
+
}
|
|
42461
|
+
}).timeout(attemptTimeout);
|
|
42462
|
+
});
|
|
42463
|
+
|
|
42464
|
+
const cloudPatchCloudCloudNetworkPrefixAssignmentsBodyParam = [
|
|
42465
|
+
{}
|
|
42466
|
+
];
|
|
42467
|
+
describe('#patchCloudCloudNetworkPrefixAssignments - errors', () => {
|
|
42468
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42469
|
+
try {
|
|
42470
|
+
a.patchCloudCloudNetworkPrefixAssignments(null, cloudPatchCloudCloudNetworkPrefixAssignmentsBodyParam, null, (data, error) => {
|
|
42471
|
+
try {
|
|
42472
|
+
if (stub) {
|
|
42473
|
+
const displayE = 'Error 400 received on request';
|
|
42474
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42475
|
+
} else {
|
|
42476
|
+
runCommonAsserts(data, error);
|
|
42477
|
+
}
|
|
42478
|
+
saveMockData('Cloud', 'patchCloudCloudNetworkPrefixAssignments', 'default', data);
|
|
42479
|
+
done();
|
|
42480
|
+
} catch (err) {
|
|
42481
|
+
log.error(`Test Failure: ${err}`);
|
|
42482
|
+
done(err);
|
|
42483
|
+
}
|
|
42484
|
+
});
|
|
42485
|
+
} catch (error) {
|
|
42486
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42487
|
+
done(error);
|
|
42488
|
+
}
|
|
42489
|
+
}).timeout(attemptTimeout);
|
|
42490
|
+
});
|
|
42491
|
+
|
|
42492
|
+
const cloudDeleteCloudCloudNetworkPrefixAssignmentsBodyParam = [
|
|
42493
|
+
{}
|
|
42494
|
+
];
|
|
42495
|
+
describe('#deleteCloudCloudNetworkPrefixAssignments - errors', () => {
|
|
42496
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42497
|
+
try {
|
|
42498
|
+
a.deleteCloudCloudNetworkPrefixAssignments(null, cloudDeleteCloudCloudNetworkPrefixAssignmentsBodyParam, null, (data, error) => {
|
|
42499
|
+
try {
|
|
42500
|
+
if (stub) {
|
|
42501
|
+
const displayE = 'Error 400 received on request';
|
|
42502
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42503
|
+
} else {
|
|
42504
|
+
runCommonAsserts(data, error);
|
|
42505
|
+
}
|
|
42506
|
+
saveMockData('Cloud', 'deleteCloudCloudNetworkPrefixAssignments', 'default', data);
|
|
42507
|
+
done();
|
|
42508
|
+
} catch (err) {
|
|
42509
|
+
log.error(`Test Failure: ${err}`);
|
|
42510
|
+
done(err);
|
|
42511
|
+
}
|
|
42512
|
+
});
|
|
42513
|
+
} catch (error) {
|
|
42514
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42515
|
+
done(error);
|
|
42516
|
+
}
|
|
42517
|
+
}).timeout(attemptTimeout);
|
|
42518
|
+
});
|
|
42519
|
+
|
|
42520
|
+
describe('#getCloudCloudNetworkPrefixAssignmentsId - errors', () => {
|
|
42521
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42522
|
+
try {
|
|
42523
|
+
a.getCloudCloudNetworkPrefixAssignmentsId(null, 'fakedata', null, null, null, (data, error) => {
|
|
42524
|
+
try {
|
|
42525
|
+
if (stub) {
|
|
42526
|
+
const displayE = 'Error 400 received on request';
|
|
42527
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42528
|
+
} else {
|
|
42529
|
+
runCommonAsserts(data, error);
|
|
42530
|
+
}
|
|
42531
|
+
saveMockData('Cloud', 'getCloudCloudNetworkPrefixAssignmentsId', 'default', data);
|
|
42532
|
+
done();
|
|
42533
|
+
} catch (err) {
|
|
42534
|
+
log.error(`Test Failure: ${err}`);
|
|
42535
|
+
done(err);
|
|
42536
|
+
}
|
|
42537
|
+
});
|
|
42538
|
+
} catch (error) {
|
|
42539
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42540
|
+
done(error);
|
|
42541
|
+
}
|
|
42542
|
+
}).timeout(attemptTimeout);
|
|
42543
|
+
});
|
|
42544
|
+
|
|
42545
|
+
const cloudPutCloudCloudNetworkPrefixAssignmentsIdBodyParam = {};
|
|
42546
|
+
describe('#putCloudCloudNetworkPrefixAssignmentsId - errors', () => {
|
|
42547
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42548
|
+
try {
|
|
42549
|
+
a.putCloudCloudNetworkPrefixAssignmentsId(null, 'fakedata', cloudPutCloudCloudNetworkPrefixAssignmentsIdBodyParam, null, (data, error) => {
|
|
42550
|
+
try {
|
|
42551
|
+
if (stub) {
|
|
42552
|
+
const displayE = 'Error 400 received on request';
|
|
42553
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42554
|
+
} else {
|
|
42555
|
+
runCommonAsserts(data, error);
|
|
42556
|
+
}
|
|
42557
|
+
saveMockData('Cloud', 'putCloudCloudNetworkPrefixAssignmentsId', 'default', data);
|
|
42558
|
+
done();
|
|
42559
|
+
} catch (err) {
|
|
42560
|
+
log.error(`Test Failure: ${err}`);
|
|
42561
|
+
done(err);
|
|
42562
|
+
}
|
|
42563
|
+
});
|
|
42564
|
+
} catch (error) {
|
|
42565
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42566
|
+
done(error);
|
|
42567
|
+
}
|
|
42568
|
+
}).timeout(attemptTimeout);
|
|
42569
|
+
});
|
|
42570
|
+
|
|
42571
|
+
const cloudPatchCloudCloudNetworkPrefixAssignmentsIdBodyParam = {
|
|
42572
|
+
type: null
|
|
42573
|
+
};
|
|
42574
|
+
describe('#patchCloudCloudNetworkPrefixAssignmentsId - errors', () => {
|
|
42575
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42576
|
+
try {
|
|
42577
|
+
a.patchCloudCloudNetworkPrefixAssignmentsId(null, 'fakedata', cloudPatchCloudCloudNetworkPrefixAssignmentsIdBodyParam, null, (data, error) => {
|
|
42578
|
+
try {
|
|
42579
|
+
if (stub) {
|
|
42580
|
+
const displayE = 'Error 400 received on request';
|
|
42581
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42582
|
+
} else {
|
|
42583
|
+
runCommonAsserts(data, error);
|
|
42584
|
+
}
|
|
42585
|
+
saveMockData('Cloud', 'patchCloudCloudNetworkPrefixAssignmentsId', 'default', data);
|
|
42586
|
+
done();
|
|
42587
|
+
} catch (err) {
|
|
42588
|
+
log.error(`Test Failure: ${err}`);
|
|
42589
|
+
done(err);
|
|
42590
|
+
}
|
|
42591
|
+
});
|
|
42592
|
+
} catch (error) {
|
|
42593
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42594
|
+
done(error);
|
|
42595
|
+
}
|
|
42596
|
+
}).timeout(attemptTimeout);
|
|
42597
|
+
});
|
|
42598
|
+
|
|
42599
|
+
describe('#deleteCloudCloudNetworkPrefixAssignmentsId - errors', () => {
|
|
42600
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42601
|
+
try {
|
|
42602
|
+
a.deleteCloudCloudNetworkPrefixAssignmentsId(null, 'fakedata', null, (data, error) => {
|
|
42603
|
+
try {
|
|
42604
|
+
if (stub) {
|
|
42605
|
+
const displayE = 'Error 400 received on request';
|
|
42606
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42607
|
+
} else {
|
|
42608
|
+
runCommonAsserts(data, error);
|
|
42609
|
+
}
|
|
42610
|
+
saveMockData('Cloud', 'deleteCloudCloudNetworkPrefixAssignmentsId', 'default', data);
|
|
42611
|
+
done();
|
|
42612
|
+
} catch (err) {
|
|
42613
|
+
log.error(`Test Failure: ${err}`);
|
|
42614
|
+
done(err);
|
|
42615
|
+
}
|
|
42616
|
+
});
|
|
42617
|
+
} catch (error) {
|
|
42618
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42619
|
+
done(error);
|
|
42620
|
+
}
|
|
42621
|
+
}).timeout(attemptTimeout);
|
|
42622
|
+
});
|
|
42623
|
+
|
|
42624
|
+
describe('#getCloudCloudNetworks - errors', () => {
|
|
42625
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42626
|
+
try {
|
|
42627
|
+
a.getCloudCloudNetworks(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
42628
|
+
try {
|
|
42629
|
+
if (stub) {
|
|
42630
|
+
const displayE = 'Error 400 received on request';
|
|
42631
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42632
|
+
} else {
|
|
42633
|
+
runCommonAsserts(data, error);
|
|
42634
|
+
}
|
|
42635
|
+
saveMockData('Cloud', 'getCloudCloudNetworks', 'default', data);
|
|
42636
|
+
done();
|
|
42637
|
+
} catch (err) {
|
|
42638
|
+
log.error(`Test Failure: ${err}`);
|
|
42639
|
+
done(err);
|
|
42640
|
+
}
|
|
42641
|
+
});
|
|
42642
|
+
} catch (error) {
|
|
42643
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42644
|
+
done(error);
|
|
42645
|
+
}
|
|
42646
|
+
}).timeout(attemptTimeout);
|
|
42647
|
+
});
|
|
42648
|
+
|
|
42649
|
+
const cloudPostCloudCloudNetworksBodyParam = {};
|
|
42650
|
+
describe('#postCloudCloudNetworks - errors', () => {
|
|
42651
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42652
|
+
try {
|
|
42653
|
+
a.postCloudCloudNetworks(null, cloudPostCloudCloudNetworksBodyParam, null, (data, error) => {
|
|
42654
|
+
try {
|
|
42655
|
+
if (stub) {
|
|
42656
|
+
const displayE = 'Error 400 received on request';
|
|
42657
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42658
|
+
} else {
|
|
42659
|
+
runCommonAsserts(data, error);
|
|
42660
|
+
}
|
|
42661
|
+
saveMockData('Cloud', 'postCloudCloudNetworks', 'default', data);
|
|
42662
|
+
done();
|
|
42663
|
+
} catch (err) {
|
|
42664
|
+
log.error(`Test Failure: ${err}`);
|
|
42665
|
+
done(err);
|
|
42666
|
+
}
|
|
42667
|
+
});
|
|
42668
|
+
} catch (error) {
|
|
42669
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42670
|
+
done(error);
|
|
42671
|
+
}
|
|
42672
|
+
}).timeout(attemptTimeout);
|
|
42673
|
+
});
|
|
42674
|
+
|
|
42675
|
+
const cloudPutCloudCloudNetworksBodyParam = [
|
|
42676
|
+
{}
|
|
42677
|
+
];
|
|
42678
|
+
describe('#putCloudCloudNetworks - errors', () => {
|
|
42679
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42680
|
+
try {
|
|
42681
|
+
a.putCloudCloudNetworks(null, cloudPutCloudCloudNetworksBodyParam, null, (data, error) => {
|
|
42682
|
+
try {
|
|
42683
|
+
if (stub) {
|
|
42684
|
+
const displayE = 'Error 400 received on request';
|
|
42685
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42686
|
+
} else {
|
|
42687
|
+
runCommonAsserts(data, error);
|
|
42688
|
+
}
|
|
42689
|
+
saveMockData('Cloud', 'putCloudCloudNetworks', 'default', data);
|
|
42690
|
+
done();
|
|
42691
|
+
} catch (err) {
|
|
42692
|
+
log.error(`Test Failure: ${err}`);
|
|
42693
|
+
done(err);
|
|
42694
|
+
}
|
|
42695
|
+
});
|
|
42696
|
+
} catch (error) {
|
|
42697
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42698
|
+
done(error);
|
|
42699
|
+
}
|
|
42700
|
+
}).timeout(attemptTimeout);
|
|
42701
|
+
});
|
|
42702
|
+
|
|
42703
|
+
const cloudPatchCloudCloudNetworksBodyParam = [
|
|
42704
|
+
{}
|
|
42705
|
+
];
|
|
42706
|
+
describe('#patchCloudCloudNetworks - errors', () => {
|
|
42707
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42708
|
+
try {
|
|
42709
|
+
a.patchCloudCloudNetworks(null, cloudPatchCloudCloudNetworksBodyParam, null, (data, error) => {
|
|
42710
|
+
try {
|
|
42711
|
+
if (stub) {
|
|
42712
|
+
const displayE = 'Error 400 received on request';
|
|
42713
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42714
|
+
} else {
|
|
42715
|
+
runCommonAsserts(data, error);
|
|
42716
|
+
}
|
|
42717
|
+
saveMockData('Cloud', 'patchCloudCloudNetworks', 'default', data);
|
|
42718
|
+
done();
|
|
42719
|
+
} catch (err) {
|
|
42720
|
+
log.error(`Test Failure: ${err}`);
|
|
42721
|
+
done(err);
|
|
42722
|
+
}
|
|
42723
|
+
});
|
|
42724
|
+
} catch (error) {
|
|
42725
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42726
|
+
done(error);
|
|
42727
|
+
}
|
|
42728
|
+
}).timeout(attemptTimeout);
|
|
42729
|
+
});
|
|
42730
|
+
|
|
42731
|
+
const cloudDeleteCloudCloudNetworksBodyParam = [
|
|
42732
|
+
{}
|
|
42733
|
+
];
|
|
42734
|
+
describe('#deleteCloudCloudNetworks - errors', () => {
|
|
42735
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42736
|
+
try {
|
|
42737
|
+
a.deleteCloudCloudNetworks(null, cloudDeleteCloudCloudNetworksBodyParam, null, (data, error) => {
|
|
42738
|
+
try {
|
|
42739
|
+
if (stub) {
|
|
42740
|
+
const displayE = 'Error 400 received on request';
|
|
42741
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42742
|
+
} else {
|
|
42743
|
+
runCommonAsserts(data, error);
|
|
42744
|
+
}
|
|
42745
|
+
saveMockData('Cloud', 'deleteCloudCloudNetworks', 'default', data);
|
|
42746
|
+
done();
|
|
42747
|
+
} catch (err) {
|
|
42748
|
+
log.error(`Test Failure: ${err}`);
|
|
42749
|
+
done(err);
|
|
42750
|
+
}
|
|
42751
|
+
});
|
|
42752
|
+
} catch (error) {
|
|
42753
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42754
|
+
done(error);
|
|
42755
|
+
}
|
|
42756
|
+
}).timeout(attemptTimeout);
|
|
42757
|
+
});
|
|
42758
|
+
|
|
42759
|
+
describe('#getCloudCloudNetworksId - errors', () => {
|
|
42760
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42761
|
+
try {
|
|
42762
|
+
a.getCloudCloudNetworksId(null, 'fakedata', null, null, null, (data, error) => {
|
|
42763
|
+
try {
|
|
42764
|
+
if (stub) {
|
|
42765
|
+
const displayE = 'Error 400 received on request';
|
|
42766
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42767
|
+
} else {
|
|
42768
|
+
runCommonAsserts(data, error);
|
|
42769
|
+
}
|
|
42770
|
+
saveMockData('Cloud', 'getCloudCloudNetworksId', 'default', data);
|
|
42771
|
+
done();
|
|
42772
|
+
} catch (err) {
|
|
42773
|
+
log.error(`Test Failure: ${err}`);
|
|
42774
|
+
done(err);
|
|
42775
|
+
}
|
|
42776
|
+
});
|
|
42777
|
+
} catch (error) {
|
|
42778
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42779
|
+
done(error);
|
|
42780
|
+
}
|
|
42781
|
+
}).timeout(attemptTimeout);
|
|
42782
|
+
});
|
|
42783
|
+
|
|
42784
|
+
const cloudPutCloudCloudNetworksIdBodyParam = {};
|
|
42785
|
+
describe('#putCloudCloudNetworksId - errors', () => {
|
|
42786
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42787
|
+
try {
|
|
42788
|
+
a.putCloudCloudNetworksId(null, 'fakedata', cloudPutCloudCloudNetworksIdBodyParam, null, (data, error) => {
|
|
42789
|
+
try {
|
|
42790
|
+
if (stub) {
|
|
42791
|
+
const displayE = 'Error 400 received on request';
|
|
42792
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42793
|
+
} else {
|
|
42794
|
+
runCommonAsserts(data, error);
|
|
42795
|
+
}
|
|
42796
|
+
saveMockData('Cloud', 'putCloudCloudNetworksId', 'default', data);
|
|
42797
|
+
done();
|
|
42798
|
+
} catch (err) {
|
|
42799
|
+
log.error(`Test Failure: ${err}`);
|
|
42800
|
+
done(err);
|
|
42801
|
+
}
|
|
42802
|
+
});
|
|
42803
|
+
} catch (error) {
|
|
42804
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42805
|
+
done(error);
|
|
42806
|
+
}
|
|
42807
|
+
}).timeout(attemptTimeout);
|
|
42808
|
+
});
|
|
42809
|
+
|
|
42810
|
+
const cloudPatchCloudCloudNetworksIdBodyParam = {
|
|
42811
|
+
type: null
|
|
42812
|
+
};
|
|
42813
|
+
describe('#patchCloudCloudNetworksId - errors', () => {
|
|
42814
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42815
|
+
try {
|
|
42816
|
+
a.patchCloudCloudNetworksId(null, 'fakedata', cloudPatchCloudCloudNetworksIdBodyParam, null, (data, error) => {
|
|
42817
|
+
try {
|
|
42818
|
+
if (stub) {
|
|
42819
|
+
const displayE = 'Error 400 received on request';
|
|
42820
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42821
|
+
} else {
|
|
42822
|
+
runCommonAsserts(data, error);
|
|
42823
|
+
}
|
|
42824
|
+
saveMockData('Cloud', 'patchCloudCloudNetworksId', 'default', data);
|
|
42825
|
+
done();
|
|
42826
|
+
} catch (err) {
|
|
42827
|
+
log.error(`Test Failure: ${err}`);
|
|
42828
|
+
done(err);
|
|
42829
|
+
}
|
|
42830
|
+
});
|
|
42831
|
+
} catch (error) {
|
|
42832
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42833
|
+
done(error);
|
|
42834
|
+
}
|
|
42835
|
+
}).timeout(attemptTimeout);
|
|
42836
|
+
});
|
|
42837
|
+
|
|
42838
|
+
describe('#deleteCloudCloudNetworksId - errors', () => {
|
|
42839
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42840
|
+
try {
|
|
42841
|
+
a.deleteCloudCloudNetworksId(null, 'fakedata', null, (data, error) => {
|
|
42842
|
+
try {
|
|
42843
|
+
if (stub) {
|
|
42844
|
+
const displayE = 'Error 400 received on request';
|
|
42845
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42846
|
+
} else {
|
|
42847
|
+
runCommonAsserts(data, error);
|
|
42848
|
+
}
|
|
42849
|
+
saveMockData('Cloud', 'deleteCloudCloudNetworksId', 'default', data);
|
|
42850
|
+
done();
|
|
42851
|
+
} catch (err) {
|
|
42852
|
+
log.error(`Test Failure: ${err}`);
|
|
42853
|
+
done(err);
|
|
42854
|
+
}
|
|
42855
|
+
});
|
|
42856
|
+
} catch (error) {
|
|
42857
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42858
|
+
done(error);
|
|
42859
|
+
}
|
|
42860
|
+
}).timeout(attemptTimeout);
|
|
42861
|
+
});
|
|
42862
|
+
|
|
42863
|
+
describe('#getCloudCloudNetworksIdNotes - errors', () => {
|
|
42864
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42865
|
+
try {
|
|
42866
|
+
a.getCloudCloudNetworksIdNotes(null, 'fakedata', null, null, null, null, null, (data, error) => {
|
|
42867
|
+
try {
|
|
42868
|
+
if (stub) {
|
|
42869
|
+
const displayE = 'Error 400 received on request';
|
|
42870
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42871
|
+
} else {
|
|
42872
|
+
runCommonAsserts(data, error);
|
|
42873
|
+
}
|
|
42874
|
+
saveMockData('Cloud', 'getCloudCloudNetworksIdNotes', 'default', data);
|
|
42875
|
+
done();
|
|
42876
|
+
} catch (err) {
|
|
42877
|
+
log.error(`Test Failure: ${err}`);
|
|
42878
|
+
done(err);
|
|
42879
|
+
}
|
|
42880
|
+
});
|
|
42881
|
+
} catch (error) {
|
|
42882
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42883
|
+
done(error);
|
|
42884
|
+
}
|
|
42885
|
+
}).timeout(attemptTimeout);
|
|
42886
|
+
});
|
|
42887
|
+
|
|
42888
|
+
const cloudPostCloudCloudNetworksIdNotesBodyParam = {};
|
|
42889
|
+
describe('#postCloudCloudNetworksIdNotes - errors', () => {
|
|
42890
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42891
|
+
try {
|
|
42892
|
+
a.postCloudCloudNetworksIdNotes(null, 'fakedata', cloudPostCloudCloudNetworksIdNotesBodyParam, null, (data, error) => {
|
|
42893
|
+
try {
|
|
42894
|
+
if (stub) {
|
|
42895
|
+
const displayE = 'Error 400 received on request';
|
|
42896
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42897
|
+
} else {
|
|
42898
|
+
runCommonAsserts(data, error);
|
|
42899
|
+
}
|
|
42900
|
+
saveMockData('Cloud', 'postCloudCloudNetworksIdNotes', 'default', data);
|
|
42901
|
+
done();
|
|
42902
|
+
} catch (err) {
|
|
42903
|
+
log.error(`Test Failure: ${err}`);
|
|
42904
|
+
done(err);
|
|
42905
|
+
}
|
|
42906
|
+
});
|
|
42907
|
+
} catch (error) {
|
|
42908
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42909
|
+
done(error);
|
|
42910
|
+
}
|
|
42911
|
+
}).timeout(attemptTimeout);
|
|
42912
|
+
});
|
|
42913
|
+
|
|
42914
|
+
describe('#getCloudCloudResourceTypes - errors', () => {
|
|
42915
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42916
|
+
try {
|
|
42917
|
+
a.getCloudCloudResourceTypes(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
42918
|
+
try {
|
|
42919
|
+
if (stub) {
|
|
42920
|
+
const displayE = 'Error 400 received on request';
|
|
42921
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42922
|
+
} else {
|
|
42923
|
+
runCommonAsserts(data, error);
|
|
42924
|
+
}
|
|
42925
|
+
saveMockData('Cloud', 'getCloudCloudResourceTypes', 'default', data);
|
|
42926
|
+
done();
|
|
42927
|
+
} catch (err) {
|
|
42928
|
+
log.error(`Test Failure: ${err}`);
|
|
42929
|
+
done(err);
|
|
42930
|
+
}
|
|
42931
|
+
});
|
|
42932
|
+
} catch (error) {
|
|
42933
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42934
|
+
done(error);
|
|
42935
|
+
}
|
|
42936
|
+
}).timeout(attemptTimeout);
|
|
42937
|
+
});
|
|
42938
|
+
|
|
42939
|
+
const cloudPostCloudCloudResourceTypesBodyParam = {};
|
|
42940
|
+
describe('#postCloudCloudResourceTypes - errors', () => {
|
|
42941
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42942
|
+
try {
|
|
42943
|
+
a.postCloudCloudResourceTypes(null, cloudPostCloudCloudResourceTypesBodyParam, null, (data, error) => {
|
|
42944
|
+
try {
|
|
42945
|
+
if (stub) {
|
|
42946
|
+
const displayE = 'Error 400 received on request';
|
|
42947
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42948
|
+
} else {
|
|
42949
|
+
runCommonAsserts(data, error);
|
|
42950
|
+
}
|
|
42951
|
+
saveMockData('Cloud', 'postCloudCloudResourceTypes', 'default', data);
|
|
42952
|
+
done();
|
|
42953
|
+
} catch (err) {
|
|
42954
|
+
log.error(`Test Failure: ${err}`);
|
|
42955
|
+
done(err);
|
|
42956
|
+
}
|
|
42957
|
+
});
|
|
42958
|
+
} catch (error) {
|
|
42959
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42960
|
+
done(error);
|
|
42961
|
+
}
|
|
42962
|
+
}).timeout(attemptTimeout);
|
|
42963
|
+
});
|
|
42964
|
+
|
|
42965
|
+
const cloudPutCloudCloudResourceTypesBodyParam = [
|
|
42966
|
+
{}
|
|
42967
|
+
];
|
|
42968
|
+
describe('#putCloudCloudResourceTypes - errors', () => {
|
|
42969
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42970
|
+
try {
|
|
42971
|
+
a.putCloudCloudResourceTypes(null, cloudPutCloudCloudResourceTypesBodyParam, null, (data, error) => {
|
|
42972
|
+
try {
|
|
42973
|
+
if (stub) {
|
|
42974
|
+
const displayE = 'Error 400 received on request';
|
|
42975
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
42976
|
+
} else {
|
|
42977
|
+
runCommonAsserts(data, error);
|
|
42978
|
+
}
|
|
42979
|
+
saveMockData('Cloud', 'putCloudCloudResourceTypes', 'default', data);
|
|
42980
|
+
done();
|
|
42981
|
+
} catch (err) {
|
|
42982
|
+
log.error(`Test Failure: ${err}`);
|
|
42983
|
+
done(err);
|
|
42984
|
+
}
|
|
42985
|
+
});
|
|
42986
|
+
} catch (error) {
|
|
42987
|
+
log.error(`Adapter Exception: ${error}`);
|
|
42988
|
+
done(error);
|
|
42989
|
+
}
|
|
42990
|
+
}).timeout(attemptTimeout);
|
|
42991
|
+
});
|
|
42992
|
+
|
|
42993
|
+
const cloudPatchCloudCloudResourceTypesBodyParam = [
|
|
42994
|
+
{}
|
|
42995
|
+
];
|
|
42996
|
+
describe('#patchCloudCloudResourceTypes - errors', () => {
|
|
42997
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
42998
|
+
try {
|
|
42999
|
+
a.patchCloudCloudResourceTypes(null, cloudPatchCloudCloudResourceTypesBodyParam, null, (data, error) => {
|
|
43000
|
+
try {
|
|
43001
|
+
if (stub) {
|
|
43002
|
+
const displayE = 'Error 400 received on request';
|
|
43003
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43004
|
+
} else {
|
|
43005
|
+
runCommonAsserts(data, error);
|
|
43006
|
+
}
|
|
43007
|
+
saveMockData('Cloud', 'patchCloudCloudResourceTypes', 'default', data);
|
|
43008
|
+
done();
|
|
43009
|
+
} catch (err) {
|
|
43010
|
+
log.error(`Test Failure: ${err}`);
|
|
43011
|
+
done(err);
|
|
43012
|
+
}
|
|
43013
|
+
});
|
|
43014
|
+
} catch (error) {
|
|
43015
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43016
|
+
done(error);
|
|
43017
|
+
}
|
|
43018
|
+
}).timeout(attemptTimeout);
|
|
43019
|
+
});
|
|
43020
|
+
|
|
43021
|
+
const cloudDeleteCloudCloudResourceTypesBodyParam = [
|
|
43022
|
+
{}
|
|
43023
|
+
];
|
|
43024
|
+
describe('#deleteCloudCloudResourceTypes - errors', () => {
|
|
43025
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43026
|
+
try {
|
|
43027
|
+
a.deleteCloudCloudResourceTypes(null, cloudDeleteCloudCloudResourceTypesBodyParam, null, (data, error) => {
|
|
43028
|
+
try {
|
|
43029
|
+
if (stub) {
|
|
43030
|
+
const displayE = 'Error 400 received on request';
|
|
43031
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43032
|
+
} else {
|
|
43033
|
+
runCommonAsserts(data, error);
|
|
43034
|
+
}
|
|
43035
|
+
saveMockData('Cloud', 'deleteCloudCloudResourceTypes', 'default', data);
|
|
43036
|
+
done();
|
|
43037
|
+
} catch (err) {
|
|
43038
|
+
log.error(`Test Failure: ${err}`);
|
|
43039
|
+
done(err);
|
|
43040
|
+
}
|
|
43041
|
+
});
|
|
43042
|
+
} catch (error) {
|
|
43043
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43044
|
+
done(error);
|
|
43045
|
+
}
|
|
43046
|
+
}).timeout(attemptTimeout);
|
|
43047
|
+
});
|
|
43048
|
+
|
|
43049
|
+
describe('#getCloudCloudResourceTypesId - errors', () => {
|
|
43050
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43051
|
+
try {
|
|
43052
|
+
a.getCloudCloudResourceTypesId(null, 'fakedata', null, null, null, (data, error) => {
|
|
43053
|
+
try {
|
|
43054
|
+
if (stub) {
|
|
43055
|
+
const displayE = 'Error 400 received on request';
|
|
43056
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43057
|
+
} else {
|
|
43058
|
+
runCommonAsserts(data, error);
|
|
43059
|
+
}
|
|
43060
|
+
saveMockData('Cloud', 'getCloudCloudResourceTypesId', 'default', data);
|
|
43061
|
+
done();
|
|
43062
|
+
} catch (err) {
|
|
43063
|
+
log.error(`Test Failure: ${err}`);
|
|
43064
|
+
done(err);
|
|
43065
|
+
}
|
|
43066
|
+
});
|
|
43067
|
+
} catch (error) {
|
|
43068
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43069
|
+
done(error);
|
|
43070
|
+
}
|
|
43071
|
+
}).timeout(attemptTimeout);
|
|
43072
|
+
});
|
|
43073
|
+
|
|
43074
|
+
const cloudPutCloudCloudResourceTypesIdBodyParam = {};
|
|
43075
|
+
describe('#putCloudCloudResourceTypesId - errors', () => {
|
|
43076
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43077
|
+
try {
|
|
43078
|
+
a.putCloudCloudResourceTypesId(null, 'fakedata', cloudPutCloudCloudResourceTypesIdBodyParam, null, (data, error) => {
|
|
43079
|
+
try {
|
|
43080
|
+
if (stub) {
|
|
43081
|
+
const displayE = 'Error 400 received on request';
|
|
43082
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43083
|
+
} else {
|
|
43084
|
+
runCommonAsserts(data, error);
|
|
43085
|
+
}
|
|
43086
|
+
saveMockData('Cloud', 'putCloudCloudResourceTypesId', 'default', data);
|
|
43087
|
+
done();
|
|
43088
|
+
} catch (err) {
|
|
43089
|
+
log.error(`Test Failure: ${err}`);
|
|
43090
|
+
done(err);
|
|
43091
|
+
}
|
|
43092
|
+
});
|
|
43093
|
+
} catch (error) {
|
|
43094
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43095
|
+
done(error);
|
|
43096
|
+
}
|
|
43097
|
+
}).timeout(attemptTimeout);
|
|
43098
|
+
});
|
|
43099
|
+
|
|
43100
|
+
const cloudPatchCloudCloudResourceTypesIdBodyParam = {
|
|
43101
|
+
type: null
|
|
43102
|
+
};
|
|
43103
|
+
describe('#patchCloudCloudResourceTypesId - errors', () => {
|
|
43104
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43105
|
+
try {
|
|
43106
|
+
a.patchCloudCloudResourceTypesId(null, 'fakedata', cloudPatchCloudCloudResourceTypesIdBodyParam, null, (data, error) => {
|
|
43107
|
+
try {
|
|
43108
|
+
if (stub) {
|
|
43109
|
+
const displayE = 'Error 400 received on request';
|
|
43110
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43111
|
+
} else {
|
|
43112
|
+
runCommonAsserts(data, error);
|
|
43113
|
+
}
|
|
43114
|
+
saveMockData('Cloud', 'patchCloudCloudResourceTypesId', 'default', data);
|
|
43115
|
+
done();
|
|
43116
|
+
} catch (err) {
|
|
43117
|
+
log.error(`Test Failure: ${err}`);
|
|
43118
|
+
done(err);
|
|
43119
|
+
}
|
|
43120
|
+
});
|
|
43121
|
+
} catch (error) {
|
|
43122
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43123
|
+
done(error);
|
|
43124
|
+
}
|
|
43125
|
+
}).timeout(attemptTimeout);
|
|
43126
|
+
});
|
|
43127
|
+
|
|
43128
|
+
describe('#deleteCloudCloudResourceTypesId - errors', () => {
|
|
43129
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43130
|
+
try {
|
|
43131
|
+
a.deleteCloudCloudResourceTypesId(null, 'fakedata', null, (data, error) => {
|
|
43132
|
+
try {
|
|
43133
|
+
if (stub) {
|
|
43134
|
+
const displayE = 'Error 400 received on request';
|
|
43135
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43136
|
+
} else {
|
|
43137
|
+
runCommonAsserts(data, error);
|
|
43138
|
+
}
|
|
43139
|
+
saveMockData('Cloud', 'deleteCloudCloudResourceTypesId', 'default', data);
|
|
43140
|
+
done();
|
|
43141
|
+
} catch (err) {
|
|
43142
|
+
log.error(`Test Failure: ${err}`);
|
|
43143
|
+
done(err);
|
|
43144
|
+
}
|
|
43145
|
+
});
|
|
43146
|
+
} catch (error) {
|
|
43147
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43148
|
+
done(error);
|
|
43149
|
+
}
|
|
43150
|
+
}).timeout(attemptTimeout);
|
|
43151
|
+
});
|
|
43152
|
+
|
|
43153
|
+
describe('#getCloudCloudResourceTypesIdNotes - errors', () => {
|
|
43154
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43155
|
+
try {
|
|
43156
|
+
a.getCloudCloudResourceTypesIdNotes(null, 'fakedata', null, null, null, null, null, (data, error) => {
|
|
43157
|
+
try {
|
|
43158
|
+
if (stub) {
|
|
43159
|
+
const displayE = 'Error 400 received on request';
|
|
43160
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43161
|
+
} else {
|
|
43162
|
+
runCommonAsserts(data, error);
|
|
43163
|
+
}
|
|
43164
|
+
saveMockData('Cloud', 'getCloudCloudResourceTypesIdNotes', 'default', data);
|
|
43165
|
+
done();
|
|
43166
|
+
} catch (err) {
|
|
43167
|
+
log.error(`Test Failure: ${err}`);
|
|
43168
|
+
done(err);
|
|
43169
|
+
}
|
|
43170
|
+
});
|
|
43171
|
+
} catch (error) {
|
|
43172
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43173
|
+
done(error);
|
|
43174
|
+
}
|
|
43175
|
+
}).timeout(attemptTimeout);
|
|
43176
|
+
});
|
|
43177
|
+
|
|
43178
|
+
const cloudPostCloudCloudResourceTypesIdNotesBodyParam = {};
|
|
43179
|
+
describe('#postCloudCloudResourceTypesIdNotes - errors', () => {
|
|
43180
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43181
|
+
try {
|
|
43182
|
+
a.postCloudCloudResourceTypesIdNotes(null, 'fakedata', cloudPostCloudCloudResourceTypesIdNotesBodyParam, null, (data, error) => {
|
|
43183
|
+
try {
|
|
43184
|
+
if (stub) {
|
|
43185
|
+
const displayE = 'Error 400 received on request';
|
|
43186
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43187
|
+
} else {
|
|
43188
|
+
runCommonAsserts(data, error);
|
|
43189
|
+
}
|
|
43190
|
+
saveMockData('Cloud', 'postCloudCloudResourceTypesIdNotes', 'default', data);
|
|
43191
|
+
done();
|
|
43192
|
+
} catch (err) {
|
|
43193
|
+
log.error(`Test Failure: ${err}`);
|
|
43194
|
+
done(err);
|
|
43195
|
+
}
|
|
43196
|
+
});
|
|
43197
|
+
} catch (error) {
|
|
43198
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43199
|
+
done(error);
|
|
43200
|
+
}
|
|
43201
|
+
}).timeout(attemptTimeout);
|
|
43202
|
+
});
|
|
43203
|
+
|
|
43204
|
+
describe('#getCloudCloudServiceNetworkAssignments - errors', () => {
|
|
43205
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43206
|
+
try {
|
|
43207
|
+
a.getCloudCloudServiceNetworkAssignments(null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
43208
|
+
try {
|
|
43209
|
+
if (stub) {
|
|
43210
|
+
const displayE = 'Error 400 received on request';
|
|
43211
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43212
|
+
} else {
|
|
43213
|
+
runCommonAsserts(data, error);
|
|
43214
|
+
}
|
|
43215
|
+
saveMockData('Cloud', 'getCloudCloudServiceNetworkAssignments', 'default', data);
|
|
43216
|
+
done();
|
|
43217
|
+
} catch (err) {
|
|
43218
|
+
log.error(`Test Failure: ${err}`);
|
|
43219
|
+
done(err);
|
|
43220
|
+
}
|
|
43221
|
+
});
|
|
43222
|
+
} catch (error) {
|
|
43223
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43224
|
+
done(error);
|
|
43225
|
+
}
|
|
43226
|
+
}).timeout(attemptTimeout);
|
|
43227
|
+
});
|
|
43228
|
+
|
|
43229
|
+
const cloudPostCloudCloudServiceNetworkAssignmentsBodyParam = {};
|
|
43230
|
+
describe('#postCloudCloudServiceNetworkAssignments - errors', () => {
|
|
43231
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43232
|
+
try {
|
|
43233
|
+
a.postCloudCloudServiceNetworkAssignments(null, cloudPostCloudCloudServiceNetworkAssignmentsBodyParam, null, (data, error) => {
|
|
43234
|
+
try {
|
|
43235
|
+
if (stub) {
|
|
43236
|
+
const displayE = 'Error 400 received on request';
|
|
43237
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43238
|
+
} else {
|
|
43239
|
+
runCommonAsserts(data, error);
|
|
43240
|
+
}
|
|
43241
|
+
saveMockData('Cloud', 'postCloudCloudServiceNetworkAssignments', 'default', data);
|
|
43242
|
+
done();
|
|
43243
|
+
} catch (err) {
|
|
43244
|
+
log.error(`Test Failure: ${err}`);
|
|
43245
|
+
done(err);
|
|
43246
|
+
}
|
|
43247
|
+
});
|
|
43248
|
+
} catch (error) {
|
|
43249
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43250
|
+
done(error);
|
|
43251
|
+
}
|
|
43252
|
+
}).timeout(attemptTimeout);
|
|
43253
|
+
});
|
|
43254
|
+
|
|
43255
|
+
const cloudPutCloudCloudServiceNetworkAssignmentsBodyParam = [
|
|
43256
|
+
{}
|
|
43257
|
+
];
|
|
43258
|
+
describe('#putCloudCloudServiceNetworkAssignments - errors', () => {
|
|
43259
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43260
|
+
try {
|
|
43261
|
+
a.putCloudCloudServiceNetworkAssignments(null, cloudPutCloudCloudServiceNetworkAssignmentsBodyParam, null, (data, error) => {
|
|
43262
|
+
try {
|
|
43263
|
+
if (stub) {
|
|
43264
|
+
const displayE = 'Error 400 received on request';
|
|
43265
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43266
|
+
} else {
|
|
43267
|
+
runCommonAsserts(data, error);
|
|
43268
|
+
}
|
|
43269
|
+
saveMockData('Cloud', 'putCloudCloudServiceNetworkAssignments', 'default', data);
|
|
43270
|
+
done();
|
|
43271
|
+
} catch (err) {
|
|
43272
|
+
log.error(`Test Failure: ${err}`);
|
|
43273
|
+
done(err);
|
|
43274
|
+
}
|
|
43275
|
+
});
|
|
43276
|
+
} catch (error) {
|
|
43277
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43278
|
+
done(error);
|
|
43279
|
+
}
|
|
43280
|
+
}).timeout(attemptTimeout);
|
|
43281
|
+
});
|
|
43282
|
+
|
|
43283
|
+
const cloudPatchCloudCloudServiceNetworkAssignmentsBodyParam = [
|
|
43284
|
+
{}
|
|
43285
|
+
];
|
|
43286
|
+
describe('#patchCloudCloudServiceNetworkAssignments - errors', () => {
|
|
43287
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43288
|
+
try {
|
|
43289
|
+
a.patchCloudCloudServiceNetworkAssignments(null, cloudPatchCloudCloudServiceNetworkAssignmentsBodyParam, null, (data, error) => {
|
|
43290
|
+
try {
|
|
43291
|
+
if (stub) {
|
|
43292
|
+
const displayE = 'Error 400 received on request';
|
|
43293
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43294
|
+
} else {
|
|
43295
|
+
runCommonAsserts(data, error);
|
|
43296
|
+
}
|
|
43297
|
+
saveMockData('Cloud', 'patchCloudCloudServiceNetworkAssignments', 'default', data);
|
|
43298
|
+
done();
|
|
43299
|
+
} catch (err) {
|
|
43300
|
+
log.error(`Test Failure: ${err}`);
|
|
43301
|
+
done(err);
|
|
43302
|
+
}
|
|
43303
|
+
});
|
|
43304
|
+
} catch (error) {
|
|
43305
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43306
|
+
done(error);
|
|
43307
|
+
}
|
|
43308
|
+
}).timeout(attemptTimeout);
|
|
43309
|
+
});
|
|
43310
|
+
|
|
43311
|
+
const cloudDeleteCloudCloudServiceNetworkAssignmentsBodyParam = [
|
|
43312
|
+
{}
|
|
43313
|
+
];
|
|
43314
|
+
describe('#deleteCloudCloudServiceNetworkAssignments - errors', () => {
|
|
43315
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43316
|
+
try {
|
|
43317
|
+
a.deleteCloudCloudServiceNetworkAssignments(null, cloudDeleteCloudCloudServiceNetworkAssignmentsBodyParam, null, (data, error) => {
|
|
43318
|
+
try {
|
|
43319
|
+
if (stub) {
|
|
43320
|
+
const displayE = 'Error 400 received on request';
|
|
43321
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43322
|
+
} else {
|
|
43323
|
+
runCommonAsserts(data, error);
|
|
43324
|
+
}
|
|
43325
|
+
saveMockData('Cloud', 'deleteCloudCloudServiceNetworkAssignments', 'default', data);
|
|
43326
|
+
done();
|
|
43327
|
+
} catch (err) {
|
|
43328
|
+
log.error(`Test Failure: ${err}`);
|
|
43329
|
+
done(err);
|
|
43330
|
+
}
|
|
43331
|
+
});
|
|
43332
|
+
} catch (error) {
|
|
43333
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43334
|
+
done(error);
|
|
43335
|
+
}
|
|
43336
|
+
}).timeout(attemptTimeout);
|
|
43337
|
+
});
|
|
43338
|
+
|
|
43339
|
+
describe('#getCloudCloudServiceNetworkAssignmentsId - errors', () => {
|
|
43340
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43341
|
+
try {
|
|
43342
|
+
a.getCloudCloudServiceNetworkAssignmentsId(null, 'fakedata', null, null, null, (data, error) => {
|
|
43343
|
+
try {
|
|
43344
|
+
if (stub) {
|
|
43345
|
+
const displayE = 'Error 400 received on request';
|
|
43346
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43347
|
+
} else {
|
|
43348
|
+
runCommonAsserts(data, error);
|
|
43349
|
+
}
|
|
43350
|
+
saveMockData('Cloud', 'getCloudCloudServiceNetworkAssignmentsId', 'default', data);
|
|
43351
|
+
done();
|
|
43352
|
+
} catch (err) {
|
|
43353
|
+
log.error(`Test Failure: ${err}`);
|
|
43354
|
+
done(err);
|
|
43355
|
+
}
|
|
43356
|
+
});
|
|
43357
|
+
} catch (error) {
|
|
43358
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43359
|
+
done(error);
|
|
43360
|
+
}
|
|
43361
|
+
}).timeout(attemptTimeout);
|
|
43362
|
+
});
|
|
43363
|
+
|
|
43364
|
+
const cloudPutCloudCloudServiceNetworkAssignmentsIdBodyParam = {};
|
|
43365
|
+
describe('#putCloudCloudServiceNetworkAssignmentsId - errors', () => {
|
|
43366
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43367
|
+
try {
|
|
43368
|
+
a.putCloudCloudServiceNetworkAssignmentsId(null, 'fakedata', cloudPutCloudCloudServiceNetworkAssignmentsIdBodyParam, null, (data, error) => {
|
|
43369
|
+
try {
|
|
43370
|
+
if (stub) {
|
|
43371
|
+
const displayE = 'Error 400 received on request';
|
|
43372
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43373
|
+
} else {
|
|
43374
|
+
runCommonAsserts(data, error);
|
|
43375
|
+
}
|
|
43376
|
+
saveMockData('Cloud', 'putCloudCloudServiceNetworkAssignmentsId', 'default', data);
|
|
43377
|
+
done();
|
|
43378
|
+
} catch (err) {
|
|
43379
|
+
log.error(`Test Failure: ${err}`);
|
|
43380
|
+
done(err);
|
|
43381
|
+
}
|
|
43382
|
+
});
|
|
43383
|
+
} catch (error) {
|
|
43384
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43385
|
+
done(error);
|
|
43386
|
+
}
|
|
43387
|
+
}).timeout(attemptTimeout);
|
|
43388
|
+
});
|
|
43389
|
+
|
|
43390
|
+
const cloudPatchCloudCloudServiceNetworkAssignmentsIdBodyParam = {
|
|
43391
|
+
type: null
|
|
43392
|
+
};
|
|
43393
|
+
describe('#patchCloudCloudServiceNetworkAssignmentsId - errors', () => {
|
|
43394
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43395
|
+
try {
|
|
43396
|
+
a.patchCloudCloudServiceNetworkAssignmentsId(null, 'fakedata', cloudPatchCloudCloudServiceNetworkAssignmentsIdBodyParam, null, (data, error) => {
|
|
43397
|
+
try {
|
|
43398
|
+
if (stub) {
|
|
43399
|
+
const displayE = 'Error 400 received on request';
|
|
43400
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43401
|
+
} else {
|
|
43402
|
+
runCommonAsserts(data, error);
|
|
43403
|
+
}
|
|
43404
|
+
saveMockData('Cloud', 'patchCloudCloudServiceNetworkAssignmentsId', 'default', data);
|
|
43405
|
+
done();
|
|
43406
|
+
} catch (err) {
|
|
43407
|
+
log.error(`Test Failure: ${err}`);
|
|
43408
|
+
done(err);
|
|
43409
|
+
}
|
|
43410
|
+
});
|
|
43411
|
+
} catch (error) {
|
|
43412
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43413
|
+
done(error);
|
|
43414
|
+
}
|
|
43415
|
+
}).timeout(attemptTimeout);
|
|
43416
|
+
});
|
|
43417
|
+
|
|
43418
|
+
describe('#deleteCloudCloudServiceNetworkAssignmentsId - errors', () => {
|
|
43419
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43420
|
+
try {
|
|
43421
|
+
a.deleteCloudCloudServiceNetworkAssignmentsId(null, 'fakedata', null, (data, error) => {
|
|
43422
|
+
try {
|
|
43423
|
+
if (stub) {
|
|
43424
|
+
const displayE = 'Error 400 received on request';
|
|
43425
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43426
|
+
} else {
|
|
43427
|
+
runCommonAsserts(data, error);
|
|
43428
|
+
}
|
|
43429
|
+
saveMockData('Cloud', 'deleteCloudCloudServiceNetworkAssignmentsId', 'default', data);
|
|
43430
|
+
done();
|
|
43431
|
+
} catch (err) {
|
|
43432
|
+
log.error(`Test Failure: ${err}`);
|
|
43433
|
+
done(err);
|
|
43434
|
+
}
|
|
43435
|
+
});
|
|
43436
|
+
} catch (error) {
|
|
43437
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43438
|
+
done(error);
|
|
43439
|
+
}
|
|
43440
|
+
}).timeout(attemptTimeout);
|
|
43441
|
+
});
|
|
43442
|
+
|
|
43443
|
+
describe('#getCloudCloudServices - errors', () => {
|
|
43444
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43445
|
+
try {
|
|
43446
|
+
a.getCloudCloudServices(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
43447
|
+
try {
|
|
43448
|
+
if (stub) {
|
|
43449
|
+
const displayE = 'Error 400 received on request';
|
|
43450
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43451
|
+
} else {
|
|
43452
|
+
runCommonAsserts(data, error);
|
|
43453
|
+
}
|
|
43454
|
+
saveMockData('Cloud', 'getCloudCloudServices', 'default', data);
|
|
43455
|
+
done();
|
|
43456
|
+
} catch (err) {
|
|
43457
|
+
log.error(`Test Failure: ${err}`);
|
|
43458
|
+
done(err);
|
|
43459
|
+
}
|
|
43460
|
+
});
|
|
43461
|
+
} catch (error) {
|
|
43462
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43463
|
+
done(error);
|
|
43464
|
+
}
|
|
43465
|
+
}).timeout(attemptTimeout);
|
|
43466
|
+
});
|
|
43467
|
+
|
|
43468
|
+
const cloudPostCloudCloudServicesBodyParam = {};
|
|
43469
|
+
describe('#postCloudCloudServices - errors', () => {
|
|
43470
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43471
|
+
try {
|
|
43472
|
+
a.postCloudCloudServices(null, cloudPostCloudCloudServicesBodyParam, null, (data, error) => {
|
|
43473
|
+
try {
|
|
43474
|
+
if (stub) {
|
|
43475
|
+
const displayE = 'Error 400 received on request';
|
|
43476
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43477
|
+
} else {
|
|
43478
|
+
runCommonAsserts(data, error);
|
|
43479
|
+
}
|
|
43480
|
+
saveMockData('Cloud', 'postCloudCloudServices', 'default', data);
|
|
43481
|
+
done();
|
|
43482
|
+
} catch (err) {
|
|
43483
|
+
log.error(`Test Failure: ${err}`);
|
|
43484
|
+
done(err);
|
|
43485
|
+
}
|
|
43486
|
+
});
|
|
43487
|
+
} catch (error) {
|
|
43488
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43489
|
+
done(error);
|
|
43490
|
+
}
|
|
43491
|
+
}).timeout(attemptTimeout);
|
|
43492
|
+
});
|
|
43493
|
+
|
|
43494
|
+
const cloudPutCloudCloudServicesBodyParam = [
|
|
43495
|
+
{}
|
|
43496
|
+
];
|
|
43497
|
+
describe('#putCloudCloudServices - errors', () => {
|
|
43498
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43499
|
+
try {
|
|
43500
|
+
a.putCloudCloudServices(null, cloudPutCloudCloudServicesBodyParam, null, (data, error) => {
|
|
43501
|
+
try {
|
|
43502
|
+
if (stub) {
|
|
43503
|
+
const displayE = 'Error 400 received on request';
|
|
43504
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43505
|
+
} else {
|
|
43506
|
+
runCommonAsserts(data, error);
|
|
43507
|
+
}
|
|
43508
|
+
saveMockData('Cloud', 'putCloudCloudServices', 'default', data);
|
|
43509
|
+
done();
|
|
43510
|
+
} catch (err) {
|
|
43511
|
+
log.error(`Test Failure: ${err}`);
|
|
43512
|
+
done(err);
|
|
43513
|
+
}
|
|
43514
|
+
});
|
|
43515
|
+
} catch (error) {
|
|
43516
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43517
|
+
done(error);
|
|
43518
|
+
}
|
|
43519
|
+
}).timeout(attemptTimeout);
|
|
43520
|
+
});
|
|
43521
|
+
|
|
43522
|
+
const cloudPatchCloudCloudServicesBodyParam = [
|
|
43523
|
+
{}
|
|
43524
|
+
];
|
|
43525
|
+
describe('#patchCloudCloudServices - errors', () => {
|
|
43526
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43527
|
+
try {
|
|
43528
|
+
a.patchCloudCloudServices(null, cloudPatchCloudCloudServicesBodyParam, null, (data, error) => {
|
|
43529
|
+
try {
|
|
43530
|
+
if (stub) {
|
|
43531
|
+
const displayE = 'Error 400 received on request';
|
|
43532
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43533
|
+
} else {
|
|
43534
|
+
runCommonAsserts(data, error);
|
|
43535
|
+
}
|
|
43536
|
+
saveMockData('Cloud', 'patchCloudCloudServices', 'default', data);
|
|
43537
|
+
done();
|
|
43538
|
+
} catch (err) {
|
|
43539
|
+
log.error(`Test Failure: ${err}`);
|
|
43540
|
+
done(err);
|
|
43541
|
+
}
|
|
43542
|
+
});
|
|
43543
|
+
} catch (error) {
|
|
43544
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43545
|
+
done(error);
|
|
43546
|
+
}
|
|
43547
|
+
}).timeout(attemptTimeout);
|
|
43548
|
+
});
|
|
43549
|
+
|
|
43550
|
+
const cloudDeleteCloudCloudServicesBodyParam = [
|
|
43551
|
+
{}
|
|
43552
|
+
];
|
|
43553
|
+
describe('#deleteCloudCloudServices - errors', () => {
|
|
43554
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43555
|
+
try {
|
|
43556
|
+
a.deleteCloudCloudServices(null, cloudDeleteCloudCloudServicesBodyParam, null, (data, error) => {
|
|
43557
|
+
try {
|
|
43558
|
+
if (stub) {
|
|
43559
|
+
const displayE = 'Error 400 received on request';
|
|
43560
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43561
|
+
} else {
|
|
43562
|
+
runCommonAsserts(data, error);
|
|
43563
|
+
}
|
|
43564
|
+
saveMockData('Cloud', 'deleteCloudCloudServices', 'default', data);
|
|
43565
|
+
done();
|
|
43566
|
+
} catch (err) {
|
|
43567
|
+
log.error(`Test Failure: ${err}`);
|
|
43568
|
+
done(err);
|
|
43569
|
+
}
|
|
43570
|
+
});
|
|
43571
|
+
} catch (error) {
|
|
43572
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43573
|
+
done(error);
|
|
43574
|
+
}
|
|
43575
|
+
}).timeout(attemptTimeout);
|
|
43576
|
+
});
|
|
43577
|
+
|
|
43578
|
+
describe('#getCloudCloudServicesId - errors', () => {
|
|
43579
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43580
|
+
try {
|
|
43581
|
+
a.getCloudCloudServicesId(null, 'fakedata', null, null, null, (data, error) => {
|
|
43582
|
+
try {
|
|
43583
|
+
if (stub) {
|
|
43584
|
+
const displayE = 'Error 400 received on request';
|
|
43585
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43586
|
+
} else {
|
|
43587
|
+
runCommonAsserts(data, error);
|
|
43588
|
+
}
|
|
43589
|
+
saveMockData('Cloud', 'getCloudCloudServicesId', 'default', data);
|
|
43590
|
+
done();
|
|
43591
|
+
} catch (err) {
|
|
43592
|
+
log.error(`Test Failure: ${err}`);
|
|
43593
|
+
done(err);
|
|
43594
|
+
}
|
|
43595
|
+
});
|
|
43596
|
+
} catch (error) {
|
|
43597
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43598
|
+
done(error);
|
|
43599
|
+
}
|
|
43600
|
+
}).timeout(attemptTimeout);
|
|
43601
|
+
});
|
|
43602
|
+
|
|
43603
|
+
const cloudPutCloudCloudServicesIdBodyParam = {};
|
|
43604
|
+
describe('#putCloudCloudServicesId - errors', () => {
|
|
43605
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43606
|
+
try {
|
|
43607
|
+
a.putCloudCloudServicesId(null, 'fakedata', cloudPutCloudCloudServicesIdBodyParam, null, (data, error) => {
|
|
43608
|
+
try {
|
|
43609
|
+
if (stub) {
|
|
43610
|
+
const displayE = 'Error 400 received on request';
|
|
43611
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43612
|
+
} else {
|
|
43613
|
+
runCommonAsserts(data, error);
|
|
43614
|
+
}
|
|
43615
|
+
saveMockData('Cloud', 'putCloudCloudServicesId', 'default', data);
|
|
43616
|
+
done();
|
|
43617
|
+
} catch (err) {
|
|
43618
|
+
log.error(`Test Failure: ${err}`);
|
|
43619
|
+
done(err);
|
|
43620
|
+
}
|
|
43621
|
+
});
|
|
43622
|
+
} catch (error) {
|
|
43623
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43624
|
+
done(error);
|
|
43625
|
+
}
|
|
43626
|
+
}).timeout(attemptTimeout);
|
|
43627
|
+
});
|
|
43628
|
+
|
|
43629
|
+
const cloudPatchCloudCloudServicesIdBodyParam = {
|
|
43630
|
+
type: null
|
|
43631
|
+
};
|
|
43632
|
+
describe('#patchCloudCloudServicesId - errors', () => {
|
|
43633
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43634
|
+
try {
|
|
43635
|
+
a.patchCloudCloudServicesId(null, 'fakedata', cloudPatchCloudCloudServicesIdBodyParam, null, (data, error) => {
|
|
43636
|
+
try {
|
|
43637
|
+
if (stub) {
|
|
43638
|
+
const displayE = 'Error 400 received on request';
|
|
43639
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43640
|
+
} else {
|
|
43641
|
+
runCommonAsserts(data, error);
|
|
43642
|
+
}
|
|
43643
|
+
saveMockData('Cloud', 'patchCloudCloudServicesId', 'default', data);
|
|
43644
|
+
done();
|
|
43645
|
+
} catch (err) {
|
|
43646
|
+
log.error(`Test Failure: ${err}`);
|
|
43647
|
+
done(err);
|
|
43648
|
+
}
|
|
43649
|
+
});
|
|
43650
|
+
} catch (error) {
|
|
43651
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43652
|
+
done(error);
|
|
43653
|
+
}
|
|
43654
|
+
}).timeout(attemptTimeout);
|
|
43655
|
+
});
|
|
43656
|
+
|
|
43657
|
+
describe('#deleteCloudCloudServicesId - errors', () => {
|
|
43658
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43659
|
+
try {
|
|
43660
|
+
a.deleteCloudCloudServicesId(null, 'fakedata', null, (data, error) => {
|
|
43661
|
+
try {
|
|
43662
|
+
if (stub) {
|
|
43663
|
+
const displayE = 'Error 400 received on request';
|
|
43664
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43665
|
+
} else {
|
|
43666
|
+
runCommonAsserts(data, error);
|
|
43667
|
+
}
|
|
43668
|
+
saveMockData('Cloud', 'deleteCloudCloudServicesId', 'default', data);
|
|
43669
|
+
done();
|
|
43670
|
+
} catch (err) {
|
|
43671
|
+
log.error(`Test Failure: ${err}`);
|
|
43672
|
+
done(err);
|
|
43673
|
+
}
|
|
43674
|
+
});
|
|
43675
|
+
} catch (error) {
|
|
43676
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43677
|
+
done(error);
|
|
43678
|
+
}
|
|
43679
|
+
}).timeout(attemptTimeout);
|
|
43680
|
+
});
|
|
43681
|
+
|
|
43682
|
+
describe('#getCloudCloudServicesIdNotes - errors', () => {
|
|
43683
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43684
|
+
try {
|
|
43685
|
+
a.getCloudCloudServicesIdNotes(null, 'fakedata', null, null, null, null, null, (data, error) => {
|
|
43686
|
+
try {
|
|
43687
|
+
if (stub) {
|
|
43688
|
+
const displayE = 'Error 400 received on request';
|
|
43689
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43690
|
+
} else {
|
|
43691
|
+
runCommonAsserts(data, error);
|
|
43692
|
+
}
|
|
43693
|
+
saveMockData('Cloud', 'getCloudCloudServicesIdNotes', 'default', data);
|
|
43694
|
+
done();
|
|
43695
|
+
} catch (err) {
|
|
43696
|
+
log.error(`Test Failure: ${err}`);
|
|
43697
|
+
done(err);
|
|
43698
|
+
}
|
|
43699
|
+
});
|
|
43700
|
+
} catch (error) {
|
|
43701
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43702
|
+
done(error);
|
|
43703
|
+
}
|
|
43704
|
+
}).timeout(attemptTimeout);
|
|
43705
|
+
});
|
|
43706
|
+
|
|
43707
|
+
const cloudPostCloudCloudServicesIdNotesBodyParam = {};
|
|
43708
|
+
describe('#postCloudCloudServicesIdNotes - errors', () => {
|
|
43709
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43710
|
+
try {
|
|
43711
|
+
a.postCloudCloudServicesIdNotes(null, 'fakedata', cloudPostCloudCloudServicesIdNotesBodyParam, null, (data, error) => {
|
|
43712
|
+
try {
|
|
43713
|
+
if (stub) {
|
|
43714
|
+
const displayE = 'Error 400 received on request';
|
|
43715
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43716
|
+
} else {
|
|
43717
|
+
runCommonAsserts(data, error);
|
|
43718
|
+
}
|
|
43719
|
+
saveMockData('Cloud', 'postCloudCloudServicesIdNotes', 'default', data);
|
|
43720
|
+
done();
|
|
43721
|
+
} catch (err) {
|
|
43722
|
+
log.error(`Test Failure: ${err}`);
|
|
43723
|
+
done(err);
|
|
43724
|
+
}
|
|
43725
|
+
});
|
|
43726
|
+
} catch (error) {
|
|
43727
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43728
|
+
done(error);
|
|
43729
|
+
}
|
|
43730
|
+
}).timeout(attemptTimeout);
|
|
43731
|
+
});
|
|
43732
|
+
|
|
43733
|
+
const corePostCoreRenderJinjaTemplateBodyParam = {};
|
|
43734
|
+
describe('#postCoreRenderJinjaTemplate - errors', () => {
|
|
43735
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43736
|
+
try {
|
|
43737
|
+
a.postCoreRenderJinjaTemplate(null, corePostCoreRenderJinjaTemplateBodyParam, null, (data, error) => {
|
|
43738
|
+
try {
|
|
43739
|
+
if (stub) {
|
|
43740
|
+
const displayE = 'Error 400 received on request';
|
|
43741
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43742
|
+
} else {
|
|
43743
|
+
runCommonAsserts(data, error);
|
|
43744
|
+
}
|
|
43745
|
+
saveMockData('Core', 'postCoreRenderJinjaTemplate', 'default', data);
|
|
43746
|
+
done();
|
|
43747
|
+
} catch (err) {
|
|
43748
|
+
log.error(`Test Failure: ${err}`);
|
|
43749
|
+
done(err);
|
|
43750
|
+
}
|
|
43751
|
+
});
|
|
43752
|
+
} catch (error) {
|
|
43753
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43754
|
+
done(error);
|
|
43755
|
+
}
|
|
43756
|
+
}).timeout(attemptTimeout);
|
|
43757
|
+
});
|
|
43758
|
+
|
|
43759
|
+
const uiPostUiCoreRenderJinjaTemplateBodyParam = {};
|
|
43760
|
+
describe('#postUiCoreRenderJinjaTemplate - errors', () => {
|
|
43761
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43762
|
+
try {
|
|
43763
|
+
a.postUiCoreRenderJinjaTemplate(null, uiPostUiCoreRenderJinjaTemplateBodyParam, null, (data, error) => {
|
|
43764
|
+
try {
|
|
43765
|
+
if (stub) {
|
|
43766
|
+
const displayE = 'Error 400 received on request';
|
|
43767
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43768
|
+
} else {
|
|
43769
|
+
runCommonAsserts(data, error);
|
|
43770
|
+
}
|
|
43771
|
+
saveMockData('Ui', 'postUiCoreRenderJinjaTemplate', 'default', data);
|
|
43772
|
+
done();
|
|
43773
|
+
} catch (err) {
|
|
43774
|
+
log.error(`Test Failure: ${err}`);
|
|
43775
|
+
done(err);
|
|
43776
|
+
}
|
|
43777
|
+
});
|
|
43778
|
+
} catch (error) {
|
|
43779
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43780
|
+
done(error);
|
|
43781
|
+
}
|
|
43782
|
+
}).timeout(attemptTimeout);
|
|
43783
|
+
});
|
|
43784
|
+
|
|
43785
|
+
describe('#getWirelessControllerManagedDeviceGroupRadioProfileAssignments - errors', () => {
|
|
43786
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43787
|
+
try {
|
|
43788
|
+
a.getWirelessControllerManagedDeviceGroupRadioProfileAssignments(null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
43789
|
+
try {
|
|
43790
|
+
if (stub) {
|
|
43791
|
+
const displayE = 'Error 400 received on request';
|
|
43792
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43793
|
+
} else {
|
|
43794
|
+
runCommonAsserts(data, error);
|
|
43795
|
+
}
|
|
43796
|
+
saveMockData('Wireless', 'getWirelessControllerManagedDeviceGroupRadioProfileAssignments', 'default', data);
|
|
43797
|
+
done();
|
|
43798
|
+
} catch (err) {
|
|
43799
|
+
log.error(`Test Failure: ${err}`);
|
|
43800
|
+
done(err);
|
|
43801
|
+
}
|
|
43802
|
+
});
|
|
43803
|
+
} catch (error) {
|
|
43804
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43805
|
+
done(error);
|
|
43806
|
+
}
|
|
43807
|
+
}).timeout(attemptTimeout);
|
|
43808
|
+
});
|
|
43809
|
+
|
|
43810
|
+
const wirelessPostWirelessControllerManagedDeviceGroupRadioProfileAssignmentsBodyParam = {};
|
|
43811
|
+
describe('#postWirelessControllerManagedDeviceGroupRadioProfileAssignments - errors', () => {
|
|
43812
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43813
|
+
try {
|
|
43814
|
+
a.postWirelessControllerManagedDeviceGroupRadioProfileAssignments(null, wirelessPostWirelessControllerManagedDeviceGroupRadioProfileAssignmentsBodyParam, null, (data, error) => {
|
|
43815
|
+
try {
|
|
43816
|
+
if (stub) {
|
|
43817
|
+
const displayE = 'Error 400 received on request';
|
|
43818
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43819
|
+
} else {
|
|
43820
|
+
runCommonAsserts(data, error);
|
|
43821
|
+
}
|
|
43822
|
+
saveMockData('Wireless', 'postWirelessControllerManagedDeviceGroupRadioProfileAssignments', 'default', data);
|
|
43823
|
+
done();
|
|
43824
|
+
} catch (err) {
|
|
43825
|
+
log.error(`Test Failure: ${err}`);
|
|
43826
|
+
done(err);
|
|
43827
|
+
}
|
|
43828
|
+
});
|
|
43829
|
+
} catch (error) {
|
|
43830
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43831
|
+
done(error);
|
|
43832
|
+
}
|
|
43833
|
+
}).timeout(attemptTimeout);
|
|
43834
|
+
});
|
|
43835
|
+
|
|
43836
|
+
const wirelessPutWirelessControllerManagedDeviceGroupRadioProfileAssignmentsBodyParam = [
|
|
43837
|
+
{}
|
|
43838
|
+
];
|
|
43839
|
+
describe('#putWirelessControllerManagedDeviceGroupRadioProfileAssignments - errors', () => {
|
|
43840
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43841
|
+
try {
|
|
43842
|
+
a.putWirelessControllerManagedDeviceGroupRadioProfileAssignments(null, wirelessPutWirelessControllerManagedDeviceGroupRadioProfileAssignmentsBodyParam, null, (data, error) => {
|
|
43843
|
+
try {
|
|
43844
|
+
if (stub) {
|
|
43845
|
+
const displayE = 'Error 400 received on request';
|
|
43846
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43847
|
+
} else {
|
|
43848
|
+
runCommonAsserts(data, error);
|
|
43849
|
+
}
|
|
43850
|
+
saveMockData('Wireless', 'putWirelessControllerManagedDeviceGroupRadioProfileAssignments', 'default', data);
|
|
43851
|
+
done();
|
|
43852
|
+
} catch (err) {
|
|
43853
|
+
log.error(`Test Failure: ${err}`);
|
|
43854
|
+
done(err);
|
|
43855
|
+
}
|
|
43856
|
+
});
|
|
43857
|
+
} catch (error) {
|
|
43858
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43859
|
+
done(error);
|
|
43860
|
+
}
|
|
43861
|
+
}).timeout(attemptTimeout);
|
|
43862
|
+
});
|
|
43863
|
+
|
|
43864
|
+
const wirelessPatchWirelessControllerManagedDeviceGroupRadioProfileAssignmentsBodyParam = [
|
|
43865
|
+
{}
|
|
43866
|
+
];
|
|
43867
|
+
describe('#patchWirelessControllerManagedDeviceGroupRadioProfileAssignments - errors', () => {
|
|
43868
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43869
|
+
try {
|
|
43870
|
+
a.patchWirelessControllerManagedDeviceGroupRadioProfileAssignments(null, wirelessPatchWirelessControllerManagedDeviceGroupRadioProfileAssignmentsBodyParam, null, (data, error) => {
|
|
43871
|
+
try {
|
|
43872
|
+
if (stub) {
|
|
43873
|
+
const displayE = 'Error 400 received on request';
|
|
43874
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43875
|
+
} else {
|
|
43876
|
+
runCommonAsserts(data, error);
|
|
43877
|
+
}
|
|
43878
|
+
saveMockData('Wireless', 'patchWirelessControllerManagedDeviceGroupRadioProfileAssignments', 'default', data);
|
|
43879
|
+
done();
|
|
43880
|
+
} catch (err) {
|
|
43881
|
+
log.error(`Test Failure: ${err}`);
|
|
43882
|
+
done(err);
|
|
43883
|
+
}
|
|
43884
|
+
});
|
|
43885
|
+
} catch (error) {
|
|
43886
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43887
|
+
done(error);
|
|
43888
|
+
}
|
|
43889
|
+
}).timeout(attemptTimeout);
|
|
43890
|
+
});
|
|
43891
|
+
|
|
43892
|
+
const wirelessDeleteWirelessControllerManagedDeviceGroupRadioProfileAssignmentsBodyParam = [
|
|
43893
|
+
{}
|
|
43894
|
+
];
|
|
43895
|
+
describe('#deleteWirelessControllerManagedDeviceGroupRadioProfileAssignments - errors', () => {
|
|
43896
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43897
|
+
try {
|
|
43898
|
+
a.deleteWirelessControllerManagedDeviceGroupRadioProfileAssignments(null, wirelessDeleteWirelessControllerManagedDeviceGroupRadioProfileAssignmentsBodyParam, null, (data, error) => {
|
|
43899
|
+
try {
|
|
43900
|
+
if (stub) {
|
|
43901
|
+
const displayE = 'Error 400 received on request';
|
|
43902
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43903
|
+
} else {
|
|
43904
|
+
runCommonAsserts(data, error);
|
|
43905
|
+
}
|
|
43906
|
+
saveMockData('Wireless', 'deleteWirelessControllerManagedDeviceGroupRadioProfileAssignments', 'default', data);
|
|
43907
|
+
done();
|
|
43908
|
+
} catch (err) {
|
|
43909
|
+
log.error(`Test Failure: ${err}`);
|
|
43910
|
+
done(err);
|
|
43911
|
+
}
|
|
43912
|
+
});
|
|
43913
|
+
} catch (error) {
|
|
43914
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43915
|
+
done(error);
|
|
43916
|
+
}
|
|
43917
|
+
}).timeout(attemptTimeout);
|
|
43918
|
+
});
|
|
43919
|
+
|
|
43920
|
+
describe('#getWirelessControllerManagedDeviceGroupRadioProfileAssignmentsId - errors', () => {
|
|
43921
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43922
|
+
try {
|
|
43923
|
+
a.getWirelessControllerManagedDeviceGroupRadioProfileAssignmentsId(null, 'fakedata', null, null, null, (data, error) => {
|
|
43924
|
+
try {
|
|
43925
|
+
if (stub) {
|
|
43926
|
+
const displayE = 'Error 400 received on request';
|
|
43927
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43928
|
+
} else {
|
|
43929
|
+
runCommonAsserts(data, error);
|
|
43930
|
+
}
|
|
43931
|
+
saveMockData('Wireless', 'getWirelessControllerManagedDeviceGroupRadioProfileAssignmentsId', 'default', data);
|
|
43932
|
+
done();
|
|
43933
|
+
} catch (err) {
|
|
43934
|
+
log.error(`Test Failure: ${err}`);
|
|
43935
|
+
done(err);
|
|
43936
|
+
}
|
|
43937
|
+
});
|
|
43938
|
+
} catch (error) {
|
|
43939
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43940
|
+
done(error);
|
|
43941
|
+
}
|
|
43942
|
+
}).timeout(attemptTimeout);
|
|
43943
|
+
});
|
|
43944
|
+
|
|
43945
|
+
const wirelessPutWirelessControllerManagedDeviceGroupRadioProfileAssignmentsIdBodyParam = {};
|
|
43946
|
+
describe('#putWirelessControllerManagedDeviceGroupRadioProfileAssignmentsId - errors', () => {
|
|
43947
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43948
|
+
try {
|
|
43949
|
+
a.putWirelessControllerManagedDeviceGroupRadioProfileAssignmentsId(null, 'fakedata', wirelessPutWirelessControllerManagedDeviceGroupRadioProfileAssignmentsIdBodyParam, null, (data, error) => {
|
|
43950
|
+
try {
|
|
43951
|
+
if (stub) {
|
|
43952
|
+
const displayE = 'Error 400 received on request';
|
|
43953
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43954
|
+
} else {
|
|
43955
|
+
runCommonAsserts(data, error);
|
|
43956
|
+
}
|
|
43957
|
+
saveMockData('Wireless', 'putWirelessControllerManagedDeviceGroupRadioProfileAssignmentsId', 'default', data);
|
|
43958
|
+
done();
|
|
43959
|
+
} catch (err) {
|
|
43960
|
+
log.error(`Test Failure: ${err}`);
|
|
43961
|
+
done(err);
|
|
43962
|
+
}
|
|
43963
|
+
});
|
|
43964
|
+
} catch (error) {
|
|
43965
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43966
|
+
done(error);
|
|
43967
|
+
}
|
|
43968
|
+
}).timeout(attemptTimeout);
|
|
43969
|
+
});
|
|
43970
|
+
|
|
43971
|
+
const wirelessPatchWirelessControllerManagedDeviceGroupRadioProfileAssignmentsIdBodyParam = {
|
|
43972
|
+
type: null
|
|
43973
|
+
};
|
|
43974
|
+
describe('#patchWirelessControllerManagedDeviceGroupRadioProfileAssignmentsId - errors', () => {
|
|
43975
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
43976
|
+
try {
|
|
43977
|
+
a.patchWirelessControllerManagedDeviceGroupRadioProfileAssignmentsId(null, 'fakedata', wirelessPatchWirelessControllerManagedDeviceGroupRadioProfileAssignmentsIdBodyParam, null, (data, error) => {
|
|
43978
|
+
try {
|
|
43979
|
+
if (stub) {
|
|
43980
|
+
const displayE = 'Error 400 received on request';
|
|
43981
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
43982
|
+
} else {
|
|
43983
|
+
runCommonAsserts(data, error);
|
|
43984
|
+
}
|
|
43985
|
+
saveMockData('Wireless', 'patchWirelessControllerManagedDeviceGroupRadioProfileAssignmentsId', 'default', data);
|
|
43986
|
+
done();
|
|
43987
|
+
} catch (err) {
|
|
43988
|
+
log.error(`Test Failure: ${err}`);
|
|
43989
|
+
done(err);
|
|
43990
|
+
}
|
|
43991
|
+
});
|
|
43992
|
+
} catch (error) {
|
|
43993
|
+
log.error(`Adapter Exception: ${error}`);
|
|
43994
|
+
done(error);
|
|
43995
|
+
}
|
|
43996
|
+
}).timeout(attemptTimeout);
|
|
43997
|
+
});
|
|
43998
|
+
|
|
43999
|
+
describe('#deleteWirelessControllerManagedDeviceGroupRadioProfileAssignmentsId - errors', () => {
|
|
44000
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44001
|
+
try {
|
|
44002
|
+
a.deleteWirelessControllerManagedDeviceGroupRadioProfileAssignmentsId(null, 'fakedata', null, (data, error) => {
|
|
44003
|
+
try {
|
|
44004
|
+
if (stub) {
|
|
44005
|
+
const displayE = 'Error 400 received on request';
|
|
44006
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44007
|
+
} else {
|
|
44008
|
+
runCommonAsserts(data, error);
|
|
44009
|
+
}
|
|
44010
|
+
saveMockData('Wireless', 'deleteWirelessControllerManagedDeviceGroupRadioProfileAssignmentsId', 'default', data);
|
|
44011
|
+
done();
|
|
44012
|
+
} catch (err) {
|
|
44013
|
+
log.error(`Test Failure: ${err}`);
|
|
44014
|
+
done(err);
|
|
44015
|
+
}
|
|
44016
|
+
});
|
|
44017
|
+
} catch (error) {
|
|
44018
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44019
|
+
done(error);
|
|
44020
|
+
}
|
|
44021
|
+
}).timeout(attemptTimeout);
|
|
44022
|
+
});
|
|
44023
|
+
|
|
44024
|
+
describe('#getWirelessControllerManagedDeviceGroupWirelessNetworkAssignments - errors', () => {
|
|
44025
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44026
|
+
try {
|
|
44027
|
+
a.getWirelessControllerManagedDeviceGroupWirelessNetworkAssignments(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
44028
|
+
try {
|
|
44029
|
+
if (stub) {
|
|
44030
|
+
const displayE = 'Error 400 received on request';
|
|
44031
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44032
|
+
} else {
|
|
44033
|
+
runCommonAsserts(data, error);
|
|
44034
|
+
}
|
|
44035
|
+
saveMockData('Wireless', 'getWirelessControllerManagedDeviceGroupWirelessNetworkAssignments', 'default', data);
|
|
44036
|
+
done();
|
|
44037
|
+
} catch (err) {
|
|
44038
|
+
log.error(`Test Failure: ${err}`);
|
|
44039
|
+
done(err);
|
|
44040
|
+
}
|
|
44041
|
+
});
|
|
44042
|
+
} catch (error) {
|
|
44043
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44044
|
+
done(error);
|
|
44045
|
+
}
|
|
44046
|
+
}).timeout(attemptTimeout);
|
|
44047
|
+
});
|
|
44048
|
+
|
|
44049
|
+
const wirelessPostWirelessControllerManagedDeviceGroupWirelessNetworkAssignmentsBodyParam = {};
|
|
44050
|
+
describe('#postWirelessControllerManagedDeviceGroupWirelessNetworkAssignments - errors', () => {
|
|
44051
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44052
|
+
try {
|
|
44053
|
+
a.postWirelessControllerManagedDeviceGroupWirelessNetworkAssignments(null, wirelessPostWirelessControllerManagedDeviceGroupWirelessNetworkAssignmentsBodyParam, null, (data, error) => {
|
|
44054
|
+
try {
|
|
44055
|
+
if (stub) {
|
|
44056
|
+
const displayE = 'Error 400 received on request';
|
|
44057
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44058
|
+
} else {
|
|
44059
|
+
runCommonAsserts(data, error);
|
|
44060
|
+
}
|
|
44061
|
+
saveMockData('Wireless', 'postWirelessControllerManagedDeviceGroupWirelessNetworkAssignments', 'default', data);
|
|
44062
|
+
done();
|
|
44063
|
+
} catch (err) {
|
|
44064
|
+
log.error(`Test Failure: ${err}`);
|
|
44065
|
+
done(err);
|
|
44066
|
+
}
|
|
44067
|
+
});
|
|
44068
|
+
} catch (error) {
|
|
44069
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44070
|
+
done(error);
|
|
44071
|
+
}
|
|
44072
|
+
}).timeout(attemptTimeout);
|
|
44073
|
+
});
|
|
44074
|
+
|
|
44075
|
+
const wirelessPutWirelessControllerManagedDeviceGroupWirelessNetworkAssignmentsBodyParam = [
|
|
44076
|
+
{}
|
|
44077
|
+
];
|
|
44078
|
+
describe('#putWirelessControllerManagedDeviceGroupWirelessNetworkAssignments - errors', () => {
|
|
44079
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44080
|
+
try {
|
|
44081
|
+
a.putWirelessControllerManagedDeviceGroupWirelessNetworkAssignments(null, wirelessPutWirelessControllerManagedDeviceGroupWirelessNetworkAssignmentsBodyParam, null, (data, error) => {
|
|
44082
|
+
try {
|
|
44083
|
+
if (stub) {
|
|
44084
|
+
const displayE = 'Error 400 received on request';
|
|
44085
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44086
|
+
} else {
|
|
44087
|
+
runCommonAsserts(data, error);
|
|
44088
|
+
}
|
|
44089
|
+
saveMockData('Wireless', 'putWirelessControllerManagedDeviceGroupWirelessNetworkAssignments', 'default', data);
|
|
44090
|
+
done();
|
|
44091
|
+
} catch (err) {
|
|
44092
|
+
log.error(`Test Failure: ${err}`);
|
|
44093
|
+
done(err);
|
|
44094
|
+
}
|
|
44095
|
+
});
|
|
44096
|
+
} catch (error) {
|
|
44097
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44098
|
+
done(error);
|
|
44099
|
+
}
|
|
44100
|
+
}).timeout(attemptTimeout);
|
|
44101
|
+
});
|
|
44102
|
+
|
|
44103
|
+
const wirelessPatchWirelessControllerManagedDeviceGroupWirelessNetworkAssignmentsBodyParam = [
|
|
44104
|
+
{}
|
|
44105
|
+
];
|
|
44106
|
+
describe('#patchWirelessControllerManagedDeviceGroupWirelessNetworkAssignments - errors', () => {
|
|
44107
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44108
|
+
try {
|
|
44109
|
+
a.patchWirelessControllerManagedDeviceGroupWirelessNetworkAssignments(null, wirelessPatchWirelessControllerManagedDeviceGroupWirelessNetworkAssignmentsBodyParam, null, (data, error) => {
|
|
44110
|
+
try {
|
|
44111
|
+
if (stub) {
|
|
44112
|
+
const displayE = 'Error 400 received on request';
|
|
44113
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44114
|
+
} else {
|
|
44115
|
+
runCommonAsserts(data, error);
|
|
44116
|
+
}
|
|
44117
|
+
saveMockData('Wireless', 'patchWirelessControllerManagedDeviceGroupWirelessNetworkAssignments', 'default', data);
|
|
44118
|
+
done();
|
|
44119
|
+
} catch (err) {
|
|
44120
|
+
log.error(`Test Failure: ${err}`);
|
|
44121
|
+
done(err);
|
|
44122
|
+
}
|
|
44123
|
+
});
|
|
44124
|
+
} catch (error) {
|
|
44125
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44126
|
+
done(error);
|
|
44127
|
+
}
|
|
44128
|
+
}).timeout(attemptTimeout);
|
|
44129
|
+
});
|
|
44130
|
+
|
|
44131
|
+
const wirelessDeleteWirelessControllerManagedDeviceGroupWirelessNetworkAssignmentsBodyParam = [
|
|
44132
|
+
{}
|
|
44133
|
+
];
|
|
44134
|
+
describe('#deleteWirelessControllerManagedDeviceGroupWirelessNetworkAssignments - errors', () => {
|
|
44135
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44136
|
+
try {
|
|
44137
|
+
a.deleteWirelessControllerManagedDeviceGroupWirelessNetworkAssignments(null, wirelessDeleteWirelessControllerManagedDeviceGroupWirelessNetworkAssignmentsBodyParam, null, (data, error) => {
|
|
44138
|
+
try {
|
|
44139
|
+
if (stub) {
|
|
44140
|
+
const displayE = 'Error 400 received on request';
|
|
44141
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44142
|
+
} else {
|
|
44143
|
+
runCommonAsserts(data, error);
|
|
44144
|
+
}
|
|
44145
|
+
saveMockData('Wireless', 'deleteWirelessControllerManagedDeviceGroupWirelessNetworkAssignments', 'default', data);
|
|
44146
|
+
done();
|
|
44147
|
+
} catch (err) {
|
|
44148
|
+
log.error(`Test Failure: ${err}`);
|
|
44149
|
+
done(err);
|
|
44150
|
+
}
|
|
44151
|
+
});
|
|
44152
|
+
} catch (error) {
|
|
44153
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44154
|
+
done(error);
|
|
44155
|
+
}
|
|
44156
|
+
}).timeout(attemptTimeout);
|
|
44157
|
+
});
|
|
44158
|
+
|
|
44159
|
+
describe('#getWirelessControllerManagedDeviceGroupWirelessNetworkAssignmentsId - errors', () => {
|
|
44160
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44161
|
+
try {
|
|
44162
|
+
a.getWirelessControllerManagedDeviceGroupWirelessNetworkAssignmentsId(null, 'fakedata', null, null, null, (data, error) => {
|
|
44163
|
+
try {
|
|
44164
|
+
if (stub) {
|
|
44165
|
+
const displayE = 'Error 400 received on request';
|
|
44166
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44167
|
+
} else {
|
|
44168
|
+
runCommonAsserts(data, error);
|
|
44169
|
+
}
|
|
44170
|
+
saveMockData('Wireless', 'getWirelessControllerManagedDeviceGroupWirelessNetworkAssignmentsId', 'default', data);
|
|
44171
|
+
done();
|
|
44172
|
+
} catch (err) {
|
|
44173
|
+
log.error(`Test Failure: ${err}`);
|
|
44174
|
+
done(err);
|
|
44175
|
+
}
|
|
44176
|
+
});
|
|
44177
|
+
} catch (error) {
|
|
44178
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44179
|
+
done(error);
|
|
44180
|
+
}
|
|
44181
|
+
}).timeout(attemptTimeout);
|
|
44182
|
+
});
|
|
44183
|
+
|
|
44184
|
+
const wirelessPutWirelessControllerManagedDeviceGroupWirelessNetworkAssignmentsIdBodyParam = {};
|
|
44185
|
+
describe('#putWirelessControllerManagedDeviceGroupWirelessNetworkAssignmentsId - errors', () => {
|
|
44186
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44187
|
+
try {
|
|
44188
|
+
a.putWirelessControllerManagedDeviceGroupWirelessNetworkAssignmentsId(null, 'fakedata', wirelessPutWirelessControllerManagedDeviceGroupWirelessNetworkAssignmentsIdBodyParam, null, (data, error) => {
|
|
44189
|
+
try {
|
|
44190
|
+
if (stub) {
|
|
44191
|
+
const displayE = 'Error 400 received on request';
|
|
44192
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44193
|
+
} else {
|
|
44194
|
+
runCommonAsserts(data, error);
|
|
44195
|
+
}
|
|
44196
|
+
saveMockData('Wireless', 'putWirelessControllerManagedDeviceGroupWirelessNetworkAssignmentsId', 'default', data);
|
|
44197
|
+
done();
|
|
44198
|
+
} catch (err) {
|
|
44199
|
+
log.error(`Test Failure: ${err}`);
|
|
44200
|
+
done(err);
|
|
44201
|
+
}
|
|
44202
|
+
});
|
|
44203
|
+
} catch (error) {
|
|
44204
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44205
|
+
done(error);
|
|
44206
|
+
}
|
|
44207
|
+
}).timeout(attemptTimeout);
|
|
44208
|
+
});
|
|
44209
|
+
|
|
44210
|
+
const wirelessPatchWirelessControllerManagedDeviceGroupWirelessNetworkAssignmentsIdBodyParam = {
|
|
44211
|
+
type: null
|
|
44212
|
+
};
|
|
44213
|
+
describe('#patchWirelessControllerManagedDeviceGroupWirelessNetworkAssignmentsId - errors', () => {
|
|
44214
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44215
|
+
try {
|
|
44216
|
+
a.patchWirelessControllerManagedDeviceGroupWirelessNetworkAssignmentsId(null, 'fakedata', wirelessPatchWirelessControllerManagedDeviceGroupWirelessNetworkAssignmentsIdBodyParam, null, (data, error) => {
|
|
44217
|
+
try {
|
|
44218
|
+
if (stub) {
|
|
44219
|
+
const displayE = 'Error 400 received on request';
|
|
44220
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44221
|
+
} else {
|
|
44222
|
+
runCommonAsserts(data, error);
|
|
44223
|
+
}
|
|
44224
|
+
saveMockData('Wireless', 'patchWirelessControllerManagedDeviceGroupWirelessNetworkAssignmentsId', 'default', data);
|
|
44225
|
+
done();
|
|
44226
|
+
} catch (err) {
|
|
44227
|
+
log.error(`Test Failure: ${err}`);
|
|
44228
|
+
done(err);
|
|
44229
|
+
}
|
|
44230
|
+
});
|
|
44231
|
+
} catch (error) {
|
|
44232
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44233
|
+
done(error);
|
|
44234
|
+
}
|
|
44235
|
+
}).timeout(attemptTimeout);
|
|
44236
|
+
});
|
|
44237
|
+
|
|
44238
|
+
describe('#deleteWirelessControllerManagedDeviceGroupWirelessNetworkAssignmentsId - errors', () => {
|
|
44239
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44240
|
+
try {
|
|
44241
|
+
a.deleteWirelessControllerManagedDeviceGroupWirelessNetworkAssignmentsId(null, 'fakedata', null, (data, error) => {
|
|
44242
|
+
try {
|
|
44243
|
+
if (stub) {
|
|
44244
|
+
const displayE = 'Error 400 received on request';
|
|
44245
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44246
|
+
} else {
|
|
44247
|
+
runCommonAsserts(data, error);
|
|
44248
|
+
}
|
|
44249
|
+
saveMockData('Wireless', 'deleteWirelessControllerManagedDeviceGroupWirelessNetworkAssignmentsId', 'default', data);
|
|
44250
|
+
done();
|
|
44251
|
+
} catch (err) {
|
|
44252
|
+
log.error(`Test Failure: ${err}`);
|
|
44253
|
+
done(err);
|
|
44254
|
+
}
|
|
44255
|
+
});
|
|
44256
|
+
} catch (error) {
|
|
44257
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44258
|
+
done(error);
|
|
44259
|
+
}
|
|
44260
|
+
}).timeout(attemptTimeout);
|
|
44261
|
+
});
|
|
44262
|
+
|
|
44263
|
+
describe('#getWirelessRadioProfiles - errors', () => {
|
|
44264
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44265
|
+
try {
|
|
44266
|
+
a.getWirelessRadioProfiles(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
44267
|
+
try {
|
|
44268
|
+
if (stub) {
|
|
44269
|
+
const displayE = 'Error 400 received on request';
|
|
44270
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44271
|
+
} else {
|
|
44272
|
+
runCommonAsserts(data, error);
|
|
44273
|
+
}
|
|
44274
|
+
saveMockData('Wireless', 'getWirelessRadioProfiles', 'default', data);
|
|
44275
|
+
done();
|
|
44276
|
+
} catch (err) {
|
|
44277
|
+
log.error(`Test Failure: ${err}`);
|
|
44278
|
+
done(err);
|
|
44279
|
+
}
|
|
44280
|
+
});
|
|
44281
|
+
} catch (error) {
|
|
44282
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44283
|
+
done(error);
|
|
44284
|
+
}
|
|
44285
|
+
}).timeout(attemptTimeout);
|
|
44286
|
+
});
|
|
44287
|
+
|
|
44288
|
+
const wirelessPostWirelessRadioProfilesBodyParam = {};
|
|
44289
|
+
describe('#postWirelessRadioProfiles - errors', () => {
|
|
44290
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44291
|
+
try {
|
|
44292
|
+
a.postWirelessRadioProfiles(null, wirelessPostWirelessRadioProfilesBodyParam, null, (data, error) => {
|
|
44293
|
+
try {
|
|
44294
|
+
if (stub) {
|
|
44295
|
+
const displayE = 'Error 400 received on request';
|
|
44296
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44297
|
+
} else {
|
|
44298
|
+
runCommonAsserts(data, error);
|
|
44299
|
+
}
|
|
44300
|
+
saveMockData('Wireless', 'postWirelessRadioProfiles', 'default', data);
|
|
44301
|
+
done();
|
|
44302
|
+
} catch (err) {
|
|
44303
|
+
log.error(`Test Failure: ${err}`);
|
|
44304
|
+
done(err);
|
|
44305
|
+
}
|
|
44306
|
+
});
|
|
44307
|
+
} catch (error) {
|
|
44308
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44309
|
+
done(error);
|
|
44310
|
+
}
|
|
44311
|
+
}).timeout(attemptTimeout);
|
|
44312
|
+
});
|
|
44313
|
+
|
|
44314
|
+
const wirelessPutWirelessRadioProfilesBodyParam = [
|
|
44315
|
+
{}
|
|
44316
|
+
];
|
|
44317
|
+
describe('#putWirelessRadioProfiles - errors', () => {
|
|
44318
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44319
|
+
try {
|
|
44320
|
+
a.putWirelessRadioProfiles(null, wirelessPutWirelessRadioProfilesBodyParam, null, (data, error) => {
|
|
44321
|
+
try {
|
|
44322
|
+
if (stub) {
|
|
44323
|
+
const displayE = 'Error 400 received on request';
|
|
44324
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44325
|
+
} else {
|
|
44326
|
+
runCommonAsserts(data, error);
|
|
44327
|
+
}
|
|
44328
|
+
saveMockData('Wireless', 'putWirelessRadioProfiles', 'default', data);
|
|
44329
|
+
done();
|
|
44330
|
+
} catch (err) {
|
|
44331
|
+
log.error(`Test Failure: ${err}`);
|
|
44332
|
+
done(err);
|
|
44333
|
+
}
|
|
44334
|
+
});
|
|
44335
|
+
} catch (error) {
|
|
44336
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44337
|
+
done(error);
|
|
44338
|
+
}
|
|
44339
|
+
}).timeout(attemptTimeout);
|
|
44340
|
+
});
|
|
44341
|
+
|
|
44342
|
+
const wirelessPatchWirelessRadioProfilesBodyParam = [
|
|
44343
|
+
{}
|
|
44344
|
+
];
|
|
44345
|
+
describe('#patchWirelessRadioProfiles - errors', () => {
|
|
44346
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44347
|
+
try {
|
|
44348
|
+
a.patchWirelessRadioProfiles(null, wirelessPatchWirelessRadioProfilesBodyParam, null, (data, error) => {
|
|
44349
|
+
try {
|
|
44350
|
+
if (stub) {
|
|
44351
|
+
const displayE = 'Error 400 received on request';
|
|
44352
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44353
|
+
} else {
|
|
44354
|
+
runCommonAsserts(data, error);
|
|
44355
|
+
}
|
|
44356
|
+
saveMockData('Wireless', 'patchWirelessRadioProfiles', 'default', data);
|
|
44357
|
+
done();
|
|
44358
|
+
} catch (err) {
|
|
44359
|
+
log.error(`Test Failure: ${err}`);
|
|
44360
|
+
done(err);
|
|
44361
|
+
}
|
|
44362
|
+
});
|
|
44363
|
+
} catch (error) {
|
|
44364
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44365
|
+
done(error);
|
|
44366
|
+
}
|
|
44367
|
+
}).timeout(attemptTimeout);
|
|
44368
|
+
});
|
|
44369
|
+
|
|
44370
|
+
const wirelessDeleteWirelessRadioProfilesBodyParam = [
|
|
44371
|
+
{}
|
|
44372
|
+
];
|
|
44373
|
+
describe('#deleteWirelessRadioProfiles - errors', () => {
|
|
44374
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44375
|
+
try {
|
|
44376
|
+
a.deleteWirelessRadioProfiles(null, wirelessDeleteWirelessRadioProfilesBodyParam, null, (data, error) => {
|
|
44377
|
+
try {
|
|
44378
|
+
if (stub) {
|
|
44379
|
+
const displayE = 'Error 400 received on request';
|
|
44380
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44381
|
+
} else {
|
|
44382
|
+
runCommonAsserts(data, error);
|
|
44383
|
+
}
|
|
44384
|
+
saveMockData('Wireless', 'deleteWirelessRadioProfiles', 'default', data);
|
|
44385
|
+
done();
|
|
44386
|
+
} catch (err) {
|
|
44387
|
+
log.error(`Test Failure: ${err}`);
|
|
44388
|
+
done(err);
|
|
44389
|
+
}
|
|
44390
|
+
});
|
|
44391
|
+
} catch (error) {
|
|
44392
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44393
|
+
done(error);
|
|
44394
|
+
}
|
|
44395
|
+
}).timeout(attemptTimeout);
|
|
44396
|
+
});
|
|
44397
|
+
|
|
44398
|
+
describe('#getWirelessRadioProfilesId - errors', () => {
|
|
44399
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44400
|
+
try {
|
|
44401
|
+
a.getWirelessRadioProfilesId(null, 'fakedata', null, null, null, (data, error) => {
|
|
44402
|
+
try {
|
|
44403
|
+
if (stub) {
|
|
44404
|
+
const displayE = 'Error 400 received on request';
|
|
44405
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44406
|
+
} else {
|
|
44407
|
+
runCommonAsserts(data, error);
|
|
44408
|
+
}
|
|
44409
|
+
saveMockData('Wireless', 'getWirelessRadioProfilesId', 'default', data);
|
|
44410
|
+
done();
|
|
44411
|
+
} catch (err) {
|
|
44412
|
+
log.error(`Test Failure: ${err}`);
|
|
44413
|
+
done(err);
|
|
44414
|
+
}
|
|
44415
|
+
});
|
|
44416
|
+
} catch (error) {
|
|
44417
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44418
|
+
done(error);
|
|
44419
|
+
}
|
|
44420
|
+
}).timeout(attemptTimeout);
|
|
44421
|
+
});
|
|
44422
|
+
|
|
44423
|
+
const wirelessPutWirelessRadioProfilesIdBodyParam = {};
|
|
44424
|
+
describe('#putWirelessRadioProfilesId - errors', () => {
|
|
44425
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44426
|
+
try {
|
|
44427
|
+
a.putWirelessRadioProfilesId(null, 'fakedata', wirelessPutWirelessRadioProfilesIdBodyParam, null, (data, error) => {
|
|
44428
|
+
try {
|
|
44429
|
+
if (stub) {
|
|
44430
|
+
const displayE = 'Error 400 received on request';
|
|
44431
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44432
|
+
} else {
|
|
44433
|
+
runCommonAsserts(data, error);
|
|
44434
|
+
}
|
|
44435
|
+
saveMockData('Wireless', 'putWirelessRadioProfilesId', 'default', data);
|
|
44436
|
+
done();
|
|
44437
|
+
} catch (err) {
|
|
44438
|
+
log.error(`Test Failure: ${err}`);
|
|
44439
|
+
done(err);
|
|
44440
|
+
}
|
|
44441
|
+
});
|
|
44442
|
+
} catch (error) {
|
|
44443
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44444
|
+
done(error);
|
|
44445
|
+
}
|
|
44446
|
+
}).timeout(attemptTimeout);
|
|
44447
|
+
});
|
|
44448
|
+
|
|
44449
|
+
const wirelessPatchWirelessRadioProfilesIdBodyParam = {
|
|
44450
|
+
type: null
|
|
44451
|
+
};
|
|
44452
|
+
describe('#patchWirelessRadioProfilesId - errors', () => {
|
|
44453
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44454
|
+
try {
|
|
44455
|
+
a.patchWirelessRadioProfilesId(null, 'fakedata', wirelessPatchWirelessRadioProfilesIdBodyParam, null, (data, error) => {
|
|
44456
|
+
try {
|
|
44457
|
+
if (stub) {
|
|
44458
|
+
const displayE = 'Error 400 received on request';
|
|
44459
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44460
|
+
} else {
|
|
44461
|
+
runCommonAsserts(data, error);
|
|
44462
|
+
}
|
|
44463
|
+
saveMockData('Wireless', 'patchWirelessRadioProfilesId', 'default', data);
|
|
44464
|
+
done();
|
|
44465
|
+
} catch (err) {
|
|
44466
|
+
log.error(`Test Failure: ${err}`);
|
|
44467
|
+
done(err);
|
|
44468
|
+
}
|
|
44469
|
+
});
|
|
44470
|
+
} catch (error) {
|
|
44471
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44472
|
+
done(error);
|
|
44473
|
+
}
|
|
44474
|
+
}).timeout(attemptTimeout);
|
|
44475
|
+
});
|
|
44476
|
+
|
|
44477
|
+
describe('#deleteWirelessRadioProfilesId - errors', () => {
|
|
44478
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44479
|
+
try {
|
|
44480
|
+
a.deleteWirelessRadioProfilesId(null, 'fakedata', null, (data, error) => {
|
|
44481
|
+
try {
|
|
44482
|
+
if (stub) {
|
|
44483
|
+
const displayE = 'Error 400 received on request';
|
|
44484
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44485
|
+
} else {
|
|
44486
|
+
runCommonAsserts(data, error);
|
|
44487
|
+
}
|
|
44488
|
+
saveMockData('Wireless', 'deleteWirelessRadioProfilesId', 'default', data);
|
|
44489
|
+
done();
|
|
44490
|
+
} catch (err) {
|
|
44491
|
+
log.error(`Test Failure: ${err}`);
|
|
44492
|
+
done(err);
|
|
44493
|
+
}
|
|
44494
|
+
});
|
|
44495
|
+
} catch (error) {
|
|
44496
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44497
|
+
done(error);
|
|
44498
|
+
}
|
|
44499
|
+
}).timeout(attemptTimeout);
|
|
44500
|
+
});
|
|
44501
|
+
|
|
44502
|
+
describe('#getWirelessRadioProfilesIdNotes - errors', () => {
|
|
44503
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44504
|
+
try {
|
|
44505
|
+
a.getWirelessRadioProfilesIdNotes(null, 'fakedata', null, null, null, null, null, (data, error) => {
|
|
44506
|
+
try {
|
|
44507
|
+
if (stub) {
|
|
44508
|
+
const displayE = 'Error 400 received on request';
|
|
44509
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44510
|
+
} else {
|
|
44511
|
+
runCommonAsserts(data, error);
|
|
44512
|
+
}
|
|
44513
|
+
saveMockData('Wireless', 'getWirelessRadioProfilesIdNotes', 'default', data);
|
|
44514
|
+
done();
|
|
44515
|
+
} catch (err) {
|
|
44516
|
+
log.error(`Test Failure: ${err}`);
|
|
44517
|
+
done(err);
|
|
44518
|
+
}
|
|
44519
|
+
});
|
|
44520
|
+
} catch (error) {
|
|
44521
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44522
|
+
done(error);
|
|
44523
|
+
}
|
|
44524
|
+
}).timeout(attemptTimeout);
|
|
44525
|
+
});
|
|
44526
|
+
|
|
44527
|
+
const wirelessPostWirelessRadioProfilesIdNotesBodyParam = {};
|
|
44528
|
+
describe('#postWirelessRadioProfilesIdNotes - errors', () => {
|
|
44529
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44530
|
+
try {
|
|
44531
|
+
a.postWirelessRadioProfilesIdNotes(null, 'fakedata', wirelessPostWirelessRadioProfilesIdNotesBodyParam, null, (data, error) => {
|
|
44532
|
+
try {
|
|
44533
|
+
if (stub) {
|
|
44534
|
+
const displayE = 'Error 400 received on request';
|
|
44535
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44536
|
+
} else {
|
|
44537
|
+
runCommonAsserts(data, error);
|
|
44538
|
+
}
|
|
44539
|
+
saveMockData('Wireless', 'postWirelessRadioProfilesIdNotes', 'default', data);
|
|
44540
|
+
done();
|
|
44541
|
+
} catch (err) {
|
|
44542
|
+
log.error(`Test Failure: ${err}`);
|
|
44543
|
+
done(err);
|
|
44544
|
+
}
|
|
44545
|
+
});
|
|
44546
|
+
} catch (error) {
|
|
44547
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44548
|
+
done(error);
|
|
44549
|
+
}
|
|
44550
|
+
}).timeout(attemptTimeout);
|
|
44551
|
+
});
|
|
44552
|
+
|
|
44553
|
+
describe('#getWirelessSupportedDataRates - errors', () => {
|
|
44554
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44555
|
+
try {
|
|
44556
|
+
a.getWirelessSupportedDataRates(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
44557
|
+
try {
|
|
44558
|
+
if (stub) {
|
|
44559
|
+
const displayE = 'Error 400 received on request';
|
|
44560
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44561
|
+
} else {
|
|
44562
|
+
runCommonAsserts(data, error);
|
|
44563
|
+
}
|
|
44564
|
+
saveMockData('Wireless', 'getWirelessSupportedDataRates', 'default', data);
|
|
44565
|
+
done();
|
|
44566
|
+
} catch (err) {
|
|
44567
|
+
log.error(`Test Failure: ${err}`);
|
|
44568
|
+
done(err);
|
|
44569
|
+
}
|
|
44570
|
+
});
|
|
44571
|
+
} catch (error) {
|
|
44572
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44573
|
+
done(error);
|
|
44574
|
+
}
|
|
44575
|
+
}).timeout(attemptTimeout);
|
|
44576
|
+
});
|
|
44577
|
+
|
|
44578
|
+
const wirelessPostWirelessSupportedDataRatesBodyParam = {};
|
|
44579
|
+
describe('#postWirelessSupportedDataRates - errors', () => {
|
|
44580
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44581
|
+
try {
|
|
44582
|
+
a.postWirelessSupportedDataRates(null, wirelessPostWirelessSupportedDataRatesBodyParam, null, (data, error) => {
|
|
44583
|
+
try {
|
|
44584
|
+
if (stub) {
|
|
44585
|
+
const displayE = 'Error 400 received on request';
|
|
44586
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44587
|
+
} else {
|
|
44588
|
+
runCommonAsserts(data, error);
|
|
44589
|
+
}
|
|
44590
|
+
saveMockData('Wireless', 'postWirelessSupportedDataRates', 'default', data);
|
|
44591
|
+
done();
|
|
44592
|
+
} catch (err) {
|
|
44593
|
+
log.error(`Test Failure: ${err}`);
|
|
44594
|
+
done(err);
|
|
44595
|
+
}
|
|
44596
|
+
});
|
|
44597
|
+
} catch (error) {
|
|
44598
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44599
|
+
done(error);
|
|
44600
|
+
}
|
|
44601
|
+
}).timeout(attemptTimeout);
|
|
44602
|
+
});
|
|
44603
|
+
|
|
44604
|
+
const wirelessPutWirelessSupportedDataRatesBodyParam = [
|
|
44605
|
+
{}
|
|
44606
|
+
];
|
|
44607
|
+
describe('#putWirelessSupportedDataRates - errors', () => {
|
|
44608
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44609
|
+
try {
|
|
44610
|
+
a.putWirelessSupportedDataRates(null, wirelessPutWirelessSupportedDataRatesBodyParam, null, (data, error) => {
|
|
44611
|
+
try {
|
|
44612
|
+
if (stub) {
|
|
44613
|
+
const displayE = 'Error 400 received on request';
|
|
44614
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44615
|
+
} else {
|
|
44616
|
+
runCommonAsserts(data, error);
|
|
44617
|
+
}
|
|
44618
|
+
saveMockData('Wireless', 'putWirelessSupportedDataRates', 'default', data);
|
|
44619
|
+
done();
|
|
44620
|
+
} catch (err) {
|
|
44621
|
+
log.error(`Test Failure: ${err}`);
|
|
44622
|
+
done(err);
|
|
44623
|
+
}
|
|
44624
|
+
});
|
|
44625
|
+
} catch (error) {
|
|
44626
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44627
|
+
done(error);
|
|
44628
|
+
}
|
|
44629
|
+
}).timeout(attemptTimeout);
|
|
44630
|
+
});
|
|
44631
|
+
|
|
44632
|
+
const wirelessPatchWirelessSupportedDataRatesBodyParam = [
|
|
44633
|
+
{}
|
|
44634
|
+
];
|
|
44635
|
+
describe('#patchWirelessSupportedDataRates - errors', () => {
|
|
44636
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44637
|
+
try {
|
|
44638
|
+
a.patchWirelessSupportedDataRates(null, wirelessPatchWirelessSupportedDataRatesBodyParam, null, (data, error) => {
|
|
44639
|
+
try {
|
|
44640
|
+
if (stub) {
|
|
44641
|
+
const displayE = 'Error 400 received on request';
|
|
44642
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44643
|
+
} else {
|
|
44644
|
+
runCommonAsserts(data, error);
|
|
44645
|
+
}
|
|
44646
|
+
saveMockData('Wireless', 'patchWirelessSupportedDataRates', 'default', data);
|
|
44647
|
+
done();
|
|
44648
|
+
} catch (err) {
|
|
44649
|
+
log.error(`Test Failure: ${err}`);
|
|
44650
|
+
done(err);
|
|
44651
|
+
}
|
|
44652
|
+
});
|
|
44653
|
+
} catch (error) {
|
|
44654
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44655
|
+
done(error);
|
|
44656
|
+
}
|
|
44657
|
+
}).timeout(attemptTimeout);
|
|
44658
|
+
});
|
|
44659
|
+
|
|
44660
|
+
const wirelessDeleteWirelessSupportedDataRatesBodyParam = [
|
|
44661
|
+
{}
|
|
44662
|
+
];
|
|
44663
|
+
describe('#deleteWirelessSupportedDataRates - errors', () => {
|
|
44664
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44665
|
+
try {
|
|
44666
|
+
a.deleteWirelessSupportedDataRates(null, wirelessDeleteWirelessSupportedDataRatesBodyParam, null, (data, error) => {
|
|
44667
|
+
try {
|
|
44668
|
+
if (stub) {
|
|
44669
|
+
const displayE = 'Error 400 received on request';
|
|
44670
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44671
|
+
} else {
|
|
44672
|
+
runCommonAsserts(data, error);
|
|
44673
|
+
}
|
|
44674
|
+
saveMockData('Wireless', 'deleteWirelessSupportedDataRates', 'default', data);
|
|
44675
|
+
done();
|
|
44676
|
+
} catch (err) {
|
|
44677
|
+
log.error(`Test Failure: ${err}`);
|
|
44678
|
+
done(err);
|
|
44679
|
+
}
|
|
44680
|
+
});
|
|
44681
|
+
} catch (error) {
|
|
44682
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44683
|
+
done(error);
|
|
44684
|
+
}
|
|
44685
|
+
}).timeout(attemptTimeout);
|
|
44686
|
+
});
|
|
44687
|
+
|
|
44688
|
+
describe('#getWirelessSupportedDataRatesId - errors', () => {
|
|
44689
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44690
|
+
try {
|
|
44691
|
+
a.getWirelessSupportedDataRatesId(null, 'fakedata', null, null, null, (data, error) => {
|
|
44692
|
+
try {
|
|
44693
|
+
if (stub) {
|
|
44694
|
+
const displayE = 'Error 400 received on request';
|
|
44695
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44696
|
+
} else {
|
|
44697
|
+
runCommonAsserts(data, error);
|
|
44698
|
+
}
|
|
44699
|
+
saveMockData('Wireless', 'getWirelessSupportedDataRatesId', 'default', data);
|
|
44700
|
+
done();
|
|
44701
|
+
} catch (err) {
|
|
44702
|
+
log.error(`Test Failure: ${err}`);
|
|
44703
|
+
done(err);
|
|
44704
|
+
}
|
|
44705
|
+
});
|
|
44706
|
+
} catch (error) {
|
|
44707
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44708
|
+
done(error);
|
|
44709
|
+
}
|
|
44710
|
+
}).timeout(attemptTimeout);
|
|
44711
|
+
});
|
|
44712
|
+
|
|
44713
|
+
const wirelessPutWirelessSupportedDataRatesIdBodyParam = {};
|
|
44714
|
+
describe('#putWirelessSupportedDataRatesId - errors', () => {
|
|
44715
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44716
|
+
try {
|
|
44717
|
+
a.putWirelessSupportedDataRatesId(null, 'fakedata', wirelessPutWirelessSupportedDataRatesIdBodyParam, null, (data, error) => {
|
|
44718
|
+
try {
|
|
44719
|
+
if (stub) {
|
|
44720
|
+
const displayE = 'Error 400 received on request';
|
|
44721
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44722
|
+
} else {
|
|
44723
|
+
runCommonAsserts(data, error);
|
|
44724
|
+
}
|
|
44725
|
+
saveMockData('Wireless', 'putWirelessSupportedDataRatesId', 'default', data);
|
|
44726
|
+
done();
|
|
44727
|
+
} catch (err) {
|
|
44728
|
+
log.error(`Test Failure: ${err}`);
|
|
44729
|
+
done(err);
|
|
44730
|
+
}
|
|
44731
|
+
});
|
|
44732
|
+
} catch (error) {
|
|
44733
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44734
|
+
done(error);
|
|
44735
|
+
}
|
|
44736
|
+
}).timeout(attemptTimeout);
|
|
44737
|
+
});
|
|
44738
|
+
|
|
44739
|
+
const wirelessPatchWirelessSupportedDataRatesIdBodyParam = {
|
|
44740
|
+
type: null
|
|
44741
|
+
};
|
|
44742
|
+
describe('#patchWirelessSupportedDataRatesId - errors', () => {
|
|
44743
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44744
|
+
try {
|
|
44745
|
+
a.patchWirelessSupportedDataRatesId(null, 'fakedata', wirelessPatchWirelessSupportedDataRatesIdBodyParam, null, (data, error) => {
|
|
44746
|
+
try {
|
|
44747
|
+
if (stub) {
|
|
44748
|
+
const displayE = 'Error 400 received on request';
|
|
44749
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44750
|
+
} else {
|
|
44751
|
+
runCommonAsserts(data, error);
|
|
44752
|
+
}
|
|
44753
|
+
saveMockData('Wireless', 'patchWirelessSupportedDataRatesId', 'default', data);
|
|
44754
|
+
done();
|
|
44755
|
+
} catch (err) {
|
|
44756
|
+
log.error(`Test Failure: ${err}`);
|
|
44757
|
+
done(err);
|
|
44758
|
+
}
|
|
44759
|
+
});
|
|
44760
|
+
} catch (error) {
|
|
44761
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44762
|
+
done(error);
|
|
44763
|
+
}
|
|
44764
|
+
}).timeout(attemptTimeout);
|
|
44765
|
+
});
|
|
44766
|
+
|
|
44767
|
+
describe('#deleteWirelessSupportedDataRatesId - errors', () => {
|
|
44768
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44769
|
+
try {
|
|
44770
|
+
a.deleteWirelessSupportedDataRatesId(null, 'fakedata', null, (data, error) => {
|
|
44771
|
+
try {
|
|
44772
|
+
if (stub) {
|
|
44773
|
+
const displayE = 'Error 400 received on request';
|
|
44774
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44775
|
+
} else {
|
|
44776
|
+
runCommonAsserts(data, error);
|
|
44777
|
+
}
|
|
44778
|
+
saveMockData('Wireless', 'deleteWirelessSupportedDataRatesId', 'default', data);
|
|
44779
|
+
done();
|
|
44780
|
+
} catch (err) {
|
|
44781
|
+
log.error(`Test Failure: ${err}`);
|
|
44782
|
+
done(err);
|
|
44783
|
+
}
|
|
44784
|
+
});
|
|
44785
|
+
} catch (error) {
|
|
44786
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44787
|
+
done(error);
|
|
44788
|
+
}
|
|
44789
|
+
}).timeout(attemptTimeout);
|
|
44790
|
+
});
|
|
44791
|
+
|
|
44792
|
+
describe('#getWirelessSupportedDataRatesIdNotes - errors', () => {
|
|
44793
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44794
|
+
try {
|
|
44795
|
+
a.getWirelessSupportedDataRatesIdNotes(null, 'fakedata', null, null, null, null, null, (data, error) => {
|
|
44796
|
+
try {
|
|
44797
|
+
if (stub) {
|
|
44798
|
+
const displayE = 'Error 400 received on request';
|
|
44799
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44800
|
+
} else {
|
|
44801
|
+
runCommonAsserts(data, error);
|
|
44802
|
+
}
|
|
44803
|
+
saveMockData('Wireless', 'getWirelessSupportedDataRatesIdNotes', 'default', data);
|
|
44804
|
+
done();
|
|
44805
|
+
} catch (err) {
|
|
44806
|
+
log.error(`Test Failure: ${err}`);
|
|
44807
|
+
done(err);
|
|
44808
|
+
}
|
|
44809
|
+
});
|
|
44810
|
+
} catch (error) {
|
|
44811
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44812
|
+
done(error);
|
|
44813
|
+
}
|
|
44814
|
+
}).timeout(attemptTimeout);
|
|
44815
|
+
});
|
|
44816
|
+
|
|
44817
|
+
const wirelessPostWirelessSupportedDataRatesIdNotesBodyParam = {};
|
|
44818
|
+
describe('#postWirelessSupportedDataRatesIdNotes - errors', () => {
|
|
44819
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44820
|
+
try {
|
|
44821
|
+
a.postWirelessSupportedDataRatesIdNotes(null, 'fakedata', wirelessPostWirelessSupportedDataRatesIdNotesBodyParam, null, (data, error) => {
|
|
44822
|
+
try {
|
|
44823
|
+
if (stub) {
|
|
44824
|
+
const displayE = 'Error 400 received on request';
|
|
44825
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44826
|
+
} else {
|
|
44827
|
+
runCommonAsserts(data, error);
|
|
44828
|
+
}
|
|
44829
|
+
saveMockData('Wireless', 'postWirelessSupportedDataRatesIdNotes', 'default', data);
|
|
44830
|
+
done();
|
|
44831
|
+
} catch (err) {
|
|
44832
|
+
log.error(`Test Failure: ${err}`);
|
|
44833
|
+
done(err);
|
|
44834
|
+
}
|
|
44835
|
+
});
|
|
44836
|
+
} catch (error) {
|
|
44837
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44838
|
+
done(error);
|
|
44839
|
+
}
|
|
44840
|
+
}).timeout(attemptTimeout);
|
|
44841
|
+
});
|
|
44842
|
+
|
|
44843
|
+
describe('#getWirelessWirelessNetworks - errors', () => {
|
|
44844
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44845
|
+
try {
|
|
44846
|
+
a.getWirelessWirelessNetworks(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
44847
|
+
try {
|
|
44848
|
+
if (stub) {
|
|
44849
|
+
const displayE = 'Error 400 received on request';
|
|
44850
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44851
|
+
} else {
|
|
44852
|
+
runCommonAsserts(data, error);
|
|
44853
|
+
}
|
|
44854
|
+
saveMockData('Wireless', 'getWirelessWirelessNetworks', 'default', data);
|
|
44855
|
+
done();
|
|
44856
|
+
} catch (err) {
|
|
44857
|
+
log.error(`Test Failure: ${err}`);
|
|
44858
|
+
done(err);
|
|
44859
|
+
}
|
|
44860
|
+
});
|
|
44861
|
+
} catch (error) {
|
|
44862
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44863
|
+
done(error);
|
|
44864
|
+
}
|
|
44865
|
+
}).timeout(attemptTimeout);
|
|
44866
|
+
});
|
|
44867
|
+
|
|
44868
|
+
const wirelessPostWirelessWirelessNetworksBodyParam = {};
|
|
44869
|
+
describe('#postWirelessWirelessNetworks - errors', () => {
|
|
44870
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44871
|
+
try {
|
|
44872
|
+
a.postWirelessWirelessNetworks(null, wirelessPostWirelessWirelessNetworksBodyParam, null, (data, error) => {
|
|
44873
|
+
try {
|
|
44874
|
+
if (stub) {
|
|
44875
|
+
const displayE = 'Error 400 received on request';
|
|
44876
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44877
|
+
} else {
|
|
44878
|
+
runCommonAsserts(data, error);
|
|
44879
|
+
}
|
|
44880
|
+
saveMockData('Wireless', 'postWirelessWirelessNetworks', 'default', data);
|
|
44881
|
+
done();
|
|
44882
|
+
} catch (err) {
|
|
44883
|
+
log.error(`Test Failure: ${err}`);
|
|
44884
|
+
done(err);
|
|
44885
|
+
}
|
|
44886
|
+
});
|
|
44887
|
+
} catch (error) {
|
|
44888
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44889
|
+
done(error);
|
|
44890
|
+
}
|
|
44891
|
+
}).timeout(attemptTimeout);
|
|
44892
|
+
});
|
|
44893
|
+
|
|
44894
|
+
const wirelessPutWirelessWirelessNetworksBodyParam = [
|
|
44895
|
+
{}
|
|
44896
|
+
];
|
|
44897
|
+
describe('#putWirelessWirelessNetworks - errors', () => {
|
|
44898
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44899
|
+
try {
|
|
44900
|
+
a.putWirelessWirelessNetworks(null, wirelessPutWirelessWirelessNetworksBodyParam, null, (data, error) => {
|
|
44901
|
+
try {
|
|
44902
|
+
if (stub) {
|
|
44903
|
+
const displayE = 'Error 400 received on request';
|
|
44904
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44905
|
+
} else {
|
|
44906
|
+
runCommonAsserts(data, error);
|
|
44907
|
+
}
|
|
44908
|
+
saveMockData('Wireless', 'putWirelessWirelessNetworks', 'default', data);
|
|
44909
|
+
done();
|
|
44910
|
+
} catch (err) {
|
|
44911
|
+
log.error(`Test Failure: ${err}`);
|
|
44912
|
+
done(err);
|
|
44913
|
+
}
|
|
44914
|
+
});
|
|
44915
|
+
} catch (error) {
|
|
44916
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44917
|
+
done(error);
|
|
44918
|
+
}
|
|
44919
|
+
}).timeout(attemptTimeout);
|
|
44920
|
+
});
|
|
44921
|
+
|
|
44922
|
+
const wirelessPatchWirelessWirelessNetworksBodyParam = [
|
|
44923
|
+
{}
|
|
44924
|
+
];
|
|
44925
|
+
describe('#patchWirelessWirelessNetworks - errors', () => {
|
|
44926
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44927
|
+
try {
|
|
44928
|
+
a.patchWirelessWirelessNetworks(null, wirelessPatchWirelessWirelessNetworksBodyParam, null, (data, error) => {
|
|
44929
|
+
try {
|
|
44930
|
+
if (stub) {
|
|
44931
|
+
const displayE = 'Error 400 received on request';
|
|
44932
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44933
|
+
} else {
|
|
44934
|
+
runCommonAsserts(data, error);
|
|
44935
|
+
}
|
|
44936
|
+
saveMockData('Wireless', 'patchWirelessWirelessNetworks', 'default', data);
|
|
44937
|
+
done();
|
|
44938
|
+
} catch (err) {
|
|
44939
|
+
log.error(`Test Failure: ${err}`);
|
|
44940
|
+
done(err);
|
|
44941
|
+
}
|
|
44942
|
+
});
|
|
44943
|
+
} catch (error) {
|
|
44944
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44945
|
+
done(error);
|
|
44946
|
+
}
|
|
44947
|
+
}).timeout(attemptTimeout);
|
|
44948
|
+
});
|
|
44949
|
+
|
|
44950
|
+
const wirelessDeleteWirelessWirelessNetworksBodyParam = [
|
|
44951
|
+
{}
|
|
44952
|
+
];
|
|
44953
|
+
describe('#deleteWirelessWirelessNetworks - errors', () => {
|
|
44954
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44955
|
+
try {
|
|
44956
|
+
a.deleteWirelessWirelessNetworks(null, wirelessDeleteWirelessWirelessNetworksBodyParam, null, (data, error) => {
|
|
44957
|
+
try {
|
|
44958
|
+
if (stub) {
|
|
44959
|
+
const displayE = 'Error 400 received on request';
|
|
44960
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44961
|
+
} else {
|
|
44962
|
+
runCommonAsserts(data, error);
|
|
44963
|
+
}
|
|
44964
|
+
saveMockData('Wireless', 'deleteWirelessWirelessNetworks', 'default', data);
|
|
44965
|
+
done();
|
|
44966
|
+
} catch (err) {
|
|
44967
|
+
log.error(`Test Failure: ${err}`);
|
|
44968
|
+
done(err);
|
|
44969
|
+
}
|
|
44970
|
+
});
|
|
44971
|
+
} catch (error) {
|
|
44972
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44973
|
+
done(error);
|
|
44974
|
+
}
|
|
44975
|
+
}).timeout(attemptTimeout);
|
|
44976
|
+
});
|
|
44977
|
+
|
|
44978
|
+
describe('#getWirelessWirelessNetworksId - errors', () => {
|
|
44979
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
44980
|
+
try {
|
|
44981
|
+
a.getWirelessWirelessNetworksId(null, 'fakedata', null, null, null, (data, error) => {
|
|
44982
|
+
try {
|
|
44983
|
+
if (stub) {
|
|
44984
|
+
const displayE = 'Error 400 received on request';
|
|
44985
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
44986
|
+
} else {
|
|
44987
|
+
runCommonAsserts(data, error);
|
|
44988
|
+
}
|
|
44989
|
+
saveMockData('Wireless', 'getWirelessWirelessNetworksId', 'default', data);
|
|
44990
|
+
done();
|
|
44991
|
+
} catch (err) {
|
|
44992
|
+
log.error(`Test Failure: ${err}`);
|
|
44993
|
+
done(err);
|
|
44994
|
+
}
|
|
44995
|
+
});
|
|
44996
|
+
} catch (error) {
|
|
44997
|
+
log.error(`Adapter Exception: ${error}`);
|
|
44998
|
+
done(error);
|
|
44999
|
+
}
|
|
45000
|
+
}).timeout(attemptTimeout);
|
|
45001
|
+
});
|
|
45002
|
+
|
|
45003
|
+
const wirelessPutWirelessWirelessNetworksIdBodyParam = {};
|
|
45004
|
+
describe('#putWirelessWirelessNetworksId - errors', () => {
|
|
45005
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
45006
|
+
try {
|
|
45007
|
+
a.putWirelessWirelessNetworksId(null, 'fakedata', wirelessPutWirelessWirelessNetworksIdBodyParam, null, (data, error) => {
|
|
45008
|
+
try {
|
|
45009
|
+
if (stub) {
|
|
45010
|
+
const displayE = 'Error 400 received on request';
|
|
45011
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
45012
|
+
} else {
|
|
45013
|
+
runCommonAsserts(data, error);
|
|
45014
|
+
}
|
|
45015
|
+
saveMockData('Wireless', 'putWirelessWirelessNetworksId', 'default', data);
|
|
45016
|
+
done();
|
|
45017
|
+
} catch (err) {
|
|
45018
|
+
log.error(`Test Failure: ${err}`);
|
|
45019
|
+
done(err);
|
|
45020
|
+
}
|
|
45021
|
+
});
|
|
45022
|
+
} catch (error) {
|
|
45023
|
+
log.error(`Adapter Exception: ${error}`);
|
|
45024
|
+
done(error);
|
|
45025
|
+
}
|
|
45026
|
+
}).timeout(attemptTimeout);
|
|
45027
|
+
});
|
|
45028
|
+
|
|
45029
|
+
const wirelessPatchWirelessWirelessNetworksIdBodyParam = {
|
|
45030
|
+
type: null
|
|
45031
|
+
};
|
|
45032
|
+
describe('#patchWirelessWirelessNetworksId - errors', () => {
|
|
45033
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
45034
|
+
try {
|
|
45035
|
+
a.patchWirelessWirelessNetworksId(null, 'fakedata', wirelessPatchWirelessWirelessNetworksIdBodyParam, null, (data, error) => {
|
|
45036
|
+
try {
|
|
45037
|
+
if (stub) {
|
|
45038
|
+
const displayE = 'Error 400 received on request';
|
|
45039
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
45040
|
+
} else {
|
|
45041
|
+
runCommonAsserts(data, error);
|
|
45042
|
+
}
|
|
45043
|
+
saveMockData('Wireless', 'patchWirelessWirelessNetworksId', 'default', data);
|
|
45044
|
+
done();
|
|
45045
|
+
} catch (err) {
|
|
45046
|
+
log.error(`Test Failure: ${err}`);
|
|
45047
|
+
done(err);
|
|
45048
|
+
}
|
|
45049
|
+
});
|
|
45050
|
+
} catch (error) {
|
|
45051
|
+
log.error(`Adapter Exception: ${error}`);
|
|
45052
|
+
done(error);
|
|
45053
|
+
}
|
|
45054
|
+
}).timeout(attemptTimeout);
|
|
45055
|
+
});
|
|
45056
|
+
|
|
45057
|
+
describe('#deleteWirelessWirelessNetworksId - errors', () => {
|
|
45058
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
45059
|
+
try {
|
|
45060
|
+
a.deleteWirelessWirelessNetworksId(null, 'fakedata', null, (data, error) => {
|
|
45061
|
+
try {
|
|
45062
|
+
if (stub) {
|
|
45063
|
+
const displayE = 'Error 400 received on request';
|
|
45064
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
45065
|
+
} else {
|
|
45066
|
+
runCommonAsserts(data, error);
|
|
45067
|
+
}
|
|
45068
|
+
saveMockData('Wireless', 'deleteWirelessWirelessNetworksId', 'default', data);
|
|
45069
|
+
done();
|
|
45070
|
+
} catch (err) {
|
|
45071
|
+
log.error(`Test Failure: ${err}`);
|
|
45072
|
+
done(err);
|
|
45073
|
+
}
|
|
45074
|
+
});
|
|
45075
|
+
} catch (error) {
|
|
45076
|
+
log.error(`Adapter Exception: ${error}`);
|
|
45077
|
+
done(error);
|
|
45078
|
+
}
|
|
45079
|
+
}).timeout(attemptTimeout);
|
|
45080
|
+
});
|
|
45081
|
+
|
|
45082
|
+
describe('#getWirelessWirelessNetworksIdNotes - errors', () => {
|
|
45083
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
45084
|
+
try {
|
|
45085
|
+
a.getWirelessWirelessNetworksIdNotes(null, 'fakedata', null, null, null, null, null, (data, error) => {
|
|
45086
|
+
try {
|
|
45087
|
+
if (stub) {
|
|
45088
|
+
const displayE = 'Error 400 received on request';
|
|
45089
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
45090
|
+
} else {
|
|
45091
|
+
runCommonAsserts(data, error);
|
|
45092
|
+
}
|
|
45093
|
+
saveMockData('Wireless', 'getWirelessWirelessNetworksIdNotes', 'default', data);
|
|
45094
|
+
done();
|
|
45095
|
+
} catch (err) {
|
|
45096
|
+
log.error(`Test Failure: ${err}`);
|
|
45097
|
+
done(err);
|
|
45098
|
+
}
|
|
45099
|
+
});
|
|
45100
|
+
} catch (error) {
|
|
45101
|
+
log.error(`Adapter Exception: ${error}`);
|
|
45102
|
+
done(error);
|
|
45103
|
+
}
|
|
45104
|
+
}).timeout(attemptTimeout);
|
|
45105
|
+
});
|
|
45106
|
+
|
|
45107
|
+
const wirelessPostWirelessWirelessNetworksIdNotesBodyParam = {};
|
|
45108
|
+
describe('#postWirelessWirelessNetworksIdNotes - errors', () => {
|
|
45109
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
45110
|
+
try {
|
|
45111
|
+
a.postWirelessWirelessNetworksIdNotes(null, 'fakedata', wirelessPostWirelessWirelessNetworksIdNotesBodyParam, null, (data, error) => {
|
|
45112
|
+
try {
|
|
45113
|
+
if (stub) {
|
|
45114
|
+
const displayE = 'Error 400 received on request';
|
|
45115
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
45116
|
+
} else {
|
|
45117
|
+
runCommonAsserts(data, error);
|
|
45118
|
+
}
|
|
45119
|
+
saveMockData('Wireless', 'postWirelessWirelessNetworksIdNotes', 'default', data);
|
|
45120
|
+
done();
|
|
45121
|
+
} catch (err) {
|
|
45122
|
+
log.error(`Test Failure: ${err}`);
|
|
45123
|
+
done(err);
|
|
45124
|
+
}
|
|
45125
|
+
});
|
|
45126
|
+
} catch (error) {
|
|
45127
|
+
log.error(`Adapter Exception: ${error}`);
|
|
45128
|
+
done(error);
|
|
45129
|
+
}
|
|
45130
|
+
}).timeout(attemptTimeout);
|
|
45131
|
+
});
|
|
45132
|
+
|
|
45133
|
+
describe('#getMetrics - errors', () => {
|
|
45134
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
45135
|
+
try {
|
|
45136
|
+
a.getMetrics(null, (data, error) => {
|
|
45137
|
+
try {
|
|
45138
|
+
if (stub) {
|
|
45139
|
+
const displayE = 'Error 400 received on request';
|
|
45140
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-nautobot_v2-connectorRest-handleEndResponse', displayE);
|
|
45141
|
+
} else {
|
|
45142
|
+
runCommonAsserts(data, error);
|
|
45143
|
+
}
|
|
45144
|
+
saveMockData('Metrics', 'getMetrics', 'default', data);
|
|
45145
|
+
done();
|
|
45146
|
+
} catch (err) {
|
|
45147
|
+
log.error(`Test Failure: ${err}`);
|
|
45148
|
+
done(err);
|
|
45149
|
+
}
|
|
45150
|
+
});
|
|
45151
|
+
} catch (error) {
|
|
45152
|
+
log.error(`Adapter Exception: ${error}`);
|
|
45153
|
+
done(error);
|
|
45154
|
+
}
|
|
45155
|
+
}).timeout(attemptTimeout);
|
|
45156
|
+
});
|
|
42094
45157
|
});
|
|
42095
45158
|
});
|