Sha256: a9a86f8b98afdf299ac8d18545a247bc45f43a66ab26c2f07619e0e17e830428
Contents?: true
Size: 727 Bytes
Versions: 4
Compression:
Stored size: 727 Bytes
Contents
Shindo.tests("Fog::Compute[:ovirt] | update_volume request", ["ovirt"]) do compute = Fog::Compute[:ovirt] compute.create_vm(:name => "fog-" + Time.now.to_i.to_s, :cluster_name => "Default") if compute.servers.all(:search => "fog-*").empty? vm_id = compute.servers.all(:search => "fog-*").last tests("The expected options") do raises(ArgumentError, "raises ArgumentError when vm id is missing") { compute.update_volume(nil, :id => 1) } raises(ArgumentError, "raises ArgumentError when disk_id option is missing") { compute.update_volume(1, :any => 1) } end tests("The response should") do response = compute.update_volume(vm_id, :id => 1) test("be a success") { response ? true : false } end end
Version data entries
4 entries across 4 versions & 1 rubygems