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-maestrodev-1.19.0.20140107142106 tests/hp/models/block_storage/snapshot_tests.rb
fog-maestrodev-1.19.0.20131219203941 tests/hp/models/block_storage/snapshot_tests.rb
fog-maestrodev-1.18.0.20131219193542 tests/hp/models/block_storage/snapshot_tests.rb
fog-1.19.0 tests/hp/models/block_storage/snapshot_tests.rb
fog-maestrodev-1.18.0.20131219033443 tests/hp/models/block_storage/snapshot_tests.rb
fog-maestrodev-1.18.0.20131219032002 tests/hp/models/block_storage/snapshot_tests.rb
fog-maestrodev-1.18.0.20131219030716 tests/hp/models/block_storage/snapshot_tests.rb
fog-maestrodev-1.18.0.20131219022322 tests/hp/models/block_storage/snapshot_tests.rb
fog-maestrodev-1.18.0.20131218202447 tests/hp/models/block_storage/snapshot_tests.rb
fog-maestrodev-1.18.0.20131209091424 tests/hp/models/block_storage/snapshot_tests.rb
fog-maestrodev-1.18.0.20131209090811 tests/hp/models/block_storage/snapshot_tests.rb
fog-maestrodev-1.18.0.20131206115947 tests/hp/models/block_storage/snapshot_tests.rb
fog-maestrodev-1.18.0.20131205181604 tests/hp/models/block_storage/snapshot_tests.rb
fog-maestrodev-1.18.0.20131127194823 tests/hp/models/block_storage/snapshot_tests.rb
fog-maestrodev-1.18.0.20131126183714 tests/hp/models/block_storage/snapshot_tests.rb
fog-maestrodev-1.18.0.20131126122111 tests/hp/models/block_storage/snapshot_tests.rb
fog-maestrodev-1.18.0.20131125111730 tests/hp/models/block_storage/snapshot_tests.rb
fog-maestrodev-1.18.0.20131125083406 tests/hp/models/block_storage/snapshot_tests.rb
fog-maestrodev-1.18.0.20131123105121 tests/hp/models/block_storage/snapshot_tests.rb
fog-maestrodev-1.18.0.20131122203507 tests/hp/models/block_storage/snapshot_tests.rb