Sha256: d38eed69f1f54abde50f90fcc32dee0bfa893b65f1329f3c486c6d41dce70e09

Contents?: true

Size: 638 Bytes

Versions: 9

Compression:

Stored size: 638 Bytes

Contents

Shindo.tests("Fog::Compute[:ovirt] v4 | vm_destroy request", ["ovirt"]) do
  compute = Fog::Compute.new(:provider => :ovirt, :api_version => "v4")
  if compute.servers.all(:search => "fog-*").empty?
    compute.create_vm(:name => "fog-" + Time.now.to_i.to_s, :cluster_name => "Default")
  end
  vm_id = compute.servers.all(:search => "fog-*").last.id

  tests("The response should") do
    response = compute.destroy_vm(:id => vm_id)
    test("be a success") { response ? true : false }
  end

  tests("The expected options") do
    raises(ArgumentError, "raises ArgumentError when id option is missing") { compute.destroy_vm }
  end
end

Version data entries

9 entries across 7 versions & 2 rubygems

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