@itentialopensource/adapter-infoblox 1.15.5 → 1.15.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/adapter.js
CHANGED
|
@@ -1111,11 +1111,6 @@ class Infoblox extends AdapterBaseCl {
|
|
|
1111
1111
|
}
|
|
1112
1112
|
|
|
1113
1113
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1114
|
-
if (networkIP === undefined || networkIP === null || networkIP === '') {
|
|
1115
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['networkIP'], null, null, null);
|
|
1116
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1117
|
-
return callback(null, errorObj);
|
|
1118
|
-
}
|
|
1119
1114
|
|
|
1120
1115
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
1121
1116
|
const queryParamsAvailable = { network: networkIP };
|
|
@@ -1680,6 +1675,11 @@ class Infoblox extends AdapterBaseCl {
|
|
|
1680
1675
|
}
|
|
1681
1676
|
|
|
1682
1677
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1678
|
+
if (networkIP === undefined || networkIP === null || networkIP === '') {
|
|
1679
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['networkIP'], null, null, null);
|
|
1680
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1681
|
+
return callback(null, errorObj);
|
|
1682
|
+
}
|
|
1683
1683
|
|
|
1684
1684
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
1685
1685
|
const queryParamsAvailable = {};
|
|
@@ -1783,11 +1783,6 @@ class Infoblox extends AdapterBaseCl {
|
|
|
1783
1783
|
}
|
|
1784
1784
|
|
|
1785
1785
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1786
|
-
if (networkIP === undefined || networkIP === null || networkIP === '') {
|
|
1787
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['networkIP'], null, null, null);
|
|
1788
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1789
|
-
return callback(null, errorObj);
|
|
1790
|
-
}
|
|
1791
1786
|
|
|
1792
1787
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
1793
1788
|
const queryParamsAvailable = { network: networkIP };
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
"$id": "network",
|
|
3
3
|
"type": "object",
|
|
4
4
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": false,
|
|
6
|
+
"dynamicfields": true,
|
|
5
7
|
"properties": {
|
|
6
8
|
"ph_request_type": {
|
|
7
9
|
"$id": "/properties/ph_request_type",
|
|
@@ -209,7 +211,7 @@
|
|
|
209
211
|
"external_name": "names"
|
|
210
212
|
},
|
|
211
213
|
"usage": {
|
|
212
|
-
"type": "string",
|
|
214
|
+
"type": ["string", "array"],
|
|
213
215
|
"description": "",
|
|
214
216
|
"parse": false,
|
|
215
217
|
"encode": false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-infoblox",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.7",
|
|
4
4
|
"description": "Itential Infoblox Adapter",
|
|
5
5
|
"main": "adapter.js",
|
|
6
6
|
"systemName": "Infoblox",
|
|
@@ -57,22 +57,22 @@
|
|
|
57
57
|
"author": "Itential",
|
|
58
58
|
"homepage": "https://gitlab.com/itentialopensource/adapters/adapter-infoblox#readme",
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@itentialopensource/adapter-utils": "^5.
|
|
61
|
-
"acorn": "^8.
|
|
60
|
+
"@itentialopensource/adapter-utils": "^5.10.1",
|
|
61
|
+
"acorn": "^8.14.0",
|
|
62
62
|
"ajv": "^8.17.1",
|
|
63
|
-
"axios": "^1.7.
|
|
63
|
+
"axios": "^1.7.9",
|
|
64
64
|
"commander": "^11.0.0",
|
|
65
65
|
"dns-lookup-promise": "^1.0.4",
|
|
66
66
|
"fs-extra": "^11.2.0",
|
|
67
67
|
"json-query": "^2.2.2",
|
|
68
|
-
"mocha": "^10.
|
|
68
|
+
"mocha": "^10.8.2",
|
|
69
69
|
"mocha-param": "^2.0.1",
|
|
70
|
-
"mongodb": "^4.
|
|
70
|
+
"mongodb": "^4.17.2",
|
|
71
71
|
"ping": "^0.4.4",
|
|
72
72
|
"prompts": "^2.4.2",
|
|
73
73
|
"readline-sync": "^1.4.10",
|
|
74
74
|
"semver": "^7.6.3",
|
|
75
|
-
"winston": "^3.
|
|
75
|
+
"winston": "^3.17.0"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"chai": "^4.3.7",
|
package/pronghorn.json
CHANGED
|
@@ -1408,6 +1408,7 @@
|
|
|
1408
1408
|
"type": "string",
|
|
1409
1409
|
"name": "networkIP",
|
|
1410
1410
|
"description": "Network IP of the block",
|
|
1411
|
+
"required": false,
|
|
1411
1412
|
"schema": {
|
|
1412
1413
|
"title": "networkIP",
|
|
1413
1414
|
"type": "string"
|
|
@@ -1442,6 +1443,7 @@
|
|
|
1442
1443
|
"type": "string",
|
|
1443
1444
|
"name": "networkIP",
|
|
1444
1445
|
"description": "Network IP of the block",
|
|
1446
|
+
"required": false,
|
|
1445
1447
|
"schema": {
|
|
1446
1448
|
"title": "networkIP",
|
|
1447
1449
|
"type": "string"
|
|
@@ -1812,6 +1814,7 @@
|
|
|
1812
1814
|
"type": "string",
|
|
1813
1815
|
"name": "networkIP",
|
|
1814
1816
|
"description": "Network IP of the block",
|
|
1817
|
+
"required": false,
|
|
1815
1818
|
"schema": {
|
|
1816
1819
|
"title": "networkIP",
|
|
1817
1820
|
"type": "string"
|
|
@@ -1846,6 +1849,7 @@
|
|
|
1846
1849
|
"type": "string",
|
|
1847
1850
|
"name": "networkIP",
|
|
1848
1851
|
"description": "Network IP of the block",
|
|
1852
|
+
"required": false,
|
|
1849
1853
|
"schema": {
|
|
1850
1854
|
"title": "networkIP",
|
|
1851
1855
|
"type": "string"
|
package/report/adapterInfo.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.15.
|
|
3
|
-
"configLines":
|
|
2
|
+
"version": "1.15.6",
|
|
3
|
+
"configLines": 23177,
|
|
4
4
|
"scriptLines": 1783,
|
|
5
|
-
"codeLines":
|
|
6
|
-
"testLines":
|
|
7
|
-
"testCases":
|
|
8
|
-
"totalCodeLines":
|
|
5
|
+
"codeLines": 29966,
|
|
6
|
+
"testLines": 22880,
|
|
7
|
+
"testCases": 1138,
|
|
8
|
+
"totalCodeLines": 54629,
|
|
9
9
|
"wfTasks": 407
|
|
10
10
|
}
|
|
@@ -319,15 +319,15 @@ describe('[unit] Infoblox Adapter Test', () => {
|
|
|
319
319
|
assert.notEqual(null, packageDotJson.dependencies);
|
|
320
320
|
assert.notEqual('', packageDotJson.dependencies);
|
|
321
321
|
assert.equal('^8.17.1', packageDotJson.dependencies.ajv);
|
|
322
|
-
assert.equal('^1.7.
|
|
322
|
+
assert.equal('^1.7.9', packageDotJson.dependencies.axios);
|
|
323
323
|
assert.equal('^11.0.0', packageDotJson.dependencies.commander);
|
|
324
324
|
assert.equal('^11.2.0', packageDotJson.dependencies['fs-extra']);
|
|
325
|
-
assert.equal('^10.
|
|
325
|
+
assert.equal('^10.8.2', packageDotJson.dependencies.mocha);
|
|
326
326
|
assert.equal('^2.0.1', packageDotJson.dependencies['mocha-param']);
|
|
327
327
|
assert.equal('^0.4.4', packageDotJson.dependencies.ping);
|
|
328
328
|
assert.equal('^1.4.10', packageDotJson.dependencies['readline-sync']);
|
|
329
329
|
assert.equal('^7.6.3', packageDotJson.dependencies.semver);
|
|
330
|
-
assert.equal('^3.
|
|
330
|
+
assert.equal('^3.17.0', packageDotJson.dependencies.winston);
|
|
331
331
|
done();
|
|
332
332
|
} catch (error) {
|
|
333
333
|
log.error(`Test Failure: ${error}`);
|
|
@@ -1563,23 +1563,6 @@ describe('[unit] Infoblox Adapter Test', () => {
|
|
|
1563
1563
|
done(error);
|
|
1564
1564
|
}
|
|
1565
1565
|
}).timeout(attemptTimeout);
|
|
1566
|
-
it('should error if - no networkIP', (done) => {
|
|
1567
|
-
try {
|
|
1568
|
-
a.getNetworkKeyByIP(null, (data, error) => {
|
|
1569
|
-
try {
|
|
1570
|
-
const displayE = 'networkIP is required';
|
|
1571
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-infoblox-adapter-getNetworkKeyByIPWithQuery', displayE);
|
|
1572
|
-
done();
|
|
1573
|
-
} catch (err) {
|
|
1574
|
-
log.error(`Test Failure: ${err}`);
|
|
1575
|
-
done(err);
|
|
1576
|
-
}
|
|
1577
|
-
});
|
|
1578
|
-
} catch (error) {
|
|
1579
|
-
log.error(`Adapter Exception: ${error}`);
|
|
1580
|
-
done(error);
|
|
1581
|
-
}
|
|
1582
|
-
}).timeout(attemptTimeout);
|
|
1583
1566
|
});
|
|
1584
1567
|
|
|
1585
1568
|
describe('#createAuthZone - errors', () => {
|
|
@@ -2405,23 +2388,6 @@ describe('[unit] Infoblox Adapter Test', () => {
|
|
|
2405
2388
|
done(error);
|
|
2406
2389
|
}
|
|
2407
2390
|
}).timeout(attemptTimeout);
|
|
2408
|
-
it('should error if - missing network', (done) => {
|
|
2409
|
-
try {
|
|
2410
|
-
a.getNetworkDetails(null, (data, error) => {
|
|
2411
|
-
try {
|
|
2412
|
-
const displayE = 'networkIP is required';
|
|
2413
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-infoblox-adapter-getNetworkDetailsWithQuery', displayE);
|
|
2414
|
-
done();
|
|
2415
|
-
} catch (err) {
|
|
2416
|
-
log.error(`Test Failure: ${err}`);
|
|
2417
|
-
done(err);
|
|
2418
|
-
}
|
|
2419
|
-
});
|
|
2420
|
-
} catch (error) {
|
|
2421
|
-
log.error(`Adapter Exception: ${error}`);
|
|
2422
|
-
done(error);
|
|
2423
|
-
}
|
|
2424
|
-
}).timeout(attemptTimeout);
|
|
2425
2391
|
});
|
|
2426
2392
|
|
|
2427
2393
|
describe('#getNetworkContainerDetails - errors', () => {
|
|
@@ -2613,7 +2579,7 @@ describe('[unit] Infoblox Adapter Test', () => {
|
|
|
2613
2579
|
a.deleteNetworkv2(null, (data, error) => {
|
|
2614
2580
|
try {
|
|
2615
2581
|
const displayE = 'networkIP is required';
|
|
2616
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-infoblox-adapter-
|
|
2582
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-infoblox-adapter-deleteNetworkv2', displayE);
|
|
2617
2583
|
done();
|
|
2618
2584
|
} catch (err) {
|
|
2619
2585
|
log.error(`Test Failure: ${err}`);
|
|
Binary file
|