@itentialopensource/adapter-infoblox 1.9.2 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +1 -0
- package/AUTH.md +39 -0
- package/BROKER.md +199 -0
- package/CALLS.md +169 -0
- package/CHANGELOG.md +70 -51
- package/CODE_OF_CONDUCT.md +12 -17
- package/CONTRIBUTING.md +88 -74
- package/ENHANCE.md +69 -0
- package/PROPERTIES.md +641 -0
- package/README.md +228 -420
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +11 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +5855 -1894
- package/adapterBase.js +1270 -238
- package/entities/.generic/action.json +214 -0
- package/entities/.generic/schema.json +28 -0
- package/entities/DNSProperties/action.json +1 -1
- package/entities/DNSProperties/mockdatafiles/getGridDnsData.json +3 -0
- package/entities/ExtensibleAttributes/action.json +63 -0
- package/entities/ExtensibleAttributes/schema.json +4 -1
- package/entities/NetworkViewsAndDNSViews/action.json +63 -0
- package/entities/NetworkViewsAndDNSViews/schema.json +4 -1
- package/entities/Networks/action.json +42 -0
- package/entities/Networks/requestSchema.json +3 -1
- package/entities/Networks/responseSchema.json +3 -1
- package/entities/Services/action.json +21 -0
- package/entities/Services/schema.json +1 -0
- package/error.json +12 -0
- package/package.json +41 -18
- package/pronghorn.json +3766 -959
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +472 -4
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +10 -0
- package/report/updateReport1615140322137.json +95 -0
- package/report/updateReport1646675873230.json +95 -0
- package/report/updateReport1653911824054.json +120 -0
- package/sampleProperties.json +102 -5
- package/test/integration/adapterTestBasicGet.js +85 -0
- package/test/integration/adapterTestConnectivity.js +93 -0
- package/test/integration/adapterTestIntegration.js +390 -186
- package/test/unit/adapterBaseTestUnit.js +949 -0
- package/test/unit/adapterTestUnit.js +1181 -278
- package/utils/adapterInfo.js +206 -0
- package/utils/addAuth.js +94 -0
- package/utils/basicGet.js +50 -0
- package/utils/checkMigrate.js +63 -0
- package/utils/entitiesToDB.js +179 -0
- package/utils/findPath.js +74 -0
- package/utils/modify.js +154 -0
- package/utils/packModificationScript.js +1 -1
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/pre-commit.sh +3 -0
- package/utils/removeHooks.js +20 -0
- package/utils/tbScript.js +184 -0
- package/utils/tbUtils.js +469 -0
- package/utils/testRunner.js +16 -16
- package/utils/troubleshootingAdapter.js +190 -0
- package/img/adapter.png +0 -0
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
// Set globals
|
|
4
4
|
/* global describe it log pronghornProps */
|
|
5
5
|
/* eslint no-unused-vars: warn */
|
|
6
|
-
/* eslint no-underscore-dangle: warn
|
|
6
|
+
/* eslint no-underscore-dangle: warn */
|
|
7
|
+
/* eslint import/no-dynamic-require:warn */
|
|
7
8
|
|
|
8
9
|
// include required items for testing & logging
|
|
9
10
|
const assert = require('assert');
|
|
@@ -14,25 +15,39 @@ const winston = require('winston');
|
|
|
14
15
|
const { expect } = require('chai');
|
|
15
16
|
const { use } = require('chai');
|
|
16
17
|
const td = require('testdouble');
|
|
18
|
+
const util = require('util');
|
|
17
19
|
|
|
18
20
|
const anything = td.matchers.anything();
|
|
19
21
|
|
|
20
22
|
// stub and attemptTimeout are used throughout the code so set them here
|
|
21
23
|
let logLevel = 'none';
|
|
22
|
-
const stub = true;
|
|
23
24
|
const isRapidFail = false;
|
|
24
25
|
const isSaveMockData = false;
|
|
25
|
-
|
|
26
|
+
|
|
27
|
+
// read in the properties from the sampleProperties files
|
|
28
|
+
let adaptdir = __dirname;
|
|
29
|
+
if (adaptdir.endsWith('/test/integration')) {
|
|
30
|
+
adaptdir = adaptdir.substring(0, adaptdir.length - 17);
|
|
31
|
+
} else if (adaptdir.endsWith('/test/unit')) {
|
|
32
|
+
adaptdir = adaptdir.substring(0, adaptdir.length - 10);
|
|
33
|
+
}
|
|
34
|
+
const samProps = require(`${adaptdir}/sampleProperties.json`).properties;
|
|
26
35
|
|
|
27
36
|
// these variables can be changed to run in integrated mode so easier to set them here
|
|
28
37
|
// always check these in with bogus data!!!
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
38
|
+
samProps.stub = true;
|
|
39
|
+
samProps.host = 'replace.hostorip.here';
|
|
40
|
+
samProps.authentication.username = 'username';
|
|
41
|
+
samProps.authentication.password = 'password';
|
|
42
|
+
samProps.protocol = 'http';
|
|
43
|
+
samProps.port = 80;
|
|
44
|
+
samProps.ssl.enabled = false;
|
|
45
|
+
samProps.ssl.accept_invalid_cert = false;
|
|
46
|
+
if (samProps.request.attempt_timeout < 30000) {
|
|
47
|
+
samProps.request.attempt_timeout = 30000;
|
|
48
|
+
}
|
|
49
|
+
const attemptTimeout = samProps.request.attempt_timeout;
|
|
50
|
+
const { stub } = samProps;
|
|
36
51
|
|
|
37
52
|
// these are the adapter properties. You generally should not need to alter
|
|
38
53
|
// any of these after they are initially set up
|
|
@@ -42,96 +57,9 @@ global.pronghornProps = {
|
|
|
42
57
|
},
|
|
43
58
|
adapterProps: {
|
|
44
59
|
adapters: [{
|
|
45
|
-
id: 'infoblox',
|
|
60
|
+
id: 'Test-infoblox',
|
|
46
61
|
type: 'Infoblox',
|
|
47
|
-
properties:
|
|
48
|
-
host,
|
|
49
|
-
port,
|
|
50
|
-
base_path: '/wapi',
|
|
51
|
-
version: 'v1',
|
|
52
|
-
cache_location: 'none',
|
|
53
|
-
encode_pathvars: true,
|
|
54
|
-
save_metric: false,
|
|
55
|
-
stub,
|
|
56
|
-
protocol,
|
|
57
|
-
authentication: {
|
|
58
|
-
auth_method: 'basic user_password',
|
|
59
|
-
username,
|
|
60
|
-
password,
|
|
61
|
-
token: '',
|
|
62
|
-
invalid_token_error: 401,
|
|
63
|
-
token_timeout: -1,
|
|
64
|
-
token_cache: 'local',
|
|
65
|
-
auth_field: 'header.headers.Authorization',
|
|
66
|
-
auth_field_format: 'Basic {b64}{username}:{password}{/b64}'
|
|
67
|
-
},
|
|
68
|
-
healthcheck: {
|
|
69
|
-
type: 'startup',
|
|
70
|
-
frequency: 60000
|
|
71
|
-
},
|
|
72
|
-
throttle: {
|
|
73
|
-
throttle_enabled: false,
|
|
74
|
-
number_pronghorns: 1,
|
|
75
|
-
sync_async: 'sync',
|
|
76
|
-
max_in_queue: 1000,
|
|
77
|
-
concurrent_max: 1,
|
|
78
|
-
expire_timeout: 0,
|
|
79
|
-
avg_runtime: 200,
|
|
80
|
-
priorities: [
|
|
81
|
-
{
|
|
82
|
-
value: 0,
|
|
83
|
-
percent: 100
|
|
84
|
-
}
|
|
85
|
-
]
|
|
86
|
-
},
|
|
87
|
-
request: {
|
|
88
|
-
number_redirects: 0,
|
|
89
|
-
number_retries: 3,
|
|
90
|
-
limit_retry_error: 0,
|
|
91
|
-
failover_codes: [],
|
|
92
|
-
attempt_timeout: attemptTimeout,
|
|
93
|
-
global_request: {
|
|
94
|
-
payload: {},
|
|
95
|
-
uriOptions: {},
|
|
96
|
-
addlHeaders: {},
|
|
97
|
-
authData: {}
|
|
98
|
-
},
|
|
99
|
-
healthcheck_on_timeout: false,
|
|
100
|
-
return_raw: true,
|
|
101
|
-
archiving: false
|
|
102
|
-
},
|
|
103
|
-
proxy: {
|
|
104
|
-
enabled: false,
|
|
105
|
-
host: '',
|
|
106
|
-
port: 1,
|
|
107
|
-
protocol: 'http'
|
|
108
|
-
},
|
|
109
|
-
ssl: {
|
|
110
|
-
ecdhCurve: '',
|
|
111
|
-
enabled: sslenable,
|
|
112
|
-
accept_invalid_cert: sslinvalid,
|
|
113
|
-
ca_file: '',
|
|
114
|
-
key_file: '',
|
|
115
|
-
cert_file: '',
|
|
116
|
-
secure_protocol: '',
|
|
117
|
-
ciphers: ''
|
|
118
|
-
},
|
|
119
|
-
mongo: {
|
|
120
|
-
host: '',
|
|
121
|
-
port: 0,
|
|
122
|
-
database: '',
|
|
123
|
-
username: '',
|
|
124
|
-
password: '',
|
|
125
|
-
replSet: '',
|
|
126
|
-
db_ssl: {
|
|
127
|
-
enabled: false,
|
|
128
|
-
accept_invalid_cert: false,
|
|
129
|
-
ca_file: '',
|
|
130
|
-
key_file: '',
|
|
131
|
-
cert_file: ''
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
62
|
+
properties: samProps
|
|
135
63
|
}]
|
|
136
64
|
}
|
|
137
65
|
};
|
|
@@ -306,7 +234,7 @@ function saveMockData(entityName, actionName, descriptor, responseData) {
|
|
|
306
234
|
}
|
|
307
235
|
|
|
308
236
|
// require the adapter that we are going to be using
|
|
309
|
-
const Infoblox = require('../../adapter
|
|
237
|
+
const Infoblox = require('../../adapter');
|
|
310
238
|
|
|
311
239
|
// begin the testing - these should be pretty well defined between the describe and the it!
|
|
312
240
|
describe('[integration] Infoblox Adapter Test', () => {
|
|
@@ -337,6 +265,8 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
337
265
|
try {
|
|
338
266
|
assert.notEqual(null, a);
|
|
339
267
|
assert.notEqual(undefined, a);
|
|
268
|
+
const checkId = global.pronghornProps.adapterProps.adapters[0].id;
|
|
269
|
+
assert.equal(checkId, a.id);
|
|
340
270
|
assert.notEqual(null, a.allProps);
|
|
341
271
|
const check = global.pronghornProps.adapterProps.adapters[0].properties.healthcheck.type;
|
|
342
272
|
assert.equal(check, a.healthcheckType);
|
|
@@ -1025,7 +955,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1025
955
|
try {
|
|
1026
956
|
if (stub) {
|
|
1027
957
|
const displayE = 'Error 400 received on request';
|
|
1028
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
958
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1029
959
|
} else {
|
|
1030
960
|
runCommonAsserts(data, error);
|
|
1031
961
|
}
|
|
@@ -1060,7 +990,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1060
990
|
try {
|
|
1061
991
|
if (stub) {
|
|
1062
992
|
const displayE = 'Error 400 received on request';
|
|
1063
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
993
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1064
994
|
} else {
|
|
1065
995
|
runCommonAsserts(data, error);
|
|
1066
996
|
}
|
|
@@ -1111,7 +1041,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1111
1041
|
try {
|
|
1112
1042
|
if (stub) {
|
|
1113
1043
|
const displayE = 'Error 400 received on request';
|
|
1114
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1044
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1115
1045
|
} else {
|
|
1116
1046
|
runCommonAsserts(data, error);
|
|
1117
1047
|
}
|
|
@@ -1136,7 +1066,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1136
1066
|
try {
|
|
1137
1067
|
if (stub) {
|
|
1138
1068
|
const displayE = 'Error 400 received on request';
|
|
1139
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1069
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1140
1070
|
} else {
|
|
1141
1071
|
runCommonAsserts(data, error);
|
|
1142
1072
|
}
|
|
@@ -1165,7 +1095,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1165
1095
|
try {
|
|
1166
1096
|
if (stub) {
|
|
1167
1097
|
const displayE = 'Error 400 received on request';
|
|
1168
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1098
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1169
1099
|
} else {
|
|
1170
1100
|
runCommonAsserts(data, error);
|
|
1171
1101
|
}
|
|
@@ -1268,7 +1198,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1268
1198
|
try {
|
|
1269
1199
|
if (stub) {
|
|
1270
1200
|
const displayE = 'Error 400 received on request';
|
|
1271
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1201
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1272
1202
|
} else {
|
|
1273
1203
|
runCommonAsserts(data, error);
|
|
1274
1204
|
}
|
|
@@ -1293,7 +1223,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1293
1223
|
try {
|
|
1294
1224
|
if (stub) {
|
|
1295
1225
|
const displayE = 'Error 400 received on request';
|
|
1296
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1226
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1297
1227
|
} else {
|
|
1298
1228
|
runCommonAsserts(data, error);
|
|
1299
1229
|
}
|
|
@@ -1311,6 +1241,56 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1311
1241
|
}).timeout(attemptTimeout);
|
|
1312
1242
|
});
|
|
1313
1243
|
|
|
1244
|
+
describe('#getNetworkContainerNextNetworkIps - errors', () => {
|
|
1245
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
1246
|
+
try {
|
|
1247
|
+
a.getNetworkContainerNextNetworkIps('fakedata', 'fakedata', { key: 'fakedata' }, { key: 'fakedata' }, (data, error) => {
|
|
1248
|
+
try {
|
|
1249
|
+
if (stub) {
|
|
1250
|
+
const displayE = 'Error 400 received on request';
|
|
1251
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1252
|
+
} else {
|
|
1253
|
+
runCommonAsserts(data, error);
|
|
1254
|
+
}
|
|
1255
|
+
saveMockData('Networks', 'getNetworkContainerNextNetworkIps', 'default', data);
|
|
1256
|
+
done();
|
|
1257
|
+
} catch (err) {
|
|
1258
|
+
log.error(`Test Failure: ${err}`);
|
|
1259
|
+
done(err);
|
|
1260
|
+
}
|
|
1261
|
+
});
|
|
1262
|
+
} catch (error) {
|
|
1263
|
+
log.error(`Adapter Exception: ${error}`);
|
|
1264
|
+
done(error);
|
|
1265
|
+
}
|
|
1266
|
+
}).timeout(attemptTimeout);
|
|
1267
|
+
});
|
|
1268
|
+
|
|
1269
|
+
describe('#getIpv6NetworkContainerNextNetworkIps - errors', () => {
|
|
1270
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
1271
|
+
try {
|
|
1272
|
+
a.getIpv6NetworkContainerNextNetworkIps('fakedata', 'fakedata', { key: 'fakedata' }, { key: 'fakedata' }, (data, error) => {
|
|
1273
|
+
try {
|
|
1274
|
+
if (stub) {
|
|
1275
|
+
const displayE = 'Error 400 received on request';
|
|
1276
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1277
|
+
} else {
|
|
1278
|
+
runCommonAsserts(data, error);
|
|
1279
|
+
}
|
|
1280
|
+
saveMockData('Networks', 'getIpv6NetworkContainerNextNetworkIps', 'default', data);
|
|
1281
|
+
done();
|
|
1282
|
+
} catch (err) {
|
|
1283
|
+
log.error(`Test Failure: ${err}`);
|
|
1284
|
+
done(err);
|
|
1285
|
+
}
|
|
1286
|
+
});
|
|
1287
|
+
} catch (error) {
|
|
1288
|
+
log.error(`Adapter Exception: ${error}`);
|
|
1289
|
+
done(error);
|
|
1290
|
+
}
|
|
1291
|
+
}).timeout(attemptTimeout);
|
|
1292
|
+
});
|
|
1293
|
+
|
|
1314
1294
|
const dNSTrafficControlCreateDtcLbdnBodyParam = {
|
|
1315
1295
|
auth_zones: [
|
|
1316
1296
|
'string'
|
|
@@ -1335,7 +1315,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1335
1315
|
try {
|
|
1336
1316
|
if (stub) {
|
|
1337
1317
|
const displayE = 'Error 400 received on request';
|
|
1338
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1318
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1339
1319
|
} else {
|
|
1340
1320
|
runCommonAsserts(data, error);
|
|
1341
1321
|
}
|
|
@@ -1375,7 +1355,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1375
1355
|
try {
|
|
1376
1356
|
if (stub) {
|
|
1377
1357
|
const displayE = 'Error 400 received on request';
|
|
1378
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1358
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1379
1359
|
} else {
|
|
1380
1360
|
runCommonAsserts(data, error);
|
|
1381
1361
|
}
|
|
@@ -1405,7 +1385,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1405
1385
|
try {
|
|
1406
1386
|
if (stub) {
|
|
1407
1387
|
const displayE = 'Error 400 received on request';
|
|
1408
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1388
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1409
1389
|
} else {
|
|
1410
1390
|
runCommonAsserts(data, error);
|
|
1411
1391
|
}
|
|
@@ -1436,7 +1416,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1436
1416
|
try {
|
|
1437
1417
|
if (stub) {
|
|
1438
1418
|
const displayE = 'Error 400 received on request';
|
|
1439
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1419
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1440
1420
|
} else {
|
|
1441
1421
|
runCommonAsserts(data, error);
|
|
1442
1422
|
}
|
|
@@ -1461,7 +1441,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1461
1441
|
try {
|
|
1462
1442
|
if (stub) {
|
|
1463
1443
|
const displayE = 'Error 400 received on request';
|
|
1464
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1444
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1465
1445
|
} else {
|
|
1466
1446
|
runCommonAsserts(data, error);
|
|
1467
1447
|
}
|
|
@@ -1486,7 +1466,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1486
1466
|
try {
|
|
1487
1467
|
if (stub) {
|
|
1488
1468
|
const displayE = 'Error 400 received on request';
|
|
1489
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1469
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1490
1470
|
} else {
|
|
1491
1471
|
runCommonAsserts(data, error);
|
|
1492
1472
|
}
|
|
@@ -1516,7 +1496,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1516
1496
|
try {
|
|
1517
1497
|
if (stub) {
|
|
1518
1498
|
const displayE = 'Error 400 received on request';
|
|
1519
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1499
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1520
1500
|
} else {
|
|
1521
1501
|
runCommonAsserts(data, error);
|
|
1522
1502
|
}
|
|
@@ -1546,7 +1526,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1546
1526
|
try {
|
|
1547
1527
|
if (stub) {
|
|
1548
1528
|
const displayE = 'Error 400 received on request';
|
|
1549
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1529
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1550
1530
|
} else {
|
|
1551
1531
|
runCommonAsserts(data, error);
|
|
1552
1532
|
}
|
|
@@ -1576,7 +1556,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1576
1556
|
try {
|
|
1577
1557
|
if (stub) {
|
|
1578
1558
|
const displayE = 'Error 400 received on request';
|
|
1579
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1559
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1580
1560
|
} else {
|
|
1581
1561
|
runCommonAsserts(data, error);
|
|
1582
1562
|
}
|
|
@@ -1607,7 +1587,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1607
1587
|
try {
|
|
1608
1588
|
if (stub) {
|
|
1609
1589
|
const displayE = 'Error 400 received on request';
|
|
1610
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1590
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1611
1591
|
} else {
|
|
1612
1592
|
runCommonAsserts(data, error);
|
|
1613
1593
|
}
|
|
@@ -1642,7 +1622,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1642
1622
|
try {
|
|
1643
1623
|
if (stub) {
|
|
1644
1624
|
const displayE = 'Error 400 received on request';
|
|
1645
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1625
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1646
1626
|
} else {
|
|
1647
1627
|
runCommonAsserts(data, error);
|
|
1648
1628
|
}
|
|
@@ -1673,7 +1653,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1673
1653
|
try {
|
|
1674
1654
|
if (stub) {
|
|
1675
1655
|
const displayE = 'Error 400 received on request';
|
|
1676
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1656
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1677
1657
|
} else {
|
|
1678
1658
|
runCommonAsserts(data, error);
|
|
1679
1659
|
}
|
|
@@ -1706,7 +1686,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1706
1686
|
try {
|
|
1707
1687
|
if (stub) {
|
|
1708
1688
|
const displayE = 'Error 400 received on request';
|
|
1709
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1689
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1710
1690
|
} else {
|
|
1711
1691
|
runCommonAsserts(data, error);
|
|
1712
1692
|
}
|
|
@@ -1736,7 +1716,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1736
1716
|
try {
|
|
1737
1717
|
if (stub) {
|
|
1738
1718
|
const displayE = 'Error 400 received on request';
|
|
1739
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1719
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1740
1720
|
} else {
|
|
1741
1721
|
runCommonAsserts(data, error);
|
|
1742
1722
|
}
|
|
@@ -1763,7 +1743,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1763
1743
|
try {
|
|
1764
1744
|
if (stub) {
|
|
1765
1745
|
const displayE = 'Error 400 received on request';
|
|
1766
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1746
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1767
1747
|
} else {
|
|
1768
1748
|
runCommonAsserts(data, error);
|
|
1769
1749
|
}
|
|
@@ -1788,7 +1768,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1788
1768
|
try {
|
|
1789
1769
|
if (stub) {
|
|
1790
1770
|
const displayE = 'Error 400 received on request';
|
|
1791
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1771
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1792
1772
|
} else {
|
|
1793
1773
|
runCommonAsserts(data, error);
|
|
1794
1774
|
}
|
|
@@ -1819,7 +1799,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1819
1799
|
try {
|
|
1820
1800
|
if (stub) {
|
|
1821
1801
|
const displayE = 'Error 400 received on request';
|
|
1822
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1802
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1823
1803
|
} else {
|
|
1824
1804
|
runCommonAsserts(data, error);
|
|
1825
1805
|
}
|
|
@@ -1844,7 +1824,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1844
1824
|
try {
|
|
1845
1825
|
if (stub) {
|
|
1846
1826
|
const displayE = 'Error 400 received on request';
|
|
1847
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1827
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1848
1828
|
} else {
|
|
1849
1829
|
runCommonAsserts(data, error);
|
|
1850
1830
|
}
|
|
@@ -1869,7 +1849,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1869
1849
|
try {
|
|
1870
1850
|
if (stub) {
|
|
1871
1851
|
const displayE = 'Error 400 received on request';
|
|
1872
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1852
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1873
1853
|
} else {
|
|
1874
1854
|
runCommonAsserts(data, error);
|
|
1875
1855
|
}
|
|
@@ -1899,7 +1879,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1899
1879
|
try {
|
|
1900
1880
|
if (stub) {
|
|
1901
1881
|
const displayE = 'Error 400 received on request';
|
|
1902
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1882
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1903
1883
|
} else {
|
|
1904
1884
|
runCommonAsserts(data, error);
|
|
1905
1885
|
}
|
|
@@ -1926,7 +1906,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1926
1906
|
try {
|
|
1927
1907
|
if (stub) {
|
|
1928
1908
|
const displayE = 'Error 400 received on request';
|
|
1929
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1909
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1930
1910
|
} else {
|
|
1931
1911
|
runCommonAsserts(data, error);
|
|
1932
1912
|
}
|
|
@@ -1960,7 +1940,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1960
1940
|
try {
|
|
1961
1941
|
if (stub) {
|
|
1962
1942
|
const displayE = 'Error 400 received on request';
|
|
1963
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1943
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1964
1944
|
} else {
|
|
1965
1945
|
runCommonAsserts(data, error);
|
|
1966
1946
|
}
|
|
@@ -1985,7 +1965,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1985
1965
|
try {
|
|
1986
1966
|
if (stub) {
|
|
1987
1967
|
const displayE = 'Error 400 received on request';
|
|
1988
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1968
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1989
1969
|
} else {
|
|
1990
1970
|
runCommonAsserts(data, error);
|
|
1991
1971
|
}
|
|
@@ -2010,7 +1990,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2010
1990
|
try {
|
|
2011
1991
|
if (stub) {
|
|
2012
1992
|
const displayE = 'Error 400 received on request';
|
|
2013
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1993
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2014
1994
|
} else {
|
|
2015
1995
|
runCommonAsserts(data, error);
|
|
2016
1996
|
}
|
|
@@ -2035,7 +2015,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2035
2015
|
try {
|
|
2036
2016
|
if (stub) {
|
|
2037
2017
|
const displayE = 'Error 400 received on request';
|
|
2038
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2018
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2039
2019
|
} else {
|
|
2040
2020
|
runCommonAsserts(data, error);
|
|
2041
2021
|
}
|
|
@@ -2066,7 +2046,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2066
2046
|
try {
|
|
2067
2047
|
if (stub) {
|
|
2068
2048
|
const displayE = 'Error 400 received on request';
|
|
2069
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2049
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2070
2050
|
} else {
|
|
2071
2051
|
runCommonAsserts(data, error);
|
|
2072
2052
|
}
|
|
@@ -2091,7 +2071,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2091
2071
|
try {
|
|
2092
2072
|
if (stub) {
|
|
2093
2073
|
const displayE = 'Error 400 received on request';
|
|
2094
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2074
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2095
2075
|
} else {
|
|
2096
2076
|
runCommonAsserts(data, error);
|
|
2097
2077
|
}
|
|
@@ -2116,7 +2096,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2116
2096
|
try {
|
|
2117
2097
|
if (stub) {
|
|
2118
2098
|
const displayE = 'Error 400 received on request';
|
|
2119
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2099
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2120
2100
|
} else {
|
|
2121
2101
|
runCommonAsserts(data, error);
|
|
2122
2102
|
}
|
|
@@ -2140,8 +2120,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2140
2120
|
a.getGridDns((data, error) => {
|
|
2141
2121
|
try {
|
|
2142
2122
|
if (stub) {
|
|
2143
|
-
|
|
2144
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2123
|
+
runCommonAsserts(data, error);
|
|
2145
2124
|
} else {
|
|
2146
2125
|
runCommonAsserts(data, error);
|
|
2147
2126
|
}
|
|
@@ -2166,7 +2145,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2166
2145
|
try {
|
|
2167
2146
|
if (stub) {
|
|
2168
2147
|
const displayE = 'Error 400 received on request';
|
|
2169
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2148
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2170
2149
|
} else {
|
|
2171
2150
|
runCommonAsserts(data, error);
|
|
2172
2151
|
}
|
|
@@ -2197,7 +2176,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2197
2176
|
try {
|
|
2198
2177
|
if (stub) {
|
|
2199
2178
|
const displayE = 'Error 400 received on request';
|
|
2200
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2179
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2201
2180
|
} else {
|
|
2202
2181
|
runCommonAsserts(data, error);
|
|
2203
2182
|
}
|
|
@@ -2228,7 +2207,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2228
2207
|
try {
|
|
2229
2208
|
if (stub) {
|
|
2230
2209
|
const displayE = 'Error 400 received on request';
|
|
2231
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2210
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2232
2211
|
} else {
|
|
2233
2212
|
runCommonAsserts(data, error);
|
|
2234
2213
|
}
|
|
@@ -2259,7 +2238,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2259
2238
|
try {
|
|
2260
2239
|
if (stub) {
|
|
2261
2240
|
const displayE = 'Error 400 received on request';
|
|
2262
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2241
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2263
2242
|
} else {
|
|
2264
2243
|
runCommonAsserts(data, error);
|
|
2265
2244
|
}
|
|
@@ -2290,7 +2269,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2290
2269
|
try {
|
|
2291
2270
|
if (stub) {
|
|
2292
2271
|
const displayE = 'Error 400 received on request';
|
|
2293
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2272
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2294
2273
|
} else {
|
|
2295
2274
|
runCommonAsserts(data, error);
|
|
2296
2275
|
}
|
|
@@ -2321,7 +2300,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2321
2300
|
try {
|
|
2322
2301
|
if (stub) {
|
|
2323
2302
|
const displayE = 'Error 400 received on request';
|
|
2324
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2303
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2325
2304
|
} else {
|
|
2326
2305
|
runCommonAsserts(data, error);
|
|
2327
2306
|
}
|
|
@@ -2352,7 +2331,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2352
2331
|
try {
|
|
2353
2332
|
if (stub) {
|
|
2354
2333
|
const displayE = 'Error 400 received on request';
|
|
2355
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2334
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2356
2335
|
} else {
|
|
2357
2336
|
runCommonAsserts(data, error);
|
|
2358
2337
|
}
|
|
@@ -2383,7 +2362,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2383
2362
|
try {
|
|
2384
2363
|
if (stub) {
|
|
2385
2364
|
const displayE = 'Error 400 received on request';
|
|
2386
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2365
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2387
2366
|
} else {
|
|
2388
2367
|
runCommonAsserts(data, error);
|
|
2389
2368
|
}
|
|
@@ -2415,7 +2394,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2415
2394
|
try {
|
|
2416
2395
|
if (stub) {
|
|
2417
2396
|
const displayE = 'Error 400 received on request';
|
|
2418
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2397
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2419
2398
|
} else {
|
|
2420
2399
|
runCommonAsserts(data, error);
|
|
2421
2400
|
}
|
|
@@ -2447,7 +2426,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2447
2426
|
try {
|
|
2448
2427
|
if (stub) {
|
|
2449
2428
|
const displayE = 'Error 400 received on request';
|
|
2450
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2429
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2451
2430
|
} else {
|
|
2452
2431
|
runCommonAsserts(data, error);
|
|
2453
2432
|
}
|
|
@@ -2474,7 +2453,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2474
2453
|
try {
|
|
2475
2454
|
if (stub) {
|
|
2476
2455
|
const displayE = 'Error 400 received on request';
|
|
2477
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2456
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2478
2457
|
} else {
|
|
2479
2458
|
runCommonAsserts(data, error);
|
|
2480
2459
|
}
|
|
@@ -2499,7 +2478,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2499
2478
|
try {
|
|
2500
2479
|
if (stub) {
|
|
2501
2480
|
const displayE = 'Error 400 received on request';
|
|
2502
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2481
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2503
2482
|
} else {
|
|
2504
2483
|
runCommonAsserts(data, error);
|
|
2505
2484
|
}
|
|
@@ -2533,7 +2512,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2533
2512
|
try {
|
|
2534
2513
|
if (stub) {
|
|
2535
2514
|
const displayE = 'Error 400 received on request';
|
|
2536
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2515
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2537
2516
|
} else {
|
|
2538
2517
|
runCommonAsserts(data, error);
|
|
2539
2518
|
}
|
|
@@ -2558,7 +2537,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2558
2537
|
try {
|
|
2559
2538
|
if (stub) {
|
|
2560
2539
|
const displayE = 'Error 400 received on request';
|
|
2561
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2540
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2562
2541
|
} else {
|
|
2563
2542
|
runCommonAsserts(data, error);
|
|
2564
2543
|
}
|
|
@@ -2593,7 +2572,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2593
2572
|
try {
|
|
2594
2573
|
if (stub) {
|
|
2595
2574
|
const displayE = 'Error 400 received on request';
|
|
2596
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2575
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2597
2576
|
} else {
|
|
2598
2577
|
runCommonAsserts(data, error);
|
|
2599
2578
|
}
|
|
@@ -2620,7 +2599,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2620
2599
|
try {
|
|
2621
2600
|
if (stub) {
|
|
2622
2601
|
const displayE = 'Error 400 received on request';
|
|
2623
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2602
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2624
2603
|
} else {
|
|
2625
2604
|
runCommonAsserts(data, error);
|
|
2626
2605
|
}
|
|
@@ -2647,7 +2626,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2647
2626
|
try {
|
|
2648
2627
|
if (stub) {
|
|
2649
2628
|
const displayE = 'Error 400 received on request';
|
|
2650
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2629
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2651
2630
|
} else {
|
|
2652
2631
|
runCommonAsserts(data, error);
|
|
2653
2632
|
}
|
|
@@ -2672,7 +2651,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2672
2651
|
try {
|
|
2673
2652
|
if (stub) {
|
|
2674
2653
|
const displayE = 'Error 400 received on request';
|
|
2675
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2654
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2676
2655
|
} else {
|
|
2677
2656
|
runCommonAsserts(data, error);
|
|
2678
2657
|
}
|
|
@@ -2699,7 +2678,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2699
2678
|
try {
|
|
2700
2679
|
if (stub) {
|
|
2701
2680
|
const displayE = 'Error 400 received on request';
|
|
2702
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2681
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2703
2682
|
} else {
|
|
2704
2683
|
runCommonAsserts(data, error);
|
|
2705
2684
|
}
|
|
@@ -2728,7 +2707,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2728
2707
|
try {
|
|
2729
2708
|
if (stub) {
|
|
2730
2709
|
const displayE = 'Error 400 received on request';
|
|
2731
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2710
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2732
2711
|
} else {
|
|
2733
2712
|
runCommonAsserts(data, error);
|
|
2734
2713
|
}
|
|
@@ -2753,7 +2732,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2753
2732
|
try {
|
|
2754
2733
|
if (stub) {
|
|
2755
2734
|
const displayE = 'Error 400 received on request';
|
|
2756
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2735
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2757
2736
|
} else {
|
|
2758
2737
|
runCommonAsserts(data, error);
|
|
2759
2738
|
}
|
|
@@ -2771,6 +2750,81 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2771
2750
|
}).timeout(attemptTimeout);
|
|
2772
2751
|
});
|
|
2773
2752
|
|
|
2753
|
+
describe('#getNetworkViewWithQuery - errors', () => {
|
|
2754
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
2755
|
+
try {
|
|
2756
|
+
a.getNetworkViewWithQuery({ key: 'fakedata' }, (data, error) => {
|
|
2757
|
+
try {
|
|
2758
|
+
if (stub) {
|
|
2759
|
+
const displayE = 'Error 400 received on request';
|
|
2760
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2761
|
+
} else {
|
|
2762
|
+
runCommonAsserts(data, error);
|
|
2763
|
+
}
|
|
2764
|
+
saveMockData('NetworkViewsAndDNSViews', 'getNetworkView', 'default', data);
|
|
2765
|
+
done();
|
|
2766
|
+
} catch (err) {
|
|
2767
|
+
log.error(`Test Failure: ${err}`);
|
|
2768
|
+
done(err);
|
|
2769
|
+
}
|
|
2770
|
+
});
|
|
2771
|
+
} catch (error) {
|
|
2772
|
+
log.error(`Adapter Exception: ${error}`);
|
|
2773
|
+
done(error);
|
|
2774
|
+
}
|
|
2775
|
+
}).timeout(attemptTimeout);
|
|
2776
|
+
});
|
|
2777
|
+
|
|
2778
|
+
describe('#getNetworkViewById - errors', () => {
|
|
2779
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
2780
|
+
try {
|
|
2781
|
+
a.getNetworkViewById('fakedata', { key: 'fakedata' }, (data, error) => {
|
|
2782
|
+
try {
|
|
2783
|
+
if (stub) {
|
|
2784
|
+
const displayE = 'Error 400 received on request';
|
|
2785
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2786
|
+
} else {
|
|
2787
|
+
runCommonAsserts(data, error);
|
|
2788
|
+
}
|
|
2789
|
+
saveMockData('NetworkViewsAndDNSViews', 'getNetworkViewById', 'default', data);
|
|
2790
|
+
done();
|
|
2791
|
+
} catch (err) {
|
|
2792
|
+
log.error(`Test Failure: ${err}`);
|
|
2793
|
+
done(err);
|
|
2794
|
+
}
|
|
2795
|
+
});
|
|
2796
|
+
} catch (error) {
|
|
2797
|
+
log.error(`Adapter Exception: ${error}`);
|
|
2798
|
+
done(error);
|
|
2799
|
+
}
|
|
2800
|
+
}).timeout(attemptTimeout);
|
|
2801
|
+
});
|
|
2802
|
+
|
|
2803
|
+
describe('#updateNetworkView - errors', () => {
|
|
2804
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
2805
|
+
try {
|
|
2806
|
+
a.updateNetworkView('fakedata', (data, error) => {
|
|
2807
|
+
try {
|
|
2808
|
+
if (stub) {
|
|
2809
|
+
const displayE = 'Error 400 received on request';
|
|
2810
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2811
|
+
} else {
|
|
2812
|
+
runCommonAsserts(data, error);
|
|
2813
|
+
}
|
|
2814
|
+
saveMockData('NetworkViewsAndDNSViews', 'updateNetworkView', 'default', data);
|
|
2815
|
+
done();
|
|
2816
|
+
} catch (err) {
|
|
2817
|
+
log.error(`Test Failure: ${err}`);
|
|
2818
|
+
done(err);
|
|
2819
|
+
}
|
|
2820
|
+
});
|
|
2821
|
+
} catch (error) {
|
|
2822
|
+
log.error(`Adapter Exception: ${error}`);
|
|
2823
|
+
done(error);
|
|
2824
|
+
}
|
|
2825
|
+
}).timeout(attemptTimeout);
|
|
2826
|
+
});
|
|
2827
|
+
|
|
2774
2828
|
describe('#getDnsView - errors', () => {
|
|
2775
2829
|
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
2776
2830
|
try {
|
|
@@ -2778,7 +2832,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2778
2832
|
try {
|
|
2779
2833
|
if (stub) {
|
|
2780
2834
|
const displayE = 'Error 400 received on request';
|
|
2781
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2835
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2782
2836
|
} else {
|
|
2783
2837
|
runCommonAsserts(data, error);
|
|
2784
2838
|
}
|
|
@@ -2808,7 +2862,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2808
2862
|
try {
|
|
2809
2863
|
if (stub) {
|
|
2810
2864
|
const displayE = 'Error 400 received on request';
|
|
2811
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2865
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2812
2866
|
} else {
|
|
2813
2867
|
runCommonAsserts(data, error);
|
|
2814
2868
|
}
|
|
@@ -2835,7 +2889,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2835
2889
|
try {
|
|
2836
2890
|
if (stub) {
|
|
2837
2891
|
const displayE = 'Error 400 received on request';
|
|
2838
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2892
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2839
2893
|
} else {
|
|
2840
2894
|
runCommonAsserts(data, error);
|
|
2841
2895
|
}
|
|
@@ -2871,7 +2925,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2871
2925
|
try {
|
|
2872
2926
|
if (stub) {
|
|
2873
2927
|
const displayE = 'Error 400 received on request';
|
|
2874
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2928
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2875
2929
|
} else {
|
|
2876
2930
|
runCommonAsserts(data, error);
|
|
2877
2931
|
}
|
|
@@ -2896,7 +2950,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2896
2950
|
try {
|
|
2897
2951
|
if (stub) {
|
|
2898
2952
|
const displayE = 'Error 400 received on request';
|
|
2899
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2953
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2900
2954
|
} else {
|
|
2901
2955
|
runCommonAsserts(data, error);
|
|
2902
2956
|
}
|
|
@@ -2921,7 +2975,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2921
2975
|
try {
|
|
2922
2976
|
if (stub) {
|
|
2923
2977
|
const displayE = 'Error 400 received on request';
|
|
2924
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2978
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2925
2979
|
} else {
|
|
2926
2980
|
runCommonAsserts(data, error);
|
|
2927
2981
|
}
|
|
@@ -2939,6 +2993,31 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2939
2993
|
}).timeout(attemptTimeout);
|
|
2940
2994
|
});
|
|
2941
2995
|
|
|
2996
|
+
describe('#getGridStatus - errors', () => {
|
|
2997
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
2998
|
+
try {
|
|
2999
|
+
a.getGridStatus((data, error) => {
|
|
3000
|
+
try {
|
|
3001
|
+
if (stub) {
|
|
3002
|
+
const displayE = 'Error 400 received on request';
|
|
3003
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3004
|
+
} else {
|
|
3005
|
+
runCommonAsserts(data, error);
|
|
3006
|
+
}
|
|
3007
|
+
saveMockData('Services', 'getGridStatus', 'default', data);
|
|
3008
|
+
done();
|
|
3009
|
+
} catch (err) {
|
|
3010
|
+
log.error(`Test Failure: ${err}`);
|
|
3011
|
+
done(err);
|
|
3012
|
+
}
|
|
3013
|
+
});
|
|
3014
|
+
} catch (error) {
|
|
3015
|
+
log.error(`Adapter Exception: ${error}`);
|
|
3016
|
+
done(error);
|
|
3017
|
+
}
|
|
3018
|
+
}).timeout(attemptTimeout);
|
|
3019
|
+
});
|
|
3020
|
+
|
|
2942
3021
|
describe('#getGridPendingChanges - errors', () => {
|
|
2943
3022
|
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
2944
3023
|
try {
|
|
@@ -2946,7 +3025,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2946
3025
|
try {
|
|
2947
3026
|
if (stub) {
|
|
2948
3027
|
const displayE = 'Error 400 received on request';
|
|
2949
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3028
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2950
3029
|
} else {
|
|
2951
3030
|
runCommonAsserts(data, error);
|
|
2952
3031
|
}
|
|
@@ -2998,7 +3077,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2998
3077
|
try {
|
|
2999
3078
|
if (stub) {
|
|
3000
3079
|
const displayE = 'Error 400 received on request';
|
|
3001
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3080
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3002
3081
|
} else {
|
|
3003
3082
|
runCommonAsserts(data, error);
|
|
3004
3083
|
}
|
|
@@ -3023,7 +3102,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3023
3102
|
try {
|
|
3024
3103
|
if (stub) {
|
|
3025
3104
|
const displayE = 'Error 400 received on request';
|
|
3026
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3105
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3027
3106
|
} else {
|
|
3028
3107
|
runCommonAsserts(data, error);
|
|
3029
3108
|
}
|
|
@@ -3050,7 +3129,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3050
3129
|
try {
|
|
3051
3130
|
if (stub) {
|
|
3052
3131
|
const displayE = 'Error 400 received on request';
|
|
3053
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3132
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3054
3133
|
} else {
|
|
3055
3134
|
runCommonAsserts(data, error);
|
|
3056
3135
|
}
|
|
@@ -3077,7 +3156,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3077
3156
|
try {
|
|
3078
3157
|
if (stub) {
|
|
3079
3158
|
const displayE = 'Error 400 received on request';
|
|
3080
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3159
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3081
3160
|
} else {
|
|
3082
3161
|
runCommonAsserts(data, error);
|
|
3083
3162
|
}
|
|
@@ -3113,7 +3192,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3113
3192
|
try {
|
|
3114
3193
|
if (stub) {
|
|
3115
3194
|
const displayE = 'Error 400 received on request';
|
|
3116
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3195
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3117
3196
|
} else {
|
|
3118
3197
|
runCommonAsserts(data, error);
|
|
3119
3198
|
}
|
|
@@ -3143,7 +3222,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3143
3222
|
try {
|
|
3144
3223
|
if (stub) {
|
|
3145
3224
|
const displayE = 'Error 400 received on request';
|
|
3146
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3225
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3147
3226
|
} else {
|
|
3148
3227
|
runCommonAsserts(data, error);
|
|
3149
3228
|
}
|
|
@@ -3168,7 +3247,32 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3168
3247
|
try {
|
|
3169
3248
|
if (stub) {
|
|
3170
3249
|
const displayE = 'Error 400 received on request';
|
|
3171
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3250
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3251
|
+
} else {
|
|
3252
|
+
runCommonAsserts(data, error);
|
|
3253
|
+
}
|
|
3254
|
+
saveMockData('ExtensibleAttributes', 'getExtensibleAttributeDefinition', 'default', data);
|
|
3255
|
+
done();
|
|
3256
|
+
} catch (err) {
|
|
3257
|
+
log.error(`Test Failure: ${err}`);
|
|
3258
|
+
done(err);
|
|
3259
|
+
}
|
|
3260
|
+
});
|
|
3261
|
+
} catch (error) {
|
|
3262
|
+
log.error(`Adapter Exception: ${error}`);
|
|
3263
|
+
done(error);
|
|
3264
|
+
}
|
|
3265
|
+
}).timeout(attemptTimeout);
|
|
3266
|
+
});
|
|
3267
|
+
|
|
3268
|
+
describe('#getExtensibleAttributeDefinitionWithQuery - errors', () => {
|
|
3269
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
3270
|
+
try {
|
|
3271
|
+
a.getExtensibleAttributeDefinitionWithQuery({ key: 'fakedata' }, (data, error) => {
|
|
3272
|
+
try {
|
|
3273
|
+
if (stub) {
|
|
3274
|
+
const displayE = 'Error 400 received on request';
|
|
3275
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3172
3276
|
} else {
|
|
3173
3277
|
runCommonAsserts(data, error);
|
|
3174
3278
|
}
|
|
@@ -3186,6 +3290,56 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3186
3290
|
}).timeout(attemptTimeout);
|
|
3187
3291
|
});
|
|
3188
3292
|
|
|
3293
|
+
describe('#getExtensibleAttributeDefinitionById - errors', () => {
|
|
3294
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
3295
|
+
try {
|
|
3296
|
+
a.getExtensibleAttributeDefinitionById('fakedata', { key: 'fakedata' }, (data, error) => {
|
|
3297
|
+
try {
|
|
3298
|
+
if (stub) {
|
|
3299
|
+
const displayE = 'Error 400 received on request';
|
|
3300
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3301
|
+
} else {
|
|
3302
|
+
runCommonAsserts(data, error);
|
|
3303
|
+
}
|
|
3304
|
+
saveMockData('ExtensibleAttributes', 'getExtensibleAttributeDefinitionById', 'default', data);
|
|
3305
|
+
done();
|
|
3306
|
+
} catch (err) {
|
|
3307
|
+
log.error(`Test Failure: ${err}`);
|
|
3308
|
+
done(err);
|
|
3309
|
+
}
|
|
3310
|
+
});
|
|
3311
|
+
} catch (error) {
|
|
3312
|
+
log.error(`Adapter Exception: ${error}`);
|
|
3313
|
+
done(error);
|
|
3314
|
+
}
|
|
3315
|
+
}).timeout(attemptTimeout);
|
|
3316
|
+
});
|
|
3317
|
+
|
|
3318
|
+
describe('#updateExtensibleAttributeDefinition - errors', () => {
|
|
3319
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
3320
|
+
try {
|
|
3321
|
+
a.updateExtensibleAttributeDefinition('fakedata', (data, error) => {
|
|
3322
|
+
try {
|
|
3323
|
+
if (stub) {
|
|
3324
|
+
const displayE = 'Error 400 received on request';
|
|
3325
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3326
|
+
} else {
|
|
3327
|
+
runCommonAsserts(data, error);
|
|
3328
|
+
}
|
|
3329
|
+
saveMockData('ExtensibleAttributes', 'updateExtensibleAttributeDefinition', 'default', data);
|
|
3330
|
+
done();
|
|
3331
|
+
} catch (err) {
|
|
3332
|
+
log.error(`Test Failure: ${err}`);
|
|
3333
|
+
done(err);
|
|
3334
|
+
}
|
|
3335
|
+
});
|
|
3336
|
+
} catch (error) {
|
|
3337
|
+
log.error(`Adapter Exception: ${error}`);
|
|
3338
|
+
done(error);
|
|
3339
|
+
}
|
|
3340
|
+
}).timeout(attemptTimeout);
|
|
3341
|
+
});
|
|
3342
|
+
|
|
3189
3343
|
const zonesZoneRef = 'fakedata';
|
|
3190
3344
|
|
|
3191
3345
|
describe('#deleteAuthZoneByRef - errors', () => {
|
|
@@ -3195,7 +3349,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3195
3349
|
try {
|
|
3196
3350
|
if (stub) {
|
|
3197
3351
|
const displayE = 'Error 400 received on request';
|
|
3198
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3352
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3199
3353
|
} else {
|
|
3200
3354
|
runCommonAsserts(data, error);
|
|
3201
3355
|
}
|
|
@@ -3222,7 +3376,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3222
3376
|
try {
|
|
3223
3377
|
if (stub) {
|
|
3224
3378
|
const displayE = 'Error 400 received on request';
|
|
3225
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3379
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3226
3380
|
} else {
|
|
3227
3381
|
runCommonAsserts(data, error);
|
|
3228
3382
|
}
|
|
@@ -3247,7 +3401,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3247
3401
|
try {
|
|
3248
3402
|
if (stub) {
|
|
3249
3403
|
const displayE = 'Error 400 received on request';
|
|
3250
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3404
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3251
3405
|
} else {
|
|
3252
3406
|
runCommonAsserts(data, error);
|
|
3253
3407
|
}
|
|
@@ -3272,7 +3426,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3272
3426
|
try {
|
|
3273
3427
|
if (stub) {
|
|
3274
3428
|
const displayE = 'Error 400 received on request';
|
|
3275
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3429
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3276
3430
|
} else {
|
|
3277
3431
|
runCommonAsserts(data, error);
|
|
3278
3432
|
}
|
|
@@ -3297,7 +3451,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3297
3451
|
try {
|
|
3298
3452
|
if (stub) {
|
|
3299
3453
|
const displayE = 'Error 400 received on request';
|
|
3300
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3454
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3301
3455
|
} else {
|
|
3302
3456
|
runCommonAsserts(data, error);
|
|
3303
3457
|
}
|
|
@@ -3322,7 +3476,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3322
3476
|
try {
|
|
3323
3477
|
if (stub) {
|
|
3324
3478
|
const displayE = 'Error 400 received on request';
|
|
3325
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3479
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3326
3480
|
} else {
|
|
3327
3481
|
runCommonAsserts(data, error);
|
|
3328
3482
|
}
|
|
@@ -3347,7 +3501,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3347
3501
|
try {
|
|
3348
3502
|
if (stub) {
|
|
3349
3503
|
const displayE = 'Error 400 received on request';
|
|
3350
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3504
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3351
3505
|
} else {
|
|
3352
3506
|
runCommonAsserts(data, error);
|
|
3353
3507
|
}
|
|
@@ -3372,7 +3526,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3372
3526
|
try {
|
|
3373
3527
|
if (stub) {
|
|
3374
3528
|
const displayE = 'Error 400 received on request';
|
|
3375
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3529
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3376
3530
|
} else {
|
|
3377
3531
|
runCommonAsserts(data, error);
|
|
3378
3532
|
}
|
|
@@ -3397,7 +3551,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3397
3551
|
try {
|
|
3398
3552
|
if (stub) {
|
|
3399
3553
|
const displayE = 'Error 400 received on request';
|
|
3400
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3554
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3401
3555
|
} else {
|
|
3402
3556
|
runCommonAsserts(data, error);
|
|
3403
3557
|
}
|
|
@@ -3438,7 +3592,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3438
3592
|
try {
|
|
3439
3593
|
if (stub) {
|
|
3440
3594
|
const displayE = 'Error 400 received on request';
|
|
3441
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3595
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3442
3596
|
} else {
|
|
3443
3597
|
runCommonAsserts(data, error);
|
|
3444
3598
|
}
|
|
@@ -3467,7 +3621,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3467
3621
|
try {
|
|
3468
3622
|
if (stub) {
|
|
3469
3623
|
const displayE = 'Error 400 received on request';
|
|
3470
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3624
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3471
3625
|
} else {
|
|
3472
3626
|
runCommonAsserts(data, error);
|
|
3473
3627
|
}
|
|
@@ -3492,7 +3646,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3492
3646
|
try {
|
|
3493
3647
|
if (stub) {
|
|
3494
3648
|
const displayE = 'Error 400 received on request';
|
|
3495
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3649
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3496
3650
|
} else {
|
|
3497
3651
|
runCommonAsserts(data, error);
|
|
3498
3652
|
}
|
|
@@ -3517,7 +3671,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3517
3671
|
try {
|
|
3518
3672
|
if (stub) {
|
|
3519
3673
|
const displayE = 'Error 400 received on request';
|
|
3520
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3674
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3521
3675
|
} else {
|
|
3522
3676
|
runCommonAsserts(data, error);
|
|
3523
3677
|
}
|
|
@@ -3547,7 +3701,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3547
3701
|
try {
|
|
3548
3702
|
if (stub) {
|
|
3549
3703
|
const displayE = 'Error 400 received on request';
|
|
3550
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3704
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3551
3705
|
} else {
|
|
3552
3706
|
runCommonAsserts(data, error);
|
|
3553
3707
|
}
|
|
@@ -3564,5 +3718,55 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3564
3718
|
}
|
|
3565
3719
|
}).timeout(attemptTimeout);
|
|
3566
3720
|
});
|
|
3721
|
+
|
|
3722
|
+
describe('#deleteExtensibleAttributeDefinition - errors', () => {
|
|
3723
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
3724
|
+
try {
|
|
3725
|
+
a.deleteExtensibleAttributeDefinition('fakedata', (data, error) => {
|
|
3726
|
+
try {
|
|
3727
|
+
if (stub) {
|
|
3728
|
+
const displayE = 'Error 400 received on request';
|
|
3729
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3730
|
+
} else {
|
|
3731
|
+
runCommonAsserts(data, error);
|
|
3732
|
+
}
|
|
3733
|
+
saveMockData('ExtensibleAttributes', 'deleteExtensibleAttributeDefinition', 'default', data);
|
|
3734
|
+
done();
|
|
3735
|
+
} catch (err) {
|
|
3736
|
+
log.error(`Test Failure: ${err}`);
|
|
3737
|
+
done(err);
|
|
3738
|
+
}
|
|
3739
|
+
});
|
|
3740
|
+
} catch (error) {
|
|
3741
|
+
log.error(`Adapter Exception: ${error}`);
|
|
3742
|
+
done(error);
|
|
3743
|
+
}
|
|
3744
|
+
}).timeout(attemptTimeout);
|
|
3745
|
+
});
|
|
3746
|
+
|
|
3747
|
+
describe('#deleteNetworkView - errors', () => {
|
|
3748
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
3749
|
+
try {
|
|
3750
|
+
a.deleteNetworkView('fakedata', (data, error) => {
|
|
3751
|
+
try {
|
|
3752
|
+
if (stub) {
|
|
3753
|
+
const displayE = 'Error 400 received on request';
|
|
3754
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3755
|
+
} else {
|
|
3756
|
+
runCommonAsserts(data, error);
|
|
3757
|
+
}
|
|
3758
|
+
saveMockData('NetworkViewsAndDNSViews', 'deleteNetworkView', 'default', data);
|
|
3759
|
+
done();
|
|
3760
|
+
} catch (err) {
|
|
3761
|
+
log.error(`Test Failure: ${err}`);
|
|
3762
|
+
done(err);
|
|
3763
|
+
}
|
|
3764
|
+
});
|
|
3765
|
+
} catch (error) {
|
|
3766
|
+
log.error(`Adapter Exception: ${error}`);
|
|
3767
|
+
done(error);
|
|
3768
|
+
}
|
|
3769
|
+
}).timeout(attemptTimeout);
|
|
3770
|
+
});
|
|
3567
3771
|
});
|
|
3568
3772
|
});
|