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
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/tests/cloudstack/compute/models/volume_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/tests/cloudstack/compute/models/volume_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/tests/cloudstack/compute/models/volume_tests.rb
fog-1.42.1 tests/cloudstack/compute/models/volume_tests.rb
fog-2.0.0 tests/cloudstack/compute/models/volume_tests.rb
fog-1.42.0 tests/cloudstack/compute/models/volume_tests.rb
fog-1.41.0 tests/cloudstack/compute/models/volume_tests.rb
fog-1.40.0 tests/cloudstack/compute/models/volume_tests.rb
fog-1.39.0 tests/cloudstack/compute/models/volume_tests.rb
fog-1.38.0 tests/cloudstack/compute/models/volume_tests.rb
fog-1.37.0 tests/cloudstack/compute/models/volume_tests.rb
fog-1.36.0 tests/cloudstack/compute/models/volume_tests.rb
fog-1.35.0 tests/cloudstack/compute/models/volume_tests.rb
fog-2.0.0.pre.0 tests/cloudstack/compute/models/volume_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/cloudstack/compute/models/volume_tests.rb
fog-1.34.0 tests/cloudstack/compute/models/volume_tests.rb
fog-1.33.0 tests/cloudstack/compute/models/volume_tests.rb
fog-1.32.0 tests/cloudstack/compute/models/volume_tests.rb
fog-1.31.0 tests/cloudstack/compute/models/volume_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/cloudstack/compute/models/volume_tests.rb