@itentialopensource/adapter-netbrain 1.3.5 → 1.3.7

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.
@@ -319,7 +319,7 @@ describe('[unit] Netbrain Adapter Test', () => {
319
319
  assert.notEqual(null, packageDotJson.dependencies);
320
320
  assert.notEqual('', packageDotJson.dependencies);
321
321
  assert.equal('^8.17.1', packageDotJson.dependencies.ajv);
322
- assert.equal('^1.7.9', packageDotJson.dependencies.axios);
322
+ assert.equal('^1.8.2', packageDotJson.dependencies.axios);
323
323
  assert.equal('^11.0.0', packageDotJson.dependencies.commander);
324
324
  assert.equal('^11.2.0', packageDotJson.dependencies['fs-extra']);
325
325
  assert.equal('^10.8.2', packageDotJson.dependencies.mocha);
@@ -2208,23 +2208,6 @@ describe('[unit] Netbrain Adapter Test', () => {
2208
2208
  done(error);
2209
2209
  }
2210
2210
  }).timeout(attemptTimeout);
2211
- it('should error if - missing interfaceName', (done) => {
2212
- try {
2213
- a.getV1CMDBInterfacesAttributes('fakeparam', null, null, (data, error) => {
2214
- try {
2215
- const displayE = 'interfaceName is required';
2216
- runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-getV1CMDBInterfacesAttributes', displayE);
2217
- done();
2218
- } catch (err) {
2219
- log.error(`Test Failure: ${err}`);
2220
- done(err);
2221
- }
2222
- });
2223
- } catch (error) {
2224
- log.error(`Adapter Exception: ${error}`);
2225
- done(error);
2226
- }
2227
- }).timeout(attemptTimeout);
2228
2211
  });
2229
2212
 
2230
2213
  describe('#getV1CMDBModules - errors', () => {
@@ -3932,5 +3915,940 @@ describe('[unit] Netbrain Adapter Test', () => {
3932
3915
  }
3933
3916
  }).timeout(attemptTimeout);
3934
3917
  });
