@itentialopensource/adapter-paragon_pathfinder 1.3.4 → 1.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/AUTH.md +83 -14
- package/BROKER.md +31 -19
- package/CALLS.md +59 -23
- package/CHANGELOG.md +16 -0
- package/PROPERTIES.md +5 -0
- package/README.md +60 -63
- package/SYSTEMINFO.md +17 -6
- package/TAB1.md +12 -0
- package/TAB2.md +398 -0
- package/metadata.json +26 -5
- package/package.json +7 -9
- package/propertiesSchema.json +5 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +4 -4
- package/report/updateReport1717075995823.json +120 -0
- package/sampleProperties.json +37 -25
- package/test/integration/adapterTestIntegration.js +1 -0
- package/test/unit/adapterTestUnit.js +1 -3
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
{
|
|
2
|
+
"errors": [],
|
|
3
|
+
"statistics": [
|
|
4
|
+
{
|
|
5
|
+
"owner": "errorJson",
|
|
6
|
+
"description": "New adapter errors available for use",
|
|
7
|
+
"value": 0
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"owner": "errorJson",
|
|
11
|
+
"description": "Adapter errors no longer available for use",
|
|
12
|
+
"value": 0
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"owner": "errorJson",
|
|
16
|
+
"description": "Adapter errors that have been updated (e.g. recommendation changes)",
|
|
17
|
+
"value": 31
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"owner": "packageJson",
|
|
21
|
+
"description": "Number of production dependencies",
|
|
22
|
+
"value": 16
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"owner": "packageJson",
|
|
26
|
+
"description": "Number of development dependencies",
|
|
27
|
+
"value": 6
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"owner": "packageJson",
|
|
31
|
+
"description": "Number of npm scripts",
|
|
32
|
+
"value": 21
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"owner": "packageJson",
|
|
36
|
+
"description": "Runtime Library dependency",
|
|
37
|
+
"value": "^5.3.10"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"owner": "propertiesSchemaJson",
|
|
41
|
+
"description": "Adapter properties defined in the propertiesSchema file",
|
|
42
|
+
"value": 78
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"owner": "markdown",
|
|
46
|
+
"description": "Number of lines in the README.md",
|
|
47
|
+
"value": 344
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"owner": "markdown",
|
|
51
|
+
"description": "Number of lines in the SUMMARY.md",
|
|
52
|
+
"value": 9
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"owner": "markdown",
|
|
56
|
+
"description": "Number of lines in the PROPERTIES.md",
|
|
57
|
+
"value": 647
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"owner": "markdown",
|
|
61
|
+
"description": "Number of lines in the TROUBLESHOOT.md",
|
|
62
|
+
"value": 48
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"owner": "markdown",
|
|
66
|
+
"description": "Number of lines in the ENHANCE.md",
|
|
67
|
+
"value": 70
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"owner": "markdown",
|
|
71
|
+
"description": "Number of lines in the BROKER.md",
|
|
72
|
+
"value": 70
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"owner": "unitTestJS",
|
|
76
|
+
"description": "Number of lines of code in unit tests",
|
|
77
|
+
"value": 6357
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"owner": "unitTestJS",
|
|
81
|
+
"description": "Number of unit tests",
|
|
82
|
+
"value": 398
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"owner": "integrationTestJS",
|
|
86
|
+
"description": "Number of lines of code in integration tests",
|
|
87
|
+
"value": 7897
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"owner": "integrationTestJS",
|
|
91
|
+
"description": "Number of integration tests",
|
|
92
|
+
"value": 161
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"owner": "staticFile",
|
|
96
|
+
"description": "Number of lines of code in adapterBase.js",
|
|
97
|
+
"value": 1453
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"owner": "staticFile",
|
|
101
|
+
"description": "Number of static files added",
|
|
102
|
+
"value": 36
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"owner": "Overall",
|
|
106
|
+
"description": "Total lines of Code",
|
|
107
|
+
"value": 15707
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"owner": "Overall",
|
|
111
|
+
"description": "Total Tests",
|
|
112
|
+
"value": 559
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"owner": "Overall",
|
|
116
|
+
"description": "Total Files",
|
|
117
|
+
"value": 6
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
}
|
package/sampleProperties.json
CHANGED
|
@@ -124,30 +124,32 @@
|
|
|
124
124
|
}
|
|
125
125
|
},
|
|
126
126
|
"devicebroker": {
|
|
127
|
+
"enabled": false,
|
|
127
128
|
"getDevice": [
|
|
128
129
|
{
|
|
129
|
-
"path": "/
|
|
130
|
+
"path": "/not/mapped",
|
|
130
131
|
"method": "GET",
|
|
131
132
|
"query": {},
|
|
132
133
|
"body": {},
|
|
133
134
|
"headers": {},
|
|
134
135
|
"handleFailure": "ignore",
|
|
135
136
|
"requestFields": {
|
|
136
|
-
"
|
|
137
|
+
"insample": "{port}"
|
|
137
138
|
},
|
|
138
139
|
"responseDatakey": "",
|
|
139
140
|
"responseFields": {
|
|
140
|
-
"name": "
|
|
141
|
-
"ostype": "
|
|
142
|
-
"ostypePrefix": "
|
|
143
|
-
"
|
|
144
|
-
"
|
|
141
|
+
"name": "{this}{||}{that}",
|
|
142
|
+
"ostype": "{osfield}",
|
|
143
|
+
"ostypePrefix": "meraki-",
|
|
144
|
+
"port": "{port}",
|
|
145
|
+
"ipaddress": "{ip_addr}",
|
|
146
|
+
"serial" : "{serial}"
|
|
145
147
|
}
|
|
146
148
|
}
|
|
147
149
|
],
|
|
148
150
|
"getDevicesFiltered": [
|
|
149
151
|
{
|
|
150
|
-
"path": "/
|
|
152
|
+
"path": "/not/mapped",
|
|
151
153
|
"method": "GET",
|
|
152
154
|
"pagination": {
|
|
153
155
|
"offsetVar": "",
|
|
@@ -162,42 +164,44 @@
|
|
|
162
164
|
"requestFields": {},
|
|
163
165
|
"responseDatakey": "",
|
|
164
166
|
"responseFields": {
|
|
165
|
-
"name": "
|
|
166
|
-
"ostype": "
|
|
167
|
-
"ostypePrefix": "
|
|
168
|
-
"
|
|
169
|
-
"
|
|
167
|
+
"name": "{this}{||}{that}",
|
|
168
|
+
"ostype": "{osfield}",
|
|
169
|
+
"ostypePrefix": "meraki-",
|
|
170
|
+
"port": "{port}",
|
|
171
|
+
"ipaddress": "{ip_addr}",
|
|
172
|
+
"serial" : "{serial}",
|
|
173
|
+
"id": "{myid}"
|
|
170
174
|
}
|
|
171
175
|
}
|
|
172
176
|
],
|
|
173
177
|
"isAlive": [
|
|
174
178
|
{
|
|
175
|
-
"path": "/
|
|
179
|
+
"path": "/not/mapped/{devID}",
|
|
176
180
|
"method": "GET",
|
|
177
181
|
"query": {},
|
|
178
182
|
"body": {},
|
|
179
183
|
"headers": {},
|
|
180
184
|
"handleFailure": "ignore",
|
|
181
185
|
"requestFields": {
|
|
182
|
-
"
|
|
186
|
+
"devID": "{id}"
|
|
183
187
|
},
|
|
184
188
|
"responseDatakey": "",
|
|
185
189
|
"responseFields": {
|
|
186
|
-
"status": "
|
|
187
|
-
"statusValue": "
|
|
190
|
+
"status": "return2xx",
|
|
191
|
+
"statusValue": "AD.200"
|
|
188
192
|
}
|
|
189
193
|
}
|
|
190
194
|
],
|
|
191
195
|
"getConfig": [
|
|
192
196
|
{
|
|
193
|
-
"path": "/
|
|
197
|
+
"path": "/not/mapped/{devID}",
|
|
194
198
|
"method": "GET",
|
|
195
199
|
"query": {},
|
|
196
200
|
"body": {},
|
|
197
201
|
"headers": {},
|
|
198
202
|
"handleFailure": "ignore",
|
|
199
203
|
"requestFields": {
|
|
200
|
-
"
|
|
204
|
+
"devID": "{id}"
|
|
201
205
|
},
|
|
202
206
|
"responseDatakey": "",
|
|
203
207
|
"responseFields": {}
|
|
@@ -205,7 +209,7 @@
|
|
|
205
209
|
],
|
|
206
210
|
"getCount": [
|
|
207
211
|
{
|
|
208
|
-
"path": "/
|
|
212
|
+
"path": "/not/mapped",
|
|
209
213
|
"method": "GET",
|
|
210
214
|
"query": {},
|
|
211
215
|
"body": {},
|
|
@@ -221,15 +225,15 @@
|
|
|
221
225
|
"enabled": false,
|
|
222
226
|
"entities": [
|
|
223
227
|
{
|
|
224
|
-
"entityType": "",
|
|
225
|
-
"frequency":
|
|
228
|
+
"entityType": "device",
|
|
229
|
+
"frequency": 3600,
|
|
226
230
|
"flushOnFail": false,
|
|
227
|
-
"limit":
|
|
231
|
+
"limit": 10000,
|
|
228
232
|
"retryAttempts": 5,
|
|
229
233
|
"sort": true,
|
|
230
234
|
"populate": [
|
|
231
235
|
{
|
|
232
|
-
"path": "",
|
|
236
|
+
"path": "/not/mapped",
|
|
233
237
|
"method": "GET",
|
|
234
238
|
"pagination": {
|
|
235
239
|
"offsetVar": "",
|
|
@@ -243,7 +247,15 @@
|
|
|
243
247
|
"handleFailure": "ignore",
|
|
244
248
|
"requestFields": {},
|
|
245
249
|
"responseDatakey": "",
|
|
246
|
-
"responseFields": {
|
|
250
|
+
"responseFields": {
|
|
251
|
+
"name": "{this}{||}{that}",
|
|
252
|
+
"ostype": "{osfield}",
|
|
253
|
+
"ostypePrefix": "meraki-",
|
|
254
|
+
"port": "{port}",
|
|
255
|
+
"ipaddress": "{ip_addr}",
|
|
256
|
+
"serial" : "{serial}",
|
|
257
|
+
"id": "{myid}"
|
|
258
|
+
}
|
|
247
259
|
}
|
|
248
260
|
],
|
|
249
261
|
"cachedTasks": [
|
|
@@ -46,6 +46,7 @@ samProps.ssl.accept_invalid_cert = false;
|
|
|
46
46
|
if (samProps.request.attempt_timeout < 30000) {
|
|
47
47
|
samProps.request.attempt_timeout = 30000;
|
|
48
48
|
}
|
|
49
|
+
samProps.devicebroker.enabled = true;
|
|
49
50
|
const attemptTimeout = samProps.request.attempt_timeout;
|
|
50
51
|
const { stub } = samProps;
|
|
51
52
|
|
|
@@ -284,7 +284,6 @@ describe('[unit] Paragon_pathfinder Adapter Test', () => {
|
|
|
284
284
|
assert.equal('mocha test/unit/adapterBaseTestUnit.js --LOG=error', packageDotJson.scripts['test:baseunit']);
|
|
285
285
|
assert.equal('mocha test/unit/adapterTestUnit.js --LOG=error', packageDotJson.scripts['test:unit']);
|
|
286
286
|
assert.equal('mocha test/integration/adapterTestIntegration.js --LOG=error', packageDotJson.scripts['test:integration']);
|
|
287
|
-
assert.equal('nyc --reporter html --reporter text mocha --reporter dot test/*', packageDotJson.scripts['test:cover']);
|
|
288
287
|
assert.equal('npm run test:baseunit && npm run test:unit && npm run test:integration', packageDotJson.scripts.test);
|
|
289
288
|
assert.equal('npm publish --registry=https://registry.npmjs.org --access=public', packageDotJson.scripts.deploy);
|
|
290
289
|
assert.equal('npm run deploy', packageDotJson.scripts.build);
|
|
@@ -316,12 +315,11 @@ describe('[unit] Paragon_pathfinder Adapter Test', () => {
|
|
|
316
315
|
assert.notEqual(null, packageDotJson.dependencies);
|
|
317
316
|
assert.notEqual('', packageDotJson.dependencies);
|
|
318
317
|
assert.equal('^8.12.0', packageDotJson.dependencies.ajv);
|
|
319
|
-
assert.equal('^1.6.
|
|
318
|
+
assert.equal('^1.6.8', packageDotJson.dependencies.axios);
|
|
320
319
|
assert.equal('^11.0.0', packageDotJson.dependencies.commander);
|
|
321
320
|
assert.equal('^11.1.1', packageDotJson.dependencies['fs-extra']);
|
|
322
321
|
assert.equal('^10.3.0', packageDotJson.dependencies.mocha);
|
|
323
322
|
assert.equal('^2.0.1', packageDotJson.dependencies['mocha-param']);
|
|
324
|
-
assert.equal('^15.1.0', packageDotJson.dependencies.nyc);
|
|
325
323
|
assert.equal('^0.4.4', packageDotJson.dependencies.ping);
|
|
326
324
|
assert.equal('^1.4.10', packageDotJson.dependencies['readline-sync']);
|
|
327
325
|
assert.equal('^7.5.3', packageDotJson.dependencies.semver);
|