Sha256: 317b111efe091345811f547a62665e674f57092927fd8ecee5ae0ef964458d95

Contents?: true

Size: 743 Bytes

Versions: 13

Compression:

Stored size: 743 Bytes

Contents

Shindo.tests("Fog::Compute[:ovirt] v4 | vm_create request", "ovirt") do
  compute = Fog::Compute.new(:provider => :ovirt, :api_version => "v4")
  name_base = Time.now.to_i

  tests("Create VM") do
    response = compute.create_vm(:name => "fog-" + name_base.to_s, :cluster_name => "Default")
    test("should be a kind of OvirtSDK4::Vm") { response.is_a? OvirtSDK4::Vm }
  end

  tests("Create VM from template (clone)") do
    response = compute.create_vm(:name => "fog-" + (name_base + 1).to_s, :template_name => "hwp_small", :cluster_name => "Default")
    test("should be a kind of OvirtSDK4::Vm") { response.is_a? OvirtSDK4::Vm }
  end

  # TODO: Write a test for situation where creating a VM fails
  #  mocks never raise exceptions
end

Version data entries

13 entries across 11 versions & 2 rubygems

Version Path
fog-ovirt-1.1.6 tests/ovirt/requests/compute/v4/create_vm_tests.rb
fog-ovirt-1.1.5 tests/ovirt/requests/compute/v4/create_vm_tests.rb
fog-ovirt-1.1.4 tests/ovirt/requests/compute/v4/create_vm_tests.rb
fog-ovirt-1.1.3 tests/ovirt/requests/compute/v4/create_vm_tests.rb
fog-ovirt-1.1.2 tests/ovirt/requests/compute/v4/create_vm_tests.rb
fog-ovirt-1.1.1 tests/ovirt/requests/compute/v4/create_vm_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-ovirt-1.1.0/tests/ovirt/requests/compute/v4/create_vm_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-ovirt-1.1.0/tests/ovirt/requests/compute/v4/create_vm_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-ovirt-1.1.0/tests/ovirt/requests/compute/v4/create_vm_tests.rb
fog-ovirt-1.1.0 tests/ovirt/requests/compute/v4/create_vm_tests.rb
fog-ovirt-1.0.4 tests/ovirt/requests/compute/v4/create_vm_tests.rb
fog-ovirt-1.0.3 tests/ovirt/requests/compute/v4/create_vm_tests.rb
fog-ovirt-1.0.2 tests/ovirt/requests/compute/v4/create_vm_tests.rb