Sha256: c3405f1d5dec0b31203ddf9347248cdd3de1e6de2d29803a6dea9b5c0136736b

Contents?: true

Size: 449 Bytes

Versions: 4

Compression:

Stored size: 449 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_cluster' do
    it 'gets cluster' do
      with_webmock_cassette('get_cluster') do
        cluster = compute.get_cluster('esxi.example.com', 'BRQ')
        assert_equal(cluster[: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_cluster_tests.rb
fog-vsphere-3.6.8 tests/requests/compute/get_cluster_tests.rb
fog-vsphere-3.6.7 tests/requests/compute/get_cluster_tests.rb
fog-vsphere-3.6.6 tests/requests/compute/get_cluster_tests.rb