Sha256: ef3880b768fb5f67dc164f589126c6efad0d531a3016ccd4265c90564f6d640e

Contents?: true

Size: 487 Bytes

Versions: 4

Compression:

Stored size: 487 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_virtual_machine' do
    it 'gets virtual machine by uuid' do
      with_webmock_cassette('get_virtual_machine') do
        vm = compute.get_virtual_machine('52d810bd-077b-368d-a86f-0b2ad84269f8', 'BRQ')
        assert_equal(vm['name'], 'DC1')
      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_virtual_machine_tests.rb
fog-vsphere-3.6.8 tests/requests/compute/get_virtual_machine_tests.rb
fog-vsphere-3.6.7 tests/requests/compute/get_virtual_machine_tests.rb
fog-vsphere-3.6.6 tests/requests/compute/get_virtual_machine_tests.rb