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

Version Path
fog-ovirt-0.1.3 tests/ovirt/requests/compute/update_vm_tests.rb
fog-ovirt-0.1.2 tests/ovirt/requests/compute/update_vm_tests.rb
fog-ovirt-0.1.1 tests/ovirt/requests/compute/update_vm_tests.rb
fog-ovirt-0.1.0 tests/ovirt/requests/compute/update_vm_tests.rb
fog-ovirt-0.0.1 tests/ovirt/requests/compute/update_vm_tests.rb
fog-1.41.0 tests/ovirt/requests/compute/update_vm_tests.rb
fog-1.40.0 tests/ovirt/requests/compute/update_vm_tests.rb
fog-1.39.0 tests/ovirt/requests/compute/update_vm_tests.rb
fog-1.38.0 tests/ovirt/requests/compute/update_vm_tests.rb
fog-1.37.0 tests/ovirt/requests/compute/update_vm_tests.rb
fog-1.36.0 tests/ovirt/requests/compute/update_vm_tests.rb
fog-1.35.0 tests/ovirt/requests/compute/update_vm_tests.rb
fog-2.0.0.pre.0 tests/ovirt/requests/compute/update_vm_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/ovirt/requests/compute/update_vm_tests.rb
fog-1.34.0 tests/ovirt/requests/compute/update_vm_tests.rb
fog-1.33.0 tests/ovirt/requests/compute/update_vm_tests.rb
fog-1.32.0 tests/ovirt/requests/compute/update_vm_tests.rb
fog-1.31.0 tests/ovirt/requests/compute/update_vm_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/ovirt/requests/compute/update_vm_tests.rb
fog-1.30.0 tests/ovirt/requests/compute/update_vm_tests.rb