fog-vsphere 3.7.0 → 3.7.1

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.
@@ -11,8 +11,8 @@ describe Fog::Vsphere::Compute::Real do
11
11
  describe '#get_template' do
12
12
  it 'gets template by uuid' do
13
13
  with_webmock_cassette('get_template') do
14
- vm = compute.get_template('500e2be9-4762-1f52-5e7c-f37444be5f6e', 'BRQ')
15
- assert_equal(vm['name'], 'fedora29')
14
+ vm = compute.get_template('503cb26a-3423-2e69-04a0-24c6ff4cde8b', 'SatQE-Datacenter')
15
+ assert_equal(vm['name'], 'RHEL9')
16
16
  end
17
17
  end
18
18
  end
@@ -11,8 +11,8 @@ describe Fog::Vsphere::Compute::Real do
11
11
  describe '#get_virtual_machine' do
12
12
  it 'gets virtual machine by uuid' do
13
13
  with_webmock_cassette('get_virtual_machine') do
14
- vm = compute.get_virtual_machine('52d810bd-077b-368d-a86f-0b2ad84269f8', 'BRQ')
15
- assert_equal(vm['name'], 'DC1')
14
+ vm = compute.get_virtual_machine('503ccdc6-7242-8b3a-6b69-c2cc3b60f094', 'SatQE-Datacenter')
15
+ assert_equal(vm['name'], 'SatQE-NFS-Datastore')
16
16
  end
17
17
  end
18
18
  end
data/tests/test_helper.rb CHANGED
@@ -30,7 +30,9 @@ module Fog
30
30
  # Records new cassette, but before writing removes the examples already in *shared* cassette.
31
31
  def recording_webmock_cassette(name, options = {}, &block)
32
32
  WebMock::Config.instance.net_http_connect_on_start = true
33
- VCR.use_cassette(name, options, &block)
33
+ record_opts = { record: :all, erb: TestConfig.load.to_h }
34
+
35
+ VCR.use_cassette(name, record_opts.merge(options), &block)
34
36
  ensure
35
37
  WebMock::Config.instance.net_http_connect_on_start = false
36
38
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-vsphere
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.0
4
+ version: 3.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - J.R. Garcia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-31 00:00:00.000000000 Z
11
+ date: 2025-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-core