Sha256: f5c737acbd0f6193b2dcc7075e69a43d16b5dceb419b2ac72ff9967d2bf4a06f

Contents?: true

Size: 451 Bytes

Versions: 4

Compression:

Stored size: 451 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_host' do
    it 'gets host' do
      with_webmock_cassette('get_host') do
        host = compute.get_host('esxi.example.com', 'esxi.example.com', 'BRQ')
        assert_equal(host[: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_host_tests.rb
fog-vsphere-3.6.8 tests/requests/compute/get_host_tests.rb
fog-vsphere-3.6.7 tests/requests/compute/get_host_tests.rb
fog-vsphere-3.6.6 tests/requests/compute/get_host_tests.rb