@itentialopensource/adapter-google_drive 0.5.1 → 0.5.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 CHANGED
@@ -1,4 +1,20 @@
1
1
 
2
+ ## 0.5.3 [08-27-2024]
3
+
4
+ * update dependencies and metadata
5
+
6
+ See merge request itentialopensource/adapters/adapter-google_drive!9
7
+
8
+ ---
9
+
10
+ ## 0.5.2 [08-14-2024]
11
+
12
+ * Changes made at 2024.08.14_18:18PM
13
+
14
+ See merge request itentialopensource/adapters/adapter-google_drive!8
15
+
16
+ ---
17
+
2
18
  ## 0.5.1 [08-07-2024]
3
19
 
4
20
  * Changes made at 2024.08.06_19:31PM
package/TAB2.md CHANGED
@@ -65,7 +65,7 @@ Sample Properties can be used to help you configure the adapter in the Itential
65
65
 
66
66
  ```json
67
67
  "properties": {
68
- "host": "www.googleapis.com",
68
+ "host": "localhost",
69
69
  "port": 443,
70
70
  "choosepath": "",
71
71
  "base_path": "/drive/v3",
@@ -80,7 +80,7 @@ Sample Properties can be used to help you configure the adapter in the Itential
80
80
  "auth_method": "no_authentication",
81
81
  "username": "username",
82
82
  "password": "password",
83
- "token": "",
83
+ "token": "token",
84
84
  "token_timeout": 600000,
85
85
  "token_cache": "local",
86
86
  "invalid_token_error": 401,
package/metadata.json CHANGED
@@ -1,8 +1,10 @@
1
1
  {
2
2
  "name": "adapter-google_drive",
3
3
  "webName": "Adapter for Integration to Google Drive",
4
+ "supportLevel": "community",
4
5
  "vendor": "Google",
5
6
  "product": "Drive",
7
+ "techAlliance": false,
6
8
  "osVersion": [],
7
9
  "apiVersions": [],
8
10
  "iapVersions": [
@@ -37,7 +39,7 @@
37
39
  "storeLink": "",
38
40
  "npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-google_drive",
39
41
  "repoLink": "https://gitlab.com/itentialopensource/adapters/adapter-google_drive",
40
- "docLink": "https://docs.itential.com/opensource/docs/google-drive",
42
+ "docLink": "https://gitlab.com/itentialopensource/adapters/adapter-google_drive/-/blob/master/README.md?ref_type=heads",
41
43
  "demoLinks": [],
42
44
  "trainingLinks": [
43
45
  {
@@ -57,7 +59,9 @@
57
59
  "link": "https://developers.google.com/drive/api/reference/rest/v3",
58
60
  "public": true
59
61
  }
60
- ]
62
+ ],
63
+ "workshopLinks": [],
64
+ "workshopHomePage": "https://www.itential.com/get-started/"
61
65
  },
62
66
  "assets": [],
63
67
  "relatedItems": {
@@ -67,6 +71,5 @@
67
71
  "workflowProjects": [],
68
72
  "transformationProjects": [],
69
73
  "exampleProjects": []
70
- },
71
- "supportLevel": "community"
74
+ }
72
75
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-google_drive",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "description": "This adapter integrates with system described as: google drive",
5
5
  "main": "adapter.js",
6
6
  "wizardVersion": "2.44.7",
7
- "engineVersion": "1.67.20",
7
+ "engineVersion": "1.68.2",
8
8
  "adapterType": "http",
9
9
  "scripts": {
10
10
  "artifactize": "npm i && node utils/packModificationScript.js",
@@ -54,23 +54,23 @@
54
54
  "author": "Itential",
55
55
  "homepage": "https://gitlab.com/itentialopensource/adapters/adapter-google_drive#readme",
56
56
  "dependencies": {
57
- "@itentialopensource/adapter-utils": "^5.6.0",
57
+ "@itentialopensource/adapter-utils": "^5.7.0",
58
58
  "acorn": "^8.12.1",
59
59
  "ajv": "^8.17.1",
60
- "axios": "^1.7.2",
60
+ "axios": "^1.7.4",
61
61
  "commander": "^11.0.0",
62
62
  "dns-lookup-promise": "^1.0.4",
63
63
  "fs-extra": "^11.2.0",
64
64
  "gtoken": "^5.3.2",
65
65
  "json-query": "^2.2.2",
66
- "mocha": "^10.7.0",
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.13.1"
73
+ "winston": "^3.14.2"
74
74
  },
75
75
  "devDependencies": {
76
76
  "chai": "^4.3.7",
Binary file
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.4.3",
2
+ "version": "0.5.2",
3
3
  "configLines": 13248,
4
4
  "scriptLines": 1783,
5
5
  "codeLines": 6688,
6
- "testLines": 6975,
7
- "testCases": 294,
8
- "totalCodeLines": 15446,
6
+ "testLines": 6959,
7
+ "testCases": 293,
8
+ "totalCodeLines": 15430,
9
9
  "wfTasks": 71
10
10
  }
@@ -2,7 +2,7 @@
2
2
  "id": "google_drive",
3
3
  "type": "GoogleDrive",
4
4
  "properties": {
5
- "host": "www.googleapis.com",
5
+ "host": "localhost",
6
6
  "port": 443,
7
7
  "choosepath": "",
8
8
  "base_path": "/drive/v3",
@@ -17,7 +17,7 @@
17
17
  "auth_method": "no_authentication",
18
18
  "username": "username",
19
19
  "password": "password",
20
- "token": "",
20
+ "token": "token",
21
21
  "token_timeout": 600000,
22
22
  "token_cache": "local",
23
23
  "invalid_token_error": 401,
@@ -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
- samProps.host = 'replace.hostorip.here';
40
- samProps.authentication.username = 'username';
41
- samProps.authentication.password = 'password';
42
- samProps.protocol = 'http';
43
- samProps.port = 80;
44
- samProps.ssl.enabled = false;
45
- samProps.ssl.accept_invalid_cert = false;
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
- samProps.host = 'replace.hostorip.here';
40
- samProps.authentication.username = 'username';
41
- samProps.authentication.password = 'password';
42
- samProps.protocol = 'http';
43
- samProps.port = 80;
44
- samProps.ssl.enabled = false;
45
- samProps.ssl.accept_invalid_cert = false;
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] Google_drive 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.2', packageDotJson.dependencies.axios);
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.0', packageDotJson.dependencies.mocha);
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.13.1', packageDotJson.dependencies.winston);
330
+ assert.equal('^3.14.2', packageDotJson.dependencies.winston);
327
331
  done();
328
332
  } catch (error) {
329
333
  log.error(`Test Failure: ${error}`);