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

Version Path
fog-ovirt-1.1.2 tests/ovirt/requests/compute/v3/update_vm_tests.rb
fog-ovirt-1.1.1 tests/ovirt/requests/compute/v3/update_vm_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-ovirt-1.1.0/tests/ovirt/requests/compute/v3/update_vm_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-ovirt-1.1.0/tests/ovirt/requests/compute/v3/update_vm_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-ovirt-1.1.0/tests/ovirt/requests/compute/v3/update_vm_tests.rb
fog-ovirt-1.1.0 tests/ovirt/requests/compute/v3/update_vm_tests.rb
fog-ovirt-1.0.4 tests/ovirt/requests/compute/v3/update_vm_tests.rb
fog-ovirt-1.0.3 tests/ovirt/requests/compute/v3/update_vm_tests.rb
fog-ovirt-1.0.2 tests/ovirt/requests/compute/v3/update_vm_tests.rb
fog-ovirt-1.0.1 tests/ovirt/requests/compute/update_vm_tests.rb
fog-ovirt-1.0.0 tests/ovirt/requests/compute/update_vm_tests.rb