@itentialopensource/adapter-vmware_vcenter 0.13.3 → 0.13.4

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.13.4 [09-19-2024]
3
+
4
+ * add workshop and fix vulnerabilities
5
+
6
+ See merge request itentialopensource/adapters/adapter-vmware_vcenter!29
7
+
8
+ ---
9
+
2
10
  ## 0.13.3 [08-15-2024]
3
11
 
4
12
  * Changes made at 2024.08.14_19:56PM
package/SYSTEMINFO.md CHANGED
@@ -4,7 +4,7 @@ Vendor: VMware
4
4
  Homepage: https://www.vmware.com/
5
5
 
6
6
  Product: VMware vCenter
7
- Product Page: https://www.vmware.com/products/vcenter.html
7
+ Product Page: https://www.vmware.com/products/cloud-infrastructure/vcenter
8
8
 
9
9
  ## Introduction
10
10
  We classify VMware vCenter into the Cloud domain as VMware vCenter controls/orchestrates actions within the Cloud.
package/TAB2.md CHANGED
@@ -65,9 +65,9 @@ Sample Properties can be used to help you configure the adapter in the Itential
65
65
  "protocol": "http",
66
66
  "authentication": {
67
67
  "auth_method": "request_token",
68
- "username": "exampleUsername",
69
- "password": "examplePassword",
70
- "token": "",
68
+ "username": "username",
69
+ "password": "password",
70
+ "token": "token",
71
71
  "token_timeout": 180000,
72
72
  "token_cache": "local",
73
73
  "invalid_token_error": 401,
package/metadata.json CHANGED
@@ -1,8 +1,10 @@
1
1
  {
2
2
  "name": "adapter-vmware_vcenter",
3
3
  "webName": "Adapter for Integration to VMware vCenter",
4
+ "supportLevel": "community",
4
5
  "vendor": "VMware",
5
6
  "product": "vCenter",
7
+ "techAlliance": false,
6
8
  "osVersion": [],
7
9
  "apiVersions": [],
8
10
  "iapVersions": [
@@ -52,7 +54,7 @@
52
54
  "storeLink": "",
53
55
  "npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-vmware_vcenter",
54
56
  "repoLink": "https://gitlab.com/itentialopensource/adapters/adapter-vmware_vcenter",
55
- "docLink": "https://docs.itential.com/opensource/docs/vmware-vcenter",
57
+ "docLink": "https://gitlab.com/itentialopensource/adapters/adapter-vmware_vcenter/-/blob/master/README.md?ref_type=heads",
56
58
  "demoLinks": [],
57
59
  "trainingLinks": [
58
60
  {
@@ -65,7 +67,7 @@
65
67
  "issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
66
68
  "webLink": "https://www.itential.com/adapters/vmware-vcenter/",
67
69
  "vendorLink": "https://www.vmware.com/",
68
- "productLink": "https://www.vmware.com/products/vcenter.html",
70
+ "productLink": "https://www.vmware.com/products/cloud-infrastructure/vcenter",
69
71
  "apiLinks": [
70
72
  {
71
73
  "title": "VMware - vCenter API",
@@ -84,7 +86,5 @@
84
86
  "workflowProjects": [],
85
87
  "transformationProjects": [],
86
88
  "exampleProjects": []
87
- },
88
- "supportLevel": "community",
89
- "techAlliance": false
89
+ }
90
90
  }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-vmware_vcenter",
3
- "version": "0.13.3",
3
+ "version": "0.13.4",
4
4
  "description": "This adapter integrates with system Vmware_vCenter",
5
5
  "main": "adapter.js",
6
6
  "systemName": "VMware vCenter",
7
7
  "wizardVersion": "2.44.7",
8
- "engineVersion": "1.67.20",
8
+ "engineVersion": "1.68.2",
9
9
  "adapterType": "http",
10
10
  "scripts": {
11
11
  "artifactize": "npm i && node utils/packModificationScript.js",
@@ -54,7 +54,7 @@
54
54
  "author": "Itential",
55
55
  "homepage": "https://gitlab.com/itentialopensource/adapters/adapter-vmware_vcenter#readme",
56
56
  "dependencies": {
57
- "@itentialopensource/adapter-utils": "^5.6.0",
57
+ "@itentialopensource/adapter-utils": "^5.8.0",
58
58
  "acorn": "^8.12.1",
59
59
  "ajv": "^8.17.1",
60
60
  "axios": "^1.7.4",
@@ -69,7 +69,7 @@
69
69
  "prompts": "^2.4.2",
70
70
  "readline-sync": "^1.4.10",
71
71
  "semver": "^7.6.3",
72
- "winston": "^3.13.1"
72
+ "winston": "^3.14.2"
73
73
  },
74
74
  "devDependencies": {
75
75
  "chai": "^4.3.7",
Binary file
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.13.1",
2
+ "version": "0.13.3",
3
3
  "configLines": 7087,
4
4
  "scriptLines": 1783,
5
5
  "codeLines": 9717,
6
- "testLines": 10047,
7
- "testCases": 487,
8
- "totalCodeLines": 21547,
6
+ "testLines": 10031,
7
+ "testCases": 486,
8
+ "totalCodeLines": 21531,
9
9
  "wfTasks": 123
10
10
  }
@@ -15,9 +15,9 @@
15
15
  "protocol": "http",
16
16
  "authentication": {
17
17
  "auth_method": "request_token",
18
- "username": "exampleUsername",
19
- "password": "examplePassword",
20
- "token": "",
18
+ "username": "username",
19
+ "password": "password",
20
+ "token": "token",
21
21
  "token_timeout": 180000,
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;
@@ -323,7 +327,7 @@ describe('[unit] Vmware_vCenter 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
- ---------------------------------------------------------------------------------------------