Sha256: 26db3e7938f75af3b5167724d51f012a627568719feeb4edf950d11865af9474

Contents?: true

Size: 598 Bytes

Versions: 91

Compression:

Stored size: 598 Bytes

Contents

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

  model_tests(HP[:block_storage].volumes, {:name => "fogvoltests", :description => "fogvoltests-desc", :size => 1}, true)

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

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

    test("has_attachments?") do
      @volume.has_attachments? == false
    end
    after do
      @volume.destroy
    end
  end

end

Version data entries

91 entries across 91 versions & 9 rubygems

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