@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.
Files changed (64) hide show
  1. package/.eslintignore +1 -0
  2. package/.eslintrc.js +12 -12
  3. package/AUTH.md +39 -0
  4. package/BROKER.md +199 -0
  5. package/CALLS.md +169 -0
  6. package/CHANGELOG.md +68 -49
  7. package/CODE_OF_CONDUCT.md +12 -17
  8. package/CONTRIBUTING.md +88 -74
  9. package/ENHANCE.md +69 -0
  10. package/PROPERTIES.md +641 -0
  11. package/README.md +244 -392
  12. package/SUMMARY.md +9 -0
  13. package/SYSTEMINFO.md +11 -0
  14. package/TROUBLESHOOT.md +47 -0
  15. package/adapter.js +5177 -2074
  16. package/adapterBase.js +1330 -49
  17. package/entities/.generic/action.json +214 -0
  18. package/entities/.generic/schema.json +28 -0
  19. package/entities/DNSProperties/action.json +1 -1
  20. package/entities/DNSProperties/mockdatafiles/getGridDnsData.json +3 -0
  21. package/entities/ExtensibleAttributes/action.json +63 -0
  22. package/entities/ExtensibleAttributes/schema.json +4 -1
  23. package/entities/NetworkViewsAndDNSViews/action.json +63 -0
  24. package/entities/NetworkViewsAndDNSViews/schema.json +4 -1
  25. package/entities/Networks/action.json +49 -7
  26. package/entities/Networks/requestSchema.json +3 -1
  27. package/entities/Networks/responseSchema.json +3 -1
  28. package/entities/Records/action.json +7 -7
  29. package/entities/Services/action.json +22 -1
  30. package/entities/Services/schema.json +1 -0
  31. package/entities/Zones/action.json +3 -3
  32. package/error.json +12 -0
  33. package/package.json +47 -23
  34. package/pronghorn.json +1079 -0
  35. package/propertiesDecorators.json +14 -0
  36. package/propertiesSchema.json +505 -11
  37. package/refs?service=git-upload-pack +0 -0
  38. package/report/adapterInfo.json +10 -0
  39. package/report/updateReport1594212087590.json +95 -0
  40. package/report/updateReport1615140322137.json +95 -0
  41. package/report/updateReport1646675873230.json +95 -0
  42. package/report/updateReport1653911824054.json +120 -0
  43. package/sampleProperties.json +110 -6
  44. package/test/integration/adapterTestBasicGet.js +85 -0
  45. package/test/integration/adapterTestConnectivity.js +93 -0
  46. package/test/integration/adapterTestIntegration.js +390 -181
  47. package/test/unit/adapterBaseTestUnit.js +949 -0
  48. package/test/unit/adapterTestUnit.js +1181 -272
  49. package/utils/adapterInfo.js +206 -0
  50. package/utils/addAuth.js +94 -0
  51. package/utils/artifactize.js +0 -1
  52. package/utils/basicGet.js +50 -0
  53. package/utils/checkMigrate.js +63 -0
  54. package/utils/entitiesToDB.js +179 -0
  55. package/utils/findPath.js +74 -0
  56. package/utils/modify.js +154 -0
  57. package/utils/packModificationScript.js +1 -1
  58. package/utils/patches2bundledDeps.js +90 -0
  59. package/utils/pre-commit.sh +3 -0
  60. package/utils/removeHooks.js +20 -0
  61. package/utils/tbScript.js +184 -0
  62. package/utils/tbUtils.js +469 -0
  63. package/utils/testRunner.js +16 -16
  64. package/utils/troubleshootingAdapter.js +190 -0
@@ -4,7 +4,7 @@
4
4
  "name": "getAuthZoneDetailsByfqdnName",
5
5
  "protocol": "REST",
6
6
  "method": "GET",
7
- "entitypath": "{base_path}/{version}/zone_auth{pathv1}?{query}",
7
+ "entitypath": "{base_path}/{version}/zone_auth/{pathv1}?{query}",
8
8
  "requestSchema": "oschema.json",
9
9
  "responseSchema": "oschema.json",
10
10
  "timeout": 0,
@@ -25,7 +25,7 @@
25
25
  "name": "createAuthZone",
26
26
  "protocol": "REST",
27
27
  "method": "POST",
28
- "entitypath": "{base_path}/{version}/zone_auth{pathv1}?{query}",
28
+ "entitypath": "{base_path}/{version}/zone_auth/{pathv1}?{query}",
29
29
  "requestSchema": "oschema.json",
30
30
  "responseSchema": "oschema.json",
31
31
  "timeout": 0,
@@ -172,7 +172,7 @@
172
172
  "name": "deleteAuthZone",
173
173
  "protocol": "REST",
174
174
  "method": "DELETE",
175
- "entitypath": "{base_path}/{version}/zone_auth{pathv1}?{query}",
175
+ "entitypath": "{base_path}/{version}/zone_auth/{pathv1}?{query}",
176
176
  "requestSchema": "oschema.json",
177
177
  "responseSchema": "oschema.json",
178
178
  "timeout": 0,
package/error.json CHANGED
@@ -96,6 +96,12 @@
96
96
  "displayString": "Invalid properties: $VARIABLE$",
97
97
  "recommendation": "Verify the properties for the adapter"
98
98
  },
