Sha256: afb73f8303e8bb7b2ada7e7c5b94f638fccd5d0d79726918dbf97cff55e1812c

Contents?: true

Size: 729 Bytes

Versions: 10

Compression:

Stored size: 729 Bytes

Contents

Shindo.tests('Fog::Rackspace::BlockStorage | volume', ['rackspace']) do

  pending if Fog.mocking?

  service = Fog::Rackspace::BlockStorage.new
  options = { :display_name => "fog_#{Time.now.to_i.to_s}", :size => 100 }

  model_tests(service.volumes, options, false) do
    @instance.wait_for { ready? }

    tests('#attached?').succeeds do
      @instance.state = 'in-use'
      returns(true) { @instance.attached? }
    end

    tests('#snapshots').succeeds do
      snapshot = service.snapshots.create({ :volume_id => @instance.id })
      snapshot.wait_for { ready? }

      returns(true) { @instance.snapshots.first.id == snapshot.id }

      snapshot.destroy
    end

    @instance.wait_for { snapshots.empty? }
  end
end

Version data entries

10 entries across 10 versions & 6 rubygems

Version Path
fog-nirvanix-1.8.2 tests/rackspace/models/block_storage/volume_tests.rb
fog-nirvanix-1.8.1 tests/rackspace/models/block_storage/volume_tests.rb
fog-parser-fix-1.6.1 tests/rackspace/models/block_storage/volume_tests.rb
fog-test-again-1.6.0 tests/rackspace/models/block_storage/volume_tests.rb
fog-parser-fix-1.6.0 tests/rackspace/models/block_storage/volume_tests.rb
fog-sgonyea-1.8.1 tests/rackspace/models/block_storage/volume_tests.rb
fog-1.8.0 tests/rackspace/models/block_storage/volume_tests.rb
fog-maestrodev-1.7.0.20121114190951 tests/rackspace/models/block_storage/volume_tests.rb
fog-1.7.0 tests/rackspace/models/block_storage/volume_tests.rb
fog-1.6.0 tests/rackspace/models/block_storage/volume_tests.rb