Sha256: 87f8fb479e3a3701af9b3bfb3467441f17a51e0d67a7c06f7f58da8e13609e96

Contents?: true

Size: 721 Bytes

Versions: 21

Compression:

Stored size: 721 Bytes

Contents

Shindo.tests("Fog::Compute[:cloudstack] | public_ip_address", "cloudstack") do
  config = compute_providers[:cloudstack]
  compute = Fog::Compute[:cloudstack]

  model_tests(compute.public_ip_addresses, config[:public_ip_address_attributes], config[:mocked]) do
    @server = Fog::Compute[:cloudstack].servers.create(config[:server_attributes])
    @server.wait_for { ready? }

    tests('#server=').succeeds do
      @instance.server = @server
    end

    tests('#server') do
      test(' == @server') do
        @instance.reload
        @instance.server_id == @server.id
      end
    end

    test('#server = nil') do
      @instance.server = nil
      @instance.server_id.nil?
    end

    @server.destroy
  end
end

Version data entries

21 entries across 19 versions & 3 rubygems

Version Path
fog-2.1.0 tests/cloudstack/compute/models/public_ip_address_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/tests/cloudstack/compute/models/public_ip_address_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/tests/cloudstack/compute/models/public_ip_address_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/tests/cloudstack/compute/models/public_ip_address_tests.rb
fog-1.42.1 tests/cloudstack/compute/models/public_ip_address_tests.rb
fog-2.0.0 tests/cloudstack/compute/models/public_ip_address_tests.rb
fog-1.42.0 tests/cloudstack/compute/models/public_ip_address_tests.rb
fog-1.41.0 tests/cloudstack/compute/models/public_ip_address_tests.rb
fog-1.40.0 tests/cloudstack/compute/models/public_ip_address_tests.rb
fog-1.39.0 tests/cloudstack/compute/models/public_ip_address_tests.rb
fog-1.38.0 tests/cloudstack/compute/models/public_ip_address_tests.rb
fog-1.37.0 tests/cloudstack/compute/models/public_ip_address_tests.rb
fog-1.36.0 tests/cloudstack/compute/models/public_ip_address_tests.rb
fog-1.35.0 tests/cloudstack/compute/models/public_ip_address_tests.rb
fog-2.0.0.pre.0 tests/cloudstack/compute/models/public_ip_address_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/cloudstack/compute/models/public_ip_address_tests.rb
fog-1.34.0 tests/cloudstack/compute/models/public_ip_address_tests.rb
fog-1.33.0 tests/cloudstack/compute/models/public_ip_address_tests.rb
fog-1.32.0 tests/cloudstack/compute/models/public_ip_address_tests.rb
fog-1.31.0 tests/cloudstack/compute/models/public_ip_address_tests.rb