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