@itentialopensource/adapter-infoblox 1.9.1 → 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/.eslintignore +1 -0
- package/.eslintrc.js +12 -12
- package/AUTH.md +39 -0
- package/BROKER.md +199 -0
- package/CALLS.md +169 -0
- package/CHANGELOG.md +68 -49
- 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 +244 -392
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +11 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +5177 -2074
- package/adapterBase.js +1330 -49
- 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 +49 -7
- package/entities/Networks/requestSchema.json +3 -1
- package/entities/Networks/responseSchema.json +3 -1
- package/entities/Records/action.json +7 -7
- package/entities/Services/action.json +22 -1
- package/entities/Services/schema.json +1 -0
- package/entities/Zones/action.json +3 -3
- package/error.json +12 -0
- package/package.json +47 -23
- package/pronghorn.json +1079 -0
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +505 -11
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +10 -0
- package/report/updateReport1594212087590.json +95 -0
- package/report/updateReport1615140322137.json +95 -0
- package/report/updateReport1646675873230.json +95 -0
- package/report/updateReport1653911824054.json +120 -0
- package/sampleProperties.json +110 -6
- package/test/integration/adapterTestBasicGet.js +85 -0
- package/test/integration/adapterTestConnectivity.js +93 -0
- package/test/integration/adapterTestIntegration.js +390 -181
- package/test/unit/adapterBaseTestUnit.js +949 -0
- package/test/unit/adapterTestUnit.js +1181 -272
- package/utils/adapterInfo.js +206 -0
- package/utils/addAuth.js +94 -0
- package/utils/artifactize.js +0 -1
- 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
|
@@ -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,89 +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
|
-
save_metric: false,
|
|
54
|
-
stub,
|
|
55
|
-
protocol,
|
|
56
|
-
authentication: {
|
|
57
|
-
auth_method: 'basic user_password',
|
|
58
|
-
username,
|
|
59
|
-
password,
|
|
60
|
-
token: '',
|
|
61
|
-
invalid_token_error: 401,
|
|
62
|
-
token_timeout: -1,
|
|
63
|
-
token_cache: 'local',
|
|
64
|
-
auth_field: 'header.headers.Authorization',
|
|
65
|
-
auth_field_format: 'Basic {b64}{username}:{password}{/b64}'
|
|
66
|
-
},
|
|
67
|
-
healthcheck: {
|
|
68
|
-
type: 'startup',
|
|
69
|
-
frequency: 60000
|
|
70
|
-
},
|
|
71
|
-
throttle: {
|
|
72
|
-
throttle_enabled: false,
|
|
73
|
-
number_pronghorns: 1,
|
|
74
|
-
sync_async: 'sync',
|
|
75
|
-
max_in_queue: 1000,
|
|
76
|
-
concurrent_max: 1,
|
|
77
|
-
expire_timeout: 0,
|
|
78
|
-
avg_runtime: 200
|
|
79
|
-
},
|
|
80
|
-
request: {
|
|
81
|
-
number_redirects: 0,
|
|
82
|
-
number_retries: 3,
|
|
83
|
-
limit_retry_error: 0,
|
|
84
|
-
failover_codes: [],
|
|
85
|
-
attempt_timeout: attemptTimeout,
|
|
86
|
-
global_request: {
|
|
87
|
-
payload: {},
|
|
88
|
-
uriOptions: {},
|
|
89
|
-
addlHeaders: {},
|
|
90
|
-
authData: {}
|
|
91
|
-
},
|
|
92
|
-
healthcheck_on_timeout: false,
|
|
93
|
-
return_raw: true,
|
|
94
|
-
archiving: false
|
|
95
|
-
},
|
|
96
|
-
proxy: {
|
|
97
|
-
enabled: false,
|
|
98
|
-
host: '',
|
|
99
|
-
port: 1,
|
|
100
|
-
protocol: 'http'
|
|
101
|
-
},
|
|
102
|
-
ssl: {
|
|
103
|
-
ecdhCurve: '',
|
|
104
|
-
enabled: sslenable,
|
|
105
|
-
accept_invalid_cert: sslinvalid,
|
|
106
|
-
ca_file: '',
|
|
107
|
-
key_file: '',
|
|
108
|
-
cert_file: '',
|
|
109
|
-
secure_protocol: '',
|
|
110
|
-
ciphers: ''
|
|
111
|
-
},
|
|
112
|
-
mongo: {
|
|
113
|
-
host: '',
|
|
114
|
-
port: 0,
|
|
115
|
-
database: '',
|
|
116
|
-
username: '',
|
|
117
|
-
password: '',
|
|
118
|
-
replSet: '',
|
|
119
|
-
db_ssl: {
|
|
120
|
-
enabled: false,
|
|
121
|
-
accept_invalid_cert: false,
|
|
122
|
-
ca_file: '',
|
|
123
|
-
key_file: '',
|
|
124
|
-
cert_file: ''
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
62
|
+
properties: samProps
|
|
128
63
|
}]
|
|
129
64
|
}
|
|
130
65
|
};
|
|
@@ -298,9 +233,8 @@ function saveMockData(entityName, actionName, descriptor, responseData) {
|
|
|
298
233
|
return false;
|
|
299
234
|
}
|
|
300
235
|
|
|
301
|
-
|
|
302
236
|
// require the adapter that we are going to be using
|
|
303
|
-
const Infoblox = require('../../adapter
|
|
237
|
+
const Infoblox = require('../../adapter');
|
|
304
238
|
|
|
305
239
|
// begin the testing - these should be pretty well defined between the describe and the it!
|
|
306
240
|
describe('[integration] Infoblox Adapter Test', () => {
|
|
@@ -331,6 +265,8 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
331
265
|
try {
|
|
332
266
|
assert.notEqual(null, a);
|
|
333
267
|
assert.notEqual(undefined, a);
|
|
268
|
+
const checkId = global.pronghornProps.adapterProps.adapters[0].id;
|
|
269
|
+
assert.equal(checkId, a.id);
|
|
334
270
|
assert.notEqual(null, a.allProps);
|
|
335
271
|
const check = global.pronghornProps.adapterProps.adapters[0].properties.healthcheck.type;
|
|
336
272
|
assert.equal(check, a.healthcheckType);
|
|
@@ -801,7 +737,6 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
801
737
|
}
|
|
802
738
|
}).timeout(attemptTimeout);
|
|
803
739
|
|
|
804
|
-
|
|
805
740
|
it('should error if duplicate fqdnName.', (done) => {
|
|
806
741
|
try {
|
|
807
742
|
a.createNetwork(testParams.network1, testParams.comment, (data, error) => {
|
|
@@ -1020,7 +955,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1020
955
|
try {
|
|
1021
956
|
if (stub) {
|
|
1022
957
|
const displayE = 'Error 400 received on request';
|
|
1023
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
958
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1024
959
|
} else {
|
|
1025
960
|
runCommonAsserts(data, error);
|
|
1026
961
|
}
|
|
@@ -1055,7 +990,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1055
990
|
try {
|
|
1056
991
|
if (stub) {
|
|
1057
992
|
const displayE = 'Error 400 received on request';
|
|
1058
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
993
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1059
994
|
} else {
|
|
1060
995
|
runCommonAsserts(data, error);
|
|
1061
996
|
}
|
|
@@ -1106,7 +1041,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1106
1041
|
try {
|
|
1107
1042
|
if (stub) {
|
|
1108
1043
|
const displayE = 'Error 400 received on request';
|
|
1109
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1044
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1110
1045
|
} else {
|
|
1111
1046
|
runCommonAsserts(data, error);
|
|
1112
1047
|
}
|
|
@@ -1131,7 +1066,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1131
1066
|
try {
|
|
1132
1067
|
if (stub) {
|
|
1133
1068
|
const displayE = 'Error 400 received on request';
|
|
1134
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1069
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1135
1070
|
} else {
|
|
1136
1071
|
runCommonAsserts(data, error);
|
|
1137
1072
|
}
|
|
@@ -1160,7 +1095,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1160
1095
|
try {
|
|
1161
1096
|
if (stub) {
|
|
1162
1097
|
const displayE = 'Error 400 received on request';
|
|
1163
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1098
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1164
1099
|
} else {
|
|
1165
1100
|
runCommonAsserts(data, error);
|
|
1166
1101
|
}
|
|
@@ -1263,7 +1198,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1263
1198
|
try {
|
|
1264
1199
|
if (stub) {
|
|
1265
1200
|
const displayE = 'Error 400 received on request';
|
|
1266
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1201
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1267
1202
|
} else {
|
|
1268
1203
|
runCommonAsserts(data, error);
|
|
1269
1204
|
}
|
|
@@ -1288,7 +1223,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1288
1223
|
try {
|
|
1289
1224
|
if (stub) {
|
|
1290
1225
|
const displayE = 'Error 400 received on request';
|
|
1291
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1226
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1292
1227
|
} else {
|
|
1293
1228
|
runCommonAsserts(data, error);
|
|
1294
1229
|
}
|
|
@@ -1306,6 +1241,56 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1306
1241
|
}).timeout(attemptTimeout);
|
|
1307
1242
|
});
|
|
1308
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
|
+
|
|
1309
1294
|
const dNSTrafficControlCreateDtcLbdnBodyParam = {
|
|
1310
1295
|
auth_zones: [
|
|
1311
1296
|
'string'
|
|
@@ -1330,7 +1315,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1330
1315
|
try {
|
|
1331
1316
|
if (stub) {
|
|
1332
1317
|
const displayE = 'Error 400 received on request';
|
|
1333
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1318
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1334
1319
|
} else {
|
|
1335
1320
|
runCommonAsserts(data, error);
|
|
1336
1321
|
}
|
|
@@ -1370,7 +1355,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1370
1355
|
try {
|
|
1371
1356
|
if (stub) {
|
|
1372
1357
|
const displayE = 'Error 400 received on request';
|
|
1373
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1358
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1374
1359
|
} else {
|
|
1375
1360
|
runCommonAsserts(data, error);
|
|
1376
1361
|
}
|
|
@@ -1400,7 +1385,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1400
1385
|
try {
|
|
1401
1386
|
if (stub) {
|
|
1402
1387
|
const displayE = 'Error 400 received on request';
|
|
1403
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1388
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1404
1389
|
} else {
|
|
1405
1390
|
runCommonAsserts(data, error);
|
|
1406
1391
|
}
|
|
@@ -1431,7 +1416,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1431
1416
|
try {
|
|
1432
1417
|
if (stub) {
|
|
1433
1418
|
const displayE = 'Error 400 received on request';
|
|
1434
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1419
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1435
1420
|
} else {
|
|
1436
1421
|
runCommonAsserts(data, error);
|
|
1437
1422
|
}
|
|
@@ -1456,7 +1441,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1456
1441
|
try {
|
|
1457
1442
|
if (stub) {
|
|
1458
1443
|
const displayE = 'Error 400 received on request';
|
|
1459
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1444
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1460
1445
|
} else {
|
|
1461
1446
|
runCommonAsserts(data, error);
|
|
1462
1447
|
}
|
|
@@ -1481,7 +1466,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1481
1466
|
try {
|
|
1482
1467
|
if (stub) {
|
|
1483
1468
|
const displayE = 'Error 400 received on request';
|
|
1484
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1469
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1485
1470
|
} else {
|
|
1486
1471
|
runCommonAsserts(data, error);
|
|
1487
1472
|
}
|
|
@@ -1511,7 +1496,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1511
1496
|
try {
|
|
1512
1497
|
if (stub) {
|
|
1513
1498
|
const displayE = 'Error 400 received on request';
|
|
1514
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1499
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1515
1500
|
} else {
|
|
1516
1501
|
runCommonAsserts(data, error);
|
|
1517
1502
|
}
|
|
@@ -1541,7 +1526,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1541
1526
|
try {
|
|
1542
1527
|
if (stub) {
|
|
1543
1528
|
const displayE = 'Error 400 received on request';
|
|
1544
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1529
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1545
1530
|
} else {
|
|
1546
1531
|
runCommonAsserts(data, error);
|
|
1547
1532
|
}
|
|
@@ -1571,7 +1556,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1571
1556
|
try {
|
|
1572
1557
|
if (stub) {
|
|
1573
1558
|
const displayE = 'Error 400 received on request';
|
|
1574
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1559
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1575
1560
|
} else {
|
|
1576
1561
|
runCommonAsserts(data, error);
|
|
1577
1562
|
}
|
|
@@ -1602,7 +1587,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1602
1587
|
try {
|
|
1603
1588
|
if (stub) {
|
|
1604
1589
|
const displayE = 'Error 400 received on request';
|
|
1605
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1590
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1606
1591
|
} else {
|
|
1607
1592
|
runCommonAsserts(data, error);
|
|
1608
1593
|
}
|
|
@@ -1637,7 +1622,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1637
1622
|
try {
|
|
1638
1623
|
if (stub) {
|
|
1639
1624
|
const displayE = 'Error 400 received on request';
|
|
1640
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1625
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1641
1626
|
} else {
|
|
1642
1627
|
runCommonAsserts(data, error);
|
|
1643
1628
|
}
|
|
@@ -1668,7 +1653,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1668
1653
|
try {
|
|
1669
1654
|
if (stub) {
|
|
1670
1655
|
const displayE = 'Error 400 received on request';
|
|
1671
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1656
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1672
1657
|
} else {
|
|
1673
1658
|
runCommonAsserts(data, error);
|
|
1674
1659
|
}
|
|
@@ -1701,7 +1686,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1701
1686
|
try {
|
|
1702
1687
|
if (stub) {
|
|
1703
1688
|
const displayE = 'Error 400 received on request';
|
|
1704
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1689
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1705
1690
|
} else {
|
|
1706
1691
|
runCommonAsserts(data, error);
|
|
1707
1692
|
}
|
|
@@ -1731,7 +1716,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1731
1716
|
try {
|
|
1732
1717
|
if (stub) {
|
|
1733
1718
|
const displayE = 'Error 400 received on request';
|
|
1734
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1719
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1735
1720
|
} else {
|
|
1736
1721
|
runCommonAsserts(data, error);
|
|
1737
1722
|
}
|
|
@@ -1758,7 +1743,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1758
1743
|
try {
|
|
1759
1744
|
if (stub) {
|
|
1760
1745
|
const displayE = 'Error 400 received on request';
|
|
1761
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1746
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1762
1747
|
} else {
|
|
1763
1748
|
runCommonAsserts(data, error);
|
|
1764
1749
|
}
|
|
@@ -1783,7 +1768,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1783
1768
|
try {
|
|
1784
1769
|
if (stub) {
|
|
1785
1770
|
const displayE = 'Error 400 received on request';
|
|
1786
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1771
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1787
1772
|
} else {
|
|
1788
1773
|
runCommonAsserts(data, error);
|
|
1789
1774
|
}
|
|
@@ -1814,7 +1799,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1814
1799
|
try {
|
|
1815
1800
|
if (stub) {
|
|
1816
1801
|
const displayE = 'Error 400 received on request';
|
|
1817
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1802
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1818
1803
|
} else {
|
|
1819
1804
|
runCommonAsserts(data, error);
|
|
1820
1805
|
}
|
|
@@ -1839,7 +1824,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1839
1824
|
try {
|
|
1840
1825
|
if (stub) {
|
|
1841
1826
|
const displayE = 'Error 400 received on request';
|
|
1842
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1827
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1843
1828
|
} else {
|
|
1844
1829
|
runCommonAsserts(data, error);
|
|
1845
1830
|
}
|
|
@@ -1864,7 +1849,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1864
1849
|
try {
|
|
1865
1850
|
if (stub) {
|
|
1866
1851
|
const displayE = 'Error 400 received on request';
|
|
1867
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1852
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1868
1853
|
} else {
|
|
1869
1854
|
runCommonAsserts(data, error);
|
|
1870
1855
|
}
|
|
@@ -1894,7 +1879,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1894
1879
|
try {
|
|
1895
1880
|
if (stub) {
|
|
1896
1881
|
const displayE = 'Error 400 received on request';
|
|
1897
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1882
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1898
1883
|
} else {
|
|
1899
1884
|
runCommonAsserts(data, error);
|
|
1900
1885
|
}
|
|
@@ -1921,7 +1906,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1921
1906
|
try {
|
|
1922
1907
|
if (stub) {
|
|
1923
1908
|
const displayE = 'Error 400 received on request';
|
|
1924
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1909
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1925
1910
|
} else {
|
|
1926
1911
|
runCommonAsserts(data, error);
|
|
1927
1912
|
}
|
|
@@ -1955,7 +1940,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1955
1940
|
try {
|
|
1956
1941
|
if (stub) {
|
|
1957
1942
|
const displayE = 'Error 400 received on request';
|
|
1958
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1943
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1959
1944
|
} else {
|
|
1960
1945
|
runCommonAsserts(data, error);
|
|
1961
1946
|
}
|
|
@@ -1980,7 +1965,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
1980
1965
|
try {
|
|
1981
1966
|
if (stub) {
|
|
1982
1967
|
const displayE = 'Error 400 received on request';
|
|
1983
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1968
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
1984
1969
|
} else {
|
|
1985
1970
|
runCommonAsserts(data, error);
|
|
1986
1971
|
}
|
|
@@ -2005,7 +1990,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2005
1990
|
try {
|
|
2006
1991
|
if (stub) {
|
|
2007
1992
|
const displayE = 'Error 400 received on request';
|
|
2008
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
1993
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2009
1994
|
} else {
|
|
2010
1995
|
runCommonAsserts(data, error);
|
|
2011
1996
|
}
|
|
@@ -2030,7 +2015,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2030
2015
|
try {
|
|
2031
2016
|
if (stub) {
|
|
2032
2017
|
const displayE = 'Error 400 received on request';
|
|
2033
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2018
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2034
2019
|
} else {
|
|
2035
2020
|
runCommonAsserts(data, error);
|
|
2036
2021
|
}
|
|
@@ -2061,7 +2046,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2061
2046
|
try {
|
|
2062
2047
|
if (stub) {
|
|
2063
2048
|
const displayE = 'Error 400 received on request';
|
|
2064
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2049
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2065
2050
|
} else {
|
|
2066
2051
|
runCommonAsserts(data, error);
|
|
2067
2052
|
}
|
|
@@ -2086,7 +2071,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2086
2071
|
try {
|
|
2087
2072
|
if (stub) {
|
|
2088
2073
|
const displayE = 'Error 400 received on request';
|
|
2089
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2074
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2090
2075
|
} else {
|
|
2091
2076
|
runCommonAsserts(data, error);
|
|
2092
2077
|
}
|
|
@@ -2111,7 +2096,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2111
2096
|
try {
|
|
2112
2097
|
if (stub) {
|
|
2113
2098
|
const displayE = 'Error 400 received on request';
|
|
2114
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2099
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2115
2100
|
} else {
|
|
2116
2101
|
runCommonAsserts(data, error);
|
|
2117
2102
|
}
|
|
@@ -2135,8 +2120,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2135
2120
|
a.getGridDns((data, error) => {
|
|
2136
2121
|
try {
|
|
2137
2122
|
if (stub) {
|
|
2138
|
-
|
|
2139
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2123
|
+
runCommonAsserts(data, error);
|
|
2140
2124
|
} else {
|
|
2141
2125
|
runCommonAsserts(data, error);
|
|
2142
2126
|
}
|
|
@@ -2161,7 +2145,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2161
2145
|
try {
|
|
2162
2146
|
if (stub) {
|
|
2163
2147
|
const displayE = 'Error 400 received on request';
|
|
2164
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2148
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2165
2149
|
} else {
|
|
2166
2150
|
runCommonAsserts(data, error);
|
|
2167
2151
|
}
|
|
@@ -2192,7 +2176,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2192
2176
|
try {
|
|
2193
2177
|
if (stub) {
|
|
2194
2178
|
const displayE = 'Error 400 received on request';
|
|
2195
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2179
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2196
2180
|
} else {
|
|
2197
2181
|
runCommonAsserts(data, error);
|
|
2198
2182
|
}
|
|
@@ -2223,7 +2207,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2223
2207
|
try {
|
|
2224
2208
|
if (stub) {
|
|
2225
2209
|
const displayE = 'Error 400 received on request';
|
|
2226
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2210
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2227
2211
|
} else {
|
|
2228
2212
|
runCommonAsserts(data, error);
|
|
2229
2213
|
}
|
|
@@ -2254,7 +2238,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2254
2238
|
try {
|
|
2255
2239
|
if (stub) {
|
|
2256
2240
|
const displayE = 'Error 400 received on request';
|
|
2257
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2241
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2258
2242
|
} else {
|
|
2259
2243
|
runCommonAsserts(data, error);
|
|
2260
2244
|
}
|
|
@@ -2285,7 +2269,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2285
2269
|
try {
|
|
2286
2270
|
if (stub) {
|
|
2287
2271
|
const displayE = 'Error 400 received on request';
|
|
2288
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2272
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2289
2273
|
} else {
|
|
2290
2274
|
runCommonAsserts(data, error);
|
|
2291
2275
|
}
|
|
@@ -2316,7 +2300,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2316
2300
|
try {
|
|
2317
2301
|
if (stub) {
|
|
2318
2302
|
const displayE = 'Error 400 received on request';
|
|
2319
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2303
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2320
2304
|
} else {
|
|
2321
2305
|
runCommonAsserts(data, error);
|
|
2322
2306
|
}
|
|
@@ -2347,7 +2331,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2347
2331
|
try {
|
|
2348
2332
|
if (stub) {
|
|
2349
2333
|
const displayE = 'Error 400 received on request';
|
|
2350
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2334
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2351
2335
|
} else {
|
|
2352
2336
|
runCommonAsserts(data, error);
|
|
2353
2337
|
}
|
|
@@ -2378,7 +2362,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2378
2362
|
try {
|
|
2379
2363
|
if (stub) {
|
|
2380
2364
|
const displayE = 'Error 400 received on request';
|
|
2381
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2365
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2382
2366
|
} else {
|
|
2383
2367
|
runCommonAsserts(data, error);
|
|
2384
2368
|
}
|
|
@@ -2410,7 +2394,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2410
2394
|
try {
|
|
2411
2395
|
if (stub) {
|
|
2412
2396
|
const displayE = 'Error 400 received on request';
|
|
2413
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2397
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2414
2398
|
} else {
|
|
2415
2399
|
runCommonAsserts(data, error);
|
|
2416
2400
|
}
|
|
@@ -2442,7 +2426,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2442
2426
|
try {
|
|
2443
2427
|
if (stub) {
|
|
2444
2428
|
const displayE = 'Error 400 received on request';
|
|
2445
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2429
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2446
2430
|
} else {
|
|
2447
2431
|
runCommonAsserts(data, error);
|
|
2448
2432
|
}
|
|
@@ -2469,7 +2453,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2469
2453
|
try {
|
|
2470
2454
|
if (stub) {
|
|
2471
2455
|
const displayE = 'Error 400 received on request';
|
|
2472
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2456
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2473
2457
|
} else {
|
|
2474
2458
|
runCommonAsserts(data, error);
|
|
2475
2459
|
}
|
|
@@ -2494,7 +2478,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2494
2478
|
try {
|
|
2495
2479
|
if (stub) {
|
|
2496
2480
|
const displayE = 'Error 400 received on request';
|
|
2497
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2481
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2498
2482
|
} else {
|
|
2499
2483
|
runCommonAsserts(data, error);
|
|
2500
2484
|
}
|
|
@@ -2528,7 +2512,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2528
2512
|
try {
|
|
2529
2513
|
if (stub) {
|
|
2530
2514
|
const displayE = 'Error 400 received on request';
|
|
2531
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2515
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2532
2516
|
} else {
|
|
2533
2517
|
runCommonAsserts(data, error);
|
|
2534
2518
|
}
|
|
@@ -2553,7 +2537,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2553
2537
|
try {
|
|
2554
2538
|
if (stub) {
|
|
2555
2539
|
const displayE = 'Error 400 received on request';
|
|
2556
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2540
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2557
2541
|
} else {
|
|
2558
2542
|
runCommonAsserts(data, error);
|
|
2559
2543
|
}
|
|
@@ -2588,7 +2572,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2588
2572
|
try {
|
|
2589
2573
|
if (stub) {
|
|
2590
2574
|
const displayE = 'Error 400 received on request';
|
|
2591
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2575
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2592
2576
|
} else {
|
|
2593
2577
|
runCommonAsserts(data, error);
|
|
2594
2578
|
}
|
|
@@ -2615,7 +2599,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2615
2599
|
try {
|
|
2616
2600
|
if (stub) {
|
|
2617
2601
|
const displayE = 'Error 400 received on request';
|
|
2618
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2602
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2619
2603
|
} else {
|
|
2620
2604
|
runCommonAsserts(data, error);
|
|
2621
2605
|
}
|
|
@@ -2642,7 +2626,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2642
2626
|
try {
|
|
2643
2627
|
if (stub) {
|
|
2644
2628
|
const displayE = 'Error 400 received on request';
|
|
2645
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2629
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2646
2630
|
} else {
|
|
2647
2631
|
runCommonAsserts(data, error);
|
|
2648
2632
|
}
|
|
@@ -2667,7 +2651,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2667
2651
|
try {
|
|
2668
2652
|
if (stub) {
|
|
2669
2653
|
const displayE = 'Error 400 received on request';
|
|
2670
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2654
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2671
2655
|
} else {
|
|
2672
2656
|
runCommonAsserts(data, error);
|
|
2673
2657
|
}
|
|
@@ -2694,7 +2678,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2694
2678
|
try {
|
|
2695
2679
|
if (stub) {
|
|
2696
2680
|
const displayE = 'Error 400 received on request';
|
|
2697
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2681
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2698
2682
|
} else {
|
|
2699
2683
|
runCommonAsserts(data, error);
|
|
2700
2684
|
}
|
|
@@ -2723,7 +2707,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2723
2707
|
try {
|
|
2724
2708
|
if (stub) {
|
|
2725
2709
|
const displayE = 'Error 400 received on request';
|
|
2726
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2710
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2727
2711
|
} else {
|
|
2728
2712
|
runCommonAsserts(data, error);
|
|
2729
2713
|
}
|
|
@@ -2748,7 +2732,32 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2748
2732
|
try {
|
|
2749
2733
|
if (stub) {
|
|
2750
2734
|
const displayE = 'Error 400 received on request';
|
|
2751
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2735
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2736
|
+
} else {
|
|
2737
|
+
runCommonAsserts(data, error);
|
|
2738
|
+
}
|
|
2739
|
+
saveMockData('NetworkViewsAndDNSViews', 'getNetworkView', 'default', data);
|
|
2740
|
+
done();
|
|
2741
|
+
} catch (err) {
|
|
2742
|
+
log.error(`Test Failure: ${err}`);
|
|
2743
|
+
done(err);
|
|
2744
|
+
}
|
|
2745
|
+
});
|
|
2746
|
+
} catch (error) {
|
|
2747
|
+
log.error(`Adapter Exception: ${error}`);
|
|
2748
|
+
done(error);
|
|
2749
|
+
}
|
|
2750
|
+
}).timeout(attemptTimeout);
|
|
2751
|
+
});
|
|
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);
|
|
2752
2761
|
} else {
|
|
2753
2762
|
runCommonAsserts(data, error);
|
|
2754
2763
|
}
|
|
@@ -2766,6 +2775,56 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2766
2775
|
}).timeout(attemptTimeout);
|
|
2767
2776
|
});
|
|
2768
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
|
+
|
|
2769
2828
|
describe('#getDnsView - errors', () => {
|
|
2770
2829
|
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
2771
2830
|
try {
|
|
@@ -2773,7 +2832,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2773
2832
|
try {
|
|
2774
2833
|
if (stub) {
|
|
2775
2834
|
const displayE = 'Error 400 received on request';
|
|
2776
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2835
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2777
2836
|
} else {
|
|
2778
2837
|
runCommonAsserts(data, error);
|
|
2779
2838
|
}
|
|
@@ -2803,7 +2862,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2803
2862
|
try {
|
|
2804
2863
|
if (stub) {
|
|
2805
2864
|
const displayE = 'Error 400 received on request';
|
|
2806
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2865
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2807
2866
|
} else {
|
|
2808
2867
|
runCommonAsserts(data, error);
|
|
2809
2868
|
}
|
|
@@ -2830,7 +2889,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2830
2889
|
try {
|
|
2831
2890
|
if (stub) {
|
|
2832
2891
|
const displayE = 'Error 400 received on request';
|
|
2833
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2892
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2834
2893
|
} else {
|
|
2835
2894
|
runCommonAsserts(data, error);
|
|
2836
2895
|
}
|
|
@@ -2866,7 +2925,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2866
2925
|
try {
|
|
2867
2926
|
if (stub) {
|
|
2868
2927
|
const displayE = 'Error 400 received on request';
|
|
2869
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2928
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2870
2929
|
} else {
|
|
2871
2930
|
runCommonAsserts(data, error);
|
|
2872
2931
|
}
|
|
@@ -2891,7 +2950,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2891
2950
|
try {
|
|
2892
2951
|
if (stub) {
|
|
2893
2952
|
const displayE = 'Error 400 received on request';
|
|
2894
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2953
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2895
2954
|
} else {
|
|
2896
2955
|
runCommonAsserts(data, error);
|
|
2897
2956
|
}
|
|
@@ -2916,7 +2975,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2916
2975
|
try {
|
|
2917
2976
|
if (stub) {
|
|
2918
2977
|
const displayE = 'Error 400 received on request';
|
|
2919
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
2978
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2920
2979
|
} else {
|
|
2921
2980
|
runCommonAsserts(data, error);
|
|
2922
2981
|
}
|
|
@@ -2934,6 +2993,31 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2934
2993
|
}).timeout(attemptTimeout);
|
|
2935
2994
|
});
|
|
2936
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
|
+
|
|
2937
3021
|
describe('#getGridPendingChanges - errors', () => {
|
|
2938
3022
|
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
2939
3023
|
try {
|
|
@@ -2941,7 +3025,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2941
3025
|
try {
|
|
2942
3026
|
if (stub) {
|
|
2943
3027
|
const displayE = 'Error 400 received on request';
|
|
2944
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3028
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2945
3029
|
} else {
|
|
2946
3030
|
runCommonAsserts(data, error);
|
|
2947
3031
|
}
|
|
@@ -2993,7 +3077,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
2993
3077
|
try {
|
|
2994
3078
|
if (stub) {
|
|
2995
3079
|
const displayE = 'Error 400 received on request';
|
|
2996
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3080
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
2997
3081
|
} else {
|
|
2998
3082
|
runCommonAsserts(data, error);
|
|
2999
3083
|
}
|
|
@@ -3018,7 +3102,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3018
3102
|
try {
|
|
3019
3103
|
if (stub) {
|
|
3020
3104
|
const displayE = 'Error 400 received on request';
|
|
3021
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3105
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3022
3106
|
} else {
|
|
3023
3107
|
runCommonAsserts(data, error);
|
|
3024
3108
|
}
|
|
@@ -3045,7 +3129,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3045
3129
|
try {
|
|
3046
3130
|
if (stub) {
|
|
3047
3131
|
const displayE = 'Error 400 received on request';
|
|
3048
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3132
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3049
3133
|
} else {
|
|
3050
3134
|
runCommonAsserts(data, error);
|
|
3051
3135
|
}
|
|
@@ -3072,7 +3156,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3072
3156
|
try {
|
|
3073
3157
|
if (stub) {
|
|
3074
3158
|
const displayE = 'Error 400 received on request';
|
|
3075
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3159
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3076
3160
|
} else {
|
|
3077
3161
|
runCommonAsserts(data, error);
|
|
3078
3162
|
}
|
|
@@ -3108,7 +3192,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3108
3192
|
try {
|
|
3109
3193
|
if (stub) {
|
|
3110
3194
|
const displayE = 'Error 400 received on request';
|
|
3111
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3195
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3112
3196
|
} else {
|
|
3113
3197
|
runCommonAsserts(data, error);
|
|
3114
3198
|
}
|
|
@@ -3138,7 +3222,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3138
3222
|
try {
|
|
3139
3223
|
if (stub) {
|
|
3140
3224
|
const displayE = 'Error 400 received on request';
|
|
3141
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3225
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3142
3226
|
} else {
|
|
3143
3227
|
runCommonAsserts(data, error);
|
|
3144
3228
|
}
|
|
@@ -3163,7 +3247,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3163
3247
|
try {
|
|
3164
3248
|
if (stub) {
|
|
3165
3249
|
const displayE = 'Error 400 received on request';
|
|
3166
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3250
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3167
3251
|
} else {
|
|
3168
3252
|
runCommonAsserts(data, error);
|
|
3169
3253
|
}
|
|
@@ -3181,6 +3265,81 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3181
3265
|
}).timeout(attemptTimeout);
|
|
3182
3266
|
});
|
|
3183
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);
|
|
3276
|
+
} else {
|
|
3277
|
+
runCommonAsserts(data, error);
|
|
3278
|
+
}
|
|
3279
|
+
saveMockData('ExtensibleAttributes', 'getExtensibleAttributeDefinition', 'default', data);
|
|
3280
|
+
done();
|
|
3281
|
+
} catch (err) {
|
|
3282
|
+
log.error(`Test Failure: ${err}`);
|
|
3283
|
+
done(err);
|
|
3284
|
+
}
|
|
3285
|
+
});
|
|
3286
|
+
} catch (error) {
|
|
3287
|
+
log.error(`Adapter Exception: ${error}`);
|
|
3288
|
+
done(error);
|
|
3289
|
+
}
|
|
3290
|
+
}).timeout(attemptTimeout);
|
|
3291
|
+
});
|
|
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
|
+
|
|
3184
3343
|
const zonesZoneRef = 'fakedata';
|
|
3185
3344
|
|
|
3186
3345
|
describe('#deleteAuthZoneByRef - errors', () => {
|
|
@@ -3190,7 +3349,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3190
3349
|
try {
|
|
3191
3350
|
if (stub) {
|
|
3192
3351
|
const displayE = 'Error 400 received on request';
|
|
3193
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3352
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3194
3353
|
} else {
|
|
3195
3354
|
runCommonAsserts(data, error);
|
|
3196
3355
|
}
|
|
@@ -3217,7 +3376,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3217
3376
|
try {
|
|
3218
3377
|
if (stub) {
|
|
3219
3378
|
const displayE = 'Error 400 received on request';
|
|
3220
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3379
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3221
3380
|
} else {
|
|
3222
3381
|
runCommonAsserts(data, error);
|
|
3223
3382
|
}
|
|
@@ -3242,7 +3401,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3242
3401
|
try {
|
|
3243
3402
|
if (stub) {
|
|
3244
3403
|
const displayE = 'Error 400 received on request';
|
|
3245
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3404
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3246
3405
|
} else {
|
|
3247
3406
|
runCommonAsserts(data, error);
|
|
3248
3407
|
}
|
|
@@ -3267,7 +3426,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3267
3426
|
try {
|
|
3268
3427
|
if (stub) {
|
|
3269
3428
|
const displayE = 'Error 400 received on request';
|
|
3270
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3429
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3271
3430
|
} else {
|
|
3272
3431
|
runCommonAsserts(data, error);
|
|
3273
3432
|
}
|
|
@@ -3292,7 +3451,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3292
3451
|
try {
|
|
3293
3452
|
if (stub) {
|
|
3294
3453
|
const displayE = 'Error 400 received on request';
|
|
3295
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3454
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3296
3455
|
} else {
|
|
3297
3456
|
runCommonAsserts(data, error);
|
|
3298
3457
|
}
|
|
@@ -3317,7 +3476,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3317
3476
|
try {
|
|
3318
3477
|
if (stub) {
|
|
3319
3478
|
const displayE = 'Error 400 received on request';
|
|
3320
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3479
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3321
3480
|
} else {
|
|
3322
3481
|
runCommonAsserts(data, error);
|
|
3323
3482
|
}
|
|
@@ -3342,7 +3501,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3342
3501
|
try {
|
|
3343
3502
|
if (stub) {
|
|
3344
3503
|
const displayE = 'Error 400 received on request';
|
|
3345
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3504
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3346
3505
|
} else {
|
|
3347
3506
|
runCommonAsserts(data, error);
|
|
3348
3507
|
}
|
|
@@ -3367,7 +3526,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3367
3526
|
try {
|
|
3368
3527
|
if (stub) {
|
|
3369
3528
|
const displayE = 'Error 400 received on request';
|
|
3370
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3529
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3371
3530
|
} else {
|
|
3372
3531
|
runCommonAsserts(data, error);
|
|
3373
3532
|
}
|
|
@@ -3392,7 +3551,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3392
3551
|
try {
|
|
3393
3552
|
if (stub) {
|
|
3394
3553
|
const displayE = 'Error 400 received on request';
|
|
3395
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3554
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3396
3555
|
} else {
|
|
3397
3556
|
runCommonAsserts(data, error);
|
|
3398
3557
|
}
|
|
@@ -3433,7 +3592,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3433
3592
|
try {
|
|
3434
3593
|
if (stub) {
|
|
3435
3594
|
const displayE = 'Error 400 received on request';
|
|
3436
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3595
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3437
3596
|
} else {
|
|
3438
3597
|
runCommonAsserts(data, error);
|
|
3439
3598
|
}
|
|
@@ -3462,7 +3621,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3462
3621
|
try {
|
|
3463
3622
|
if (stub) {
|
|
3464
3623
|
const displayE = 'Error 400 received on request';
|
|
3465
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3624
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3466
3625
|
} else {
|
|
3467
3626
|
runCommonAsserts(data, error);
|
|
3468
3627
|
}
|
|
@@ -3487,7 +3646,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3487
3646
|
try {
|
|
3488
3647
|
if (stub) {
|
|
3489
3648
|
const displayE = 'Error 400 received on request';
|
|
3490
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3649
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3491
3650
|
} else {
|
|
3492
3651
|
runCommonAsserts(data, error);
|
|
3493
3652
|
}
|
|
@@ -3512,7 +3671,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3512
3671
|
try {
|
|
3513
3672
|
if (stub) {
|
|
3514
3673
|
const displayE = 'Error 400 received on request';
|
|
3515
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3674
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3516
3675
|
} else {
|
|
3517
3676
|
runCommonAsserts(data, error);
|
|
3518
3677
|
}
|
|
@@ -3542,7 +3701,7 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3542
3701
|
try {
|
|
3543
3702
|
if (stub) {
|
|
3544
3703
|
const displayE = 'Error 400 received on request';
|
|
3545
|
-
runErrorAsserts(data, error, 'AD.500', 'infoblox-connectorRest-handleEndResponse', displayE);
|
|
3704
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-infoblox-connectorRest-handleEndResponse', displayE);
|
|
3546
3705
|
} else {
|
|
3547
3706
|
runCommonAsserts(data, error);
|
|
3548
3707
|
}
|
|
@@ -3559,5 +3718,55 @@ describe('[integration] Infoblox Adapter Test', () => {
|
|
|
3559
3718
|
}
|
|
3560
3719
|
}).timeout(attemptTimeout);
|
|
3561
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
|
+
});
|
|
3562
3771
|
});
|
|
3563
3772
|
});
|