Sha256: 1d3c1ec243de14b6e1ac34801981eca068dbd669f6727f8d4e4ef4c956848a69

Contents?: true

Size: 464 Bytes

Versions: 4

Compression:

Stored size: 464 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_template' do
    it 'gets template by uuid' do
      with_webmock_cassette('get_template') do
        vm = compute.get_template('500e2be9-4762-1f52-5e7c-f37444be5f6e', 'BRQ')
        assert_equal(vm['name'], 'fedora29')
      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_template_tests.rb
fog-vsphere-3.6.8 tests/requests/compute/get_template_tests.rb
fog-vsphere-3.6.7 tests/requests/compute/get_template_tests.rb
fog-vsphere-3.6.6 tests/requests/compute/get_template_tests.rb