@itentialopensource/adapter-microsoft_graph 1.4.3 → 1.4.5
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +16 -0
- package/TAB2.md +2 -2
- package/metadata.json +4 -4
- package/package.json +4 -4
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +4 -4
- package/sampleProperties.json +5 -5
- package/test/integration/adapterTestConnectivity.js +0 -24
- package/test/integration/adapterTestIntegration.js +11 -7
- package/test/unit/adapterTestUnit.js +12 -8
- package/compliance-report.json +0 -9
- package/compliance-report.txt +0 -5
package/CHANGELOG.md
CHANGED
@@ -1,4 +1,20 @@
|
|
1
1
|
|
2
|
+
## 1.4.5 [10-15-2024]
|
3
|
+
|
4
|
+
* Changes made at 2024.10.14_19:50PM
|
5
|
+
|
6
|
+
See merge request itentialopensource/adapters/adapter-microsoft_graph!17
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
## 1.4.4 [09-01-2024]
|
11
|
+
|
12
|
+
* update dependencies and metadata
|
13
|
+
|
14
|
+
See merge request itentialopensource/adapters/adapter-microsoft_graph!15
|
15
|
+
|
16
|
+
---
|
17
|
+
|
2
18
|
## 1.4.3 [08-14-2024]
|
3
19
|
|
4
20
|
* Changes made at 2024.08.14_17:58PM
|
package/TAB2.md
CHANGED
@@ -84,8 +84,8 @@ Sample Properties can be used to help you configure the adapter in the Itential
|
|
84
84
|
"protocol": "https",
|
85
85
|
"authentication": {
|
86
86
|
"auth_method": "request_token",
|
87
|
-
"username": "",
|
88
|
-
"password": "",
|
87
|
+
"username": "username",
|
88
|
+
"password": "password",
|
89
89
|
"token": "token",
|
90
90
|
"token_timeout": 600000,
|
91
91
|
"token_cache": "local",
|
package/metadata.json
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"name": "adapter-microsoft_graph",
|
3
3
|
"webName": "Adapter for Integration to Microsoft Graph",
|
4
|
+
"supportLevel": "community",
|
4
5
|
"vendor": "Microsoft",
|
5
6
|
"product": "Microsoft Graph",
|
7
|
+
"techAlliance": false,
|
6
8
|
"osVersion": [],
|
7
9
|
"apiVersions": [
|
8
10
|
"1.0"
|
@@ -54,7 +56,7 @@
|
|
54
56
|
"storeLink": "",
|
55
57
|
"npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-microsoft_graph",
|
56
58
|
"repoLink": "https://gitlab.com/itentialopensource/adapters/adapter-microsoft_graph",
|
57
|
-
"docLink": "https://
|
59
|
+
"docLink": "https://gitlab.com/itentialopensource/adapters/adapter-microsoft_graph/-/blob/master/README.md?ref_type=heads",
|
58
60
|
"demoLinks": [],
|
59
61
|
"trainingLinks": [
|
60
62
|
{
|
@@ -86,7 +88,5 @@
|
|
86
88
|
"workflowProjects": [],
|
87
89
|
"transformationProjects": [],
|
88
90
|
"exampleProjects": []
|
89
|
-
}
|
90
|
-
"supportLevel": "community",
|
91
|
-
"techAlliance": false
|
91
|
+
}
|
92
92
|
}
|
package/package.json
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"name": "@itentialopensource/adapter-microsoft_graph",
|
3
|
-
"version": "1.4.
|
3
|
+
"version": "1.4.5",
|
4
4
|
"description": "This adapter integrates with system described as: microsoftGraph.",
|
5
5
|
"main": "adapter.js",
|
6
6
|
"wizardVersion": "2.44.7",
|
7
|
-
"engineVersion": "1.
|
7
|
+
"engineVersion": "1.68.2",
|
8
8
|
"adapterType": "http",
|
9
9
|
"scripts": {
|
10
10
|
"artifactize": "npm i && node utils/packModificationScript.js",
|
@@ -53,7 +53,7 @@
|
|
53
53
|
"author": "Itential",
|
54
54
|
"homepage": "https://gitlab.com/itentialopensource/adapters/adapter-microsoft_graph#readme",
|
55
55
|
"dependencies": {
|
56
|
-
"@itentialopensource/adapter-utils": "^5.
|
56
|
+
"@itentialopensource/adapter-utils": "^5.9.4",
|
57
57
|
"acorn": "^8.12.1",
|
58
58
|
"ajv": "^8.17.1",
|
59
59
|
"axios": "^1.7.4",
|
@@ -68,7 +68,7 @@
|
|
68
68
|
"prompts": "^2.4.2",
|
69
69
|
"readline-sync": "^1.4.10",
|
70
70
|
"semver": "^7.6.3",
|
71
|
-
"winston": "^3.
|
71
|
+
"winston": "^3.14.2"
|
72
72
|
},
|
73
73
|
"devDependencies": {
|
74
74
|
"chai": "^4.3.7",
|
Binary file
|
package/report/adapterInfo.json
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
{
|
2
|
-
"version": "1.4.
|
2
|
+
"version": "1.4.3",
|
3
3
|
"configLines": 11197,
|
4
4
|
"scriptLines": 1783,
|
5
5
|
"codeLines": 20708,
|
6
|
-
"testLines":
|
7
|
-
"testCases":
|
8
|
-
"totalCodeLines":
|
6
|
+
"testLines": 15553,
|
7
|
+
"testCases": 796,
|
8
|
+
"totalCodeLines": 38044,
|
9
9
|
"wfTasks": 233
|
10
10
|
}
|
package/sampleProperties.json
CHANGED
@@ -15,8 +15,8 @@
|
|
15
15
|
"protocol": "https",
|
16
16
|
"authentication": {
|
17
17
|
"auth_method": "request_token",
|
18
|
-
"username": "",
|
19
|
-
"password": "",
|
18
|
+
"username": "username",
|
19
|
+
"password": "password",
|
20
20
|
"token": "token",
|
21
21
|
"token_timeout": 600000,
|
22
22
|
"token_cache": "local",
|
@@ -138,7 +138,7 @@
|
|
138
138
|
"ostypePrefix": "meraki-",
|
139
139
|
"port": "{port}",
|
140
140
|
"ipaddress": "{ip_addr}",
|
141
|
-
"serial"
|
141
|
+
"serial": "{serial}"
|
142
142
|
}
|
143
143
|
}
|
144
144
|
],
|
@@ -164,7 +164,7 @@
|
|
164
164
|
"ostypePrefix": "meraki-",
|
165
165
|
"port": "{port}",
|
166
166
|
"ipaddress": "{ip_addr}",
|
167
|
-
"serial"
|
167
|
+
"serial": "{serial}",
|
168
168
|
"id": "{myid}"
|
169
169
|
}
|
170
170
|
}
|
@@ -248,7 +248,7 @@
|
|
248
248
|
"ostypePrefix": "meraki-",
|
249
249
|
"port": "{port}",
|
250
250
|
"ipaddress": "{ip_addr}",
|
251
|
-
"serial"
|
251
|
+
"serial": "{serial}",
|
252
252
|
"id": "{myid}"
|
253
253
|
}
|
254
254
|
}
|
@@ -4,7 +4,6 @@
|
|
4
4
|
/* eslint no-unused-vars: warn */
|
5
5
|
|
6
6
|
const assert = require('assert');
|
7
|
-
const http = require('http');
|
8
7
|
const https = require('https');
|
9
8
|
const mocha = require('mocha');
|
10
9
|
const ping = require('ping');
|
@@ -53,29 +52,6 @@ describe('[integration] Adapter Test', () => {
|
|
53
52
|
});
|
54
53
|
});
|
55
54
|
|
56
|
-
it('Support HTTP on port 80', (done) => {
|
57
|
-
const requestOptions = {
|
58
|
-
host,
|
59
|
-
port: 80,
|
60
|
-
method: 'HEAD'
|
61
|
-
};
|
62
|
-
|
63
|
-
const req = http.request(requestOptions, (res) => {
|
64
|
-
try {
|
65
|
-
assert.ok(res.statusCode >= 200 && res.statusCode < 400);
|
66
|
-
done();
|
67
|
-
} catch (error) {
|
68
|
-
done(error);
|
69
|
-
}
|
70
|
-
});
|
71
|
-
|
72
|
-
req.on('error', (err) => {
|
73
|
-
done(err);
|
74
|
-
});
|
75
|
-
|
76
|
-
req.end();
|
77
|
-
});
|
78
|
-
|
79
55
|
it('Support HTTPS on port 443', (done) => {
|
80
56
|
const requestOptions = {
|
81
57
|
host,
|
@@ -36,13 +36,17 @@ const samProps = require(`${adaptdir}/sampleProperties.json`).properties;
|
|
36
36
|
// these variables can be changed to run in integrated mode so easier to set them here
|
37
37
|
// always check these in with bogus data!!!
|
38
38
|
samProps.stub = true;
|
39
|
-
|
40
|
-
|
41
|
-
samProps.
|
42
|
-
samProps.
|
43
|
-
samProps.
|
44
|
-
samProps.
|
45
|
-
samProps.
|
39
|
+
|
40
|
+
// uncomment if connecting
|
41
|
+
// samProps.host = 'replace.hostorip.here';
|
42
|
+
// samProps.authentication.username = 'username';
|
43
|
+
// samProps.authentication.password = 'password';
|
44
|
+
// samProps.authentication.token = 'password';
|
45
|
+
// samProps.protocol = 'http';
|
46
|
+
// samProps.port = 80;
|
47
|
+
// samProps.ssl.enabled = false;
|
48
|
+
// samProps.ssl.accept_invalid_cert = false;
|
49
|
+
|
46
50
|
if (samProps.request.attempt_timeout < 30000) {
|
47
51
|
samProps.request.attempt_timeout = 30000;
|
48
52
|
}
|
@@ -36,13 +36,17 @@ const samProps = require(`${adaptdir}/sampleProperties.json`).properties;
|
|
36
36
|
// these variables can be changed to run in integrated mode so easier to set them here
|
37
37
|
// always check these in with bogus data!!!
|
38
38
|
samProps.stub = true;
|
39
|
-
|
40
|
-
|
41
|
-
samProps.
|
42
|
-
samProps.
|
43
|
-
samProps.
|
44
|
-
samProps.
|
45
|
-
samProps.
|
39
|
+
|
40
|
+
// uncomment if connecting
|
41
|
+
// samProps.host = 'replace.hostorip.here';
|
42
|
+
// samProps.authentication.username = 'username';
|
43
|
+
// samProps.authentication.password = 'password';
|
44
|
+
// samProps.authentication.token = 'password';
|
45
|
+
// samProps.protocol = 'http';
|
46
|
+
// samProps.port = 80;
|
47
|
+
// samProps.ssl.enabled = false;
|
48
|
+
// samProps.ssl.accept_invalid_cert = false;
|
49
|
+
|
46
50
|
samProps.request.attempt_timeout = 1200000;
|
47
51
|
const attemptTimeout = samProps.request.attempt_timeout;
|
48
52
|
const { stub } = samProps;
|
@@ -323,7 +327,7 @@ describe('[unit] Microsoft_graph Adapter Test', () => {
|
|
323
327
|
assert.equal('^0.4.4', packageDotJson.dependencies.ping);
|
324
328
|
assert.equal('^1.4.10', packageDotJson.dependencies['readline-sync']);
|
325
329
|
assert.equal('^7.6.3', packageDotJson.dependencies.semver);
|
326
|
-
assert.equal('^3.
|
330
|
+
assert.equal('^3.14.2', packageDotJson.dependencies.winston);
|
327
331
|
done();
|
328
332
|
} catch (error) {
|
329
333
|
log.error(`Test Failure: ${error}`);
|
package/compliance-report.json
DELETED
package/compliance-report.txt
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
---------------------------------------------------------------------------------------------
|
2
|
-
**** Project Compliance Summary ****
|
3
|
-
0 project(s) are not valid
|
4
|
-
0 project(s) are valid
|
5
|
-
---------------------------------------------------------------------------------------------
|