@itentialopensource/adapter-six_connect 0.8.4 → 0.9.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 +10 -12
- package/BROKER.md +31 -19
- package/CALLS.md +59 -22
- package/CHANGELOG.md +16 -0
- package/PROPERTIES.md +5 -0
- package/README.md +60 -63
- package/SYSTEMINFO.md +20 -6
- package/TAB1.md +15 -0
- package/TAB2.md +320 -0
- package/metadata.json +24 -7
- 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/updateReport1717076574800.json +120 -0
- package/sampleProperties.json +39 -27
- package/test/integration/adapterTestIntegration.js +1 -0
- package/test/unit/adapterTestUnit.js +1 -3
package/sampleProperties.json
CHANGED
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"token_timeout": 180000,
|
|
22
22
|
"token_cache": "local",
|
|
23
23
|
"invalid_token_error": 401,
|
|
24
|
-
"auth_field": "header.headers.
|
|
25
|
-
"auth_field_format": "{
|
|
24
|
+
"auth_field": "header.headers.Authorization",
|
|
25
|
+
"auth_field_format": "Basic {b64}{username}:{password}{/b64}",
|
|
26
26
|
"auth_logging": false,
|
|
27
27
|
"client_id": "",
|
|
28
28
|
"client_secret": "",
|
|
@@ -117,30 +117,32 @@
|
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
119
|
"devicebroker": {
|
|
120
|
+
"enabled": false,
|
|
120
121
|
"getDevice": [
|
|
121
122
|
{
|
|
122
|
-
"path": "/
|
|
123
|
+
"path": "/not/mapped",
|
|
123
124
|
"method": "GET",
|
|
124
125
|
"query": {},
|
|
125
126
|
"body": {},
|
|
126
127
|
"headers": {},
|
|
127
128
|
"handleFailure": "ignore",
|
|
128
129
|
"requestFields": {
|
|
129
|
-
"
|
|
130
|
+
"insample": "{port}"
|
|
130
131
|
},
|
|
131
132
|
"responseDatakey": "",
|
|
132
133
|
"responseFields": {
|
|
133
|
-
"name": "
|
|
134
|
-
"ostype": "
|
|
135
|
-
"ostypePrefix": "
|
|
136
|
-
"
|
|
137
|
-
"
|
|
134
|
+
"name": "{this}{||}{that}",
|
|
135
|
+
"ostype": "{osfield}",
|
|
136
|
+
"ostypePrefix": "meraki-",
|
|
137
|
+
"port": "{port}",
|
|
138
|
+
"ipaddress": "{ip_addr}",
|
|
139
|
+
"serial" : "{serial}"
|
|
138
140
|
}
|
|
139
141
|
}
|
|
140
142
|
],
|
|
141
143
|
"getDevicesFiltered": [
|
|
142
144
|
{
|
|
143
|
-
"path": "/
|
|
145
|
+
"path": "/not/mapped",
|
|
144
146
|
"method": "GET",
|
|
145
147
|
"pagination": {
|
|
146
148
|
"offsetVar": "",
|
|
@@ -155,42 +157,44 @@
|
|
|
155
157
|
"requestFields": {},
|
|
156
158
|
"responseDatakey": "",
|
|
157
159
|
"responseFields": {
|
|
158
|
-
"name": "
|
|
159
|
-
"ostype": "
|
|
160
|
-
"ostypePrefix": "
|
|
161
|
-
"
|
|
162
|
-
"
|
|
160
|
+
"name": "{this}{||}{that}",
|
|
161
|
+
"ostype": "{osfield}",
|
|
162
|
+
"ostypePrefix": "meraki-",
|
|
163
|
+
"port": "{port}",
|
|
164
|
+
"ipaddress": "{ip_addr}",
|
|
165
|
+
"serial" : "{serial}",
|
|
166
|
+
"id": "{myid}"
|
|
163
167
|
}
|
|
164
168
|
}
|
|
165
169
|
],
|
|
166
170
|
"isAlive": [
|
|
167
171
|
{
|
|
168
|
-
"path": "/
|
|
172
|
+
"path": "/not/mapped/{devID}",
|
|
169
173
|
"method": "GET",
|
|
170
174
|
"query": {},
|
|
171
175
|
"body": {},
|
|
172
176
|
"headers": {},
|
|
173
177
|
"handleFailure": "ignore",
|
|
174
178
|
"requestFields": {
|
|
175
|
-
"
|
|
179
|
+
"devID": "{id}"
|
|
176
180
|
},
|
|
177
181
|
"responseDatakey": "",
|
|
178
182
|
"responseFields": {
|
|
179
|
-
"status": "
|
|
180
|
-
"statusValue": "
|
|
183
|
+
"status": "return2xx",
|
|
184
|
+
"statusValue": "AD.200"
|
|
181
185
|
}
|
|
182
186
|
}
|
|
183
187
|
],
|
|
184
188
|
"getConfig": [
|
|
185
189
|
{
|
|
186
|
-
"path": "/
|
|
190
|
+
"path": "/not/mapped/{devID}",
|
|
187
191
|
"method": "GET",
|
|
188
192
|
"query": {},
|
|
189
193
|
"body": {},
|
|
190
194
|
"headers": {},
|
|
191
195
|
"handleFailure": "ignore",
|
|
192
196
|
"requestFields": {
|
|
193
|
-
"
|
|
197
|
+
"devID": "{id}"
|
|
194
198
|
},
|
|
195
199
|
"responseDatakey": "",
|
|
196
200
|
"responseFields": {}
|
|
@@ -198,7 +202,7 @@
|
|
|
198
202
|
],
|
|
199
203
|
"getCount": [
|
|
200
204
|
{
|
|
201
|
-
"path": "/
|
|
205
|
+
"path": "/not/mapped",
|
|
202
206
|
"method": "GET",
|
|
203
207
|
"query": {},
|
|
204
208
|
"body": {},
|
|
@@ -214,15 +218,15 @@
|
|
|
214
218
|
"enabled": false,
|
|
215
219
|
"entities": [
|
|
216
220
|
{
|
|
217
|
-
"entityType": "",
|
|
218
|
-
"frequency":
|
|
221
|
+
"entityType": "device",
|
|
222
|
+
"frequency": 3600,
|
|
219
223
|
"flushOnFail": false,
|
|
220
|
-
"limit":
|
|
224
|
+
"limit": 10000,
|
|
221
225
|
"retryAttempts": 5,
|
|
222
226
|
"sort": true,
|
|
223
227
|
"populate": [
|
|
224
228
|
{
|
|
225
|
-
"path": "",
|
|
229
|
+
"path": "/not/mapped",
|
|
226
230
|
"method": "GET",
|
|
227
231
|
"pagination": {
|
|
228
232
|
"offsetVar": "",
|
|
@@ -236,7 +240,15 @@
|
|
|
236
240
|
"handleFailure": "ignore",
|
|
237
241
|
"requestFields": {},
|
|
238
242
|
"responseDatakey": "",
|
|
239
|
-
"responseFields": {
|
|
243
|
+
"responseFields": {
|
|
244
|
+
"name": "{this}{||}{that}",
|
|
245
|
+
"ostype": "{osfield}",
|
|
246
|
+
"ostypePrefix": "meraki-",
|
|
247
|
+
"port": "{port}",
|
|
248
|
+
"ipaddress": "{ip_addr}",
|
|
249
|
+
"serial" : "{serial}",
|
|
250
|
+
"id": "{myid}"
|
|
251
|
+
}
|
|
240
252
|
}
|
|
241
253
|
],
|
|
242
254
|
"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] Six_connect 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] Six_connect 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);
|