3918
+
3919
+ describe('#getcmdbChangeAnalysisExportTasksStatus - errors', () => {
3920
+ it('should have a getcmdbChangeAnalysisExportTasksStatus function', (done) => {
3921
+ try {
3922
+ assert.equal(true, typeof a.getcmdbChangeAnalysisExportTasksStatus === 'function');
3923
+ done();
3924
+ } catch (error) {
3925
+ log.error(`Test Failure: ${error}`);
3926
+ done(error);
3927
+ }
3928
+ }).timeout(attemptTimeout);
3929
+ it('should error if - missing taskId', (done) => {
3930
+ try {
3931
+ a.getcmdbChangeAnalysisExportTasksStatus(null, null, (data, error) => {
3932
+ try {
3933
+ const displayE = 'taskId is required';
3934
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-getcmdbChangeAnalysisExportTasksStatus', displayE);
3935
+ done();
3936
+ } catch (err) {
3937
+ log.error(`Test Failure: ${err}`);
3938
+ done(err);
3939
+ }
3940
+ });
3941
+ } catch (error) {
3942
+ log.error(`Adapter Exception: ${error}`);
3943
+ done(error);
3944
+ }
3945
+ }).timeout(attemptTimeout);
3946
+ });
3947
+
3948
+ describe('#postcmdbChangeAnalysisExportTasks - errors', () => {
3949
+ it('should have a postcmdbChangeAnalysisExportTasks function', (done) => {
3950
+ try {
3951
+ assert.equal(true, typeof a.postcmdbChangeAnalysisExportTasks === 'function');
3952
+ done();
3953
+ } catch (error) {
3954
+ log.error(`Test Failure: ${error}`);
3955
+ done(error);
3956
+ }
3957
+ }).timeout(attemptTimeout);
3958
+ it('should error if - missing body', (done) => {
3959
+ try {
3960
+ a.postcmdbChangeAnalysisExportTasks(null, null, (data, error) => {
3961
+ try {
3962
+ const displayE = 'body is required';
3963
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-postcmdbChangeAnalysisExportTasks', displayE);
3964
+ done();
3965
+ } catch (err) {
3966
+ log.error(`Test Failure: ${err}`);
3967
+ done(err);
3968
+ }
3969
+ });
3970
+ } catch (error) {
3971
+ log.error(`Adapter Exception: ${error}`);
3972
+ done(error);
3973
+ }
3974
+ }).timeout(attemptTimeout);
3975
+ });
3976
+
3977
+ describe('#getcmdbChangeAnalysisExportTasks12345Download - errors', () => {
3978
+ it('should have a getcmdbChangeAnalysisExportTasks12345Download function', (done) => {
3979
+ try {
3980
+ assert.equal(true, typeof a.getcmdbChangeAnalysisExportTasks12345Download === 'function');
3981
+ done();
3982
+ } catch (error) {
3983
+ log.error(`Test Failure: ${error}`);
3984
+ done(error);
3985
+ }
3986
+ }).timeout(attemptTimeout);
3987
+ });
3988
+
3989
+ describe('#postcmdbCMTasksScheduledTask - errors', () => {
3990
+ it('should have a postcmdbCMTasksScheduledTask function', (done) => {
3991
+ try {
3992
+ assert.equal(true, typeof a.postcmdbCMTasksScheduledTask === 'function');
3993
+ done();
3994
+ } catch (error) {
3995
+ log.error(`Test Failure: ${error}`);
3996
+ done(error);
3997
+ }
3998
+ }).timeout(attemptTimeout);
3999
+ it('should error if - missing body', (done) => {
4000
+ try {
4001
+ a.postcmdbCMTasksScheduledTask(null, null, (data, error) => {
4002
+ try {
4003
+ const displayE = 'body is required';
4004
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-postcmdbCMTasksScheduledTask', displayE);
4005
+ done();
4006
+ } catch (err) {
4007
+ log.error(`Test Failure: ${err}`);
4008
+ done(err);
4009
+ }
4010
+ });
4011
+ } catch (error) {
4012
+ log.error(`Adapter Exception: ${error}`);
4013
+ done(error);
4014
+ }
4015
+ }).timeout(attemptTimeout);
4016
+ });
4017
+
4018
+ describe('#getcmdbCMTasksScheduledTask - errors', () => {
4019
+ it('should have a getcmdbCMTasksScheduledTask function', (done) => {
4020
+ try {
4021
+ assert.equal(true, typeof a.getcmdbCMTasksScheduledTask === 'function');
4022
+ done();
4023
+ } catch (error) {
4024
+ log.error(`Test Failure: ${error}`);
4025
+ done(error);
4026
+ }
4027
+ }).timeout(attemptTimeout);
4028
+ });
4029
+
4030
+ describe('#putcmdbCMTasksScheduledTask - errors', () => {
4031
+ it('should have a putcmdbCMTasksScheduledTask function', (done) => {
4032
+ try {
4033
+ assert.equal(true, typeof a.putcmdbCMTasksScheduledTask === 'function');
4034
+ done();
4035
+ } catch (error) {
4036
+ log.error(`Test Failure: ${error}`);
4037
+ done(error);
4038
+ }
4039
+ }).timeout(attemptTimeout);
4040
+ it('should error if - missing body', (done) => {
4041
+ try {
4042
+ a.putcmdbCMTasksScheduledTask(null, null, (data, error) => {
4043
+ try {
4044
+ const displayE = 'body is required';
4045
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-putcmdbCMTasksScheduledTask', displayE);
4046
+ done();
4047
+ } catch (err) {
4048
+ log.error(`Test Failure: ${err}`);
4049
+ done(err);
4050
+ }
4051
+ });
4052
+ } catch (error) {
4053
+ log.error(`Adapter Exception: ${error}`);
4054
+ done(error);
4055
+ }
4056
+ }).timeout(attemptTimeout);
4057
+ });
4058
+
4059
+ describe('#deletecmTasksScheduleTask - errors', () => {
4060
+ it('should have a deletecmTasksScheduleTask function', (done) => {
4061
+ try {
4062
+ assert.equal(true, typeof a.deletecmTasksScheduleTask === 'function');
4063
+ done();
4064
+ } catch (error) {
4065
+ log.error(`Test Failure: ${error}`);
4066
+ done(error);
4067
+ }
4068
+ }).timeout(attemptTimeout);
4069
+ it('should error if - missing runbookId', (done) => {
4070
+ try {
4071
+ a.deletecmTasksScheduleTask(null, null, (data, error) => {
4072
+ try {
4073
+ const displayE = 'runbookId is required';
4074
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-deletecmTasksScheduleTask', displayE);
4075
+ done();
4076
+ } catch (err) {
4077
+ log.error(`Test Failure: ${err}`);
4078
+ done(err);
4079
+ }
4080
+ });
4081
+ } catch (error) {
4082
+ log.error(`Adapter Exception: ${error}`);
4083
+ done(error);
4084
+ }
4085
+ }).timeout(attemptTimeout);
4086
+ });
4087
+
4088
+ describe('#postcmBinding - errors', () => {
4089
+ it('should have a postcmBinding function', (done) => {
4090
+ try {
4091
+ assert.equal(true, typeof a.postcmBinding === 'function');
4092
+ done();
4093
+ } catch (error) {
4094
+ log.error(`Test Failure: ${error}`);
4095
+ done(error);
4096
+ }
4097
+ }).timeout(attemptTimeout);
4098
+ it('should error if - missing body', (done) => {
4099
+ try {
4100
+ a.postcmBinding(null, null, (data, error) => {
4101
+ try {
4102
+ const displayE = 'body is required';
4103
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-postcmBinding', displayE);
4104
+ done();
4105
+ } catch (err) {
4106
+ log.error(`Test Failure: ${err}`);
4107
+ done(err);
4108
+ }
4109
+ });
4110
+ } catch (error) {
4111
+ log.error(`Adapter Exception: ${error}`);
4112
+ done(error);
4113
+ }
4114
+ }).timeout(attemptTimeout);
4115
+ });
4116
+
4117
+ describe('#postcmApprovalState - errors', () => {
4118
+ it('should have a postcmApprovalState function', (done) => {
4119
+ try {
4120
+ assert.equal(true, typeof a.postcmApprovalState === 'function');
4121
+ done();
4122
+ } catch (error) {
4123
+ log.error(`Test Failure: ${error}`);
4124
+ done(error);
4125
+ }
4126
+ }).timeout(attemptTimeout);
4127
+ it('should error if - missing body', (done) => {
4128
+ try {
4129
+ a.postcmApprovalState(null, null, (data, error) => {
4130
+ try {
4131
+ const displayE = 'body is required';
4132
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-postcmApprovalState', displayE);
4133
+ done();
4134
+ } catch (err) {
4135
+ log.error(`Test Failure: ${err}`);
4136
+ done(err);
4137
+ }
4138
+ });
4139
+ } catch (error) {
4140
+ log.error(`Adapter Exception: ${error}`);
4141
+ done(error);
4142
+ }
4143
+ }).timeout(attemptTimeout);
4144
+ });
4145
+
4146
+ describe('#postcmdbDeviceAccessPolicy - errors', () => {
4147
+ it('should have a postcmdbDeviceAccessPolicy function', (done) => {
4148
+ try {
4149
+ assert.equal(true, typeof a.postcmdbDeviceAccessPolicy === 'function');
4150
+ done();
4151
+ } catch (error) {
4152
+ log.error(`Test Failure: ${error}`);
4153
+ done(error);
4154
+ }
4155
+ }).timeout(attemptTimeout);
4156
+ it('should error if - missing body', (done) => {
4157
+ try {
4158
+ a.postcmdbDeviceAccessPolicy(null, null, (data, error) => {
4159
+ try {
4160
+ const displayE = 'body is required';
4161
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-postcmdbDeviceAccessPolicy', displayE);
4162
+ done();
4163
+ } catch (err) {
4164
+ log.error(`Test Failure: ${err}`);
4165
+ done(err);
4166
+ }
4167
+ });
4168
+ } catch (error) {
4169
+ log.error(`Adapter Exception: ${error}`);
4170
+ done(error);
4171
+ }
4172
+ }).timeout(attemptTimeout);
4173
+ });
4174
+
4175
+ describe('#getcmdbDeviceAccessPolicy - errors', () => {
4176
+ it('should have a getcmdbDeviceAccessPolicy function', (done) => {
4177
+ try {
4178
+ assert.equal(true, typeof a.getcmdbDeviceAccessPolicy === 'function');
4179
+ done();
4180
+ } catch (error) {
4181
+ log.error(`Test Failure: ${error}`);
4182
+ done(error);
4183
+ }
4184
+ }).timeout(attemptTimeout);
4185
+ it('should error if - missing name', (done) => {
4186
+ try {
4187
+ a.getcmdbDeviceAccessPolicy(null, null, (data, error) => {
4188
+ try {
4189
+ const displayE = 'name is required';
4190
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-getcmdbDeviceAccessPolicy', displayE);
4191
+ done();
4192
+ } catch (err) {
4193
+ log.error(`Test Failure: ${err}`);
4194
+ done(err);
4195
+ }
4196
+ });
4197
+ } catch (error) {
4198
+ log.error(`Adapter Exception: ${error}`);
4199
+ done(error);
4200
+ }
4201
+ }).timeout(attemptTimeout);
4202
+ });
4203
+
4204
+ describe('#putcmdbDeviceAccessPolicy - errors', () => {
4205
+ it('should have a putcmdbDeviceAccessPolicy function', (done) => {
4206
+ try {
4207
+ assert.equal(true, typeof a.putcmdbDeviceAccessPolicy === 'function');
4208
+ done();
4209
+ } catch (error) {
4210
+ log.error(`Test Failure: ${error}`);
4211
+ done(error);
4212
+ }
4213
+ }).timeout(attemptTimeout);
4214
+ it('should error if - missing body', (done) => {
4215
+ try {
4216
+ a.putcmdbDeviceAccessPolicy(null, null, (data, error) => {
4217
+ try {
4218
+ const displayE = 'body is required';
4219
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-putcmdbDeviceAccessPolicy', displayE);
4220
+ done();
4221
+ } catch (err) {
4222
+ log.error(`Test Failure: ${err}`);
4223
+ done(err);
4224
+ }
4225
+ });
4226
+ } catch (error) {
4227
+ log.error(`Adapter Exception: ${error}`);
4228
+ done(error);
4229
+ }
4230
+ }).timeout(attemptTimeout);
4231
+ });
4232
+
4233
+ describe('#postcmdbUserDeviceAccessPolicyAssignDeviceAccessPolicies - errors', () => {
4234
+ it('should have a postcmdbUserDeviceAccessPolicyAssignDeviceAccessPolicies function', (done) => {
4235
+ try {
4236
+ assert.equal(true, typeof a.postcmdbUserDeviceAccessPolicyAssignDeviceAccessPolicies === 'function');
4237
+ done();
4238
+ } catch (error) {
4239
+ log.error(`Test Failure: ${error}`);
4240
+ done(error);
4241
+ }
4242
+ }).timeout(attemptTimeout);
4243
+ it('should error if - missing body', (done) => {
4244
+ try {
4245
+ a.postcmdbUserDeviceAccessPolicyAssignDeviceAccessPolicies(null, null, (data, error) => {
4246
+ try {
4247
+ const displayE = 'body is required';
4248
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-postcmdbUserDeviceAccessPolicyAssignDeviceAccessPolicies', displayE);
4249
+ done();
4250
+ } catch (err) {
4251
+ log.error(`Test Failure: ${err}`);
4252
+ done(err);
4253
+ }
4254
+ });
4255
+ } catch (error) {
4256
+ log.error(`Adapter Exception: ${error}`);
4257
+ done(error);
4258
+ }
4259
+ }).timeout(attemptTimeout);
4260
+ });
4261
+
4262
+ describe('#deletecmdbDeviceAccessPolicy - errors', () => {
4263
+ it('should have a deletecmdbDeviceAccessPolicy function', (done) => {
4264
+ try {
4265
+ assert.equal(true, typeof a.deletecmdbDeviceAccessPolicy === 'function');
4266
+ done();
4267
+ } catch (error) {
4268
+ log.error(`Test Failure: ${error}`);
4269
+ done(error);
4270
+ }
4271
+ }).timeout(attemptTimeout);
4272
+ });
4273
+
4274
+ describe('#getcmdbUserDeviceAccessPolicy - errors', () => {
4275
+ it('should have a getcmdbUserDeviceAccessPolicy function', (done) => {
4276
+ try {
4277
+ assert.equal(true, typeof a.getcmdbUserDeviceAccessPolicy === 'function');
4278
+ done();
4279
+ } catch (error) {
4280
+ log.error(`Test Failure: ${error}`);
4281
+ done(error);
4282
+ }
4283
+ }).timeout(attemptTimeout);
4284
+ it('should error if - missing authenticationServer', (done) => {
4285
+ try {
4286
+ a.getcmdbUserDeviceAccessPolicy(null, null, null, (data, error) => {
4287
+ try {
4288
+ const displayE = 'authenticationServer is required';
4289
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-getcmdbUserDeviceAccessPolicy', displayE);
4290
+ done();
4291
+ } catch (err) {
4292
+ log.error(`Test Failure: ${err}`);
4293
+ done(err);
4294
+ }
4295
+ });
4296
+ } catch (error) {
4297
+ log.error(`Adapter Exception: ${error}`);
4298
+ done(error);
4299
+ }
4300
+ }).timeout(attemptTimeout);
4301
+ it('should error if - missing userName', (done) => {
4302
+ try {
4303
+ a.getcmdbUserDeviceAccessPolicy('fakeparam', null, null, (data, error) => {
4304
+ try {
4305
+ const displayE = 'userName is required';
4306
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-getcmdbUserDeviceAccessPolicy', displayE);
4307
+ done();
4308
+ } catch (err) {
4309
+ log.error(`Test Failure: ${err}`);
4310
+ done(err);
4311
+ }
4312
+ });
4313
+ } catch (error) {
4314
+ log.error(`Adapter Exception: ${error}`);
4315
+ done(error);
4316
+ }
4317
+ }).timeout(attemptTimeout);
4318
+ });
4319
+
4320
+ describe('#deletecmdbUserDeviceAccessPolicy - errors', () => {
4321
+ it('should have a deletecmdbUserDeviceAccessPolicy function', (done) => {
4322
+ try {
4323
+ assert.equal(true, typeof a.deletecmdbUserDeviceAccessPolicy === 'function');
4324
+ done();
4325
+ } catch (error) {
4326
+ log.error(`Test Failure: ${error}`);
4327
+ done(error);
4328
+ }
4329
+ }).timeout(attemptTimeout);
4330
+ });
4331
+
4332
+ describe('#postcmdbUserDeviceAccessPolicy - errors', () => {
4333
+ it('should have a postcmdbUserDeviceAccessPolicy function', (done) => {
4334
+ try {
4335
+ assert.equal(true, typeof a.postcmdbUserDeviceAccessPolicy === 'function');
4336
+ done();
4337
+ } catch (error) {
4338
+ log.error(`Test Failure: ${error}`);
4339
+ done(error);
4340
+ }
4341
+ }).timeout(attemptTimeout);
4342
+ it('should error if - missing body', (done) => {
4343
+ try {
4344
+ a.postcmdbUserDeviceAccessPolicy(null, null, (data, error) => {
4345
+ try {
4346
+ const displayE = 'body is required';
4347
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-postcmdbUserDeviceAccessPolicy', displayE);
4348
+ done();
4349
+ } catch (err) {
4350
+ log.error(`Test Failure: ${err}`);
4351
+ done(err);
4352
+ }
4353
+ });
4354
+ } catch (error) {
4355
+ log.error(`Adapter Exception: ${error}`);
4356
+ done(error);
4357
+ }
4358
+ }).timeout(attemptTimeout);
4359
+ });
4360
+
4361
+ describe('#getcmdbUserDeviceAccessPolicyUsersOfDeviceAccessPolicy - errors', () => {
4362
+ it('should have a getcmdbUserDeviceAccessPolicyUsersOfDeviceAccessPolicy function', (done) => {
4363
+ try {
4364
+ assert.equal(true, typeof a.getcmdbUserDeviceAccessPolicyUsersOfDeviceAccessPolicy === 'function');
4365
+ done();
4366
+ } catch (error) {
4367
+ log.error(`Test Failure: ${error}`);
4368
+ done(error);
4369
+ }
4370
+ }).timeout(attemptTimeout);
4371
+ it('should error if - missing name', (done) => {
4372
+ try {
4373
+ a.getcmdbUserDeviceAccessPolicyUsersOfDeviceAccessPolicy(null, null, (data, error) => {
4374
+ try {
4375
+ const displayE = 'name is required';
4376
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-getcmdbUserDeviceAccessPolicyUsersOfDeviceAccessPolicy', displayE);
4377
+ done();
4378
+ } catch (err) {
4379
+ log.error(`Test Failure: ${err}`);
4380
+ done(err);
4381
+ }
4382
+ });
4383
+ } catch (error) {
4384
+ log.error(`Adapter Exception: ${error}`);
4385
+ done(error);
4386
+ }
4387
+ }).timeout(attemptTimeout);
4388
+ });
4389
+
4390
+ describe('#postcmdbDeviceGroups - errors', () => {
4391
+ it('should have a postcmdbDeviceGroups function', (done) => {
4392
+ try {
4393
+ assert.equal(true, typeof a.postcmdbDeviceGroups === 'function');
4394
+ done();
4395
+ } catch (error) {
4396
+ log.error(`Test Failure: ${error}`);
4397
+ done(error);
4398
+ }
4399
+ }).timeout(attemptTimeout);
4400
+ it('should error if - missing body', (done) => {
4401
+ try {
4402
+ a.postcmdbDeviceGroups(null, null, (data, error) => {
4403
+ try {
4404
+ const displayE = 'body is required';
4405
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-postcmdbDeviceGroups', displayE);
4406
+ done();
4407
+ } catch (err) {
4408
+ log.error(`Test Failure: ${err}`);
4409
+ done(err);
4410
+ }
4411
+ });
4412
+ } catch (error) {
4413
+ log.error(`Adapter Exception: ${error}`);
4414
+ done(error);
4415
+ }
4416
+ }).timeout(attemptTimeout);
4417
+ });
4418
+
4419
+ describe('#postcmdbDeviceGroupsDevices - errors', () => {
4420
+ it('should have a postcmdbDeviceGroupsDevices function', (done) => {
4421
+ try {
4422
+ assert.equal(true, typeof a.postcmdbDeviceGroupsDevices === 'function');
4423
+ done();
4424
+ } catch (error) {
4425
+ log.error(`Test Failure: ${error}`);
4426
+ done(error);
4427
+ }
4428
+ }).timeout(attemptTimeout);
4429
+ it('should error if - missing id', (done) => {
4430
+ try {
4431
+ a.postcmdbDeviceGroupsDevices(null, null, null, (data, error) => {
4432
+ try {
4433
+ const displayE = 'id is required';
4434
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-postcmdbDeviceGroupsDevices', displayE);
4435
+ done();
4436
+ } catch (err) {
4437
+ log.error(`Test Failure: ${err}`);
4438
+ done(err);
4439
+ }
4440
+ });
4441
+ } catch (error) {
4442
+ log.error(`Adapter Exception: ${error}`);
4443
+ done(error);
4444
+ }
4445
+ }).timeout(attemptTimeout);
4446
+ it('should error if - missing body', (done) => {
4447
+ try {
4448
+ a.postcmdbDeviceGroupsDevices('fakeparam', null, null, (data, error) => {
4449
+ try {
4450
+ const displayE = 'body is required';
4451
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-postcmdbDeviceGroupsDevices', displayE);
4452
+ done();
4453
+ } catch (err) {
4454
+ log.error(`Test Failure: ${err}`);
4455
+ done(err);
4456
+ }
4457
+ });
4458
+ } catch (error) {
4459
+ log.error(`Adapter Exception: ${error}`);
4460
+ done(error);
4461
+ }
4462
+ }).timeout(attemptTimeout);
4463
+ });
4464
+
4465
+ describe('#deletecmdbDeviceGroupsDevices - errors', () => {
4466
+ it('should have a deletecmdbDeviceGroupsDevices function', (done) => {
4467
+ try {
4468
+ assert.equal(true, typeof a.deletecmdbDeviceGroupsDevices === 'function');
4469
+ done();
4470
+ } catch (error) {
4471
+ log.error(`Test Failure: ${error}`);
4472
+ done(error);
4473
+ }
4474
+ }).timeout(attemptTimeout);
4475
+ it('should error if - missing id', (done) => {
4476
+ try {
4477
+ a.deletecmdbDeviceGroupsDevices(null, null, (data, error) => {
4478
+ try {
4479
+ const displayE = 'id is required';
4480
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-deletecmdbDeviceGroupsDevices', displayE);
4481
+ done();
4482
+ } catch (err) {
4483
+ log.error(`Test Failure: ${err}`);
4484
+ done(err);
4485
+ }
4486
+ });
4487
+ } catch (error) {
4488
+ log.error(`Adapter Exception: ${error}`);
4489
+ done(error);
4490
+ }
4491
+ }).timeout(attemptTimeout);
4492
+ });
4493
+
4494
+ describe('#getcmdbDeviceGroupsDevices - errors', () => {
4495
+ it('should have a getcmdbDeviceGroupsDevices function', (done) => {
4496
+ try {
4497
+ assert.equal(true, typeof a.getcmdbDeviceGroupsDevices === 'function');
4498
+ done();
4499
+ } catch (error) {
4500
+ log.error(`Test Failure: ${error}`);
4501
+ done(error);
4502
+ }
4503
+ }).timeout(attemptTimeout);
4504
+ it('should error if - missing id', (done) => {
4505
+ try {
4506
+ a.getcmdbDeviceGroupsDevices(null, null, (data, error) => {
4507
+ try {
4508
+ const displayE = 'id is required';
4509
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-getcmdbDeviceGroupsDevices', displayE);
4510
+ done();
4511
+ } catch (err) {
4512
+ log.error(`Test Failure: ${err}`);
4513
+ done(err);
4514
+ }
4515
+ });
4516
+ } catch (error) {
4517
+ log.error(`Adapter Exception: ${error}`);
4518
+ done(error);
4519
+ }
4520
+ }).timeout(attemptTimeout);
4521
+ });
4522
+
4523
+ describe('#deletecmdbDeviceGroups - errors', () => {
4524
+ it('should have a deletecmdbDeviceGroups function', (done) => {
4525
+ try {
4526
+ assert.equal(true, typeof a.deletecmdbDeviceGroups === 'function');
4527
+ done();
4528
+ } catch (error) {
4529
+ log.error(`Test Failure: ${error}`);
4530
+ done(error);
4531
+ }
4532
+ }).timeout(attemptTimeout);
4533
+ it('should error if - missing id', (done) => {
4534
+ try {
4535
+ a.deletecmdbDeviceGroups(null, null, (data, error) => {
4536
+ try {
4537
+ const displayE = 'id is required';
4538
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-deletecmdbDeviceGroups', displayE);
4539
+ done();
4540
+ } catch (err) {
4541
+ log.error(`Test Failure: ${err}`);
4542
+ done(err);
4543
+ }
4544
+ });
4545
+ } catch (error) {
4546
+ log.error(`Adapter Exception: ${error}`);
4547
+ done(error);
4548
+ }
4549
+ }).timeout(attemptTimeout);
4550
+ });
4551
+
4552
+ describe('#postcmdbInterfacesAttributes - errors', () => {
4553
+ it('should have a postcmdbInterfacesAttributes function', (done) => {
4554
+ try {
4555
+ assert.equal(true, typeof a.postcmdbInterfacesAttributes === 'function');
4556
+ done();
4557
+ } catch (error) {
4558
+ log.error(`Test Failure: ${error}`);
4559
+ done(error);
4560
+ }
4561
+ }).timeout(attemptTimeout);
4562
+ it('should error if - missing body', (done) => {
4563
+ try {
4564
+ a.postcmdbInterfacesAttributes(null, null, (data, error) => {
4565
+ try {
4566
+ const displayE = 'body is required';
4567
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-postcmdbInterfacesAttributes', displayE);
4568
+ done();
4569
+ } catch (err) {
4570
+ log.error(`Test Failure: ${err}`);
4571
+ done(err);
4572
+ }
4573
+ });
4574
+ } catch (error) {
4575
+ log.error(`Adapter Exception: ${error}`);
4576
+ done(error);
4577
+ }
4578
+ }).timeout(attemptTimeout);
4579
+ });
4580
+
4581
+ describe('#deletecmdbDiscoveryTasks - errors', () => {
4582
+ it('should have a deletecmdbDiscoveryTasks function', (done) => {
4583
+ try {
4584
+ assert.equal(true, typeof a.deletecmdbDiscoveryTasks === 'function');
4585
+ done();
4586
+ } catch (error) {
4587
+ log.error(`Test Failure: ${error}`);
4588
+ done(error);
4589
+ }
4590
+ }).timeout(attemptTimeout);
4591
+ it('should error if - missing task', (done) => {
4592
+ try {
4593
+ a.deletecmdbDiscoveryTasks(null, null, (data, error) => {
4594
+ try {
4595
+ const displayE = 'task is required';
4596
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-deletecmdbDiscoveryTasks', displayE);
4597
+ done();
4598
+ } catch (err) {
4599
+ log.error(`Test Failure: ${err}`);
4600
+ done(err);
4601
+ }
4602
+ });
4603
+ } catch (error) {
4604
+ log.error(`Adapter Exception: ${error}`);
4605
+ done(error);
4606
+ }
4607
+ }).timeout(attemptTimeout);
4608
+ });
4609
+
4610
+ describe('#putcmdbDiscoveryTasks - errors', () => {
4611
+ it('should have a putcmdbDiscoveryTasks function', (done) => {
4612
+ try {
4613
+ assert.equal(true, typeof a.putcmdbDiscoveryTasks === 'function');
4614
+ done();
4615
+ } catch (error) {
4616
+ log.error(`Test Failure: ${error}`);
4617
+ done(error);
4618
+ }
4619
+ }).timeout(attemptTimeout);
4620
+ it('should error if - missing body', (done) => {
4621
+ try {
4622
+ a.putcmdbDiscoveryTasks(null, null, (data, error) => {
4623
+ try {
4624
+ const displayE = 'body is required';
4625
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-putcmdbDiscoveryTasks', displayE);
4626
+ done();
4627
+ } catch (err) {
4628
+ log.error(`Test Failure: ${err}`);
4629
+ done(err);
4630
+ }
4631
+ });
4632
+ } catch (error) {
4633
+ log.error(`Adapter Exception: ${error}`);
4634
+ done(error);
4635
+ }
4636
+ }).timeout(attemptTimeout);
4637
+ });
4638
+
4639
+ describe('#postcmdbDiscoveryTasks - errors', () => {
4640
+ it('should have a postcmdbDiscoveryTasks function', (done) => {
4641
+ try {
4642
+ assert.equal(true, typeof a.postcmdbDiscoveryTasks === 'function');
4643
+ done();
4644
+ } catch (error) {
4645
+ log.error(`Test Failure: ${error}`);
4646
+ done(error);
4647
+ }
4648
+ }).timeout(attemptTimeout);
4649
+ it('should error if - missing body', (done) => {
4650
+ try {
4651
+ a.postcmdbDiscoveryTasks(null, null, (data, error) => {
4652
+ try {
4653
+ const displayE = 'body is required';
4654
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-postcmdbDiscoveryTasks', displayE);
4655
+ done();
4656
+ } catch (err) {
4657
+ log.error(`Test Failure: ${err}`);
4658
+ done(err);
4659
+ }
4660
+ });
4661
+ } catch (error) {
4662
+ log.error(`Adapter Exception: ${error}`);
4663
+ done(error);
4664
+ }
4665
+ }).timeout(attemptTimeout);
4666
+ });
4667
+
4668
+ describe('#getcmdbDiscoveryTasksResults - errors', () => {
4669
+ it('should have a getcmdbDiscoveryTasksResults function', (done) => {
4670
+ try {
4671
+ assert.equal(true, typeof a.getcmdbDiscoveryTasksResults === 'function');
4672
+ done();
4673
+ } catch (error) {
4674
+ log.error(`Test Failure: ${error}`);
4675
+ done(error);
4676
+ }
4677
+ }).timeout(attemptTimeout);
4678
+ it('should error if - missing task', (done) => {
4679
+ try {
4680
+ a.getcmdbDiscoveryTasksResults(null, null, (data, error) => {
4681
+ try {
4682
+ const displayE = 'task is required';
4683
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-getcmdbDiscoveryTasksResults', displayE);
4684
+ done();
4685
+ } catch (err) {
4686
+ log.error(`Test Failure: ${err}`);
4687
+ done(err);
4688
+ }
4689
+ });
4690
+ } catch (error) {
4691
+ log.error(`Adapter Exception: ${error}`);
4692
+ done(error);
4693
+ }
4694
+ }).timeout(attemptTimeout);
4695
+ });
4696
+
4697
+ describe('#deletecmdbEventConsole - errors', () => {
4698
+ it('should have a deletecmdbEventConsole function', (done) => {
4699
+ try {
4700
+ assert.equal(true, typeof a.deletecmdbEventConsole === 'function');
4701
+ done();
4702
+ } catch (error) {
4703
+ log.error(`Test Failure: ${error}`);
4704
+ done(error);
4705
+ }
4706
+ }).timeout(attemptTimeout);
4707
+ });
4708
+
4709
+ describe('#getcmdbEventConsole - errors', () => {
4710
+ it('should have a getcmdbEventConsole function', (done) => {
4711
+ try {
4712
+ assert.equal(true, typeof a.getcmdbEventConsole === 'function');
4713
+ done();
4714
+ } catch (error) {
4715
+ log.error(`Test Failure: ${error}`);
4716
+ done(error);
4717
+ }
4718
+ }).timeout(attemptTimeout);
4719
+ it('should error if - missing eventType', (done) => {
4720
+ try {
4721
+ a.getcmdbEventConsole(null, null, null, (data, error) => {
4722
+ try {
4723
+ const displayE = 'eventType is required';
4724
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-getcmdbEventConsole', displayE);
4725
+ done();
4726
+ } catch (err) {
4727
+ log.error(`Test Failure: ${err}`);
4728
+ done(err);
4729
+ }
4730
+ });
4731
+ } catch (error) {
4732
+ log.error(`Adapter Exception: ${error}`);
4733
+ done(error);
4734
+ }
4735
+ }).timeout(attemptTimeout);
4736
+ it('should error if - missing eventLevel', (done) => {
4737
+ try {
4738
+ a.getcmdbEventConsole('fakeparam', null, null, (data, error) => {
4739
+ try {
4740
+ const displayE = 'eventLevel is required';
4741
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-getcmdbEventConsole', displayE);
4742
+ done();
4743
+ } catch (err) {
4744
+ log.error(`Test Failure: ${err}`);
4745
+ done(err);
4746
+ }
4747
+ });
4748
+ } catch (error) {
4749
+ log.error(`Adapter Exception: ${error}`);
4750
+ done(error);
4751
+ }
4752
+ }).timeout(attemptTimeout);
4753
+ });
4754
+
4755
+ describe('#postcmdbIncidentList - errors', () => {
4756
+ it('should have a postcmdbIncidentList function', (done) => {
4757
+ try {
4758
+ assert.equal(true, typeof a.postcmdbIncidentList === 'function');
4759
+ done();
4760
+ } catch (error) {
4761
+ log.error(`Test Failure: ${error}`);
4762
+ done(error);
4763
+ }
4764
+ }).timeout(attemptTimeout);
4765
+ it('should error if - missing body', (done) => {
4766
+ try {
4767
+ a.postcmdbIncidentList(null, null, (data, error) => {
4768
+ try {
4769
+ const displayE = 'body is required';
4770
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-postcmdbIncidentList', displayE);
4771
+ done();
4772
+ } catch (err) {
4773
+ log.error(`Test Failure: ${err}`);
4774
+ done(err);
4775
+ }
4776
+ });
4777
+ } catch (error) {
4778
+ log.error(`Adapter Exception: ${error}`);
4779
+ done(error);
4780
+ }
4781
+ }).timeout(attemptTimeout);
4782
+ });
4783
+
4784
+ describe('#getcmdbNetworkSettingsTelnetInfoCheckDeviceCount - errors', () => {
4785
+ it('should have a getcmdbNetworkSettingsTelnetInfoCheckDeviceCount function', (done) => {
4786
+ try {
4787
+ assert.equal(true, typeof a.getcmdbNetworkSettingsTelnetInfoCheckDeviceCount === 'function');
4788
+ done();
4789
+ } catch (error) {
4790
+ log.error(`Test Failure: ${error}`);
4791
+ done(error);
4792
+ }
4793
+ }).timeout(attemptTimeout);
4794
+ it('should error if - missing alias', (done) => {
4795
+ try {
4796
+ a.getcmdbNetworkSettingsTelnetInfoCheckDeviceCount(null, null, (data, error) => {
4797
+ try {
4798
+ const displayE = 'alias is required';
4799
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-getcmdbNetworkSettingsTelnetInfoCheckDeviceCount', displayE);
4800
+ done();
4801
+ } catch (err) {
4802
+ log.error(`Test Failure: ${err}`);
4803
+ done(err);
4804
+ }
4805
+ });
4806
+ } catch (error) {
4807
+ log.error(`Adapter Exception: ${error}`);
4808
+ done(error);
4809
+ }
4810
+ }).timeout(attemptTimeout);
4811
+ });
4812
+
4813
+ describe('#getcmdbNetworkSettingsTelnetInfoRefreshDeviceCount - errors', () => {
4814
+ it('should have a getcmdbNetworkSettingsTelnetInfoRefreshDeviceCount function', (done) => {
4815
+ try {
4816
+ assert.equal(true, typeof a.getcmdbNetworkSettingsTelnetInfoRefreshDeviceCount === 'function');
4817
+ done();
4818
+ } catch (error) {
4819
+ log.error(`Test Failure: ${error}`);
4820
+ done(error);
4821
+ }
4822
+ }).timeout(attemptTimeout);
4823
+ });
4824
+
4825
+ describe('#putcmdbSitesLeafDynamicSearch - errors', () => {
4826
+ it('should have a putcmdbSitesLeafDynamicSearch function', (done) => {
4827
+ try {
4828
+ assert.equal(true, typeof a.putcmdbSitesLeafDynamicSearch === 'function');
4829
+ done();
4830
+ } catch (error) {
4831
+ log.error(`Test Failure: ${error}`);
4832
+ done(error);
4833
+ }
4834
+ }).timeout(attemptTimeout);
4835
+ it('should error if - missing body', (done) => {
4836
+ try {
4837
+ a.putcmdbSitesLeafDynamicSearch(null, null, (data, error) => {
4838
+ try {
4839
+ const displayE = 'body is required';
4840
+ runErrorAsserts(data, error, 'AD.300', 'Test-netbrain-adapter-putcmdbSitesLeafDynamicSearch', displayE);
4841
+ done();
4842
+ } catch (err) {
4843
+ log.error(`Test Failure: ${err}`);
4844
+ done(err);
4845
+ }
4846
+ });
4847
+ } catch (error) {
4848
+ log.error(`Adapter Exception: ${error}`);
4849
+ done(error);
4850
+ }
4851
+ }).timeout(attemptTimeout);
4852
+ });
3935
4853
  });
3936
4854
  });