99
+ {
100
+ "key": "Missing Properties",
101
+ "icode": "AD.306",
102
+ "displayString": "Property $VARIABLE$ is required",
103
+ "recommendation": "Please provide the required property"
104
+ },
99
105
  {
100
106
  "key": "Query Not Translated",
101
107
  "icode": "AD.310",
@@ -168,6 +174,12 @@
168
174
  "displayString": "Failure response received for $VARIABLE$",
169
175
  "recommendation": "Check the reason for failure in the stack trace"
170
176
  },
177
+ {
178
+ "key": "Suspended Adapter",
179
+ "icode": "AD.600",
180
+ "displayString": "Adapter is suspended",
181
+ "recommendation": "Check if external system is functional and unsuspend if appropriate"
182
+ },
171
183
  {
172
184
  "key": "Caught Exception",
173
185
  "icode": "AD.900",
package/package.json CHANGED
@@ -1,19 +1,33 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-infoblox",
3
- "version": "1.9.1",
3
+ "version": "1.10.0",
4
4
  "description": "Itential Infoblox Adapter",
5
5
  "main": "adapter.js",
6
- "wizardVersion": "2.41.8",
7
- "engineVersion": "1.46.3",
6
+ "systemName": "Infoblox",
7
+ "wizardVersion": "2.44.7",
8
+ "engineVersion": "1.61.6",
9
+ "adapterType": "http",
8
10
  "scripts": {
9
11
  "artifactize": "npm i && node utils/packModificationScript.js",
10
- "preinstall": "node utils/setup.js",
11
- "lint": "eslint . --ext .json --ext .js",
12
+ "preinstall": "node utils/setup.js && npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions",
13
+ "lint": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js",
14
+ "lint:errors": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js --quiet",
15
+ "test:baseunit": "mocha test/unit/adapterBaseTestUnit.js --LOG=error",
12
16
  "test:unit": "mocha test/unit/adapterTestUnit.js --LOG=error",
13
17
  "test:integration": "mocha test/integration/adapterTestIntegration.js --LOG=error",
14
18
  "test:cover": "nyc --reporter html --reporter text mocha --reporter dot test/*",
15
- "test": "npm run test:unit && npm run test:integration",
16
- "deploy": "npm publish --registry=http://registry.npmjs.org --access=public",
19
+ "test": "npm run test:baseunit && npm run test:unit && npm run test:integration",
20
+ "adapter:install": "npm i && node utils/tbScript.js install",
21
+ "adapter:checkMigrate": "node utils/checkMigrate.js",
22
+ "adapter:findPath": "node utils/findPath.js",
23
+ "adapter:migrate": "node utils/modify.js -m",
24
+ "adapter:update": "node utils/modify.js -u",
25
+ "adapter:revert": "node utils/modify.js -r",
26
+ "troubleshoot": "node utils/tbScript.js",
27
+ "healthcheck": "node utils/tbScript.js healthcheck",
28
+ "basicget": "node utils/tbScript.js basicget",
29
+ "connectivity": "node utils/tbScript.js connectivity",
30
+ "deploy": "npm publish --registry=https://registry.npmjs.org --access=public",
17
31
  "build": "npm run deploy"
18
32
  },
19
33
  "keywords": [
@@ -33,7 +47,8 @@
33
47
  ],
34
48
  "license": "Apache-2.0",
35
49
  "engines": {
36
- "node": ">= 0.12.7"
50
+ "node": ">= 8.0.0",
51
+ "npm": ">= 6.0.0"
37
52
  },
38
53
  "repository": {
39
54
  "type": "git",
@@ -42,23 +57,32 @@
42
57
  "author": "Itential",
43
58
  "homepage": "https://gitlab.com/itentialopensource/adapters/inventory/adapter-infoblox#readme",
44
59
  "dependencies": {
45
- "@itentialopensource/adapter-utils": "^4.30.14",
46
- "ajv": "^6.10.0",
47
- "fs-extra": "^7.0.0",
48
- "readline-sync": "^1.4.9",
49
- "xmldom": "^0.1.27",
50
- "package-json-validator": "^0.6.3"
60
+ "@itentialopensource/adapter-utils": "^4.45.6",
61
+ "ajv": "^6.12.0",
62
+ "axios": "^0.21.0",
63
+ "commander": "^2.20.0",
64
+ "fs-extra": "^8.1.0",
65
+ "json-query": "^2.2.2",
66
+ "mocha": "^9.0.1",
67
+ "mocha-param": "^2.0.1",
68
+ "mongodb": "^4.1.0",
69
+ "network-diagnostics": "^0.5.3",
70
+ "nyc": "^15.1.0",
71
+ "readline-sync": "^1.4.10",
72
+ "semver": "^7.3.2",
73
+ "winston": "^3.3.3"
51
74
  },
52
75
  "devDependencies": {
53
- "chai": "^4.2.0",
54
- "eslint": "^6.8.0",
55
- "eslint-config-airbnb-base": "^14.1.0",
56
- "eslint-plugin-import": "^2.20.1",
57
- "eslint-plugin-json": "^2.1.1",
58
- "mocha": "^7.1.0",
59
- "nyc": "^15.0.0",
60
- "testdouble": "^3.13.1",
61
- "winston": "^3.2.1"
76
+ "chai": "^4.3.4",
77
+ "eslint": "^7.29.0",
78
+ "eslint-config-airbnb-base": "^14.2.1",
79
+ "eslint-plugin-import": "^2.23.4",
80
+ "eslint-plugin-json": "^3.0.0",
81
+ "package-json-validator": "^0.6.3",
82
+ "testdouble": "^3.16.1"
83
+ },
84
+ "resolutions": {
85
+ "minimist": "^1.2.5"
62
86
  },
63
87
  "private": false
64
88
  }