Sha256: 8067b38c033289bc3cea29d238b5be2b6db9ccd317d26e3c410b7d5f2bf4539e
Contents?: true
Size: 631 Bytes
Versions: 125
Compression:
Stored size: 631 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.kind_of? 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
125 entries across 125 versions & 19 rubygems