Sha256: 605b976009dbd31fb50d5f72e53b4bf6fa444a91c6490385212c3ddaa3ea02b6

Contents?: true

Size: 835 Bytes

Versions: 28

Compression:

Stored size: 835 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'}, 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
    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? }

  end

  @server.destroy

end

Version data entries

28 entries across 28 versions & 6 rubygems

Version Path
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/tests/aws/models/compute/volume_tests.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/tests/aws/models/compute/volume_tests.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/tests/aws/models/compute/volume_tests.rb
fog-1.3.1 tests/aws/models/compute/volume_tests.rb
fog-1.3.0 tests/aws/models/compute/volume_tests.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/tests/aws/models/compute/volume_tests.rb
fog-1.2.0 tests/aws/models/compute/volume_tests.rb
ktheory-fog-1.1.2 tests/aws/models/compute/volume_tests.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/tests/aws/models/compute/volume_tests.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/tests/aws/models/compute/volume_tests.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/tests/aws/models/compute/volume_tests.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/tests/aws/models/compute/volume_tests.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/tests/aws/models/compute/volume_tests.rb
fog-1.1.2 tests/aws/models/compute/volume_tests.rb
fog_tractical-1.1.4 tests/aws/models/compute/volume_tests.rb
fog_tractical-1.1.3 tests/aws/models/compute/volume_tests.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/tests/aws/models/compute/volume_tests.rb
fog-1.1.1 tests/aws/models/compute/volume_tests.rb
fog-1.1.0 tests/aws/models/compute/volume_tests.rb
brightbox-cli-0.15.0 lib/brightbox-cli/vendor/fog/tests/aws/models/compute/volume_tests.rb