@itentialopensource/adapter-microsoft_office365 0.3.1 → 0.3.3
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/CHANGELOG.md +16 -0
- package/TAB2.md +1 -1
- package/metadata.json +7 -4
- package/package.json +6 -6
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +4 -4
- package/sampleProperties.json +4 -4
- package/test/integration/adapterTestConnectivity.js +0 -24
- package/test/integration/adapterTestIntegration.js +11 -7
- package/test/unit/adapterTestUnit.js +15 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
|
|
2
|
+
## 0.3.3 [09-01-2024]
|
|
3
|
+
|
|
4
|
+
* update dependencies and metadata
|
|
5
|
+
|
|
6
|
+
See merge request itentialopensource/adapters/adapter-microsoft_office365!12
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 0.3.2 [08-14-2024]
|
|
11
|
+
|
|
12
|
+
* Changes made at 2024.08.14_18:45PM
|
|
13
|
+
|
|
14
|
+
See merge request itentialopensource/adapters/adapter-microsoft_office365!11
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
2
18
|
## 0.3.1 [08-07-2024]
|
|
3
19
|
|
|
4
20
|
* Changes made at 2024.08.06_19:58PM
|
package/TAB2.md
CHANGED
package/metadata.json
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adapter-microsoft_office365",
|
|
3
3
|
"webName": "Adapter for Integration to Microsoft Office 365",
|
|
4
|
+
"supportLevel": "community",
|
|
4
5
|
"vendor": "Microsoft",
|
|
5
6
|
"product": "Office 365",
|
|
7
|
+
"techAlliance": false,
|
|
6
8
|
"osVersion": [],
|
|
7
9
|
"apiVersions": [
|
|
8
10
|
"v1.0"
|
|
@@ -41,7 +43,7 @@
|
|
|
41
43
|
"storeLink": "",
|
|
42
44
|
"npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-microsoft_office365",
|
|
43
45
|
"repoLink": "https://gitlab.com/itentialopensource/adapters/adapter-microsoft_office365",
|
|
44
|
-
"docLink": "",
|
|
46
|
+
"docLink": "https://gitlab.com/itentialopensource/adapters/adapter-microsoft_office365/-/blob/master/README.md?ref_type=heads",
|
|
45
47
|
"demoLinks": [],
|
|
46
48
|
"trainingLinks": [
|
|
47
49
|
{
|
|
@@ -61,7 +63,9 @@
|
|
|
61
63
|
"link": "https://learn.microsoft.com/en-us/previous-versions/office/office-365-api/",
|
|
62
64
|
"public": true
|
|
63
65
|
}
|
|
64
|
-
]
|
|
66
|
+
],
|
|
67
|
+
"workshopLinks": [],
|
|
68
|
+
"workshopHomePage": "https://www.itential.com/get-started/"
|
|
65
69
|
},
|
|
66
70
|
"assets": [],
|
|
67
71
|
"relatedItems": {
|
|
@@ -71,6 +75,5 @@
|
|
|
71
75
|
"workflowProjects": [],
|
|
72
76
|
"transformationProjects": [],
|
|
73
77
|
"exampleProjects": []
|
|
74
|
-
}
|
|
75
|
-
"supportLevel": "community"
|
|
78
|
+
}
|
|
76
79
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-microsoft_office365",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "This adapter integrates with system described as: odataServiceForNamespaceMicrosoft.graph.",
|
|
5
5
|
"main": "adapter.js",
|
|
6
6
|
"systemName": "Microsoft Office 365",
|
|
7
7
|
"wizardVersion": "2.44.7",
|
|
8
|
-
"engineVersion": "1.
|
|
8
|
+
"engineVersion": "1.68.2",
|
|
9
9
|
"adapterType": "http",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"artifactize": "npm i && node utils/packModificationScript.js",
|
|
@@ -55,22 +55,22 @@
|
|
|
55
55
|
"author": "Itential",
|
|
56
56
|
"homepage": "https://gitlab.com/itentialopensource/adapters/adapter-microsoft_office365#readme",
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@itentialopensource/adapter-utils": "^5.
|
|
58
|
+
"@itentialopensource/adapter-utils": "^5.7.0",
|
|
59
59
|
"acorn": "^8.12.1",
|
|
60
60
|
"ajv": "^8.17.1",
|
|
61
|
-
"axios": "^1.7.
|
|
61
|
+
"axios": "^1.7.4",
|
|
62
62
|
"commander": "^11.0.0",
|
|
63
63
|
"dns-lookup-promise": "^1.0.4",
|
|
64
64
|
"fs-extra": "^11.2.0",
|
|
65
65
|
"json-query": "^2.2.2",
|
|
66
|
-
"mocha": "^10.7.
|
|
66
|
+
"mocha": "^10.7.3",
|
|
67
67
|
"mocha-param": "^2.0.1",
|
|
68
68
|
"mongodb": "^4.16.0",
|
|
69
69
|
"ping": "^0.4.4",
|
|
70
70
|
"prompts": "^2.4.2",
|
|
71
71
|
"readline-sync": "^1.4.10",
|
|
72
72
|
"semver": "^7.6.3",
|
|
73
|
-
"winston": "^3.
|
|
73
|
+
"winston": "^3.14.2"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@babel/helper-function-name": "^7.14.2",
|
|
Binary file
|
package/report/adapterInfo.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.2
|
|
2
|
+
"version": "0.3.2",
|
|
3
3
|
"configLines": 3285,
|
|
4
4
|
"scriptLines": 1783,
|
|
5
5
|
"codeLines": 3012,
|
|
6
|
-
"testLines":
|
|
7
|
-
"testCases":
|
|
8
|
-
"totalCodeLines":
|
|
6
|
+
"testLines": 3766,
|
|
7
|
+
"testCases": 176,
|
|
8
|
+
"totalCodeLines": 8561,
|
|
9
9
|
"wfTasks": 35
|
|
10
10
|
}
|
package/sampleProperties.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "Adapter-microsoft_office365",
|
|
3
3
|
"type": "MicrosoftOffice365",
|
|
4
4
|
"properties": {
|
|
5
|
-
"host": "
|
|
5
|
+
"host": "localhost",
|
|
6
6
|
"port": 443,
|
|
7
7
|
"choosepath": "",
|
|
8
8
|
"base_path": "",
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"ostypePrefix": "meraki-",
|
|
137
137
|
"port": "{port}",
|
|
138
138
|
"ipaddress": "{ip_addr}",
|
|
139
|
-
"serial"
|
|
139
|
+
"serial": "{serial}"
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
],
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
"ostypePrefix": "meraki-",
|
|
163
163
|
"port": "{port}",
|
|
164
164
|
"ipaddress": "{ip_addr}",
|
|
165
|
-
"serial"
|
|
165
|
+
"serial": "{serial}",
|
|
166
166
|
"id": "{myid}"
|
|
167
167
|
}
|
|
168
168
|
}
|
|
@@ -246,7 +246,7 @@
|
|
|
246
246
|
"ostypePrefix": "meraki-",
|
|
247
247
|
"port": "{port}",
|
|
248
248
|
"ipaddress": "{ip_addr}",
|
|
249
|
-
"serial"
|
|
249
|
+
"serial": "{serial}",
|
|
250
250
|
"id": "{myid}"
|
|
251
251
|
}
|
|
252
252
|
}
|
|
@@ -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;
|
|
@@ -315,15 +319,15 @@ describe('[unit] MicrosoftOffice365 Adapter Test', () => {
|
|
|
315
319
|
assert.notEqual(null, packageDotJson.dependencies);
|
|
316
320
|
assert.notEqual('', packageDotJson.dependencies);
|
|
317
321
|
assert.equal('^8.17.1', packageDotJson.dependencies.ajv);
|
|
318
|
-
assert.equal('^1.7.
|
|
322
|
+
assert.equal('^1.7.4', packageDotJson.dependencies.axios);
|
|
319
323
|
assert.equal('^11.0.0', packageDotJson.dependencies.commander);
|
|
320
324
|
assert.equal('^11.2.0', packageDotJson.dependencies['fs-extra']);
|
|
321
|
-
assert.equal('^10.7.
|
|
325
|
+
assert.equal('^10.7.3', packageDotJson.dependencies.mocha);
|
|
322
326
|
assert.equal('^2.0.1', packageDotJson.dependencies['mocha-param']);
|
|
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}`);
|
|
@@ -561,7 +565,7 @@ describe('[unit] MicrosoftOffice365 Adapter Test', () => {
|
|
|
561
565
|
log.error(`Adapter Exception: ${error}`);
|
|
562
566
|
done(error);
|
|
563
567
|
}
|
|
564
|
-
});
|
|
568
|
+
}).timeout(attemptTimeout);
|
|
565
569
|
});
|
|
566
570
|
|
|
567
571
|
describe('propertiesSchema.json', () => {
|