Sha256: 18c3ff9098b6d58fef9ecd663fe6c6ec5077370b7a414ae7c94194d217069d51

Contents?: true

Size: 722 Bytes

Versions: 91

Compression:

Stored size: 722 Bytes

Contents

Shindo.tests("HP::BlockStorage | snapshots", ['hp', 'block_storage', 'snapshots']) do

  @volume = HP[:block_storage].volumes.create(:name => "testsnapvol", :size => 1)
  @volume.wait_for { ready? } unless Fog.mocking?

  model_tests(HP[:block_storage].snapshots, {:name => "fogsnaptests", :description => "fogsnaptests-desc", :volume_id => @volume.id}, true)

  tests("new snapshot") do
    @snapshot = HP[:block_storage].snapshots.create(:name => "testvol", :volume_id => @volume.id)
    @snapshot.wait_for { ready? } unless Fog.mocking?

    test("get(#{@snapshot.id})") do
      HP[:block_storage].snapshots.get(@snapshot.id) != nil?
    end

    after do
      @snapshot.destroy
    end
  end

  @volume.destroy

end

Version data entries

91 entries across 91 versions & 9 rubygems

Version Path
fog-1.38.0 tests/hp/models/block_storage/snapshot_tests.rb
fog-1.37.0 tests/hp/models/block_storage/snapshot_tests.rb
fog-1.36.0 tests/hp/models/block_storage/snapshot_tests.rb
fog-1.35.0 tests/hp/models/block_storage/snapshot_tests.rb
fog-2.0.0.pre.0 tests/hp/models/block_storage/snapshot_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/hp/models/block_storage/snapshot_tests.rb
fog-1.34.0 tests/hp/models/block_storage/snapshot_tests.rb
fog-1.33.0 tests/hp/models/block_storage/snapshot_tests.rb
fog-1.32.0 tests/hp/models/block_storage/snapshot_tests.rb
fog-1.31.0 tests/hp/models/block_storage/snapshot_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/hp/models/block_storage/snapshot_tests.rb
fog-1.30.0 tests/hp/models/block_storage/snapshot_tests.rb
fog-1.29.0 tests/hp/models/block_storage/snapshot_tests.rb
fog-1.28.0 tests/hp/models/block_storage/snapshot_tests.rb
fog-1.27.0 tests/hp/models/block_storage/snapshot_tests.rb
fog-1.26.0 tests/hp/models/block_storage/snapshot_tests.rb
fog-1.25.0 tests/hp/models/block_storage/snapshot_tests.rb
nsidc-fog-1.24.1 tests/hp/models/block_storage/snapshot_tests.rb
fog-1.24.0 tests/hp/models/block_storage/snapshot_tests.rb
ns-fog-1.22.11 tests/hp/models/block_storage/snapshot_tests.rb