@itentialopensource/adapter-microsoft_graph 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 +37 -25
- package/BROKER.md +31 -19
- package/CALLS.md +2 -2
- package/CHANGELOG.md +16 -0
- package/PROPERTIES.md +5 -0
- package/README.md +60 -63
- package/SUMMARY.md +2 -2
- package/SYSTEMINFO.md +10 -3
- package/TAB1.md +17 -0
- package/TAB2.md +340 -0
- package/compliance-report.json +9 -0
- package/compliance-report.txt +5 -0
- package/metadata.json +14 -3
- 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/updateReport1717534908298.json +120 -0
- package/sampleProperties.json +37 -25
- package/test/integration/adapterTestIntegration.js +1 -0
- package/test/unit/adapterTestUnit.js +2 -4
package/sampleProperties.json
CHANGED
@@ -119,30 +119,32 @@
|
|
119
119
|
}
|
120
120
|
},
|
121
121
|
"devicebroker": {
|
122
|
+
"enabled": false,
|
122
123
|
"getDevice": [
|
123
124
|
{
|
124
|
-
"path": "/
|
125
|
+
"path": "/not/mapped",
|
125
126
|
"method": "GET",
|
126
127
|
"query": {},
|
127
128
|
"body": {},
|
128
129
|
"headers": {},
|
129
130
|
"handleFailure": "ignore",
|
130
131
|
"requestFields": {
|
131
|
-
"
|
132
|
+
"insample": "{port}"
|
132
133
|
},
|
133
134
|
"responseDatakey": "",
|
134
135
|
"responseFields": {
|
135
|
-
"name": "
|
136
|
-
"ostype": "
|
137
|
-
"ostypePrefix": "
|
138
|
-
"
|
139
|
-
"
|
136
|
+
"name": "{this}{||}{that}",
|
137
|
+
"ostype": "{osfield}",
|
138
|
+
"ostypePrefix": "meraki-",
|
139
|
+
"port": "{port}",
|
140
|
+
"ipaddress": "{ip_addr}",
|
141
|
+
"serial" : "{serial}"
|
140
142
|
}
|
141
143
|
}
|
142
144
|
],
|
143
145
|
"getDevicesFiltered": [
|
144
146
|
{
|
145
|
-
"path": "/
|
147
|
+
"path": "/not/mapped",
|
146
148
|
"method": "GET",
|
147
149
|
"pagination": {
|
148
150
|
"offsetVar": "",
|
@@ -157,42 +159,44 @@
|
|
157
159
|
"requestFields": {},
|
158
160
|
"responseDatakey": "",
|
159
161
|
"responseFields": {
|
160
|
-
"name": "
|
161
|
-
"ostype": "
|
162
|
-
"ostypePrefix": "
|
163
|
-
"
|
164
|
-
"
|
162
|
+
"name": "{this}{||}{that}",
|
163
|
+
"ostype": "{osfield}",
|
164
|
+
"ostypePrefix": "meraki-",
|
165
|
+
"port": "{port}",
|
166
|
+
"ipaddress": "{ip_addr}",
|
167
|
+
"serial" : "{serial}",
|
168
|
+
"id": "{myid}"
|
165
169
|
}
|
166
170
|
}
|
167
171
|
],
|
168
172
|
"isAlive": [
|
169
173
|
{
|
170
|
-
"path": "/
|
174
|
+
"path": "/not/mapped/{devID}",
|
171
175
|
"method": "GET",
|
172
176
|
"query": {},
|
173
177
|
"body": {},
|
174
178
|
"headers": {},
|
175
179
|
"handleFailure": "ignore",
|
176
180
|
"requestFields": {
|
177
|
-
"
|
181
|
+
"devID": "{id}"
|
178
182
|
},
|
179
183
|
"responseDatakey": "",
|
180
184
|
"responseFields": {
|
181
|
-
"status": "
|
182
|
-
"statusValue": "
|
185
|
+
"status": "return2xx",
|
186
|
+
"statusValue": "AD.200"
|
183
187
|
}
|
184
188
|
}
|
185
189
|
],
|
186
190
|
"getConfig": [
|
187
191
|
{
|
188
|
-
"path": "/
|
192
|
+
"path": "/not/mapped/{devID}",
|
189
193
|
"method": "GET",
|
190
194
|
"query": {},
|
191
195
|
"body": {},
|
192
196
|
"headers": {},
|
193
197
|
"handleFailure": "ignore",
|
194
198
|
"requestFields": {
|
195
|
-
"
|
199
|
+
"devID": "{id}"
|
196
200
|
},
|
197
201
|
"responseDatakey": "",
|
198
202
|
"responseFields": {}
|
@@ -200,7 +204,7 @@
|
|
200
204
|
],
|
201
205
|
"getCount": [
|
202
206
|
{
|
203
|
-
"path": "/
|
207
|
+
"path": "/not/mapped",
|
204
208
|
"method": "GET",
|
205
209
|
"query": {},
|
206
210
|
"body": {},
|
@@ -216,15 +220,15 @@
|
|
216
220
|
"enabled": false,
|
217
221
|
"entities": [
|
218
222
|
{
|
219
|
-
"entityType": "",
|
220
|
-
"frequency":
|
223
|
+
"entityType": "device",
|
224
|
+
"frequency": 3600,
|
221
225
|
"flushOnFail": false,
|
222
|
-
"limit":
|
226
|
+
"limit": 10000,
|
223
227
|
"retryAttempts": 5,
|
224
228
|
"sort": true,
|
225
229
|
"populate": [
|
226
230
|
{
|
227
|
-
"path": "",
|
231
|
+
"path": "/not/mapped",
|
228
232
|
"method": "GET",
|
229
233
|
"pagination": {
|
230
234
|
"offsetVar": "",
|
@@ -238,7 +242,15 @@
|
|
238
242
|
"handleFailure": "ignore",
|
239
243
|
"requestFields": {},
|
240
244
|
"responseDatakey": "",
|
241
|
-
"responseFields": {
|
245
|
+
"responseFields": {
|
246
|
+
"name": "{this}{||}{that}",
|
247
|
+
"ostype": "{osfield}",
|
248
|
+
"ostypePrefix": "meraki-",
|
249
|
+
"port": "{port}",
|
250
|
+
"ipaddress": "{ip_addr}",
|
251
|
+
"serial" : "{serial}",
|
252
|
+
"id": "{myid}"
|
253
|
+
}
|
242
254
|
}
|
243
255
|
],
|
244
256
|
"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] Microsoft_graph 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] Microsoft_graph 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);
|
@@ -563,7 +561,7 @@ describe('[unit] Microsoft_graph Adapter Test', () => {
|
|
563
561
|
log.error(`Adapter Exception: ${error}`);
|
564
562
|
done(error);
|
565
563
|
}
|
566
|
-
});
|
564
|
+
}).timeout(attemptTimeout);
|
567
565
|
});
|
568
566
|
|
569
567
|
describe('propertiesSchema.json', () => {
|