@itentialopensource/adapter-adtran_mosaic_devicemanager 0.1.1 → 0.3.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 (52) hide show
  1. package/AUTH.md +39 -0
  2. package/BROKER.md +199 -0
  3. package/CALLS.md +733 -0
  4. package/CHANGELOG.md +17 -2
  5. package/CODE_OF_CONDUCT.md +12 -17
  6. package/CONTRIBUTING.md +3 -148
  7. package/ENHANCE.md +14 -14
  8. package/PROPERTIES.md +483 -89
  9. package/README.md +156 -67
  10. package/SUMMARY.md +2 -2
  11. package/SYSTEMINFO.md +11 -0
  12. package/TROUBLESHOOT.md +4 -3
  13. package/adapter.js +236 -626
  14. package/adapterBase.js +647 -494
  15. package/changelogs/changelog.md +16 -0
  16. package/entities/.generic/action.json +105 -0
  17. package/entities/.generic/schema.json +6 -1
  18. package/metadata.json +47 -0
  19. package/package.json +24 -24
  20. package/pronghorn.json +508 -90
  21. package/propertiesSchema.json +496 -39
  22. package/refs?service=git-upload-pack +0 -0
  23. package/report/adapter-openapi.json +7211 -0
  24. package/report/adapter-openapi.yaml +6459 -0
  25. package/report/adapterInfo.json +10 -0
  26. package/report/updateReport1653138377421.json +120 -0
  27. package/report/updateReport1691507605063.json +120 -0
  28. package/report/updateReport1692202606613.json +120 -0
  29. package/report/updateReport1694462023649.json +120 -0
  30. package/report/updateReport1698421007213.json +120 -0
  31. package/sampleProperties.json +153 -3
  32. package/test/integration/adapterTestBasicGet.js +3 -5
  33. package/test/integration/adapterTestConnectivity.js +91 -42
  34. package/test/integration/adapterTestIntegration.js +1965 -2493
  35. package/test/unit/adapterBaseTestUnit.js +388 -306
  36. package/test/unit/adapterTestUnit.js +364 -231
  37. package/utils/adapterInfo.js +206 -0
  38. package/utils/addAuth.js +1 -1
  39. package/utils/artifactize.js +1 -1
  40. package/utils/checkMigrate.js +1 -1
  41. package/utils/entitiesToDB.js +12 -57
  42. package/utils/findPath.js +1 -1
  43. package/utils/methodDocumentor.js +273 -0
  44. package/utils/modify.js +13 -15
  45. package/utils/packModificationScript.js +1 -1
  46. package/utils/pre-commit.sh +5 -0
  47. package/utils/taskMover.js +309 -0
  48. package/utils/tbScript.js +123 -53
  49. package/utils/tbUtils.js +84 -59
  50. package/utils/testRunner.js +17 -17
  51. package/utils/troubleshootingAdapter.js +9 -6
  52. package/workflows/README.md +0 -3
@@ -0,0 +1,16 @@
1
+
2
+ ## 0.2.0 [05-21-2022]
3
+
4
+ * Migration to the latest Adapter Foundation
5
+
6
+ See merge request itentialopensource/adapters/controller-orchestrator/adapter-adtran_mosaic_devicemanager!1
7
+
8
+ ---
9
+
10
+ ## 0.1.1 [05-02-2022]
11
+
12
+ - Initial Commit
13
+
14
+ See commit 00871e9
15
+
16
+ ---
@@ -104,6 +104,111 @@
104
104
  "mockFile": ""
105
105
  }
106
106
  ]
