@itentialopensource/adapter-infoblox 1.9.3 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AUTH.md +39 -0
- package/BROKER.md +199 -0
- package/CALLS.md +169 -0
- package/CHANGELOG.md +55 -52
- 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 +225 -502
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +11 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +1261 -149
- package/adapterBase.js +1022 -246
- package/entities/.generic/action.json +110 -5
- package/entities/.generic/schema.json +6 -1
- 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 +20 -13
- package/pronghorn.json +1201 -500
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +436 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +10 -0
- package/report/updateReport1646675873230.json +95 -0
- package/report/updateReport1653911824054.json +120 -0
- package/sampleProperties.json +94 -2
- package/test/integration/adapterTestBasicGet.js +2 -2
- package/test/integration/adapterTestIntegration.js +390 -191
- package/test/unit/adapterBaseTestUnit.js +35 -27
- package/test/unit/adapterTestUnit.js +1112 -214
- package/utils/adapterInfo.js +206 -0
- package/utils/addAuth.js +94 -0
- package/utils/basicGet.js +1 -14
- package/utils/entitiesToDB.js +179 -0
- package/utils/modify.js +1 -1
- 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 +43 -22
- package/utils/tbUtils.js +126 -29
- package/utils/testRunner.js +16 -16
- package/utils/troubleshootingAdapter.js +2 -26
|
@@ -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,101 +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
|
-
auth_logging: false
|
|
68
|
-
},
|
|
69
|
-
healthcheck: {
|
|
70
|
-
type: 'startup',
|
|
71
|
-
frequency: 60000,
|
|
72
|
-
query_object: {}
|
|
73
|
-
},
|
|
74
|
-
throttle: {
|
|
75
|
-
throttle_enabled: false,
|
|
76
|
-
number_pronghorns: 1,
|
|
77
|
-
sync_async: 'sync',
|
|
78
|
-
max_in_queue: 1000,
|
|
79
|
-
concurrent_max: 1,
|
|
80
|
-
expire_timeout: 0,
|
|
81
|
-
avg_runtime: 200,
|
|
82
|
-
priorities: [
|
|
83
|
-
{
|
|
84
|
-
value: 0,
|
|
85
|
-
percent: 100
|
|
86
|
-
}
|
|
87
|
-
]
|
|
88
|
-
},
|
|
89
|
-
request: {
|
|
90
|
-
number_redirects: 0,
|
|
91
|
-
number_retries: 3,
|
|
92
|
-
limit_retry_error: 0,
|
|
93
|
-
failover_codes: [],
|
|
94
|
-
attempt_timeout: attemptTimeout,
|
|
95
|
-
global_request: {
|
|
96
|
-
payload: {},
|
|
97
|
-
uriOptions: {},
|
|
98
|
-
addlHeaders: {},
|
|
99
|
-
authData: {}
|
|
100
|
-
},
|
|
101
|
-
healthcheck_on_timeout: false,
|
|
102
|
-
return_raw: true,
|
|
103
|
-
archiving: false,
|
|
104
|
-
return_request: false
|
|
105
|
-
},
|
|
106
|
-
proxy: {
|
|
107
|
-
enabled: false,
|
|
108
|
-
host: '',
|
|
109
|
-
port: 1,
|
|
110
|
-
protocol: 'http',
|
|
111
|
-
username: '',
|
|
112
|
-
password: ''
|
|
113
|
-
},
|
|
114
|
-
ssl: {
|
|
115
|
-
ecdhCurve: '',
|
|
116
|
-
enabled: sslenable,
|
|
117
|
-
accept_invalid_cert: sslinvalid,
|
|
118
|
-
ca_file: '',
|
|
119
|
-
key_file: '',
|
|
120
|
-
cert_file: '',
|
|
121
|
-
secure_protocol: '',
|
|
122
|
-
ciphers: ''
|
|
123
|
-
},
|
|
124
|
-
mongo: {
|
|
125
|
-
host: '',
|
|
126
|
-
port: 0,
|
|
127
|
-
database: '',
|
|
128
|
-
username: '',
|
|
129
|
-
password: '',
|
|
130
|
-
replSet: '',
|
|
131
|
-
db_ssl: {
|
|
132
|
-
enabled: false,
|
|
133
|
-
accept_invalid_cert: false,
|
|
134
|
-
ca_file: '',
|
|
135
|
-
key_file: '',
|
|
136
|
-
cert_file: ''
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
62
|
+
properties: samProps
|
|
140
63
|
}]
|
|
141
64
|
}
|
|
142
65
|
};
|
|
@@ -311,7 +234,7 @@ function saveMockData(entityName, actionName, descriptor, responseData) {
|
|
|
311
234
|
}
|
|
312
235
|
|
|
313
236
|
// require the adapter that we are going to be using
|
|
314
|
-
const Infoblox = require('../../adapter
|
|
237
|
+
const Infoblox = require('../../adapter');
|
|
315
238
|
|
|
316
239
|
// begin the testing - these should be pretty well defined between the describe and the it!
|
|
317
240
|
describe('[integration] Infoblox Adapter Test', () => {
|
|
@@ -342,6 +265,8 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
342
265
|
try {
|
|
343
266
|
assert.notEqual(null, a);
|
|
344
267
|
assert.notEqual(undefined, a);
|
|
268
|
+
const checkId = global.pronghornProps.adapterProps.adapters[0].id;
|
|
269
|
+
assert.equal(checkId, a.id);
|
|
345
270
|
assert.notEqual(null, a.allProps);
|
|
346
271
|
const check = global.pronghornProps.adapterProps.adapters[0].properties.healthcheck.type;
|
|
347
272
|
assert.equal(check, a.healthcheckType);
|
|
@@ -1030,7 +955,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1030
955
|
try {
|
|
1031
956
|
if (stub) {
|
|
1032
957
|
const displayE = 'Error 400 received on request';
|
|
1033
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
958
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1034
959
|
} else {
|
|
1035
960
|
runCommonAsserts(data, error);
|
|
1036
961
|
}
|
|
@@ -1065,7 +990,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1065
990
|
try {
|
|
1066
991
|
if (stub) {
|
|
1067
992
|
const displayE = 'Error 400 received on request';
|
|
1068
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
993
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1069
994
|
} else {
|
|
1070
995
|
runCommonAsserts(data, error);
|
|
1071
996
|
}
|
|
@@ -1116,7 +1041,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1116
1041
|
try {
|
|
1117
1042
|
if (stub) {
|
|
1118
1043
|
const displayE = 'Error 400 received on request';
|
|
1119
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1044
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1120
1045
|
} else {
|
|
1121
1046
|
runCommonAsserts(data, error);
|
|
1122
1047
|
}
|
|
@@ -1141,7 +1066,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1141
1066
|
try {
|
|
1142
1067
|
if (stub) {
|
|
1143
1068
|
const displayE = 'Error 400 received on request';
|
|
1144
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1069
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1145
1070
|
} else {
|
|
1146
1071
|
runCommonAsserts(data, error);
|
|
1147
1072
|
}
|
|
@@ -1170,7 +1095,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1170
1095
|
try {
|
|
1171
1096
|
if (stub) {
|
|
1172
1097
|
const displayE = 'Error 400 received on request';
|
|
1173
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1098
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1174
1099
|
} else {
|
|
1175
1100
|
runCommonAsserts(data, error);
|
|
1176
1101
|
}
|
|
@@ -1273,7 +1198,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1273
1198
|
try {
|
|
1274
1199
|
if (stub) {
|
|
1275
1200
|
const displayE = 'Error 400 received on request';
|
|
1276
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1201
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1277
1202
|
} else {
|
|
1278
1203
|
runCommonAsserts(data, error);
|
|
1279
1204
|
}
|
|
@@ -1298,7 +1223,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1298
1223
|
try {
|
|
1299
1224
|
if (stub) {
|
|
1300
1225
|
const displayE = 'Error 400 received on request';
|
|
1301
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1226
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1302
1227
|
} else {
|
|
1303
1228
|
runCommonAsserts(data, error);
|
|
1304
1229
|
}
|
|
@@ -1316,6 +1241,56 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1316
1241
|
}).timeout(attemptTimeout);
|
|
1317
1242
|
});
|
|
1318
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
|
+
|
|
1319
1294
|
const dNSTrafficControlCreateDtcLbdnBodyParam = {
|
|
1320
1295
|
auth_zones: [
|
|
1321
1296
|
'string'
|
|
@@ -1340,7 +1315,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1340
1315
|
try {
|
|
1341
1316
|
if (stub) {
|
|
1342
1317
|
const displayE = 'Error 400 received on request';
|
|
1343
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1318
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1344
1319
|
} else {
|
|
1345
1320
|
runCommonAsserts(data, error);
|
|
1346
1321
|
}
|
|
@@ -1380,7 +1355,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1380
1355
|
try {
|
|
1381
1356
|
if (stub) {
|
|
1382
1357
|
const displayE = 'Error 400 received on request';
|
|
1383
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1358
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1384
1359
|
} else {
|
|
1385
1360
|
runCommonAsserts(data, error);
|
|
1386
1361
|
}
|
|
@@ -1410,7 +1385,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1410
1385
|
try {
|
|
1411
1386
|
if (stub) {
|
|
1412
1387
|
const displayE = 'Error 400 received on request';
|
|
1413
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1388
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1414
1389
|
} else {
|
|
1415
1390
|
runCommonAsserts(data, error);
|
|
1416
1391
|
}
|
|
@@ -1441,7 +1416,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1441
1416
|
try {
|
|
1442
1417
|
if (stub) {
|
|
1443
1418
|
const displayE = 'Error 400 received on request';
|
|
1444
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1419
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1445
1420
|
} else {
|
|
1446
1421
|
runCommonAsserts(data, error);
|
|
1447
1422
|
}
|
|
@@ -1466,7 +1441,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1466
1441
|
try {
|
|
1467
1442
|
if (stub) {
|
|
1468
1443
|
const displayE = 'Error 400 received on request';
|
|
1469
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1444
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1470
1445
|
} else {
|
|
1471
1446
|
runCommonAsserts(data, error);
|
|
1472
1447
|
}
|
|
@@ -1491,7 +1466,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1491
1466
|
try {
|
|
1492
1467
|
if (stub) {
|
|
1493
1468
|
const displayE = 'Error 400 received on request';
|
|
1494
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1469
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1495
1470
|
} else {
|
|
1496
1471
|
runCommonAsserts(data, error);
|
|
1497
1472
|
}
|
|
@@ -1521,7 +1496,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1521
1496
|
try {
|
|
1522
1497
|
if (stub) {
|
|
1523
1498
|
const displayE = 'Error 400 received on request';
|
|
1524
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1499
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1525
1500
|
} else {
|
|
1526
1501
|
runCommonAsserts(data, error);
|
|
1527
1502
|
}
|
|
@@ -1551,7 +1526,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1551
1526
|
try {
|
|
1552
1527
|
if (stub) {
|
|
1553
1528
|
const displayE = 'Error 400 received on request';
|
|
1554
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1529
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1555
1530
|
} else {
|
|
1556
1531
|
runCommonAsserts(data, error);
|
|
1557
1532
|
}
|
|
@@ -1581,7 +1556,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1581
1556
|
try {
|
|
1582
1557
|
if (stub) {
|
|
1583
1558
|
const displayE = 'Error 400 received on request';
|
|
1584
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1559
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1585
1560
|
} else {
|
|
1586
1561
|
runCommonAsserts(data, error);
|
|
1587
1562
|
}
|
|
@@ -1612,7 +1587,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1612
1587
|
try {
|
|
1613
1588
|
if (stub) {
|
|
1614
1589
|
const displayE = 'Error 400 received on request';
|
|
1615
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1590
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1616
1591
|
} else {
|
|
1617
1592
|
runCommonAsserts(data, error);
|
|
1618
1593
|
}
|
|
@@ -1647,7 +1622,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1647
1622
|
try {
|
|
1648
1623
|
if (stub) {
|
|
1649
1624
|
const displayE = 'Error 400 received on request';
|
|
1650
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1625
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1651
1626
|
} else {
|
|
1652
1627
|
runCommonAsserts(data, error);
|
|
1653
1628
|
}
|
|
@@ -1678,7 +1653,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1678
1653
|
try {
|
|
1679
1654
|
if (stub) {
|
|
1680
1655
|
const displayE = 'Error 400 received on request';
|
|
1681
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1656
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1682
1657
|
} else {
|
|
1683
1658
|
runCommonAsserts(data, error);
|
|
1684
1659
|
}
|
|
@@ -1711,7 +1686,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1711
1686
|
try {
|
|
1712
1687
|
if (stub) {
|
|
1713
1688
|
const displayE = 'Error 400 received on request';
|
|
1714
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1689
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1715
1690
|
} else {
|
|
1716
1691
|
runCommonAsserts(data, error);
|
|
1717
1692
|
}
|
|
@@ -1741,7 +1716,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1741
1716
|
try {
|
|
1742
1717
|
if (stub) {
|
|
1743
1718
|
const displayE = 'Error 400 received on request';
|
|
1744
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1719
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1745
1720
|
} else {
|
|
1746
1721
|
runCommonAsserts(data, error);
|
|
1747
1722
|
}
|
|
@@ -1768,7 +1743,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1768
1743
|
try {
|
|
1769
1744
|
if (stub) {
|
|
1770
1745
|
const displayE = 'Error 400 received on request';
|
|
1771
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1746
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1772
1747
|
} else {
|
|
1773
1748
|
runCommonAsserts(data, error);
|
|
1774
1749
|
}
|
|
@@ -1793,7 +1768,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1793
1768
|
try {
|
|
1794
1769
|
if (stub) {
|
|
1795
1770
|
const displayE = 'Error 400 received on request';
|
|
1796
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1771
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1797
1772
|
} else {
|
|
1798
1773
|
runCommonAsserts(data, error);
|
|
1799
1774
|
}
|
|
@@ -1824,7 +1799,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1824
1799
|
try {
|
|
1825
1800
|
if (stub) {
|
|
1826
1801
|
const displayE = 'Error 400 received on request';
|
|
1827
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1802
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1828
1803
|
} else {
|
|
1829
1804
|
runCommonAsserts(data, error);
|
|
1830
1805
|
}
|
|
@@ -1849,7 +1824,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1849
1824
|
try {
|
|
1850
1825
|
if (stub) {
|
|
1851
1826
|
const displayE = 'Error 400 received on request';
|
|
1852
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1827
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1853
1828
|
} else {
|
|
1854
1829
|
runCommonAsserts(data, error);
|
|
1855
1830
|
}
|
|
@@ -1874,7 +1849,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1874
1849
|
try {
|
|
1875
1850
|
if (stub) {
|
|
1876
1851
|
const displayE = 'Error 400 received on request';
|
|
1877
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1852
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1878
1853
|
} else {
|
|
1879
1854
|
runCommonAsserts(data, error);
|
|
1880
1855
|
}
|
|
@@ -1904,7 +1879,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1904
1879
|
try {
|
|
1905
1880
|
if (stub) {
|
|
1906
1881
|
const displayE = 'Error 400 received on request';
|
|
1907
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1882
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1908
1883
|
} else {
|
|
1909
1884
|
runCommonAsserts(data, error);
|
|
1910
1885
|
}
|
|
@@ -1931,7 +1906,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1931
1906
|
try {
|
|
1932
1907
|
if (stub) {
|
|
1933
1908
|
const displayE = 'Error 400 received on request';
|
|
1934
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1909
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1935
1910
|
} else {
|
|
1936
1911
|
runCommonAsserts(data, error);
|
|
1937
1912
|
}
|
|
@@ -1965,7 +1940,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1965
1940
|
try {
|
|
1966
1941
|
if (stub) {
|
|
1967
1942
|
const displayE = 'Error 400 received on request';
|
|
1968
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1943
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1969
1944
|
} else {
|
|
1970
1945
|
runCommonAsserts(data, error);
|
|
1971
1946
|
}
|
|
@@ -1990,7 +1965,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1990
1965
|
try {
|
|
1991
1966
|
if (stub) {
|
|
1992
1967
|
const displayE = 'Error 400 received on request';
|
|
1993
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1968
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1994
1969
|
} else {
|
|
1995
1970
|
runCommonAsserts(data, error);
|
|
1996
1971
|
}
|
|
@@ -2015,7 +1990,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2015
1990
|
try {
|
|
2016
1991
|
if (stub) {
|
|
2017
1992
|
const displayE = 'Error 400 received on request';
|
|
2018
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1993
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2019
1994
|
} else {
|
|
2020
1995
|
runCommonAsserts(data, error);
|
|
2021
1996
|
}
|
|
@@ -2040,7 +2015,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2040
2015
|
try {
|
|
2041
2016
|
if (stub) {
|
|
2042
2017
|
const displayE = 'Error 400 received on request';
|
|
2043
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2018
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2044
2019
|
} else {
|
|
2045
2020
|
runCommonAsserts(data, error);
|
|
2046
2021
|
}
|
|
@@ -2071,7 +2046,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2071
2046
|
try {
|
|
2072
2047
|
if (stub) {
|
|
2073
2048
|
const displayE = 'Error 400 received on request';
|
|
2074
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2049
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2075
2050
|
} else {
|
|
2076
2051
|
runCommonAsserts(data, error);
|
|
2077
2052
|
}
|
|
@@ -2096,7 +2071,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2096
2071
|
try {
|
|
2097
2072
|
if (stub) {
|
|
2098
2073
|
const displayE = 'Error 400 received on request';
|
|
2099
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2074
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2100
2075
|
} else {
|
|
2101
2076
|
runCommonAsserts(data, error);
|
|
2102
2077
|
}
|
|
@@ -2121,7 +2096,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2121
2096
|
try {
|
|
2122
2097
|
if (stub) {
|
|
2123
2098
|
const displayE = 'Error 400 received on request';
|
|
2124
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2099
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2125
2100
|
} else {
|
|
2126
2101
|
runCommonAsserts(data, error);
|
|
2127
2102
|
}
|
|
@@ -2145,8 +2120,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2145
2120
|
a.getGridDns((data, error) => {
|
|
2146
2121
|
try {
|
|
2147
2122
|
if (stub) {
|
|
2148
|
-
|
|
2149
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2123
|
+
runCommonAsserts(data, error);
|
|
2150
2124
|
} else {
|
|
2151
2125
|
runCommonAsserts(data, error);
|
|
2152
2126
|
}
|
|
@@ -2171,7 +2145,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2171
2145
|
try {
|
|
2172
2146
|
if (stub) {
|
|
2173
2147
|
const displayE = 'Error 400 received on request';
|
|
2174
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2148
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2175
2149
|
} else {
|
|
2176
2150
|
runCommonAsserts(data, error);
|
|
2177
2151
|
}
|
|
@@ -2202,7 +2176,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2202
2176
|
try {
|
|
2203
2177
|
if (stub) {
|
|
2204
2178
|
const displayE = 'Error 400 received on request';
|
|
2205
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2179
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2206
2180
|
} else {
|
|
2207
2181
|
runCommonAsserts(data, error);
|
|
2208
2182
|
}
|
|
@@ -2233,7 +2207,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2233
2207
|
try {
|
|
2234
2208
|
if (stub) {
|
|
2235
2209
|
const displayE = 'Error 400 received on request';
|
|
2236
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2210
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2237
2211
|
} else {
|
|
2238
2212
|
runCommonAsserts(data, error);
|
|
2239
2213
|
}
|
|
@@ -2264,7 +2238,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2264
2238
|
try {
|
|
2265
2239
|
if (stub) {
|
|
2266
2240
|
const displayE = 'Error 400 received on request';
|
|
2267
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2241
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2268
2242
|
} else {
|
|
2269
2243
|
runCommonAsserts(data, error);
|
|
2270
2244
|
}
|
|
@@ -2295,7 +2269,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2295
2269
|
try {
|
|
2296
2270
|
if (stub) {
|
|
2297
2271
|
const displayE = 'Error 400 received on request';
|
|
2298
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2272
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2299
2273
|
} else {
|
|
2300
2274
|
runCommonAsserts(data, error);
|
|
2301
2275
|
}
|
|
@@ -2326,7 +2300,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2326
2300
|
try {
|
|
2327
2301
|
if (stub) {
|
|
2328
2302
|
const displayE = 'Error 400 received on request';
|
|
2329
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2303
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2330
2304
|
} else {
|
|
2331
2305
|
runCommonAsserts(data, error);
|
|
2332
2306
|
}
|
|
@@ -2357,7 +2331,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2357
2331
|
try {
|
|
2358
2332
|
if (stub) {
|
|
2359
2333
|
const displayE = 'Error 400 received on request';
|
|
2360
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2334
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2361
2335
|
} else {
|
|
2362
2336
|
runCommonAsserts(data, error);
|
|
2363
2337
|
}
|
|
@@ -2388,7 +2362,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2388
2362
|
try {
|
|
2389
2363
|
if (stub) {
|
|
2390
2364
|
const displayE = 'Error 400 received on request';
|
|
2391
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2365
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2392
2366
|
} else {
|
|
2393
2367
|
runCommonAsserts(data, error);
|
|
2394
2368
|
}
|
|
@@ -2420,7 +2394,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2420
2394
|
try {
|
|
2421
2395
|
if (stub) {
|
|
2422
2396
|
const displayE = 'Error 400 received on request';
|
|
2423
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2397
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2424
2398
|
} else {
|
|
2425
2399
|
runCommonAsserts(data, error);
|
|
2426
2400
|
}
|
|
@@ -2452,7 +2426,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2452
2426
|
try {
|
|
2453
2427
|
if (stub) {
|
|
2454
2428
|
const displayE = 'Error 400 received on request';
|
|
2455
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2429
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2456
2430
|
} else {
|
|
2457
2431
|
runCommonAsserts(data, error);
|
|
2458
2432
|
}
|
|
@@ -2479,7 +2453,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2479
2453
|
try {
|
|
2480
2454
|
if (stub) {
|
|
2481
2455
|
const displayE = 'Error 400 received on request';
|
|
2482
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2456
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2483
2457
|
} else {
|
|
2484
2458
|
runCommonAsserts(data, error);
|
|
2485
2459
|
}
|
|
@@ -2504,7 +2478,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2504
2478
|
try {
|
|
2505
2479
|
if (stub) {
|
|
2506
2480
|
const displayE = 'Error 400 received on request';
|
|
2507
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2481
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2508
2482
|
} else {
|
|
2509
2483
|
runCommonAsserts(data, error);
|
|
2510
2484
|
}
|
|
@@ -2538,7 +2512,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2538
2512
|
try {
|
|
2539
2513
|
if (stub) {
|
|
2540
2514
|
const displayE = 'Error 400 received on request';
|
|
2541
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2515
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2542
2516
|
} else {
|
|
2543
2517
|
runCommonAsserts(data, error);
|
|
2544
2518
|
}
|
|
@@ -2563,7 +2537,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2563
2537
|
try {
|
|
2564
2538
|
if (stub) {
|
|
2565
2539
|
const displayE = 'Error 400 received on request';
|
|
2566
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2540
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2567
2541
|
} else {
|
|
2568
2542
|
runCommonAsserts(data, error);
|
|
2569
2543
|
}
|
|
@@ -2598,7 +2572,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2598
2572
|
try {
|
|
2599
2573
|
if (stub) {
|
|
2600
2574
|
const displayE = 'Error 400 received on request';
|
|
2601
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2575
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2602
2576
|
} else {
|
|
2603
2577
|
runCommonAsserts(data, error);
|
|
2604
2578
|
}
|
|
@@ -2625,7 +2599,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2625
2599
|
try {
|
|
2626
2600
|
if (stub) {
|
|
2627
2601
|
const displayE = 'Error 400 received on request';
|
|
2628
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2602
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2629
2603
|
} else {
|
|
2630
2604
|
runCommonAsserts(data, error);
|
|
2631
2605
|
}
|
|
@@ -2652,7 +2626,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2652
2626
|
try {
|
|
2653
2627
|
if (stub) {
|
|
2654
2628
|
const displayE = 'Error 400 received on request';
|
|
2655
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2629
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2656
2630
|
} else {
|
|
2657
2631
|
runCommonAsserts(data, error);
|
|
2658
2632
|
}
|
|
@@ -2677,7 +2651,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2677
2651
|
try {
|
|
2678
2652
|
if (stub) {
|
|
2679
2653
|
const displayE = 'Error 400 received on request';
|
|
2680
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2654
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2681
2655
|
} else {
|
|
2682
2656
|
runCommonAsserts(data, error);
|
|
2683
2657
|
}
|
|
@@ -2704,7 +2678,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2704
2678
|
try {
|
|
2705
2679
|
if (stub) {
|
|
2706
2680
|
const displayE = 'Error 400 received on request';
|
|
2707
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2681
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2708
2682
|
} else {
|
|
2709
2683
|
runCommonAsserts(data, error);
|
|
2710
2684
|
}
|
|
@@ -2733,7 +2707,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2733
2707
|
try {
|
|
2734
2708
|
if (stub) {
|
|
2735
2709
|
const displayE = 'Error 400 received on request';
|
|
2736
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2710
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2737
2711
|
} else {
|
|
2738
2712
|
runCommonAsserts(data, error);
|
|
2739
2713
|
}
|
|
@@ -2758,7 +2732,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2758
2732
|
try {
|
|
2759
2733
|
if (stub) {
|
|
2760
2734
|
const displayE = 'Error 400 received on request';
|
|
2761
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2735
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2762
2736
|
} else {
|
|
2763
2737
|
runCommonAsserts(data, error);
|
|
2764
2738
|
}
|
|
@@ -2776,6 +2750,81 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2776
2750
|
}).timeout(attemptTimeout);
|
|
2777
2751
|
});
|
|
2778
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
|
+
|
|
2779
2828
|
describe('#getDnsView - errors', () => {
|
|
2780
2829
|
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
2781
2830
|
try {
|
|
@@ -2783,7 +2832,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2783
2832
|
try {
|
|
2784
2833
|
if (stub) {
|
|
2785
2834
|
const displayE = 'Error 400 received on request';
|
|
2786
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2835
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2787
2836
|
} else {
|
|
2788
2837
|
runCommonAsserts(data, error);
|
|
2789
2838
|
}
|
|
@@ -2813,7 +2862,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2813
2862
|
try {
|
|
2814
2863
|
if (stub) {
|
|
2815
2864
|
const displayE = 'Error 400 received on request';
|
|
2816
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2865
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2817
2866
|
} else {
|
|
2818
2867
|
runCommonAsserts(data, error);
|
|
2819
2868
|
}
|
|
@@ -2840,7 +2889,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2840
2889
|
try {
|
|
2841
2890
|
if (stub) {
|
|
2842
2891
|
const displayE = 'Error 400 received on request';
|
|
2843
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2892
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2844
2893
|
} else {
|
|
2845
2894
|
runCommonAsserts(data, error);
|
|
2846
2895
|
}
|
|
@@ -2876,7 +2925,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2876
2925
|
try {
|
|
2877
2926
|
if (stub) {
|
|
2878
2927
|
const displayE = 'Error 400 received on request';
|
|
2879
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2928
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2880
2929
|
} else {
|
|
2881
2930
|
runCommonAsserts(data, error);
|
|
2882
2931
|
}
|
|
@@ -2901,7 +2950,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2901
2950
|
try {
|
|
2902
2951
|
if (stub) {
|
|
2903
2952
|
const displayE = 'Error 400 received on request';
|
|
2904
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2953
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2905
2954
|
} else {
|
|
2906
2955
|
runCommonAsserts(data, error);
|
|
2907
2956
|
}
|
|
@@ -2926,7 +2975,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2926
2975
|
try {
|
|
2927
2976
|
if (stub) {
|
|
2928
2977
|
const displayE = 'Error 400 received on request';
|
|
2929
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2978
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2930
2979
|
} else {
|
|
2931
2980
|
runCommonAsserts(data, error);
|
|
2932
2981
|
}
|
|
@@ -2944,6 +2993,31 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2944
2993
|
}).timeout(attemptTimeout);
|
|
2945
2994
|
});
|
|
2946
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
|
+
|
|
2947
3021
|
describe('#getGridPendingChanges - errors', () => {
|
|
2948
3022
|
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
2949
3023
|
try {
|
|
@@ -2951,7 +3025,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2951
3025
|
try {
|
|
2952
3026
|
if (stub) {
|
|
2953
3027
|
const displayE = 'Error 400 received on request';
|
|
2954
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3028
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2955
3029
|
} else {
|
|
2956
3030
|
runCommonAsserts(data, error);
|
|
2957
3031
|
}
|
|
@@ -3003,7 +3077,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3003
3077
|
try {
|
|
3004
3078
|
if (stub) {
|
|
3005
3079
|
const displayE = 'Error 400 received on request';
|
|
3006
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3080
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3007
3081
|
} else {
|
|
3008
3082
|
runCommonAsserts(data, error);
|
|
3009
3083
|
}
|
|
@@ -3028,7 +3102,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3028
3102
|
try {
|
|
3029
3103
|
if (stub) {
|
|
3030
3104
|
const displayE = 'Error 400 received on request';
|
|
3031
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3105
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3032
3106
|
} else {
|
|
3033
3107
|
runCommonAsserts(data, error);
|
|
3034
3108
|
}
|
|
@@ -3055,7 +3129,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3055
3129
|
try {
|
|
3056
3130
|
if (stub) {
|
|
3057
3131
|
const displayE = 'Error 400 received on request';
|
|
3058
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3132
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3059
3133
|
} else {
|
|
3060
3134
|
runCommonAsserts(data, error);
|
|
3061
3135
|
}
|
|
@@ -3082,7 +3156,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3082
3156
|
try {
|
|
3083
3157
|
if (stub) {
|
|
3084
3158
|
const displayE = 'Error 400 received on request';
|
|
3085
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3159
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3086
3160
|
} else {
|
|
3087
3161
|
runCommonAsserts(data, error);
|
|
3088
3162
|
}
|
|
@@ -3118,7 +3192,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3118
3192
|
try {
|
|
3119
3193
|
if (stub) {
|
|
3120
3194
|
const displayE = 'Error 400 received on request';
|
|
3121
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3195
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3122
3196
|
} else {
|
|
3123
3197
|
runCommonAsserts(data, error);
|
|
3124
3198
|
}
|
|
@@ -3148,7 +3222,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3148
3222
|
try {
|
|
3149
3223
|
if (stub) {
|
|
3150
3224
|
const displayE = 'Error 400 received on request';
|
|
3151
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3225
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3152
3226
|
} else {
|
|
3153
3227
|
runCommonAsserts(data, error);
|
|
3154
3228
|
}
|
|
@@ -3173,7 +3247,32 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3173
3247
|
try {
|
|
3174
3248
|
if (stub) {
|
|
3175
3249
|
const displayE = 'Error 400 received on request';
|
|
3176
|
-
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);
|
|
3177
3276
|
} else {
|
|
3178
3277
|
runCommonAsserts(data, error);
|
|
3179
3278
|
}
|
|
@@ -3191,6 +3290,56 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3191
3290
|
}).timeout(attemptTimeout);
|
|
3192
3291
|
});
|
|
3193
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
|
+
|
|
3194
3343
|
const zonesZoneRef = 'fakedata';
|
|
3195
3344
|
|
|
3196
3345
|
describe('#deleteAuthZoneByRef - errors', () => {
|
|
@@ -3200,7 +3349,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3200
3349
|
try {
|
|
3201
3350
|
if (stub) {
|
|
3202
3351
|
const displayE = 'Error 400 received on request';
|
|
3203
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3352
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3204
3353
|
} else {
|
|
3205
3354
|
runCommonAsserts(data, error);
|
|
3206
3355
|
}
|
|
@@ -3227,7 +3376,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3227
3376
|
try {
|
|
3228
3377
|
if (stub) {
|
|
3229
3378
|
const displayE = 'Error 400 received on request';
|
|
3230
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3379
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3231
3380
|
} else {
|
|
3232
3381
|
runCommonAsserts(data, error);
|
|
3233
3382
|
}
|
|
@@ -3252,7 +3401,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3252
3401
|
try {
|
|
3253
3402
|
if (stub) {
|
|
3254
3403
|
const displayE = 'Error 400 received on request';
|
|
3255
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3404
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3256
3405
|
} else {
|
|
3257
3406
|
runCommonAsserts(data, error);
|
|
3258
3407
|
}
|
|
@@ -3277,7 +3426,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3277
3426
|
try {
|
|
3278
3427
|
if (stub) {
|
|
3279
3428
|
const displayE = 'Error 400 received on request';
|
|
3280
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3429
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3281
3430
|
} else {
|
|
3282
3431
|
runCommonAsserts(data, error);
|
|
3283
3432
|
}
|
|
@@ -3302,7 +3451,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3302
3451
|
try {
|
|
3303
3452
|
if (stub) {
|
|
3304
3453
|
const displayE = 'Error 400 received on request';
|
|
3305
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3454
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3306
3455
|
} else {
|
|
3307
3456
|
runCommonAsserts(data, error);
|
|
3308
3457
|
}
|
|
@@ -3327,7 +3476,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3327
3476
|
try {
|
|
3328
3477
|
if (stub) {
|
|
3329
3478
|
const displayE = 'Error 400 received on request';
|
|
3330
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3479
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3331
3480
|
} else {
|
|
3332
3481
|
runCommonAsserts(data, error);
|
|
3333
3482
|
}
|
|
@@ -3352,7 +3501,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3352
3501
|
try {
|
|
3353
3502
|
if (stub) {
|
|
3354
3503
|
const displayE = 'Error 400 received on request';
|
|
3355
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3504
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3356
3505
|
} else {
|
|
3357
3506
|
runCommonAsserts(data, error);
|
|
3358
3507
|
}
|
|
@@ -3377,7 +3526,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3377
3526
|
try {
|
|
3378
3527
|
if (stub) {
|
|
3379
3528
|
const displayE = 'Error 400 received on request';
|
|
3380
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3529
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3381
3530
|
} else {
|
|
3382
3531
|
runCommonAsserts(data, error);
|
|
3383
3532
|
}
|
|
@@ -3402,7 +3551,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3402
3551
|
try {
|
|
3403
3552
|
if (stub) {
|
|
3404
3553
|
const displayE = 'Error 400 received on request';
|
|
3405
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3554
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3406
3555
|
} else {
|
|
3407
3556
|
runCommonAsserts(data, error);
|
|
3408
3557
|
}
|
|
@@ -3443,7 +3592,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3443
3592
|
try {
|
|
3444
3593
|
if (stub) {
|
|
3445
3594
|
const displayE = 'Error 400 received on request';
|
|
3446
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3595
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3447
3596
|
} else {
|
|
3448
3597
|
runCommonAsserts(data, error);
|
|
3449
3598
|
}
|
|
@@ -3472,7 +3621,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3472
3621
|
try {
|
|
3473
3622
|
if (stub) {
|
|
3474
3623
|
const displayE = 'Error 400 received on request';
|
|
3475
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3624
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3476
3625
|
} else {
|
|
3477
3626
|
runCommonAsserts(data, error);
|
|
3478
3627
|
}
|
|
@@ -3497,7 +3646,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3497
3646
|
try {
|
|
3498
3647
|
if (stub) {
|
|
3499
3648
|
const displayE = 'Error 400 received on request';
|
|
3500
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3649
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3501
3650
|
} else {
|
|
3502
3651
|
runCommonAsserts(data, error);
|
|
3503
3652
|
}
|
|
@@ -3522,7 +3671,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3522
3671
|
try {
|
|
3523
3672
|
if (stub) {
|
|
3524
3673
|
const displayE = 'Error 400 received on request';
|
|
3525
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3674
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3526
3675
|
} else {
|
|
3527
3676
|
runCommonAsserts(data, error);
|
|
3528
3677
|
}
|
|
@@ -3552,7 +3701,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3552
3701
|
try {
|
|
3553
3702
|
if (stub) {
|
|
3554
3703
|
const displayE = 'Error 400 received on request';
|
|
3555
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3704
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3556
3705
|
} else {
|
|
3557
3706
|
runCommonAsserts(data, error);
|
|
3558
3707
|
}
|
|
@@ -3569,5 +3718,55 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3569
3718
|
}
|
|
3570
3719
|
}).timeout(attemptTimeout);
|
|
3571
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
|
+
});
|
|
3572
3771
|
});
|
|
3573
3772
|
});
|