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-1.30.0 tests/cloudstack/compute/models/volume_tests.rb
fog-1.29.0 tests/cloudstack/compute/models/volume_tests.rb
fog-1.28.0 tests/cloudstack/compute/models/volume_tests.rb
fog-1.27.0 tests/cloudstack/compute/models/volume_tests.rb
fog-1.26.0 tests/cloudstack/compute/models/volume_tests.rb
fog-1.25.0 tests/cloudstack/compute/models/volume_tests.rb
nsidc-fog-1.24.1 tests/cloudstack/compute/models/volume_tests.rb
fog-1.24.0 tests/cloudstack/compute/models/volume_tests.rb
ns-fog-1.22.11 tests/cloudstack/compute/models/volume_tests.rb
ns-fog-1.22.10 tests/cloudstack/compute/models/volume_tests.rb
ns-fog-1.22.9 tests/cloudstack/compute/models/volume_tests.rb
ns-fog-1.22.8 tests/cloudstack/compute/models/volume_tests.rb
ns-fog-1.22.7 tests/cloudstack/compute/models/volume_tests.rb
ns-fog-1.22.6 tests/cloudstack/compute/models/volume_tests.rb
fog-1.23.0 tests/cloudstack/compute/models/volume_tests.rb
ns-fog-1.22.4 tests/cloudstack/compute/models/volume_tests.rb
ns-fog-1.22.3 tests/cloudstack/compute/models/volume_tests.rb
ns-fog-1.22.2 tests/cloudstack/compute/models/volume_tests.rb
fog-1.22.1 tests/cloudstack/compute/models/volume_tests.rb
fog-1.22.0 tests/cloudstack/compute/models/volume_tests.rb