Sha256: 3732e29894f881b13ca4fe4615db569c5d288801a6bb37aca38dde16232a49d1

Contents?: true

Size: 674 Bytes

Versions: 16

Compression:

Stored size: 674 Bytes

Contents

def server_tests(connection, params = {}, mocks_implemented = true)
  model_tests(connection.servers, params, mocks_implemented) do
    tests('#reload').returns(true) do
      pending if Fog.mocking? && !mocks_implemented
      @instance.wait_for { ready? }
      identity = @instance.identity
      !identity.nil? && identity == @instance.reload.identity
    end

    responds_to(%i[ready state])
    yield if block_given?

    tests('#reboot').succeeds do
      pending if Fog.mocking? && !mocks_implemented
      @instance.wait_for { ready? }
      @instance.reboot
    end

    if !Fog.mocking? || mocks_implemented
      @instance.wait_for { ready? }
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
fog-aws-3.12.0 tests/helpers/compute/server_helper.rb
fog-aws-3.11.0 tests/helpers/compute/server_helper.rb
fog-aws-3.10.0 tests/helpers/compute/server_helper.rb
fog-aws-3.9.0 tests/helpers/compute/server_helper.rb
fog-aws-3.8.0 tests/helpers/compute/server_helper.rb
fog-aws-3.7.0 tests/helpers/compute/server_helper.rb
fog-aws-3.6.7 tests/helpers/compute/server_helper.rb
fog-aws-3.6.6 tests/helpers/compute/server_helper.rb
fog-aws-3.6.5 tests/helpers/compute/server_helper.rb
fog-aws-3.6.4 tests/helpers/compute/server_helper.rb
fog-aws-3.6.3 tests/helpers/compute/server_helper.rb
fog-aws-3.6.2 tests/helpers/compute/server_helper.rb
fog-aws-3.5.2 tests/helpers/compute/server_helper.rb
fog-aws-3.5.1 tests/helpers/compute/server_helper.rb
fog-aws-3.5.0 tests/helpers/compute/server_helper.rb
fog-aws-3.4.0 tests/helpers/compute/server_helper.rb