Sha256: d38eed69f1f54abde50f90fcc32dee0bfa893b65f1329f3c486c6d41dce70e09
Contents?: true
Size: 638 Bytes
Versions: 9
Compression:
Stored size: 638 Bytes
Contents
Shindo.tests("Fog::Compute[:ovirt] v4 | vm_destroy request", ["ovirt"]) do compute = Fog::Compute.new(:provider => :ovirt, :api_version => "v4") if compute.servers.all(:search => "fog-*").empty? compute.create_vm(:name => "fog-" + Time.now.to_i.to_s, :cluster_name => "Default") end vm_id = compute.servers.all(:search => "fog-*").last.id tests("The response should") do response = compute.destroy_vm(:id => vm_id) test("be a success") { response ? true : false } end tests("The expected options") do raises(ArgumentError, "raises ArgumentError when id option is missing") { compute.destroy_vm } end end
Version data entries
9 entries across 7 versions & 2 rubygems