Sha256: 5030b4a7347fef421bc3d17acf1b0869816777bc5e0a2e8f87eafbe730c98385

Contents?: true

Size: 474 Bytes

Versions: 4

Compression:

Stored size: 474 Bytes

Contents

require_relative '../../test_helper'

describe Fog::Vsphere::Compute::Real do
  include Fog::Vsphere::TestHelper

  before { Fog.unmock! }
  after { Fog.mock! }

  let(:compute) { prepare_compute }

  describe '#get_compute_resource' do
    it 'gets ComputeResource' do
      with_webmock_cassette('get_compute_resource') do
        cr = compute.get_compute_resource('esxi.example.com', 'BRQ')
        assert_equal(cr[:name], 'esxi.example.com')
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-vsphere-3.7.0 tests/requests/compute/get_compute_resource_tests.rb
fog-vsphere-3.6.8 tests/requests/compute/get_compute_resource_tests.rb
fog-vsphere-3.6.7 tests/requests/compute/get_compute_resource_tests.rb
fog-vsphere-3.6.6 tests/requests/compute/get_compute_resource_tests.rb