107
+ },
108
+ {
109
+ "name": "getGenericsNoBase",
110
+ "protocol": "REST",
111
+ "method": "GET",
112
+ "entitypath": "/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
113
+ "requestSchema": "schema.json",
114
+ "responseSchema": "schema.json",
115
+ "timeout": 0,
116
+ "sendEmpty": false,
117
+ "sendGetBody": false,
118
+ "requestDatatype": "JSON",
119
+ "responseDatatype": "JSON",
120
+ "headers": {},
121
+ "responseObjects": [
122
+ {
123
+ "type": "default",
124
+ "key": "",
125
+ "mockFile": ""
126
+ }
127
+ ]
128
+ },
129
+ {
130
+ "name": "createGenericNoBase",
131
+ "protocol": "REST",
132
+ "method": "POST",
133
+ "entitypath": "/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
134
+ "requestSchema": "schema.json",
135
+ "responseSchema": "schema.json",
136
+ "timeout": 0,
137
+ "sendEmpty": false,
138
+ "sendGetBody": false,
139
+ "requestDatatype": "JSON",
140
+ "responseDatatype": "JSON",
141
+ "headers": {},
142
+ "responseObjects": [
143
+ {
144
+ "type": "default",
145
+ "key": "",
146
+ "mockFile": ""
147
+ }
148
+ ]
149
+ },
150
+ {
151
+ "name": "updateGenericNoBase",
152
+ "protocol": "REST",
153
+ "method": "PUT",
154
+ "entitypath": "/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
155
+ "requestSchema": "schema.json",
156
+ "responseSchema": "schema.json",
157
+ "timeout": 0,
158
+ "sendEmpty": false,
159
+ "sendGetBody": false,
160
+ "requestDatatype": "JSON",
161
+ "responseDatatype": "JSON",
162
+ "headers": {},
163
+ "responseObjects": [
164
+ {
165
+ "type": "default",
166
+ "key": "",
167
+ "mockFile": ""
168
+ }
169
+ ]
170
+ },
171
+ {
172
+ "name": "patchGenericNoBase",
173
+ "protocol": "REST",
174
+ "method": "PATCH",
175
+ "entitypath": "/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
176
+ "requestSchema": "schema.json",
177
+ "responseSchema": "schema.json",
178
+ "timeout": 0,
179
+ "sendEmpty": false,
180
+ "sendGetBody": false,
181
+ "requestDatatype": "JSON",
182
+ "responseDatatype": "JSON",
183
+ "headers": {},
184
+ "responseObjects": [
185
+ {
186
+ "type": "default",
187
+ "key": "",
188
+ "mockFile": ""
189
+ }
190
+ ]
191
+ },
192
+ {
193
+ "name": "deleteGenericNoBase",
194
+ "protocol": "REST",
195
+ "method": "DELETE",
196
+ "entitypath": "/{pathv1}/{pathv2}/{pathv3}/{pathv4}/{pathv5}/{pathv6}/{pathv7}/{pathv8}/{pathv9}/{pathv10}/{pathv11}/{pathv12}/{pathv13}/{pathv14}/{pathv15}/{pathv16}/{pathv17}/{pathv18}/{pathv19}/{pathv20}?{query}",
197
+ "requestSchema": "schema.json",
198
+ "responseSchema": "schema.json",
199
+ "timeout": 0,
200
+ "sendEmpty": false,
201
+ "sendGetBody": false,
202
+ "requestDatatype": "JSON",
203
+ "responseDatatype": "JSON",
204
+ "headers": {},
205
+ "responseObjects": [
206
+ {
207
+ "type": "default",
208
+ "key": "",
209
+ "mockFile": ""
210
+ }
211
+ ]
107
212
  }
108
213
  ]
109
214
  }
@@ -14,7 +14,12 @@
14
14
  "createGeneric",
15
15
  "updateGeneric",
16
16
  "patchGeneric",
17
- "deleteGeneric"
17
+ "deleteGeneric",
18
+ "getGenericsNoBase",
19
+ "createGenericNoBase",
20
+ "updateGenericNoBase",
21
+ "patchGenericNoBase",
22
+ "deleteGenericNoBase"
18
23
  ],
19
24
  "external_name": "ph_request_type"
20
25
  }
