kitchen-vra 3.2.1 → 3.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 763ef43f1f069167f4745436838b49e370deecc12055da82519b7d5249b08317
4
- data.tar.gz: 594985e266bd2389c42efeedb09868f37499e8ee5933980e92989ab7c1e3e845
3
+ metadata.gz: 0f27173f48addd541a3b46e530123bf9a5860d196d9b29e6a6e2a32f2df46de2
4
+ data.tar.gz: 6d39ffccc15bc8ffdb6b924ba5bfd898bad4603b7e2b13b8687978f22292f957
5
5
  SHA512:
6
- metadata.gz: 0da0c199033bb8a8e17cca31ae04a6e11a05a49afd9737bb6b70255ed30a4ad1496ef9142cc6ebe447dfed39e8d2c2b7908269aec96e61a19f956ff7d027688f
7
- data.tar.gz: 8c9afb831b2e0e97594a69154f325feea7b968dfd9cafcdd619482015db2bcd2179bbba7e9060873fe7a35723878da3ca810bff4402e2c65df94b8eb34dc3dfd
6
+ metadata.gz: cfc73043b2fc6bcccf21194568782e1195d4ad3dc4859022c409231e2234c21a6cda61fa2d27487c7136fb30dc7363a424aa8edcc0d0a603e699d531f559bd3c
7
+ data.tar.gz: 133feaf18a36b1a5f1846b7fcc1f10d0c1b2ab59070fca23770b69de4641eedd0ad552cd96062f536c2787f6aa5bf91d740b7191e89829f27c3dfcaa410a614d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## [v3.3.0](https://github.com/chef-partners/kitchen-vra/tree/v3.3.0)
4
+
5
+ [Full Changelog](https://github.com/chef-partners/kitchen-vra/compare/v3.2.1...v3.3.0)
6
+
7
+ - Replaced the tenant attribute with the domain attribute [\#59](https://github.com/chef-partners/kitchen-vra/pull/59) ([ashiqueps](https://github.com/ashiqueps))
8
+
3
9
  ## [v3.2.1](https://github.com/chef-partners/kitchen-vra/tree/v3.2.1)
4
10
 
5
11
  [Full Changelog](https://github.com/chef-partners/kitchen-vra/compare/v3.2.0...v3.2.1)
data/kitchen-vra.gemspec CHANGED
@@ -22,7 +22,7 @@ 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", ">= 3.1.0" # 3.0 required for vRA 8.x
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
27
  spec.add_dependency "rack", ">= 1.6", "< 3.0"
28
28
  spec.add_dependency "ffi-yajl", ">= 2.2.3", "< 2.5.0"
@@ -35,11 +35,12 @@ module Kitchen
35
35
  default_config :username, nil
36
36
  default_config :password, nil
37
37
  required_config :base_url
38
- required_config :tenant
38
+ required_config :domain
39
39
  required_config :project_id
40
40
  required_config :image_mapping
41
41
  required_config :flavor_mapping
42
42
 
43
+ default_config :tenant, nil
43
44
  default_config :version, nil
44
45
  default_config :catalog_id, nil
45
46
  default_config :catalog_name, nil
@@ -64,6 +65,10 @@ module Kitchen
64
65
  default_config :use_dns, false
65
66
  default_config :dns_suffix, nil
66
67
 
68
+ deprecate_config_for :tenant, Util.outdent!("
69
+ In vRA 8.x, the 'tenant' configuration is no longer relevant for authentication.
70
+ Please use the 'domain' configuration in its place.".dup)
71
+
67
72
  def name
68
73
  "vRA"
69
74
  end
@@ -257,7 +262,7 @@ module Kitchen
257
262
  base_url: config[:base_url],
258
263
  username: config[:username],
259
264
  password: config[:password],
260
- tenant: config[:tenant],
265
+ domain: config[:domain],
261
266
  verify_ssl: config[:verify_ssl]
262
267
  )
263
268
  rescue => _e
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Kitchen
22
22
  module Driver
23
- VRA_VERSION = "3.2.1"
23
+ VRA_VERSION = "3.3.0"
24
24
  end
25
25
  end
data/spec/vra_spec.rb CHANGED
@@ -36,7 +36,7 @@ describe Kitchen::Driver::Vra do
36
36
  base_url: "https://vra.corp.local",
37
37
  username: "myuser",
38
38
  password: "mypassword",
39
- tenant: "mytenant",
39
+ domain: "mytenant.corp.com",
40
40
  project_id: "6ba69375-79d5-42c3-a099-7d32739f71a7",
41
41
  image_mapping: "VRA-nc-lnx-ce8.4-Docker",
42
42
  flavor_mapping: "Small",
@@ -415,7 +415,7 @@ describe Kitchen::Driver::Vra do
415
415
  base_url: "https://vra.corp.local",
416
416
  username: "myuser",
417
417
  password: "mypassword",
418
- tenant: "mytenant",
418
+ domain: "domain.corp.com",
419
419
  verify_ssl: true,
420
420
  project_id: "6ba69375-79d5-42c3-a099-7d32739f71a7",
421
421
  image_mapping: "VRA-nc-lnx-ce8.4-Docker",
@@ -435,7 +435,7 @@ describe Kitchen::Driver::Vra do
435
435
  base_url: "https://vra.corp.local",
436
436
  username: "myuser",
437
437
  password: "mypassword",
438
- tenant: "mytenant",
438
+ domain: "mydomain.corp.com",
439
439
  verify_ssl: true,
440
440
  project_id: "6ba69375-79d5-42c3-a099-7d32739f71a7",
441
441
  image_mapping: "VRA-nc-lnx-ce8.4-Docker",
@@ -458,7 +458,7 @@ describe Kitchen::Driver::Vra do
458
458
  expect(Vra::Client).to receive(:new).with(base_url: config[:base_url],
459
459
  username: config[:username],
460
460
  password: config[:password],
461
- tenant: config[:tenant],
461
+ domain: config[:domain],
462
462
  verify_ssl: config[:verify_ssl])
463
463
  driver.vra_client
464
464
  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.2.1
4
+ version: 3.3.0
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: 2022-11-02 00:00:00.000000000 Z
11
+ date: 2022-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen
@@ -28,16 +28,22 @@ dependencies:
28
28
  name: vmware-vra
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.0'
31
34
  - - ">="
32
35
  - !ruby/object:Gem::Version
33
- version: 3.1.0
36
+ version: 3.2.0
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
41
+ - - "~>"
42
+ - !ruby/object:Gem::Version
43
+ version: '3.0'
38
44
  - - ">="
39
45
  - !ruby/object:Gem::Version
40
- version: 3.1.0
46
+ version: 3.2.0
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: highline
43
49
  requirement: !ruby/object:Gem::Requirement