kitchen-vra 3.0.0 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/CODEOWNERS +1 -0
- data/.github/dependabot.yml +6 -5
- data/.github/workflows/linters.yml +9 -0
- data/.github/workflows/please-release.yml +16 -0
- data/.github/workflows/publish.yml +17 -0
- data/.markdownlint.yaml +5 -0
- data/.mdlrc +1 -0
- data/.rubocop.yml +3 -0
- data/CHANGELOG.md +32 -1
- data/README.md +12 -104
- data/Rakefile +11 -7
- data/kitchen-vra.gemspec +5 -6
- data/lib/kitchen/driver/vra.rb +1 -1
- data/lib/kitchen/driver/vra_version.rb +2 -2
- data/spec/vra_spec.rb +2 -5
- metadata +25 -29
- data/.github/ISSUE_TEMPLATE.md +0 -23
- data/.github/PULL_REQUEST_TEMPLATE.md +0 -14
- data/.github/workflows/ci.yml +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 888a24fa5679bdd596e4b2840a2b0cad9882b19a6cb3947ec7bb823cb2fabcc0
|
4
|
+
data.tar.gz: 19313b7b098cb46e8e02e9bfd2c7d2774e6f0cb26f34f8d0545017f9db74a7b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e68a0df7a0c076bb70bf1ae8819c8bb5f4abde1288e3ca65adc6afad64f81382c9d7b3ee26d9d3c55fa91bb2762ca45d8e7bc704a644cf1c72ff1bcc47a872d
|
7
|
+
data.tar.gz: 30dea25ff5f894d569dee750a91d97f0efdad05bc08aa5d5b7823f70d2c1ae8f0b40bff95b48b18d2b131eaa046203ee37aac9f4e4aae345795d80b93b9e0aa3
|
data/.github/CODEOWNERS
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
@test-kitchen/maintainers
|
data/.github/dependabot.yml
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
---
|
2
|
+
'on':
|
3
|
+
push:
|
4
|
+
branches:
|
5
|
+
- main
|
6
|
+
|
7
|
+
name: release-please
|
8
|
+
jobs:
|
9
|
+
release-please:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
steps:
|
12
|
+
- uses: google-github-actions/release-please-action@v3
|
13
|
+
with:
|
14
|
+
release-type: ruby
|
15
|
+
package-name: kitchen-vra
|
16
|
+
version-file: lib/kitchen/driver/vra_version.rb
|
@@ -0,0 +1,17 @@
|
|
1
|
+
---
|
2
|
+
name: Publish
|
3
|
+
|
4
|
+
'on':
|
5
|
+
release:
|
6
|
+
types: [published]
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
build:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
steps:
|
12
|
+
- uses: actions/checkout@v2
|
13
|
+
- name: Build and publish gem
|
14
|
+
uses: jstastny/publish-gem-to-github@master
|
15
|
+
with:
|
16
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
17
|
+
owner: ${{ secrets.OWNER }}
|
data/.markdownlint.yaml
ADDED
data/.mdlrc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
rules "~MD036", "~MD013", "~MD024", "~MD029"
|
data/.rubocop.yml
ADDED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [v3.2.0](https://github.com/chef-partners/kitchen-vra/tree/v3.2.0)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/chef-partners/kitchen-vra/compare/v3.1.0...v3.2.0)
|
6
|
+
|
7
|
+
- Support for Ruby 3.1
|
8
|
+
- Github workflow improvements
|
9
|
+
|
10
|
+
## [v3.1.0](https://github.com/chef-partners/kitchen-vra/tree/v3.1.0)
|
11
|
+
|
12
|
+
[Full Changelog](https://github.com/chef-partners/kitchen-vra/compare/v3.0.1...v3.1.0)
|
13
|
+
|
14
|
+
- Move usage documentation from the readme to the kitchen.ci website
|
15
|
+
- Make the version configuration optional
|
16
|
+
- Remove the bundler dev dep
|
17
|
+
- Update the gemspec for the new maintainer of this project
|
18
|
+
|
19
|
+
## [v3.0.1](https://github.com/chef-partners/kitchen-vra/tree/v3.0.1)
|
20
|
+
|
21
|
+
[Full Changelog](https://github.com/chef-partners/kitchen-vra/compare/v3.0.0...v3.0.1)
|
22
|
+
|
23
|
+
- Updated the rack gem dependency to allow for modern releases of rack.
|
24
|
+
|
3
25
|
## [v3.0.0](https://github.com/chef-partners/kitchen-vra/tree/v3.0.0)
|
4
26
|
|
5
27
|
[Full Changelog](https://github.com/chef-partners/kitchen-vra/compare/v2.7.1...v3.0.0)
|
@@ -16,7 +38,7 @@
|
|
16
38
|
|
17
39
|
[Full Changelog](https://github.com/chef-partners/kitchen-vra/compare/v2.6.0...v2.7.0)
|
18
40
|
|
19
|
-
- Accept shirt size option available in blueprint as input in kitchen.yml
|
41
|
+
- Accept shirt size option available in blueprint as input in kitchen.yml
|
20
42
|
|
21
43
|
## [v2.5.0](https://github.com/chef-partners/kitchen-vra/tree/v2.5.0)
|
22
44
|
|
@@ -31,6 +53,7 @@
|
|
31
53
|
- Accept subtenant name as input in kitchen.yml [\#28](https://github.com/chef-partners/kitchen-vra/pull/28) ([vinuphilip](https://github.com/vinuphilip))
|
32
54
|
|
33
55
|
## [v2.4.0](https://github.com/chef-partners/kitchen-vra/tree/v2.4.0) (2018-01-22)
|
56
|
+
|
34
57
|
[Full Changelog](https://github.com/chef-partners/kitchen-vra/compare/v2.3.0...v2.4.0)
|
35
58
|
|
36
59
|
**Merged pull requests:**
|
@@ -38,6 +61,7 @@
|
|
38
61
|
- Kitchen vRA enahancements [\#26](https://github.com/chef-partners/kitchen-vra/pull/26) ([rupeshpatel88](https://github.com/rupeshpatel88))
|
39
62
|
|
40
63
|
## [v2.3.0](https://github.com/chef-partners/kitchen-vra/tree/v2.3.0) (2017-07-14)
|
64
|
+
|
41
65
|
[Full Changelog](https://github.com/chef-partners/kitchen-vra/compare/v2.2.0...v2.3.0)
|
42
66
|
|
43
67
|
**Merged pull requests:**
|
@@ -46,6 +70,7 @@
|
|
46
70
|
- Updates for travis and rubocop [\#23](https://github.com/chef-partners/kitchen-vra/pull/23) ([jjasghar](https://github.com/jjasghar))
|
47
71
|
|
48
72
|
## [v2.2.0](https://github.com/chef-partners/kitchen-vra/tree/v2.2.0) (2017-02-15)
|
73
|
+
|
49
74
|
[Full Changelog](https://github.com/chef-partners/kitchen-vra/compare/v2.1.0...v2.2.0)
|
50
75
|
|
51
76
|
**Merged pull requests:**
|
@@ -53,6 +78,7 @@
|
|
53
78
|
- Vra cache creds [\#16](https://github.com/chef-partners/kitchen-vra/pull/16) ([michaelschlies](https://github.com/michaelschlies))
|
54
79
|
|
55
80
|
## [v2.1.0](https://github.com/chef-partners/kitchen-vra/tree/v2.1.0) (2017-02-13)
|
81
|
+
|
56
82
|
[Full Changelog](https://github.com/chef-partners/kitchen-vra/compare/v2.0.0...v2.1.0)
|
57
83
|
|
58
84
|
**Closed issues:**
|
@@ -66,6 +92,7 @@
|
|
66
92
|
- Add support for a DNS suffix appended to server.name [\#19](https://github.com/chef-partners/kitchen-vra/pull/19) ([jeremymv2](https://github.com/jeremymv2))
|
67
93
|
|
68
94
|
## [v2.0.0](https://github.com/chef-partners/kitchen-vra/tree/v2.0.0) (2016-12-15)
|
95
|
+
|
69
96
|
[Full Changelog](https://github.com/chef-partners/kitchen-vra/compare/v1.3.0...v2.0.0)
|
70
97
|
|
71
98
|
**Closed issues:**
|
@@ -78,6 +105,7 @@
|
|
78
105
|
- fix travis notifications [\#11](https://github.com/chef-partners/kitchen-vra/pull/11) ([adamleff](https://github.com/adamleff))
|
79
106
|
|
80
107
|
## [v1.3.0](https://github.com/chef-partners/kitchen-vra/tree/v1.3.0) (2016-01-25)
|
108
|
+
|
81
109
|
[Full Changelog](https://github.com/chef-partners/kitchen-vra/compare/v1.2.0...v1.3.0)
|
82
110
|
|
83
111
|
**Closed issues:**
|
@@ -90,6 +118,7 @@
|
|
90
118
|
- Capping the retry delay when waiting for a server to 30 seconds [\#10](https://github.com/chef-partners/kitchen-vra/pull/10) ([adamleff](https://github.com/adamleff))
|
91
119
|
|
92
120
|
## [v1.2.0](https://github.com/chef-partners/kitchen-vra/tree/v1.2.0) (2015-11-26)
|
121
|
+
|
93
122
|
[Full Changelog](https://github.com/chef-partners/kitchen-vra/compare/v1.1.0...v1.2.0)
|
94
123
|
|
95
124
|
**Closed issues:**
|
@@ -102,6 +131,7 @@
|
|
102
131
|
- Update README.md [\#4](https://github.com/chef-partners/kitchen-vra/pull/4) ([trisharia](https://github.com/trisharia))
|
103
132
|
|
104
133
|
## [v1.1.0](https://github.com/chef-partners/kitchen-vra/tree/v1.1.0) (2015-10-13)
|
134
|
+
|
105
135
|
[Full Changelog](https://github.com/chef-partners/kitchen-vra/compare/v1.0.0...v1.1.0)
|
106
136
|
|
107
137
|
**Closed issues:**
|
@@ -113,6 +143,7 @@
|
|
113
143
|
- optional use\_dns [\#3](https://github.com/chef-partners/kitchen-vra/pull/3) ([stevehedrick](https://github.com/stevehedrick))
|
114
144
|
|
115
145
|
## [v1.0.0](https://github.com/chef-partners/kitchen-vra/tree/v1.0.0) (2015-08-12)
|
146
|
+
|
116
147
|
**Merged pull requests:**
|
117
148
|
|
118
149
|
- Initial release, working in VMware HOL lab, tests passing [\#1](https://github.com/chef-partners/kitchen-vra/pull/1) ([adamleff](https://github.com/adamleff))
|
data/README.md
CHANGED
@@ -12,117 +12,25 @@ gem 'kitchen-vra'
|
|
12
12
|
|
13
13
|
And then execute:
|
14
14
|
|
15
|
-
|
15
|
+
```shell
|
16
|
+
bundle
|
17
|
+
```
|
16
18
|
|
17
19
|
Or install it yourself as:
|
18
20
|
|
19
|
-
|
20
|
-
|
21
|
-
Or even better, install it via ChefDK:
|
22
|
-
|
23
|
-
$ chef gem install kitchen-vra
|
24
|
-
|
25
|
-
## Usage
|
26
|
-
|
27
|
-
After installing the gem as described above, edit your .kitchen.yml file to set the driver to 'vra' and supply your login credentials:
|
28
|
-
|
29
|
-
```yaml
|
30
|
-
driver:
|
31
|
-
name: vra
|
32
|
-
username: myuser@corp.local
|
33
|
-
password: mypassword
|
34
|
-
tenant: mytenant
|
35
|
-
base_url: https://vra.corp.local
|
36
|
-
verify_ssl: true
|
21
|
+
```shell
|
22
|
+
gem install kitchen-vra
|
37
23
|
```
|
38
24
|
|
39
|
-
|
25
|
+
Or even better, install it via ChefDK:
|
40
26
|
|
41
|
-
```
|
42
|
-
|
43
|
-
name: vra
|
44
|
-
tenant: mytenant
|
45
|
-
base_url: https://vra.corp.local
|
46
|
-
verify_ssl: true
|
47
|
-
```
|
48
|
-
If you don't want to explicitly specify username and password in the kitchen.yml, you have an option to set it in the environment variable as
|
49
|
-
|
50
|
-
$ export VRA_USER_NAME='myuser@corp.local'
|
51
|
-
$ export VRA_USER_PASSWORD='mypassword'
|
52
|
-
|
53
|
-
Then configure your platforms. You will need to specify project_id, image_mapping, flavor_mapping and version for the platform. image_mapping specifies the OS image for a machine and the flavor_mapping specifies the CPU count and RAM of the machine. Either a catalog_id or a catalog_name is required for each platform. If both catalog_id and catalog_name are mentioned in .kitchen.yml then catalog_name would be used to derive the catalog_id and this catalog_id would override the catalog_id being passed in .kitchen.yml. In the below example as can be seen we are using catalog_id for centos6 driver while catalog_name for the centos7 driver just to demonstrate that we can use either of the two.
|
54
|
-
|
55
|
-
|
56
|
-
```yaml
|
57
|
-
platforms:
|
58
|
-
- name: centos6
|
59
|
-
driver:
|
60
|
-
catalog_id: e9db1084-d1c6-4c1f-8e3c-eb8f3dc574f9
|
61
|
-
project_id: 6ba69375-79d5-42c3-a099-7d32739f71a9
|
62
|
-
image_mapping: SQL 2016
|
63
|
-
flavor_mapping: Small
|
64
|
-
version: 1
|
65
|
-
- name: centos7
|
66
|
-
driver:
|
67
|
-
catalog_name: my_catalog_name
|
68
|
-
project_id: 6ba69375-79d5-42c3-a099-7d32739f71a9
|
69
|
-
image_mapping: VRA-nc-lnx-ce8.4-Docker
|
70
|
-
flavor_mapping: Small
|
71
|
-
version: 1
|
27
|
+
```shell
|
28
|
+
chef gem install kitchen-vra
|
72
29
|
```
|
73
30
|
|
31
|
+
## Configuration
|
74
32
|
|
75
|
-
|
76
|
-
Other options that you can set include:
|
77
|
-
|
78
|
-
* **request_timeout**: amount of time, in seconds, to wait for a vRA request to complete. Default is 600 seconds.
|
79
|
-
* **server_ready_retries**: Number of times to retry the "waiting for server to be ready" check. In some cases, this will error out immediately due to DNS propagation issues, etc. Setting this to a number greater than 0 will retry the `wait_until_ready` method with a growing sleep in between each attempt. Defaults to 1. Set to 0 to disable any retrying of the `wait_until_ready` method.
|
80
|
-
* **subtenant_id**: the Business Group ID to list as the owner. This is required if the catalog item is a shared/global item; we are unable to determine the subtenant_id from the catalog, and vRA requires it to be set on every request.
|
81
|
-
* **subtenant_name**: the Business Group Name as the owner. This can be passed instead of subtenant_id and would act as a more friendly name. subtenant_id would be internally retrieved based on the provided subtenant_name. In case both subtenant_id and subtenant_name are passed, subtenant_name would take the precendence and would try to retrieve subtenant_id based on subtenant_name passed.
|
82
|
-
* **private_key_path**: path to the SSH private key to use when logging in. Defaults to '~/.ssh/id_rsa' or '~/.ssh/id_dsa', preferring the RSA key. Only applies to instances where SSH transport is used; i.e., does not apply to Windows hosts with the WinRM transport configured.
|
83
|
-
* **use_dns**: Defaults to `false`. Set to `true` if vRA doesn't manage vm ip addresses. This will cause kitchen to attempt to connect via hostname.
|
84
|
-
* **dns_suffix**: Defaults to `nil`. Set to your domain suffix, for example 'mydomain.com'. This only takes effect when `use_dns` == true and is appended to the hostname returned by vRA.
|
85
|
-
* **extra_parameters**: a hash of other data to set on a catalog request, most notably custom properties. Allows updates to existing properties on the blueprint as well as the addition of new properties. Each key in the hash is the property name, and the value is a another hash containing the value data type and the value itself. It is possible to use a `~` to add nested parameters.
|
86
|
-
|
87
|
-
These settings can be set globally under the top-level `driver` section, or they can be set on each platform, which allows you to set globals and then override them. For example, this configuration would set the CPU count to 1 except on the "large" platform:
|
88
|
-
|
89
|
-
```yaml
|
90
|
-
driver:
|
91
|
-
name: vra
|
92
|
-
|
93
|
-
platforms:
|
94
|
-
- name: small
|
95
|
-
driver:
|
96
|
-
catalog_name: my_catalog_name_small
|
97
|
-
catalog_id: 8a189191-fea6-43eb-981e-ee0fa40f8f57
|
98
|
-
project_id: 6ba69375-79d5-42c3-a099-7d32739f71a9
|
99
|
-
image_mapping: SQL 2016
|
100
|
-
flavor_mapping: Small
|
101
|
-
version: 1
|
102
|
-
extra_parameters:
|
103
|
-
mycustompropname:
|
104
|
-
type: string
|
105
|
-
value: smallvalue
|
106
|
-
Vrm.DataCenter.Location:
|
107
|
-
type: string
|
108
|
-
value: Non-Prod
|
109
|
-
- name: large
|
110
|
-
driver:
|
111
|
-
catalog_name: my_catalog_name_large
|
112
|
-
catalog_id: 1d7c6122-18fa-4ed6-bd13-8a33b6c6ed50
|
113
|
-
project_id: 6ba69375-79d5-42c3-a099-7d32739f71a9
|
114
|
-
image_mapping: VRA-nc-lnx-ce8.4-Docker
|
115
|
-
flavor_mapping: Large
|
116
|
-
version: 1
|
117
|
-
subtenant_name: my_subtenant_name
|
118
|
-
extra_parameters:
|
119
|
-
mycustompropname:
|
120
|
-
type: string
|
121
|
-
value: largevalue
|
122
|
-
Vrm.DataCenter.Location:
|
123
|
-
type: string
|
124
|
-
value: Prod
|
125
|
-
```
|
33
|
+
See the [kitchen.ci kitchen-vra docs](https://kitchen.ci/docs/drivers/vra/) for a complete list of configuration options.
|
126
34
|
|
127
35
|
## License and Authors
|
128
36
|
|
@@ -135,7 +43,7 @@ License:: Apache License, Version 2.0
|
|
135
43
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
136
44
|
this file except in compliance with the License. You may obtain a copy of the License at
|
137
45
|
|
138
|
-
```
|
46
|
+
```text
|
139
47
|
http://www.apache.org/licenses/LICENSE-2.0
|
140
48
|
```
|
141
49
|
|
@@ -148,7 +56,7 @@ and limitations under the License.
|
|
148
56
|
|
149
57
|
We'd love to hear from you if this doesn't work in your vRA environment. Please log a GitHub issue, or even better, submit a Pull Request with a fix!
|
150
58
|
|
151
|
-
1. Fork it ( https://github.com/chef-partners/kitchen-vra/fork )
|
59
|
+
1. Fork it ( <https://github.com/chef-partners/kitchen-vra/fork> )
|
152
60
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
153
61
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
154
62
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/Rakefile
CHANGED
@@ -1,11 +1,15 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
1
|
require "bundler/gem_tasks"
|
4
2
|
require "rspec/core/rake_task"
|
5
|
-
|
6
|
-
require "rubocop/rake_task"
|
3
|
+
RSpec::Core::RakeTask.new(:test)
|
7
4
|
|
8
|
-
|
9
|
-
|
5
|
+
begin
|
6
|
+
require "chefstyle"
|
7
|
+
require "rubocop/rake_task"
|
8
|
+
RuboCop::RakeTask.new(:style) do |task|
|
9
|
+
task.options += ["--display-cop-names", "--no-color"]
|
10
|
+
end
|
11
|
+
rescue LoadError
|
12
|
+
puts "chefstyle is not available. (sudo) gem install chefstyle to do style checking."
|
13
|
+
end
|
10
14
|
|
11
|
-
task default: %i{
|
15
|
+
task default: %i{test style}
|
data/kitchen-vra.gemspec
CHANGED
@@ -7,11 +7,11 @@ require "kitchen/driver/vra_version"
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
8
|
spec.name = "kitchen-vra"
|
9
9
|
spec.version = Kitchen::Driver::VRA_VERSION
|
10
|
-
spec.authors = ["Chef
|
11
|
-
spec.email = ["
|
10
|
+
spec.authors = ["Chef Commmunity Tools Team"]
|
11
|
+
spec.email = ["oss@chef.io"]
|
12
12
|
spec.summary = "A Test Kitchen driver for VMware vRealize Automation (vRA)"
|
13
13
|
spec.description = spec.summary
|
14
|
-
spec.homepage = "https://github.com/
|
14
|
+
spec.homepage = "https://github.com/test-kitchen/kitchen-vra"
|
15
15
|
spec.license = "Apache-2.0"
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0")
|
@@ -22,11 +22,10 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.required_ruby_version = ">= 2.7"
|
23
23
|
|
24
24
|
spec.add_dependency "test-kitchen"
|
25
|
-
spec.add_dependency "vmware-vra", "
|
25
|
+
spec.add_dependency "vmware-vra", ">= 3.1.0" # 3.0 required for vRA 8.x
|
26
26
|
spec.add_dependency "highline"
|
27
|
-
spec.add_dependency "rack", "
|
27
|
+
spec.add_dependency "rack", ">= 1.6", "< 3.0"
|
28
28
|
spec.add_dependency "ffi-yajl", ">= 2.2.3", "< 2.5.0"
|
29
|
-
spec.add_development_dependency "bundler", ">= 1.7"
|
30
29
|
spec.add_development_dependency "rake", "~> 13.0"
|
31
30
|
spec.add_development_dependency "rspec", "~> 3.2"
|
32
31
|
spec.add_development_dependency "simplecov", "~> 0.10"
|
data/lib/kitchen/driver/vra.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
#
|
4
4
|
# Author:: Chef Partner Engineering (<partnereng@chef.io>)
|
5
|
-
# Copyright:: Copyright (c)
|
5
|
+
# Copyright:: Copyright (c) Chef Software, Inc.
|
6
6
|
# License:: Apache License, Version 2.0
|
7
7
|
#
|
8
8
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -20,6 +20,6 @@
|
|
20
20
|
|
21
21
|
module Kitchen
|
22
22
|
module Driver
|
23
|
-
VRA_VERSION = "3.
|
23
|
+
VRA_VERSION = "3.2.0"
|
24
24
|
end
|
25
25
|
end
|
data/spec/vra_spec.rb
CHANGED
@@ -44,7 +44,6 @@ describe Kitchen::Driver::Vra do
|
|
44
44
|
subtenant_id: "160b473a-0ec9-473d-8156-28dd96c0b6b7",
|
45
45
|
use_dns: false,
|
46
46
|
deployment_name: "test-instance",
|
47
|
-
version: 1,
|
48
47
|
}
|
49
48
|
end
|
50
49
|
|
@@ -421,7 +420,6 @@ describe Kitchen::Driver::Vra do
|
|
421
420
|
project_id: "6ba69375-79d5-42c3-a099-7d32739f71a7",
|
422
421
|
image_mapping: "VRA-nc-lnx-ce8.4-Docker",
|
423
422
|
flavor_mapping: "Small",
|
424
|
-
version: 1,
|
425
423
|
}
|
426
424
|
end
|
427
425
|
|
@@ -442,15 +440,14 @@ describe Kitchen::Driver::Vra do
|
|
442
440
|
project_id: "6ba69375-79d5-42c3-a099-7d32739f71a7",
|
443
441
|
image_mapping: "VRA-nc-lnx-ce8.4-Docker",
|
444
442
|
flavor_mapping: "Small",
|
445
|
-
version: 1,
|
446
443
|
extra_parameters: { "key1" => { type: "string", value: "value1" },
|
447
444
|
"key2" => { type: "integer", value: 123 } },
|
448
445
|
}
|
449
446
|
end
|
450
447
|
|
451
448
|
it "sets extra parmeters" do
|
452
|
-
expect(catalog_request).to receive(:set_parameters).with("key1", type: "string", value: "value1")
|
453
|
-
expect(catalog_request).to receive(:set_parameters).with("key2", type: "integer", value: 123)
|
449
|
+
expect(catalog_request).to receive(:set_parameters).with("key1", { type: "string", value: "value1" })
|
450
|
+
expect(catalog_request).to receive(:set_parameters).with("key2", { type: "integer", value: 123 })
|
454
451
|
driver.catalog_request
|
455
452
|
end
|
456
453
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-vra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Chef
|
7
|
+
- Chef Commmunity Tools Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-kitchen
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: vmware-vra
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 3.1.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 3.1.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: highline
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -56,16 +56,22 @@ dependencies:
|
|
56
56
|
name: rack
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '1.6'
|
62
|
+
- - "<"
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '3.0'
|
62
65
|
type: :runtime
|
63
66
|
prerelease: false
|
64
67
|
version_requirements: !ruby/object:Gem::Requirement
|
65
68
|
requirements:
|
66
|
-
- - "
|
69
|
+
- - ">="
|
67
70
|
- !ruby/object:Gem::Version
|
68
71
|
version: '1.6'
|
72
|
+
- - "<"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '3.0'
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
76
|
name: ffi-yajl
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,20 +92,6 @@ dependencies:
|
|
86
92
|
- - "<"
|
87
93
|
- !ruby/object:Gem::Version
|
88
94
|
version: 2.5.0
|
89
|
-
- !ruby/object:Gem::Dependency
|
90
|
-
name: bundler
|
91
|
-
requirement: !ruby/object:Gem::Requirement
|
92
|
-
requirements:
|
93
|
-
- - ">="
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
version: '1.7'
|
96
|
-
type: :development
|
97
|
-
prerelease: false
|
98
|
-
version_requirements: !ruby/object:Gem::Requirement
|
99
|
-
requirements:
|
100
|
-
- - ">="
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: '1.7'
|
103
95
|
- !ruby/object:Gem::Dependency
|
104
96
|
name: rake
|
105
97
|
requirement: !ruby/object:Gem::Requirement
|
@@ -172,16 +164,20 @@ dependencies:
|
|
172
164
|
version: 2.2.1
|
173
165
|
description: A Test Kitchen driver for VMware vRealize Automation (vRA)
|
174
166
|
email:
|
175
|
-
-
|
167
|
+
- oss@chef.io
|
176
168
|
executables: []
|
177
169
|
extensions: []
|
178
170
|
extra_rdoc_files: []
|
179
171
|
files:
|
180
|
-
- ".github/
|
181
|
-
- ".github/PULL_REQUEST_TEMPLATE.md"
|
172
|
+
- ".github/CODEOWNERS"
|
182
173
|
- ".github/dependabot.yml"
|
183
|
-
- ".github/workflows/
|
174
|
+
- ".github/workflows/linters.yml"
|
175
|
+
- ".github/workflows/please-release.yml"
|
176
|
+
- ".github/workflows/publish.yml"
|
184
177
|
- ".gitignore"
|
178
|
+
- ".markdownlint.yaml"
|
179
|
+
- ".mdlrc"
|
180
|
+
- ".rubocop.yml"
|
185
181
|
- CHANGELOG.md
|
186
182
|
- Gemfile
|
187
183
|
- LICENSE.txt
|
@@ -192,7 +188,7 @@ files:
|
|
192
188
|
- lib/kitchen/driver/vra_version.rb
|
193
189
|
- spec/spec_helper.rb
|
194
190
|
- spec/vra_spec.rb
|
195
|
-
homepage: https://github.com/
|
191
|
+
homepage: https://github.com/test-kitchen/kitchen-vra
|
196
192
|
licenses:
|
197
193
|
- Apache-2.0
|
198
194
|
metadata: {}
|
@@ -211,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
211
207
|
- !ruby/object:Gem::Version
|
212
208
|
version: '0'
|
213
209
|
requirements: []
|
214
|
-
rubygems_version: 3.2.
|
210
|
+
rubygems_version: 3.2.3
|
215
211
|
signing_key:
|
216
212
|
specification_version: 4
|
217
213
|
summary: A Test Kitchen driver for VMware vRealize Automation (vRA)
|
data/.github/ISSUE_TEMPLATE.md
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
### Versions:
|
2
|
-
<!--- Version of the software where you are encountering the issue --->
|
3
|
-
<!-- You should probably update in this is not newest release.--->
|
4
|
-
* Version of kitchen-vra:
|
5
|
-
* Version of test-kitchen:
|
6
|
-
* Version of chef:
|
7
|
-
|
8
|
-
### Platform Details
|
9
|
-
<!--- What version of vRA are you running? What version of ESXi are you using too?--->
|
10
|
-
* Version of vRA:
|
11
|
-
* Version of ESXi:
|
12
|
-
|
13
|
-
### Scenario:
|
14
|
-
<!--- What you are trying to achieve and you can't?--->
|
15
|
-
|
16
|
-
### Steps to Reproduce:
|
17
|
-
<!--- If you are filing an issue what are the things we need to do in order to repro your problem? How are you using this gem or any resources it includes?--->
|
18
|
-
|
19
|
-
### Expected Result:
|
20
|
-
<!--- What are you expecting to happen as the consequence of above reproduction steps?--->
|
21
|
-
|
22
|
-
### Actual Result:
|
23
|
-
<!--- What actually happens after the reproduction steps? Include the error output or a link to a gist if possible.--->
|
@@ -1,14 +0,0 @@
|
|
1
|
-
### Description
|
2
|
-
|
3
|
-
<!--- Describe what this change achieves--->
|
4
|
-
|
5
|
-
### Issues Resolved
|
6
|
-
|
7
|
-
<!--- List any existing issues this PR resolves--->
|
8
|
-
|
9
|
-
### Check List
|
10
|
-
|
11
|
-
- [ ] All tests pass.
|
12
|
-
- [ ] All style checks pass.
|
13
|
-
- [ ] Functionality includes testing.
|
14
|
-
- [ ] Functionality has been documented in the README if applicable
|
data/.github/workflows/ci.yml
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
name: CI
|
2
|
-
|
3
|
-
on:
|
4
|
-
pull_request:
|
5
|
-
push:
|
6
|
-
branches:
|
7
|
-
- master
|
8
|
-
|
9
|
-
jobs:
|
10
|
-
test:
|
11
|
-
runs-on: ubuntu-latest
|
12
|
-
strategy:
|
13
|
-
matrix:
|
14
|
-
ruby: [ '2.7', '3.0']
|
15
|
-
name: Lint & Test with Ruby ${{ matrix.ruby }}
|
16
|
-
steps:
|
17
|
-
- uses: actions/checkout@v2
|
18
|
-
- uses: ruby/setup-ruby@v1
|
19
|
-
with:
|
20
|
-
ruby-version: ${{ matrix.ruby }}
|
21
|
-
bundler-cache: true
|
22
|
-
- run: bundle exec rake
|