Sha256: bdcce74ed7b6caa12c850537e2e9b0bf6d68377052f83fa28760d4a495e65633
Contents?: true
Size: 629 Bytes
Versions: 11
Compression:
Stored size: 629 Bytes
Contents
Shindo.tests("Fog::Compute[:ovirt] | vm_update request", ["ovirt"]) do compute = Fog::Compute[:ovirt] if compute.servers.all(:search => "fog-*").empty? compute.create_vm(:name => "fog-" + Time.now.to_i.to_s, :cluster_name => "Default") end 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
11 entries across 9 versions & 2 rubygems