package/metadata.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "adapter-adtran_mosaic_devicemanager",
3
+ "webName": "Adapter for Integration to Adtran Mosaic Device Manager",
4
+ "vendor": "Adtran",
5
+ "product": "Mosaic Device Manager",
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-adtran_mosaic_devicemanager",
26
+ "repoLink": "https://gitlab.com/itentialopensource/adapters/controller-orchestrator/adapter-adtran_mosaic_devicemanager",
27
+ "docLink": "https://docs.itential.com/opensource/docs/adtran-mosaic-device-manager",
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/adtran-mosaic-device-manager/",
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,14 +1,14 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-adtran_mosaic_devicemanager",
3
- "version": "0.1.1",
3
+ "version": "0.3.0",
4
4
  "description": "This adapter integrates with system described as: adtranMosaicDeviceManager.",
5
5
  "main": "adapter.js",
6
6
  "wizardVersion": "2.44.7",
7
- "engineVersion": "1.61.2",
7
+ "engineVersion": "1.67.14",
8
8
  "adapterType": "http",
9
9
  "scripts": {
10
10
  "artifactize": "npm i && node utils/packModificationScript.js",
11
- "preinstall": "node utils/setup.js && npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions",
11
+ "preinstall": "node utils/setup.js",
12
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",
@@ -24,7 +24,7 @@
24
24
  "adapter:migrate": "node utils/modify.js -m",
25
25
  "adapter:update": "node utils/modify.js -u",
26
26
  "adapter:revert": "node utils/modify.js -r",
27
- "troubleshoot": "node utils/tbScript.js",
27
+ "troubleshoot": "node utils/tbScript.js troubleshoot",
28
28
  "healthcheck": "node utils/tbScript.js healthcheck",
29
29
  "basicget": "node utils/tbScript.js basicget",
30
30
  "connectivity": "node utils/tbScript.js connectivity",
@@ -57,31 +57,31 @@
57
57
  "author": "Itential",
58
58
  "homepage": "https://gitlab.com/itentialopensource/adapters/controller-orchestrator/adapter-adtran_mosaic_devicemanager#readme",
59
59
  "dependencies": {
60
- "@itentialopensource/adapter-utils": "^4.45.4",
61
- "ajv": "^6.12.0",
62
- "axios": "^0.21.0",
63
- "commander": "^2.20.0",
64
- "fs-extra": "^8.1.0",
65
- "mocha": "^9.0.1",
60
+ "@itentialopensource/adapter-utils": "^5.3.0",
61
+ "acorn": "^8.10.0",
62
+ "ajv": "^8.12.0",
63
+ "axios": "^1.6.3",
64
+ "commander": "^11.0.0",
65
+ "dns-lookup-promise": "^1.0.4",
66
+ "fs-extra": "^11.1.1",
67
+ "json-query": "^2.2.2",
68
+ "mocha": "^10.2.0",
66
69
  "mocha-param": "^2.0.1",
67
- "mongodb": "^4.1.0",
68
- "network-diagnostics": "^0.5.3",
70
+ "mongodb": "^4.16.0",
69
71
  "nyc": "^15.1.0",
72
+ "ping": "^0.4.4",
73
+ "prompts": "^2.4.2",
70
74
  "readline-sync": "^1.4.10",
71
- "semver": "^7.3.2",
72
- "winston": "^3.3.3"
75
+ "semver": "^7.5.3",
76
+ "winston": "^3.9.0"
73
77
  },
74
78
  "devDependencies": {
75
- "chai": "^4.3.4",
76
- "eslint": "^7.29.0",
77
- "eslint-config-airbnb-base": "^14.2.1",
78
- "eslint-plugin-import": "^2.23.4",
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"
79
+ "chai": "^4.3.7",
80
+ "eslint": "^8.44.0",
81
+ "eslint-config-airbnb-base": "^15.0.0",
82
+ "eslint-plugin-import": "^2.27.5",
83
+ "eslint-plugin-json": "^3.1.0",
84
+ "testdouble": "^3.18.0"
85
85
  },
86
86
  "private": false
87
87
  }