Sha256: 090890c647472bbc256b3949b4ed3d85d58f080ce101949e5e65aab4cb1dfdf7

Contents?: true

Size: 642 Bytes

Versions: 66

Compression:

Stored size: 642 Bytes

Contents

Shindo.tests("Fog::Compute[:brightbox] | CloudIp model", ["brightbox"]) do
  pending if Fog.mocking?

  @test_service = Fog::Compute[:brightbox]

  tests("success") do
    @server = Brightbox::Compute::TestSupport.get_test_server
    server_id = @server.id

    @cip = @test_service.cloud_ips.allocate

    tests("#destination_id") do
      returns(true) do
        @cip.respond_to?(:destination_id)
      end

      @cip.map(@server)
      @cip.wait_for { mapped? }

      returns(server_id) do
        @cip.destination_id
      end

      @cip.unmap
      @cip.wait_for { !mapped? }
    end

    @cip.destroy

    @server.destroy
  end
end

Version data entries

66 entries across 63 versions & 7 rubygems

Version Path
fog-brightbox-1.11.0 tests/brightbox/models/compute/cloud_ip_tests.rb
fog-brightbox-1.10.0 tests/brightbox/models/compute/cloud_ip_tests.rb
fog-brightbox-1.9.1 tests/brightbox/models/compute/cloud_ip_tests.rb
fog-brightbox-1.9.0 tests/brightbox/models/compute/cloud_ip_tests.rb
fog-brightbox-1.8.2 tests/brightbox/models/compute/cloud_ip_tests.rb
fog-brightbox-1.8.1 tests/brightbox/models/compute/cloud_ip_tests.rb
fog-brightbox-1.8.0 tests/brightbox/models/compute/cloud_ip_tests.rb
fog-brightbox-1.7.3 tests/brightbox/models/compute/cloud_ip_tests.rb
fog-brightbox-1.7.2 tests/brightbox/models/compute/cloud_ip_tests.rb
fog-brightbox-1.7.1 tests/brightbox/models/compute/cloud_ip_tests.rb
fog-brightbox-1.7.0 tests/brightbox/models/compute/cloud_ip_tests.rb
fog-brightbox-1.6.0 tests/brightbox/models/compute/cloud_ip_tests.rb
fog-brightbox-1.5.0 tests/brightbox/models/compute/cloud_ip_tests.rb
fog-brightbox-1.5.0.rc1 tests/brightbox/models/compute/cloud_ip_tests.rb
fog-brightbox-1.4.2 tests/brightbox/models/compute/cloud_ip_tests.rb
fog-brightbox-1.4.1 tests/brightbox/models/compute/cloud_ip_tests.rb
fog-brightbox-1.4.0 tests/brightbox/models/compute/cloud_ip_tests.rb
fog-brightbox-1.3.0 tests/brightbox/models/compute/cloud_ip_tests.rb
fog-brightbox-1.2.0 tests/brightbox/models/compute/cloud_ip_tests.rb
fog-brightbox-1.1.0 tests/brightbox/models/compute/cloud_ip_tests.rb