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-test-again-1.6.0 tests/ovirt/requests/compute/update_vm_tests.rb
fog-test-me-1.10.0 tests/ovirt/requests/compute/update_vm_tests.rb
fog-parser-fix-1.6.0 tests/ovirt/requests/compute/update_vm_tests.rb
fog-1.10.0 tests/ovirt/requests/compute/update_vm_tests.rb
fog-1.9.0 tests/ovirt/requests/compute/update_vm_tests.rb
fog-maestrodev-1.8.0.20130114204828 tests/ovirt/requests/compute/update_vm_tests.rb
fog-maestrodev-1.8.0.20130111070250 tests/ovirt/requests/compute/update_vm_tests.rb
fog-maestrodev-1.8.0.20130109172219 tests/ovirt/requests/compute/update_vm_tests.rb
fog-sgonyea-1.8.1 tests/ovirt/requests/compute/update_vm_tests.rb
fog-1.8.0 tests/ovirt/requests/compute/update_vm_tests.rb
fog-maestrodev-1.7.0.20121114190951 tests/ovirt/requests/compute/update_vm_tests.rb
fog-1.7.0 tests/ovirt/requests/compute/update_vm_tests.rb
fog-1.6.0 tests/ovirt/requests/compute/update_vm_tests.rb
fog-1.5.0 tests/ovirt/requests/compute/update_vm_tests.rb
rackspace-fog-1.4.2 tests/ovirt/requests/compute/update_vm_tests.rb
fog-1.4.0 tests/ovirt/requests/compute/update_vm_tests.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/tests/ovirt/requests/compute/update_vm_tests.rb
michiels-fog-1.3.1 tests/ovirt/requests/compute/update_vm_tests.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/tests/ovirt/requests/compute/update_vm_tests.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/tests/ovirt/requests/compute/update_vm_tests.rb