Sha256: 849c270e4f5dd26fe113c62fc3365eb38928474d24de74a39ffb93320a9225bd

Contents?: true

Size: 974 Bytes

Versions: 32

Compression:

Stored size: 974 Bytes

Contents

Shindo.tests("Fog::Compute[:aws] | volume", ['aws']) do

  @server = Fog::Compute[:aws].servers.create
  @server.wait_for { ready? }

  model_tests(Fog::Compute[:aws].volumes, {:availability_zone => @server.availability_zone, :size => 1, :device => '/dev/sdz1', :tags => {"key" => "value"}}, true) do

    @instance.wait_for { ready? }

    tests('#server = @server').succeeds do
      @instance.server = @server
    end

    @instance.wait_for { state == 'in-use' }

    tests('#server').succeeds do
      @instance.server
    end

    tests('#server = nil').succeeds do
      (@instance.server = nil).nil?
    end

    @instance.wait_for { ready? }

    @instance.server = @server
    @instance.wait_for { state == 'in-use' }

    tests('#force_detach').succeeds do
      @instance.force_detach
    end

    @instance.wait_for { ready? }

    tests('@instance.reload.tags').returns({'key' => 'value'}) do
      @instance.reload.tags
    end

  end

  @server.destroy

end

Version data entries

32 entries across 32 versions & 10 rubygems

Version Path
gapinc-fog-1.12.1.2.1 tests/aws/models/compute/volume_tests.rb
fog-1.14.0 tests/aws/models/compute/volume_tests.rb
fog-1.13.0 tests/aws/models/compute/volume_tests.rb
gapinc-fog-1.12.1.2 tests/aws/models/compute/volume_tests.rb
gapinc-fog-1.12.1.1 tests/aws/models/compute/volume_tests.rb
gapinc-fog-1.12.1a tests/aws/models/compute/volume_tests.rb
gapinc-fog-1.12.1 tests/aws/models/compute/volume_tests.rb
fog-1.12.1 tests/aws/models/compute/volume_tests.rb
fog-1.12.0 tests/aws/models/compute/volume_tests.rb
hpfog-0.0.20 tests/aws/models/compute/volume_tests.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/tests/aws/models/compute/volume_tests.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/tests/aws/models/compute/volume_tests.rb
fog-nirvanix-1.8.2 tests/aws/models/compute/volume_tests.rb
fog-1.11.1 tests/aws/models/compute/volume_tests.rb
fog-1.11.0 tests/aws/models/compute/volume_tests.rb
fog-nirvanix-1.8.1 tests/aws/models/compute/volume_tests.rb
fog-1.10.1 tests/aws/models/compute/volume_tests.rb
fog-parser-fix-1.6.1 tests/aws/models/compute/volume_tests.rb
fog-test-again-1.6.0 tests/aws/models/compute/volume_tests.rb
fog-test-me-1.10.0 tests/aws/models/compute/volume_tests.rb