Sha256: 26f5ff3145037b52d12556f7bab9cab9f5e7fc3ebc62fe7e69883163fde80025

Contents?: true

Size: 738 Bytes

Versions: 12

Compression:

Stored size: 738 Bytes

Contents

require 'minitest_helper'

describe "#create_vdi" do
  let(:connection) do
    VCR.use_cassette('open_connection') do
      Fog::Compute.new(:provider => 'XenServer',
                       :xenserver_url => '192.168.10.2',
                       :xenserver_username => 'root',
                       :xenserver_password => '123456')
    end
  end
  let(:sr) do
    VCR.use_cassette('get_storage_repository') do
      connection.storage_repositories.get_by_name('Local storage')
    end
  end

  before :each do
    VCR.use_cassette('create_vdi') do
      @vdi = connection.vdis.create(:name => 'Craziest Vdi Ever', :storage_repository => sr)
    end
  end

  it 'should create a new vdi' do
    @vdi.persisted?.must_equal(true)
  end
end

Version data entries

12 entries across 10 versions & 2 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-xenserver-0.3.0/spec/fog/compute/xen_server/requests/create_vdi_spec.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-xenserver-0.3.0/spec/fog/compute/xen_server/requests/create_vdi_spec.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-xenserver-0.3.0/spec/fog/compute/xen_server/requests/create_vdi_spec.rb
fog-xenserver-0.3.0 spec/fog/compute/xen_server/requests/create_vdi_spec.rb
fog-xenserver-0.2.3 spec/fog/compute/xen_server/requests/create_vdi_spec.rb
fog-xenserver-0.2.2 spec/fog/compute/xen_server/requests/create_vdi_spec.rb
fog-xenserver-0.2.1 spec/fog/compute/xen_server/requests/create_vdi_spec.rb
fog-xenserver-0.2.0 spec/fog/compute/xen_server/requests/create_vdi_spec.rb
fog-xenserver-0.1.2 spec/fog/compute/xen_server/requests/create_vdi_spec.rb
fog-xenserver-0.1.1 spec/fog/compute/xen_server/requests/create_vdi_spec.rb
fog-xenserver-0.1.0 spec/fog/compute/xen_server/requests/create_vdi_spec.rb
fog-xenserver-0.0.1.beta2 spec/fog/compute/xen_server/requests/create_vdi_spec.rb