Sha256: 859d073f50e8a1525986d6bb9f8b95cd9d058e5c6a8d0f60b7787df70007b84b

Contents?: true

Size: 454 Bytes

Versions: 5

Compression:

Stored size: 454 Bytes

Contents

require 'ostruct'

Shindo.tests('Fog::Compute[:vsphere] | update_vm request', 'vsphere') do
  compute = Fog::Compute[:vsphere]
  server = Fog::Vsphere::Compute::Server.new

  tests('UPDATE vm | The return value should') do
    response = compute.update_vm(server)
    test('be a kind of Hash') { response.is_a? Hash }
    test('should have a task_state key') { response.key? 'task_state' }
    test('be a kind of Hash') { response.is_a? Hash }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fog-vsphere-3.7.0 tests/requests/compute/update_vm_tests.rb
fog-vsphere-3.6.8 tests/requests/compute/update_vm_tests.rb
fog-vsphere-3.6.7 tests/requests/compute/update_vm_tests.rb
fog-vsphere-3.6.6 tests/requests/compute/update_vm_tests.rb
fog-vsphere-3.0.0 tests/requests/compute/update_vm_tests.rb