kitchen-vra 3.3.1 → 3.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91e7615f23a44ae83327415c6648fdc8b3950c56ff18f0aab216ed19a7902a00
4
- data.tar.gz: 8266b22c55a1f4d0d63d50b16be20fd6765fcf3cc92f4c3f4730bf70a5ab289f
3
+ metadata.gz: 17c5b9a3f8bcfc3b3379c27f41ebf221245f145752cc14d0c4eb6a811a7e8c8a
4
+ data.tar.gz: 9484530af696bbf2045bc4197d9e216a02ef6f022d7ad2e6f1b1baa39a50d47a
5
5
  SHA512:
6
- metadata.gz: 8c5ae9e75bef239d5c4751100aa5a5c4c30cf135a4ed24831e2ee522d46ce5ce6090e86cf7fb7bd2a13df8968a93d0b2924c9caee7812c2340a75bfa8b6e94d2
7
- data.tar.gz: 3772f71069fa0f70095925a1008b728d40d91a27a6248b39e5ec1684d6849b4556cf75ca553e57f681829b01a23ee86084b084f4dde4c2f5d8d245132c1a5d5f
6
+ metadata.gz: 7ff58b2eaad6c83cff51a0bf5d6072424d4e6e21bbdf4f3e12cb20024222b8f5f9f45351db15e39b798f9fb549d5b2cd5e3546d51d36f9fb84ebb9b83709db8c
7
+ data.tar.gz: 6dbe6294fa6a2973932e4960b45fb738771c013ecb89a9f2cbbd30a3f7f3c379158e2ef70604b980db284f3580e8a01014b93190ffe0fa0bf27f35bae1da1cee
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## [v3.3.2](https://github.com/chef-partners/kitchen-vra/tree/v3.3.2)
4
+
5
+ [Full Changelog](https://github.com/chef-partners/kitchen-vra/compare/v3.3.1...v3.3.2)
6
+
7
+ - This change helps in getting unique name of a deployment. The new deployement name will be deployment_deploymentId. We need to pass **unique_name** as true(unique_name: true) in the driver configuration.
8
+
3
9
  ## [v3.3.1](https://github.com/chef-partners/kitchen-vra/tree/v3.3.1)
4
10
 
5
11
  [Full Changelog](https://github.com/chef-partners/kitchen-vra/compare/v3.3.0...v3.3.1)
data/kitchen-vra.gemspec CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  spec.add_dependency "test-kitchen"
25
25
  spec.add_dependency "vmware-vra", "~> 3.0", ">= 3.2.0" # 3.0 required for vRA 8.x
26
26
  spec.add_dependency "highline"
27
- spec.add_dependency "rack", ">= 1.6", "< 3.0"
27
+ spec.add_dependency "rack", ">= 1.6", "< 4.0"
28
28
  spec.add_dependency "ffi-yajl", ">= 2.2.3", "< 2.5.0"
29
29
  spec.add_development_dependency "rake", "~> 13.0"
30
30
  spec.add_development_dependency "rspec", "~> 3.2"
@@ -49,6 +49,7 @@ module Kitchen
49
49
  default_config :request_timeout, 600
50
50
  default_config :request_refresh_rate, 2
51
51
  default_config :server_ready_retries, 1
52
+ default_config :unique_name, false
52
53
  default_config :deployment_name do |driver|
53
54
  driver&.instance&.platform&.name
54
55
  end
@@ -152,6 +153,9 @@ module Kitchen
152
153
  deployment_request = catalog_request.submit
153
154
 
154
155
  info("Catalog request #{deployment_request.id} submitted.")
156
+ if config[:unique_name]
157
+ info("Deployment name is deployment_#{deployment_request.id}")
158
+ end
155
159
 
156
160
  wait_for_request(deployment_request)
157
161
  raise "The vRA request failed: #{deployment_request.completion_details}" if deployment_request.failed?
@@ -232,10 +236,11 @@ module Kitchen
232
236
  deployment_params = {
233
237
  image_mapping: config[:image_mapping],
234
238
  flavor_mapping: config[:flavor_mapping],
235
- name: config[:deployment_name],
236
239
  project_id: config[:project_id],
237
240
  version: config[:version],
238
- }
241
+ }.tap do |h|
242
+ h[:name] = config[:deployment_name] unless config[:unique_name]
243
+ end
239
244
 
240
245
  catalog_request = vra_client.catalog.request(config[:catalog_id], deployment_params)
241
246
 
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Kitchen
22
22
  module Driver
23
- VRA_VERSION = "3.3.1"
23
+ VRA_VERSION = "3.3.2"
24
24
  end
25
25
  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.3.1
4
+ version: 3.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef Commmunity Tools Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-06 00:00:00.000000000 Z
11
+ date: 2023-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen
@@ -67,7 +67,7 @@ dependencies:
67
67
  version: '1.6'
68
68
  - - "<"
69
69
  - !ruby/object:Gem::Version
70
- version: '3.0'
70
+ version: '4.0'
71
71
  type: :runtime
72
72
  prerelease: false
73
73
  version_requirements: !ruby/object:Gem::Requirement
@@ -77,7 +77,7 @@ dependencies:
77
77
  version: '1.6'
78
78
  - - "<"
79
79
  - !ruby/object:Gem::Version
80
- version: '3.0'
80
+ version: '4.0'
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: ffi-yajl
83
83
  requirement: !ruby/object:Gem::Requirement