@itentialopensource/adapter-oracle_cloud 0.4.2 → 0.4.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,12 @@
1
1
 
2
+ ## 0.4.3 [09-14-2024]
3
+
4
+ * add workshop and fix vulnerabilities
5
+
6
+ See merge request itentialopensource/adapters/adapter-oracle_cloud!11
7
+
8
+ ---
9
+
2
10
  ## 0.4.2 [08-14-2024]
3
11
 
4
12
  * Changes made at 2024.08.14_18:23PM
package/TAB2.md CHANGED
@@ -95,8 +95,8 @@ Sample Properties can be used to help you configure the adapter in the Itential
95
95
  "protocol": "https",
96
96
  "authentication": {
97
97
  "auth_method": "request_token",
98
- "username": "clientId",
99
- "password": "clientSecret",
98
+ "username": "username",
99
+ "password": "password",
100
100
  "token": "token",
101
101
  "token_timeout": 1800000,
102
102
  "token_cache": "local",
package/metadata.json CHANGED
@@ -1,8 +1,10 @@
1
1
  {
2
2
  "name": "adapter-oracle_cloud",
3
3
  "webName": "Adapter for Integration to Oracle Cloud",
4
+ "supportLevel": "community",
4
5
  "vendor": "Oracle",
5
6
  "product": "Cloud",
7
+ "techAlliance": false,
6
8
  "osVersion": [],
7
9
  "apiVersions": [],
8
10
  "iapVersions": [
@@ -56,7 +58,7 @@
56
58
  "storeLink": "",
57
59
  "npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-oracle_cloud",
58
60
  "repoLink": "https://gitlab.com/itentialopensource/adapters/adapter-oracle_cloud",
59
- "docLink": "https://docs.itential.com/opensource/docs/oracle-cloud",
61
+ "docLink": "https://gitlab.com/itentialopensource/adapters/adapter-oracle_cloud/-/blob/master/README.md?ref_type=heads",
60
62
  "demoLinks": [],
61
63
  "trainingLinks": [
62
64
  {
@@ -67,7 +69,7 @@
67
69
  "faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
68
70
  "contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
69
71
  "issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
70
- "webLink": "",
72
+ "webLink": "https://www.itential.com/adapters/oracle-cloud/",
71
73
  "vendorLink": "https://www.oracle.com/",
72
74
  "productLink": "https://www.oracle.com/cloud/",
73
75
  "apiLinks": [
@@ -88,7 +90,5 @@
88
90
  "workflowProjects": [],
89
91
  "transformationProjects": [],
90
92
  "exampleProjects": []
91
- },
92
- "supportLevel": "community",
93
- "techAlliance": false
93
+ }
94
94
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-oracle_cloud",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "This adapter integrates with system described as: restApiForDocuments.",
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",
@@ -52,7 +52,7 @@
52
52
  "author": "Itential",
53
53
  "homepage": "https://gitlab.com/itentialopensource/adapters/adapter-oracle_cloud#readme",
54
54
  "dependencies": {
55
- "@itentialopensource/adapter-utils": "^5.6.0",
55
+ "@itentialopensource/adapter-utils": "^5.8.0",
56
56
  "acorn": "^8.12.1",
57
57
  "ajv": "^8.17.1",
58
58
  "axios": "^1.7.4",
@@ -67,7 +67,7 @@
67
67
  "prompts": "^2.4.2",
68
68
  "readline-sync": "^1.4.10",
69
69
  "semver": "^7.6.3",
70
- "winston": "^3.13.1"
70
+ "winston": "^3.14.2"
71
71
  },
72
72
  "devDependencies": {
73
73
  "chai": "^4.3.7",
Binary file
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.3.3",
2
+ "version": "0.4.2",
3
3
  "configLines": 12794,
4
4
  "scriptLines": 1783,
5
5
  "codeLines": 12805,
6
- "testLines": 10700,
7
- "testCases": 535,
8
- "totalCodeLines": 25288,
6
+ "testLines": 10684,
7
+ "testCases": 534,
8
+ "totalCodeLines": 25272,
9
9
  "wfTasks": 140
10
10
  }
@@ -15,8 +15,8 @@
15
15
  "protocol": "https",
16
16
  "authentication": {
17
17
  "auth_method": "request_token",
18
- "username": "clientId",
19
- "password": "clientSecret",
18
+ "username": "username",
19
+ "password": "password",
20
20
  "token": "token",
21
21
  "token_timeout": 1800000,
22
22
  "token_cache": "local",
@@ -136,7 +136,7 @@
136
136
  "ostypePrefix": "meraki-",
137
137
  "port": "{port}",
138
138
  "ipaddress": "{ip_addr}",
139
- "serial" : "{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" : "{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" : "{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
- 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;
@@ -323,7 +327,7 @@ describe('[unit] OracleCloud 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.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}`);
@@ -1,9 +0,0 @@
1
- {
2
- "ComplianceEntries": [
3
- {
4
- "name": "Compliance Summary",
5
- "numInvalidProjects": 0,
6
- "numValidProjects": 0
7
- }
8
- ]
9
- }
@@ -1,5 +0,0 @@
1
- ---------------------------------------------------------------------------------------------
2
- **** Project Compliance Summary ****
3
- 0 project(s) are not valid
4
- 0 project(s) are valid
5
- ---------------------------------------------------------------------------------------------