@itentialopensource/adapter-netbrain 1.1.1 → 1.2.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 +18 -0
- package/CHANGELOG.md +8 -0
- package/CONTRIBUTING.md +1 -160
- package/ENHANCE.md +2 -2
- package/README.md +32 -23
- package/adapter.js +157 -329
- package/adapterBase.js +549 -879
- package/changelogs/changelog.md +151 -0
- package/metadata.json +47 -0
- package/package.json +24 -27
- package/pronghorn.json +981 -642
- package/propertiesSchema.json +431 -31
- package/refs?service=git-upload-pack +0 -0
- package/report/adapter-openapi.json +8023 -0
- package/report/adapter-openapi.yaml +5944 -0
- package/report/adapterInfo.json +8 -8
- package/report/updateReport1691507690977.json +120 -0
- package/report/updateReport1692202690574.json +120 -0
- package/report/updateReport1694462665367.json +120 -0
- package/report/updateReport1698421227451.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 -130
- 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,151 @@
|
|
|
1
|
+
|
|
2
|
+
## 1.1.1 [09-06-2022]
|
|
3
|
+
|
|
4
|
+
* Update Healthcheck and change tenantId Usage
|
|
5
|
+
|
|
6
|
+
See merge request itentialopensource/adapters/controller-orchestrator/adapter-netbrain!16
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 1.1.0 [05-22-2022]
|
|
11
|
+
|
|
12
|
+
* Migration to the latest Adapter Foundation
|
|
13
|
+
|
|
14
|
+
See merge request itentialopensource/adapters/controller-orchestrator/adapter-netbrain!15
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## 1.0.3 [08-19-2021]
|
|
19
|
+
|
|
20
|
+
- Update README and propertiesSchema
|
|
21
|
+
|
|
22
|
+
See merge request itentialopensource/adapters/controller-orchestrator/adapter-netbrain!14
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 1.0.2 [08-19-2021]
|
|
27
|
+
|
|
28
|
+
- Try to fix audit issues
|
|
29
|
+
|
|
30
|
+
See merge request itentialopensource/adapters/controller-orchestrator/adapter-netbrain!13
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## 1.0.1 [07-19-2021]
|
|
35
|
+
|
|
36
|
+
- Add the default to the getToken call
|
|
37
|
+
|
|
38
|
+
See merge request itentialopensource/adapters/controller-orchestrator/adapter-netbrain!11
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## 1.0.0 [05-14-2021]
|
|
43
|
+
|
|
44
|
+
- Added undocumented options params to getV1CMDBDevices function.
|
|
45
|
+
|
|
46
|
+
See merge request itentialopensource/adapters/controller-orchestrator/adapter-netbrain!10
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## 0.5.3 [03-11-2021]
|
|
51
|
+
|
|
52
|
+
- Migration to bring up to the latest foundation
|
|
53
|
+
- Change to .eslintignore (adapter_modification directory)
|
|
54
|
+
- Change to README.md (new properties, new scripts, new processes)
|
|
55
|
+
- Changes to adapterBase.js (new methods)
|
|
56
|
+
- Changes to package.json (new scripts, dependencies)
|
|
57
|
+
- Changes to propertiesSchema.json (new properties and changes to existing)
|
|
58
|
+
- Changes to the Unit test
|
|
59
|
+
- Adding several test files, utils files and .generic entity
|
|
60
|
+
- Fix order of scripts and dependencies in package.json
|
|
61
|
+
- Fix order of properties in propertiesSchema.json
|
|
62
|
+
- Update sampleProperties, unit and integration tests to have all new properties.
|
|
63
|
+
- Add all new calls to adapter.js and pronghorn.json
|
|
64
|
+
- Add suspend piece to older methods
|
|
65
|
+
|
|
66
|
+
See merge request itentialopensource/adapters/controller-orchestrator/adapter-netbrain!9
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## 0.5.2 [11-30-2020]
|
|
71
|
+
|
|
72
|
+
- Migrated the adapter and added new properties for tenantId and domainId
|
|
73
|
+
|
|
74
|
+
See merge request itentialopensource/adapters/controller-orchestrator/adapter-netbrain!8
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## 0.5.1 [07-08-2020]
|
|
79
|
+
|
|
80
|
+
- Update the adapter to the latest foundation
|
|
81
|
+
|
|
82
|
+
See merge request itentialopensource/adapters/controller-orchestrator/adapter-netbrain!7
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## 0.5.0 [04-23-2020]
|
|
87
|
+
|
|
88
|
+
- Make changes to authentication and add in process for associating the token to the current domain and then logging out.
|
|
89
|
+
|
|
90
|
+
See merge request itentialopensource/adapters/controller-orchestrator/adapter-netbrain!6
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## 0.4.0 [04-17-2020]
|
|
95
|
+
|
|
96
|
+
- Update to the latest swagger for NetBrain and also address Authentication so it is easier for customers to start using this
|
|
97
|
+
|
|
98
|
+
See merge request itentialopensource/adapters/controller-orchestrator/adapter-netbrain!5
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## 0.3.1 [01-13-2020]
|
|
103
|
+
|
|
104
|
+
- Bring up to the latest adapter foundation
|
|
105
|
+
|
|
106
|
+
See merge request itentialopensource/adapters/controller-orchestrator/adapter-netbrain!4
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## 0.3.0 [11-08-2019]
|
|
111
|
+
|
|
112
|
+
- Update the adapter to the latest adapter foundation.
|
|
113
|
+
- Updating to adapter-utils 4.24.3 (automatic)
|
|
114
|
+
- Add sample token schemas (manual)
|
|
115
|
+
- Adding placement property to getToken response schema (manual - before encrypt)
|
|
116
|
+
- Adding sso default into action.json for getToken (manual - before response object)
|
|
117
|
+
- Add new adapter properties for metrics & mock (save_metric, mongo and return_raw) (automatic - check place manual before stub)
|
|
118
|
+
- Update sample properties to include new properties (manual)
|
|
119
|
+
- Update integration test for raw mockdata (automatic)
|
|
120
|
+
- Update test properties (manual)
|
|
121
|
+
- Changes to artifactize (automatic)
|
|
122
|
+
- Update type in sampleProperties so it is correct for the adapter (manual)
|
|
123
|
+
- Update the readme (automatic)
|
|
124
|
+
|
|
125
|
+
See merge request itentialopensource/adapters/controller-orchestrator/adapter-netbrain!3
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## 0.2.3 [09-16-2019] & 0.2.2 [07-30-2019] & 0.2.1 [07-29-2019]
|
|
130
|
+
|
|
131
|
+
- Migrated and testing adapter installation
|
|
132
|
+
|
|
133
|
+
See merge request itentialopensource/adapters/controller-orchestrator/adapter-netbrain!2
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## 0.2.0 [07-17-2019]
|
|
138
|
+
|
|
139
|
+
- Migrate the adapter to the latest adapter foundation, categorize and prepare for app artifact
|
|
140
|
+
|
|
141
|
+
See merge request itentialopensource/adapters/controller-orchestrator/adapter-netbrain!1
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
## 0.1.1 [04-25-2019]
|
|
146
|
+
|
|
147
|
+
- Initial Commit
|
|
148
|
+
|
|
149
|
+
See commit d284f59
|
|
150
|
+
|
|
151
|
+
---
|
package/metadata.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "adapter-netbrain",
|
|
3
|
+
"webName": "Adapter for Integration to NetBrain",
|
|
4
|
+
"vendor": "NetBrain",
|
|
5
|
+
"product": "NetBrain",
|
|
6
|
+
"osVersion": [],
|
|
7
|
+
"apiVersions": [],
|
|
8
|
+
"iapVersions": [
|
|
9
|
+
"2021.1.x",
|
|
10
|
+
"2021.2.x",
|
|
11
|
+
"2022.1.x",
|
|
12
|
+
"2023.1.x"
|
|
13
|
+
],
|
|
14
|
+
"method": "REST",
|
|
15
|
+
"type": "Adapter",
|
|
16
|
+
"domains": [],
|
|
17
|
+
"tags": [],
|
|
18
|
+
"useCases": [],
|
|
19
|
+
"deprecated": {
|
|
20
|
+
"isDeprecated": false
|
|
21
|
+
},
|
|
22
|
+
"brokerSince": "",
|
|
23
|
+
"documentation": {
|
|
24
|
+
"storeLink": "",
|
|
25
|
+
"npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-netbrain",
|
|
26
|
+
"repoLink": "https://gitlab.com/itentialopensource/adapters/controller-orchestrator/adapter-netbrain",
|
|
27
|
+
"docLink": "https://docs.itential.com/opensource/docs/netbrain",
|
|
28
|
+
"demoLinks": [],
|
|
29
|
+
"trainingLinks": [],
|
|
30
|
+
"faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
|
|
31
|
+
"contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
|
|
32
|
+
"issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
|
|
33
|
+
"webLink": "https://www.itential.com/adapters/netbrain/",
|
|
34
|
+
"vendorLink": "",
|
|
35
|
+
"productLink": "",
|
|
36
|
+
"apiLinks": []
|
|
37
|
+
},
|
|
38
|
+
"assets": [],
|
|
39
|
+
"relatedItems": {
|
|
40
|
+
"adapters": [],
|
|
41
|
+
"integrations": [],
|
|
42
|
+
"ecosystemApplications": [],
|
|
43
|
+
"workflowProjects": [],
|
|
44
|
+
"transformationProjects": [],
|
|
45
|
+
"exampleProjects": []
|
|
46
|
+
}
|
|
47
|
+
}
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-netbrain",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "This adapter integrates with system described as: netbrainRestfulApi.",
|
|
5
5
|
"main": "adapter.js",
|
|
6
|
-
"systemName": "NetBrain",
|
|
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,34 +54,31 @@
|
|
|
54
54
|
"author": "Itential",
|
|
55
55
|
"homepage": "https://gitlab.com/itentialopensource/adapters/controller-orchestrator/adapter-netbrain#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
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"eslint": "^
|
|
76
|
-
"eslint-
|
|
77
|
-
"eslint-
|
|
78
|
-
"
|
|
79
|
-
"eslint-plugin-json": "^3.0.0",
|
|
80
|
-
"package-json-validator": "^0.6.3",
|
|
81
|
-
"testdouble": "^3.16.1"
|
|
82
|
-
},
|
|
83
|
-
"resolutions": {
|
|
84
|
-
"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"
|
|
85
82
|
},
|
|
86
83
|
"private": false
|
|
87
84
|
}
|