Sha256: 0505f2262b13d2fea70ae8a4336d0f355f18c5c5d30d6b255ecae592ab891ecc

Contents?: true

Size: 832 Bytes

Versions: 114

Compression:

Stored size: 832 Bytes

Contents

def volume_tests(connection, params, mocks_implemented = true)
  model_tests(connection.volumes, params[:volume_attributes], mocks_implemented) do
    if !Fog.mocking? || mocks_implemented
      @instance.wait_for { ready? }
    end

    @server = @instance.connection.servers.create(params[:server_attributes])
    @server.wait_for { ready? }

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

    tests('detach').succeeds do
      @instance.detach
    end

    @server.destroy
  end
end

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

  config = compute_providers[:cloudstack]

  volume_tests(Fog::Compute[:cloudstack], config, config[:mocked]) do
    if Fog.mocking? && !mocks_implemented
      pending
    else
      responds_to(:ready?)
      responds_to(:flavor)
    end
  end
end

Version data entries

114 entries across 112 versions & 14 rubygems

Version Path
fog-maestrodev-1.18.0.20131206115947 tests/cloudstack/compute/models/volume_tests.rb
fog-maestrodev-1.18.0.20131205181604 tests/cloudstack/compute/models/volume_tests.rb
fog-maestrodev-1.18.0.20131127194823 tests/cloudstack/compute/models/volume_tests.rb
fog-maestrodev-1.18.0.20131126183714 tests/cloudstack/compute/models/volume_tests.rb
fog-maestrodev-1.18.0.20131126122111 tests/cloudstack/compute/models/volume_tests.rb
fog-maestrodev-1.18.0.20131125111730 tests/cloudstack/compute/models/volume_tests.rb
fog-maestrodev-1.18.0.20131125083406 tests/cloudstack/compute/models/volume_tests.rb
fog-maestrodev-1.18.0.20131123105121 tests/cloudstack/compute/models/volume_tests.rb
fog-maestrodev-1.18.0.20131122203507 tests/cloudstack/compute/models/volume_tests.rb
fog-maestrodev-1.18.0.20131121075022 tests/cloudstack/compute/models/volume_tests.rb
fog-maestrodev-1.18.0.20131118164830 tests/cloudstack/compute/models/volume_tests.rb
fog-maestrodev-1.18.0.20131115184302 tests/cloudstack/compute/models/volume_tests.rb
fog-maestrodev-1.18.0.20131114200144 tests/cloudstack/compute/models/volume_tests.rb
gapinc-fog-1.12.1.2.1 tests/cloudstack/compute/models/volume_tests.rb
fog-maestrodev-1.18.0.20131112185232 tests/cloudstack/compute/models/volume_tests.rb
fog-maestrodev-1.18.0.20131111203459 tests/cloudstack/compute/models/volume_tests.rb
fog-1.18.0 tests/cloudstack/compute/models/volume_tests.rb
fog-1.17.0 tests/cloudstack/compute/models/volume_tests.rb
fog-1.16.0 tests/cloudstack/compute/models/volume_tests.rb
fog-maestrodev-1.15.0.20130927082724 tests/cloudstack/compute/models/volume_tests.rb