Sha256: 5c471ccb9e2dba5d07b5f681932a85f126ec7b7e32e2de2a9d799cd94f6ccd7f

Contents?: true

Size: 532 Bytes

Versions: 5

Compression:

Stored size: 532 Bytes

Contents

Shindo.tests('Fog::Compute[:vsphere] | revert_to_snapshot request', ['vsphere']) do
  compute = Fog::Compute[:vsphere]

  tests('The response should') do
    response = compute.revert_to_snapshot(Fog::Vsphere::Compute::Snapshot.new(service: 1))
    test('be a kind of Hash') { response.is_a? Hash }
    test('should have a task_state key') { response.key? 'state' }
  end

  tests('The expected options') do
    raises(ArgumentError, 'raises ArgumentError when input param is missing') { compute.revert_to_snapshot(nil) }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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