Sha256: 7708b6ba20f66b2ba662338957c5a206f164d0e13d34e623228e2ed1bb74a169
Contents?: true
Size: 621 Bytes
Versions: 6
Compression:
Stored size: 621 Bytes
Contents
Shindo.tests("Fog::Ovirt::Compute | vm_update request", ["ovirt"]) do compute = Fog::Ovirt::Compute.new compute.create_vm(:name => "fog-" + Time.now.to_i.to_s, :cluster_name => "Default") if compute.servers.all(:search => "fog-*").empty? vm = compute.servers.all(:search => "fog-*").last tests("The response should") do response = compute.update_vm(:id => vm.id, :name => vm.name + "updated") test("be a kind of OVIRT::VM") { response.is_a? OVIRT::VM } end tests("The expected options") do raises(ArgumentError, "raises ArgumentError when id option is missing") { compute.update_vm } end end
Version data entries
6 entries across 6 versions & 1 rubygems