@itentialopensource/adapter-netbox_v210 0.3.0 → 0.4.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/CALLS.md +3612 -0
- package/CHANGELOG.md +8 -0
- package/CONTRIBUTING.md +1 -160
- package/ENHANCE.md +2 -2
- package/README.md +32 -23
- package/adapter.js +162 -333
- package/adapterBase.js +549 -879
- package/changelogs/changelog.md +63 -0
- package/metadata.json +51 -0
- package/package.json +24 -25
- package/pronghorn.json +470 -138
- package/propertiesSchema.json +431 -31
- package/refs?service=git-upload-pack +0 -0
- package/report/adapter-openapi.json +64067 -0
- package/report/adapter-openapi.yaml +45843 -0
- package/report/adapterInfo.json +8 -8
- package/report/updateReport1691508454087.json +120 -0
- package/report/updateReport1692202931543.json +120 -0
- package/report/updateReport1694465908381.json +120 -0
- package/report/updateReport1698421868685.json +120 -0
- package/sampleProperties.json +63 -2
- package/test/integration/adapterTestBasicGet.js +2 -4
- package/test/integration/adapterTestConnectivity.js +91 -42
- package/test/integration/adapterTestIntegration.js +130 -2
- package/test/unit/adapterBaseTestUnit.js +388 -313
- package/test/unit/adapterTestUnit.js +338 -112
- package/utils/adapterInfo.js +1 -1
- package/utils/addAuth.js +1 -1
- package/utils/artifactize.js +1 -1
- package/utils/checkMigrate.js +1 -1
- package/utils/entitiesToDB.js +2 -2
- package/utils/findPath.js +1 -1
- package/utils/methodDocumentor.js +273 -0
- package/utils/modify.js +13 -15
- package/utils/packModificationScript.js +1 -1
- package/utils/pre-commit.sh +2 -0
- package/utils/taskMover.js +309 -0
- package/utils/tbScript.js +89 -34
- package/utils/tbUtils.js +41 -21
- package/utils/testRunner.js +1 -1
- package/utils/troubleshootingAdapter.js +9 -6
- package/workflows/README.md +0 -3
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
|
|
2
|
+
## 0.3.0 [05-20-2022]
|
|
3
|
+
|
|
4
|
+
* Migration to the latest Adapter Foundation
|
|
5
|
+
|
|
6
|
+
See merge request itentialopensource/adapters/inventory/adapter-netbox_v210!4
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 0.2.1 [03-07-2022]
|
|
11
|
+
|
|
12
|
+
- Fix graphql sendGetBody
|
|
13
|
+
- Migration to the latest foundation and broker ready
|
|
14
|
+
- Add some items to .gitignore (e.g. DS_Store) to keep them out of the repos.
|
|
15
|
+
- Changes to the README (some typo fixes - Add how to extend the adapter). Split the README into various markdown files (AUTH, BROKER, CALLS, ENHANCE, PROPERTIES, SUMMARY, SYSTEMINFO, TROUBLESHOOT)
|
|
16
|
+
- Fix the issues with Confluence in the markdowns (Tables, Lists, Links)
|
|
17
|
+
- Add scripts for easier authentication, removing hooks, etc
|
|
18
|
+
- Script changes (install script as well as database changes in other scripts)
|
|
19
|
+
- Double # of path vars on generic call
|
|
20
|
+
- Update versions of foundation (e.g. adapter-utils)
|
|
21
|
+
- Update npm publish so it supports https
|
|
22
|
+
- Update dependencies
|
|
23
|
+
- Add preinstall for minimist
|
|
24
|
+
- Fix new lint issues that came from eslint dependency change
|
|
25
|
+
- Add more thorough Unit tests for standard files (Package, Pronghorn, Properties (Schema and Sample)
|
|
26
|
+
- Add the adapter type in the package.json
|
|
27
|
+
- Add AdapterInfo.js script
|
|
28
|
+
- Add json-query dependency
|
|
29
|
+
- Add the propertiesDecorators.json for product encryption
|
|
30
|
+
- Change the name of internal IAP/Adapter methods to avoid collisions and make more obvious in Workflow - iapRunAdapterBasicGet, iapRunAdapterConnectivity, iapRunAdapterHealthcheck, iapTroubleshootAdapter, iapGetAdapterQueue, iapUnsuspendAdapter, iapSuspendAdapter, iapFindAdapterPath, iapUpdateAdapterConfiguration, iapGetAdapterWorkflowFunctions
|
|
31
|
+
- Add the adapter config in the database support - iapMoveAdapterEntitiesToDB
|
|
32
|
+
- Add standard broker calls - hasEntities, getDevice, getDevicesFiltered, isAlive, getConfig and iapGetDeviceCount
|
|
33
|
+
- Add genericAdapterRequest that does not use the base_path and version so that the path can be unique - genericAdapterRequestNoBasePath
|
|
34
|
+
- Add AdapterInfo.json
|
|
35
|
+
- Add systemName for documentation
|
|
36
|
+
|
|
37
|
+
See merge request itentialopensource/adapters/inventory/adapter-netbox_v210!3
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## 0.2.0 [02-14-2022]
|
|
42
|
+
|
|
43
|
+
- Added new call for graphql
|
|
44
|
+
|
|
45
|
+
See merge request itentialopensource/adapters/inventory/adapter-netbox_v210!2
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## 0.1.2 [12-30-2021]
|
|
50
|
+
|
|
51
|
+
- Add / to generic call paths
|
|
52
|
+
|
|
53
|
+
See merge request itentialopensource/adapters/inventory/adapter-netbox_v210!1
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## 0.1.1 [08-02-2021]
|
|
58
|
+
|
|
59
|
+
- Initial Commit
|
|
60
|
+
|
|
61
|
+
See commit 1173452
|
|
62
|
+
|
|
63
|
+
---
|
package/metadata.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "adapter-netbox_v210",
|
|
3
|
+
"webName": "Adapter for Integration to Netbox v210",
|
|
4
|
+
"vendor": "Netbox",
|
|
5
|
+
"product": "v210",
|
|
6
|
+
"osVersion": [],
|
|
7
|
+
"apiVersions": [
|
|
8
|
+
"v.2.10"
|
|
9
|
+
],
|
|
10
|
+
"iapVersions": [
|
|
11
|
+
"2021.1.x",
|
|
12
|
+
"2021.2.x",
|
|
13
|
+
"2022.1.x",
|
|
14
|
+
"2023.1.x"
|
|
15
|
+
],
|
|
16
|
+
"method": "REST",
|
|
17
|
+
"type": "Adapter",
|
|
18
|
+
"domains": [
|
|
19
|
+
"Inventory"
|
|
20
|
+
],
|
|
21
|
+
"tags": [],
|
|
22
|
+
"useCases": [],
|
|
23
|
+
"deprecated": {
|
|
24
|
+
"isDeprecated": false
|
|
25
|
+
},
|
|
26
|
+
"brokerSince": "",
|
|
27
|
+
"documentation": {
|
|
28
|
+
"storeLink": "",
|
|
29
|
+
"npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-netbox_v210",
|
|
30
|
+
"repoLink": "https://gitlab.com/itentialopensource/adapters/inventory/adapter-netbox_v210",
|
|
31
|
+
"docLink": "https://docs.itential.com/opensource/docs/netbox-v210",
|
|
32
|
+
"demoLinks": [],
|
|
33
|
+
"trainingLinks": [],
|
|
34
|
+
"faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
|
|
35
|
+
"contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
|
|
36
|
+
"issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
|
|
37
|
+
"webLink": "https://www.itential.com/adapters/netbox-v2-10/",
|
|
38
|
+
"vendorLink": "",
|
|
39
|
+
"productLink": "",
|
|
40
|
+
"apiLinks": []
|
|
41
|
+
},
|
|
42
|
+
"assets": [],
|
|
43
|
+
"relatedItems": {
|
|
44
|
+
"adapters": [],
|
|
45
|
+
"integrations": [],
|
|
46
|
+
"ecosystemApplications": [],
|
|
47
|
+
"workflowProjects": [],
|
|
48
|
+
"transformationProjects": [],
|
|
49
|
+
"exampleProjects": []
|
|
50
|
+
}
|
|
51
|
+
}
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-netbox_v210",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "This adapter integrates with system described as: Netbox v2.10",
|
|
5
5
|
"main": "adapter.js",
|
|
6
|
-
"systemName": "NetBox v2.10",
|
|
7
6
|
"wizardVersion": "2.44.7",
|
|
8
|
-
"engineVersion": "1.
|
|
7
|
+
"engineVersion": "1.67.14",
|
|
9
8
|
"adapterType": "http",
|
|
10
9
|
"scripts": {
|
|
11
10
|
"artifactize": "npm i && node utils/packModificationScript.js",
|
|
12
|
-
"preinstall": "node utils/setup.js
|
|
11
|
+
"preinstall": "node utils/setup.js",
|
|
12
|
+
"deinstall": "node utils/removeHooks.js",
|
|
13
13
|
"lint": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js",
|
|
14
14
|
"lint:errors": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js --quiet",
|
|
15
15
|
"test:baseunit": "mocha test/unit/adapterBaseTestUnit.js --LOG=error",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"adapter:migrate": "node utils/modify.js -m",
|
|
24
24
|
"adapter:update": "node utils/modify.js -u",
|
|
25
25
|
"adapter:revert": "node utils/modify.js -r",
|
|
26
|
-
"troubleshoot": "node utils/tbScript.js",
|
|
26
|
+
"troubleshoot": "node utils/tbScript.js troubleshoot",
|
|
27
27
|
"healthcheck": "node utils/tbScript.js healthcheck",
|
|
28
28
|
"basicget": "node utils/tbScript.js basicget",
|
|
29
29
|
"connectivity": "node utils/tbScript.js connectivity",
|
|
@@ -54,32 +54,31 @@
|
|
|
54
54
|
"author": "Itential",
|
|
55
55
|
"homepage": "https://gitlab.com/itentialopensource/adapters/inventory/adapter-netbox_v210#readme",
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@itentialopensource/adapter-utils": "^
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
57
|
+
"@itentialopensource/adapter-utils": "^5.3.0",
|
|
58
|
+
"acorn": "^8.10.0",
|
|
59
|
+
"ajv": "^8.12.0",
|
|
60
|
+
"axios": "^1.6.3",
|
|
61
|
+
"commander": "^11.0.0",
|
|
62
|
+
"dns-lookup-promise": "^1.0.4",
|
|
63
|
+
"fs-extra": "^11.1.1",
|
|
62
64
|
"json-query": "^2.2.2",
|
|
63
|
-
"mocha": "^
|
|
65
|
+
"mocha": "^10.2.0",
|
|
64
66
|
"mocha-param": "^2.0.1",
|
|
65
|
-
"mongodb": "^4.
|
|
66
|
-
"network-diagnostics": "^0.5.3",
|
|
67
|
+
"mongodb": "^4.16.0",
|
|
67
68
|
"nyc": "^15.1.0",
|
|
69
|
+
"ping": "^0.4.4",
|
|
70
|
+
"prompts": "^2.4.2",
|
|
68
71
|
"readline-sync": "^1.4.10",
|
|
69
|
-
"semver": "^7.3
|
|
70
|
-
"winston": "^3.
|
|
72
|
+
"semver": "^7.5.3",
|
|
73
|
+
"winston": "^3.9.0"
|
|
71
74
|
},
|
|
72
75
|
"devDependencies": {
|
|
73
|
-
"chai": "^4.3.
|
|
74
|
-
"eslint": "^
|
|
75
|
-
"eslint-config-airbnb-base": "^
|
|
76
|
-
"eslint-plugin-import": "^2.
|
|
77
|
-
"eslint-plugin-json": "^3.
|
|
78
|
-
"
|
|
79
|
-
"testdouble": "^3.16.1"
|
|
80
|
-
},
|
|
81
|
-
"resolutions": {
|
|
82
|
-
"minimist": "^1.2.5"
|
|
76
|
+
"chai": "^4.3.7",
|
|
77
|
+
"eslint": "^8.44.0",
|
|
78
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
79
|
+
"eslint-plugin-import": "^2.27.5",
|
|
80
|
+
"eslint-plugin-json": "^3.1.0",
|
|
81
|
+
"testdouble": "^3.18.0"
|
|
83
82
|
},
|
|
84
83
|
"private": false
|
|
85
84
|
}
|