@itentialopensource/adapter-vmware_vcenter 0.8.2 → 0.10.0
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/AUTH.md +10 -13
- package/CALLS.md +655 -22
- package/CHANGELOG.md +16 -0
- package/CONTRIBUTING.md +1 -160
- package/ENHANCE.md +2 -2
- package/README.md +32 -23
- package/SYSTEMINFO.md +13 -4
- package/adapter.js +157 -329
- package/adapterBase.js +549 -879
- package/changelogs/changelog.md +187 -0
- package/metadata.json +60 -0
- package/package.json +24 -24
- package/pronghorn.json +974 -635
- package/propertiesSchema.json +422 -31
- package/refs?service=git-upload-pack +0 -0
- package/report/adapter-openapi.json +4014 -0
- package/report/adapter-openapi.yaml +3108 -0
- package/report/adapterInfo.json +8 -8
- package/report/updateReport1691507527594.json +120 -0
- package/report/updateReport1692202545966.json +120 -0
- package/report/updateReport1694461552745.json +120 -0
- package/sampleProperties.json +63 -2
- package/test/integration/adapterTestBasicGet.js +2 -4
- package/test/integration/adapterTestConnectivity.js +91 -42
- package/test/integration/adapterTestIntegration.js +130 -2
- package/test/unit/adapterBaseTestUnit.js +388 -313
- package/test/unit/adapterTestUnit.js +338 -112
- package/utils/adapterInfo.js +1 -1
- package/utils/addAuth.js +1 -1
- package/utils/artifactize.js +1 -1
- package/utils/checkMigrate.js +1 -1
- package/utils/entitiesToDB.js +2 -2
- package/utils/findPath.js +1 -1
- package/utils/methodDocumentor.js +260 -0
- package/utils/modify.js +13 -15
- package/utils/packModificationScript.js +1 -1
- package/utils/pre-commit.sh +2 -0
- package/utils/taskMover.js +309 -0
- package/utils/tbScript.js +89 -34
- package/utils/tbUtils.js +41 -21
- package/utils/testRunner.js +1 -1
- package/utils/troubleshootingAdapter.js +9 -6
- package/workflows/README.md +0 -3
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
|
|
2
|
+
## 0.8.2 [12-20-2022]
|
|
3
|
+
|
|
4
|
+
* remove-required-fields-in-schemaTokenReq
|
|
5
|
+
|
|
6
|
+
See merge request itentialopensource/adapters/cloud/adapter-vmware_vcenter!17
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 0.8.1 [12-14-2022]
|
|
11
|
+
|
|
12
|
+
* remove-required-fields-in-schemaTokenReq
|
|
13
|
+
|
|
14
|
+
See merge request itentialopensource/adapters/cloud/adapter-vmware_vcenter!17
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## 0.8.0 [05-16-2022]
|
|
19
|
+
|
|
20
|
+
* Migration to the latest Adapter Foundation
|
|
21
|
+
|
|
22
|
+
See merge request itentialopensource/adapters/cloud/adapter-vmware_vcenter!16
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 0.7.0 [01-24-2022]
|
|
27
|
+
|
|
28
|
+
- Add some items to .gitignore (e.g. DS_Store) to keep them out of the repos.
|
|
29
|
+
- Changes to the README (some typo fixes - Add how to extend the adapter). Split the README into various markdown files (AUTH, BROKER, CALLS, ENHANCE, PROPERTIES, SUMMARY, SYSTEMINFO, TROUBLESHOOT)
|
|
30
|
+
- Fix the issues with Confluence in the markdowns (Tables, Lists, Links)
|
|
31
|
+
- Add scripts for easier authentication, removing hooks, etc
|
|
32
|
+
- Script changes (install script as well as database changes in other scripts)
|
|
33
|
+
- Double # of path vars on generic call
|
|
34
|
+
- Update versions of foundation (e.g. adapter-utils)
|
|
35
|
+
- Update npm publish so it supports https
|
|
36
|
+
- Update dependencies
|
|
37
|
+
- Add preinstall for minimist
|
|
38
|
+
- Fix new lint issues that came from eslint dependency change
|
|
39
|
+
- Add more thorough Unit tests for standard files (Package, Pronghorn, Properties (Schema and Sample)
|
|
40
|
+
- Add the adapter type in the package.json
|
|
41
|
+
- Add AdapterInfo.js script
|
|
42
|
+
- Add json-query dependency
|
|
43
|
+
- Add the propertiesDecorators.json for product encryption
|
|
44
|
+
-Change the name of internal IAP/Adapter methods to avoid collisions and make more obvious in Workflow - iapRunAdapterBasicGet, iapRunAdapterConnectivity, iapRunAdapterHealthcheck, iapTroubleshootAdapter, iapGetAdapterQueue, iapUnsuspendAdapter, iapSuspendAdapter, iapFindAdapterPath, iapUpdateAdapterConfiguration, iapGetAdapterWorkflowFunctions
|
|
45
|
+
- Add the adapter config in the database support - iapMoveAdapterEntitiesToDB
|
|
46
|
+
- Add standard broker calls - hasEntities, getDevice, getDevicesFiltered, isAlive, getConfig and iapGetDeviceCount
|
|
47
|
+
- Add genericAdapterRequest that does not use the base_path and version so that the path can be unique - genericAdapterRequestNoBasePath
|
|
48
|
+
- Add AdapterInfo.json
|
|
49
|
+
- Add systemName for documentation
|
|
50
|
+
|
|
51
|
+
See merge request itentialopensource/adapters/cloud/adapter-vmware_vcenter!15
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## 0.6.0 [08-02-2021]
|
|
56
|
+
|
|
57
|
+
- Add call for postVcentervmtemplatedeploy
|
|
58
|
+
|
|
59
|
+
See merge request itentialopensource/adapters/cloud/adapter-vmware_vcenter!14
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## 0.5.5 [03-16-2021]
|
|
64
|
+
|
|
65
|
+
- migration to bring up to the latest foundation
|
|
66
|
+
- Change to .eslintignore (adapter_modification directory)
|
|
67
|
+
- Change to README.md (new properties, new scripts, new processes)
|
|
68
|
+
- Changes to adapterBase.js (new methods)
|
|
69
|
+
- Changes to package.json (new scripts, dependencies)
|
|
70
|
+
- Changes to propertiesSchema.json (new properties and changes to existing)
|
|
71
|
+
- Changes to the Unit test
|
|
72
|
+
- Adding several test files, utils files and .generic entity
|
|
73
|
+
- Fix order of scripts and dependencies in package.json
|
|
74
|
+
- Fix order of properties in propertiesSchema.json
|
|
75
|
+
- Update sampleProperties, unit and integration tests to have all new properties.
|
|
76
|
+
- Add all new calls to adapter.js and pronghorn.json
|
|
77
|
+
- Add suspend piece to older methods
|
|
78
|
+
|
|
79
|
+
See merge request itentialopensource/adapters/cloud/adapter-vmware_vcenter!12
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## 0.5.4 [07-09-2020]
|
|
84
|
+
|
|
85
|
+
- Update to the latest adapter foundation
|
|
86
|
+
|
|
87
|
+
See merge request itentialopensource/adapters/cloud/adapter-vmware_vcenter!11
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## 0.5.3 [06-25-2020]
|
|
92
|
+
|
|
93
|
+
- Changed the filters so that they are being sent on the request properly
|
|
94
|
+
Tested
|
|
95
|
+
|
|
96
|
+
See merge request itentialopensource/adapters/cloud/adapter-vmware_vcenter!10
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## 0.5.2 [06-23-2020] & 0.5.1 [01-16-2020]
|
|
101
|
+
|
|
102
|
+
- Update the adapter to the latest foundation
|
|
103
|
+
|
|
104
|
+
See merge request itentialopensource/adapters/cloud/adapter-vmware_vcenter!9
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## 0.5.0 [11-08-2019] & 0.4.0 [11-08-2019]
|
|
109
|
+
|
|
110
|
+
- Update the adapter to the latest adapter foundation.
|
|
111
|
+
- Updating to adapter-utils 4.24.3 (automatic)
|
|
112
|
+
- Add sample token schemas (manual)
|
|
113
|
+
- Adding placement property to getToken response schema (manual - before encrypt)
|
|
114
|
+
- Adding sso default into action.json for getToken (manual - before response object)
|
|
115
|
+
- Add new adapter properties for metrics & mock (save_metric, mongo and return_raw) (automatic - check place manual before stub)
|
|
116
|
+
- Update sample properties to include new properties (manual)
|
|
117
|
+
- Update integration test for raw mockdata (automatic)
|
|
118
|
+
- Update test properties (manual)
|
|
119
|
+
- Changes to artifactize (automatic)
|
|
120
|
+
- Update type in sampleProperties so it is correct for the adapter (manual)
|
|
121
|
+
- Update the readme (automatic)
|
|
122
|
+
|
|
123
|
+
See merge request itentialopensource/adapters/cloud/adapter-vmware_vcenter!8
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## 0.3.0 [09-14-2019]
|
|
128
|
+
|
|
129
|
+
- Update the adapter to the latest foundation
|
|
130
|
+
|
|
131
|
+
See merge request itentialopensource/adapters/cloud/adapter-vmware_vcenter!7
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
## 0.2.8 [07-30-2019] & 0.2.7 [07-16-2019] & 0.2.6 [07-15-2019] & 0.2.5 [07-15-2019]
|
|
135
|
+
|
|
136
|
+
- Bug fixes and performance improvements. Patch/another artifact
|
|
137
|
+
|
|
138
|
+
See merge request itentialopensource/adapters/cloud/adapter-vmware_vcenter!6
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## 0.2.4 [07-15-2019] & 0.2.3 [07-15-2019]
|
|
143
|
+
|
|
144
|
+
- touch ups for artifact
|
|
145
|
+
|
|
146
|
+
See merge request itentialopensource/adapters/cloud/adapter-vmware_vcenter!5
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## 0.2.2 [07-15-2019]
|
|
151
|
+
|
|
152
|
+
- Test in running pipeline and having things be correct
|
|
153
|
+
|
|
154
|
+
See merge request itentialopensource/adapters/cloud/adapter-vmware_vcenter!4
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## 0.2.1 [07-11-2019]
|
|
159
|
+
|
|
160
|
+
- Merge pipeline changes into master for App Artifact
|
|
161
|
+
|
|
162
|
+
See merge request itentialopensource/adapters/cloud/adapter-vmware_vcenter!3
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
## 0.2.0 [07-11-2019]
|
|
167
|
+
|
|
168
|
+
- Migrate the adapter to latest, categroize, and add artifact support
|
|
169
|
+
|
|
170
|
+
See merge request itentialopensource/adapters/cloud/adapter-vmware_vcenter!2
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
## 0.1.2 [04-23-2019]
|
|
175
|
+
- Name can not have uppercase letters
|
|
176
|
+
|
|
177
|
+
See merge request itentialopensource/adapters/adapter-vmware_vcenter!1
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## 0.1.1 [04-23-2019]
|
|
182
|
+
|
|
183
|
+
- Initial Commit
|
|
184
|
+
|
|
185
|
+
See commit e7c510a
|
|
186
|
+
|
|
187
|
+
---
|
package/metadata.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "adapter-vmware_vcenter",
|
|
3
|
+
"webName": "Adapter for Integration to VMware vCenter",
|
|
4
|
+
"vendor": "VMware",
|
|
5
|
+
"product": "vCenter",
|
|
6
|
+
"osVersion": [],
|
|
7
|
+
"apiVersions": [],
|
|
8
|
+
"iapVersions": [
|
|
9
|
+
"2021.1.x",
|
|
10
|
+
"2021.2.x",
|
|
11
|
+
"2022.1.x",
|
|
12
|
+
"2023.1.x"
|
|
13
|
+
],
|
|
14
|
+
"method": "REST",
|
|
15
|
+
"type": "Adapter",
|
|
16
|
+
"domains": [
|
|
17
|
+
"Cloud"
|
|
18
|
+
],
|
|
19
|
+
"tags": [
|
|
20
|
+
"Virtual Compute"
|
|
21
|
+
],
|
|
22
|
+
"useCases": [
|
|
23
|
+
"Add or remove Virtual Machine Images",
|
|
24
|
+
"Instantiate, manage, remove Virtual Machine Instances",
|
|
25
|
+
"Deploy Virtual Services and Functions",
|
|
26
|
+
"Determine available Cloud Resources",
|
|
27
|
+
"Assign resources to Virtual Machine Instances",
|
|
28
|
+
"Management of Cloud Network Assignments",
|
|
29
|
+
"Management of Cloud Storage"
|
|
30
|
+
],
|
|
31
|
+
"deprecated": {
|
|
32
|
+
"isDeprecated": false
|
|
33
|
+
},
|
|
34
|
+
"brokerSince": "",
|
|
35
|
+
"documentation": {
|
|
36
|
+
"storeLink": "",
|
|
37
|
+
"npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-vmware_vcenter",
|
|
38
|
+
"repoLink": "https://gitlab.com/itentialopensource/adapters/cloud/adapter-vmware_vcenter.git",
|
|
39
|
+
"docLink": "https://docs.itential.com/opensource/docs/vmware-vcenter",
|
|
40
|
+
"demoLinks": [],
|
|
41
|
+
"faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
|
|
42
|
+
"contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
|
|
43
|
+
"issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
|
|
44
|
+
"webLink": "https://www.itential.com/adapters/vmware-vcenter/",
|
|
45
|
+
"vendorLink": "https://www.vmware.com/",
|
|
46
|
+
"productLink": "https://www.vmware.com/products/vcenter.html",
|
|
47
|
+
"apiLinks": [
|
|
48
|
+
"https://developer.vmware.com/apis/vsphere-automation/latest/vcenter/"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"assets": [],
|
|
52
|
+
"relatedItems": {
|
|
53
|
+
"adapters": [],
|
|
54
|
+
"integrations": [],
|
|
55
|
+
"ecosystemApplications": [],
|
|
56
|
+
"workflowProjects": [],
|
|
57
|
+
"transformationProjects": [],
|
|
58
|
+
"exampleProjects": []
|
|
59
|
+
}
|
|
60
|
+
}
|
package/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-vmware_vcenter",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
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.
|
|
8
|
+
"engineVersion": "1.67.8",
|
|
9
9
|
"adapterType": "http",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"artifactize": "npm i && node utils/packModificationScript.js",
|
|
12
|
-
"preinstall": "node utils/setup.js
|
|
12
|
+
"preinstall": "node utils/setup.js",
|
|
13
|
+
"deinstall": "node utils/removeHooks.js",
|
|
13
14
|
"lint": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js",
|
|
14
15
|
"lint:errors": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js --quiet",
|
|
15
16
|
"test:baseunit": "mocha test/unit/adapterBaseTestUnit.js --LOG=error",
|
|
@@ -23,7 +24,7 @@
|
|
|
23
24
|
"adapter:migrate": "node utils/modify.js -m",
|
|
24
25
|
"adapter:update": "node utils/modify.js -u",
|
|
25
26
|
"adapter:revert": "node utils/modify.js -r",
|
|
26
|
-
"troubleshoot": "node utils/tbScript.js",
|
|
27
|
+
"troubleshoot": "node utils/tbScript.js troubleshoot",
|
|
27
28
|
"healthcheck": "node utils/tbScript.js healthcheck",
|
|
28
29
|
"basicget": "node utils/tbScript.js basicget",
|
|
29
30
|
"connectivity": "node utils/tbScript.js connectivity",
|
|
@@ -54,32 +55,31 @@
|
|
|
54
55
|
"author": "Itential",
|
|
55
56
|
"homepage": "https://gitlab.com/itentialopensource/adapters/cloud/adapter-vmware_vcenter#readme",
|
|
56
57
|
"dependencies": {
|
|
57
|
-
"@itentialopensource/adapter-utils": "^
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
58
|
+
"@itentialopensource/adapter-utils": "^5.1.7",
|
|
59
|
+
"acorn": "^8.10.0",
|
|
60
|
+
"ajv": "^8.12.0",
|
|
61
|
+
"axios": "^1.4.0",
|
|
62
|
+
"commander": "^11.0.0",
|
|
63
|
+
"dns-lookup-promise": "^1.0.4",
|
|
64
|
+
"fs-extra": "^11.1.1",
|
|
62
65
|
"json-query": "^2.2.2",
|
|
63
|
-
"mocha": "^
|
|
66
|
+
"mocha": "^10.2.0",
|
|
64
67
|
"mocha-param": "^2.0.1",
|
|
65
|
-
"mongodb": "^4.
|
|
66
|
-
"network-diagnostics": "^0.5.3",
|
|
68
|
+
"mongodb": "^4.16.0",
|
|
67
69
|
"nyc": "^15.1.0",
|
|
70
|
+
"ping": "^0.4.4",
|
|
71
|
+
"prompts": "^2.4.2",
|
|
68
72
|
"readline-sync": "^1.4.10",
|
|
69
|
-
"semver": "^7.3
|
|
70
|
-
"winston": "^3.
|
|
73
|
+
"semver": "^7.5.3",
|
|
74
|
+
"winston": "^3.9.0"
|
|
71
75
|
},
|
|
72
76
|
"devDependencies": {
|
|
73
|
-
"chai": "^4.3.
|
|
74
|
-
"eslint": "^
|
|
75
|
-
"eslint-config-airbnb-base": "^
|
|
76
|
-
"eslint-plugin-import": "^2.
|
|
77
|
-
"eslint-plugin-json": "^3.
|
|
78
|
-
"
|
|
79
|
-
"testdouble": "^3.16.1"
|
|
80
|
-
},
|
|
81
|
-
"resolutions": {
|
|
82
|
-
"minimist": "^1.2.5"
|
|
77
|
+
"chai": "^4.3.7",
|
|
78
|
+
"eslint": "^8.44.0",
|
|
79
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
80
|
+
"eslint-plugin-import": "^2.27.5",
|
|
81
|
+
"eslint-plugin-json": "^3.1.0",
|
|
82
|
+
"testdouble": "^3.18.0"
|
|
83
83
|
},
|
|
84
84
|
"private": false
|
|
85
85
|
}
|