Sha256: cb42e4e5c86285b18cda5fd2da1f1284650d29a7b09e2bde8adc3a34f3d38c21
Contents?: true
Size: 537 Bytes
Versions: 1
Compression:
Stored size: 537 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::Compute::Vsphere::Snapshot.new(service: 1)) test('be a kind of Hash') { response.kind_of? 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-1.36.0 | tests/vsphere/requests/compute/revert_to_snapshot_tests.rb |