Sha256: d19e56094416e99c3824225a808664016e13323d13d75bc66188b40e40f6bdb3

Contents?: true

Size: 685 Bytes

Versions: 67

Compression:

Stored size: 685 Bytes

Contents

Shindo.tests("HP::BlockStorage | volume backup model", ['hp', 'v2', 'block_storage', 'backup']) do

  @volume = HP[:block_storage_v2].volumes.create(:name => 'fogvolbkp2tests', :description => 'fogvolbkp2tests-desc', :size => 1)
  @volume.wait_for { ready? } unless Fog.mocking?

  model_tests(HP[:block_storage_v2].volume_backups, {:name => 'fogbkp2tests', :description => 'fogbkp2tests-desc', :volume_id => @volume.id}, true) do

    # restore to new volume
    tests('restore()').succeeds do
      @instance.restore
    end

    # restore to specified volume
    tests("restore(#{@volume.id})").succeeds do
      @instance.restore(@volume.id)
    end

  end

  @volume.destroy

end

Version data entries

67 entries across 67 versions & 5 rubygems

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