1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/hp/models/block_storage_v2/snapshots_tests.rb

10 lines
416 B
Ruby

Shindo.tests("HP::BlockStorageV2 | snapshots collection", ['hp', 'v2', 'block_storage', 'snapshots']) do
@volume = HP[:block_storage_v2].volumes.create(:name => 'testsnap2vol', :size => 1)
@volume.wait_for { ready? } unless Fog.mocking?
collection_tests(HP[:block_storage_v2].snapshots, {:name => 'fogsnap2tests', :description => 'fogsnaptests-desc', :volume_id => @volume.id}, true)
@volume.destroy
end