Sha256: db887d8e3852158c86590673e5ac41e2fa23e3b03530327a16817aecf3a18b9d

Contents?: true

Size: 654 Bytes

Versions: 96

Compression:

Stored size: 654 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([:ready?, :state])

    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

96 entries across 96 versions & 17 rubygems

Version Path
fog-maestrodev-1.19.0.20140212012611 tests/helpers/compute/server_helper.rb
fog-maestrodev-1.19.0.20140110004459 tests/helpers/compute/server_helper.rb
fog-maestrodev-1.19.0.20140110003812 tests/helpers/compute/server_helper.rb
fog-maestrodev-1.19.0.20140109202555 tests/helpers/compute/server_helper.rb
fog-maestrodev-1.19.0.20140107192102 tests/helpers/compute/server_helper.rb
fog-maestrodev-1.19.0.20140107142106 tests/helpers/compute/server_helper.rb
fog-maestrodev-1.19.0.20131219203941 tests/helpers/compute/server_helper.rb
fog-maestrodev-1.18.0.20131219193542 tests/helpers/compute/server_helper.rb
fog-1.19.0 tests/helpers/compute/server_helper.rb
fog-maestrodev-1.18.0.20131219033443 tests/helpers/compute/server_helper.rb
fog-maestrodev-1.18.0.20131219032002 tests/helpers/compute/server_helper.rb
fog-maestrodev-1.18.0.20131219030716 tests/helpers/compute/server_helper.rb
fog-maestrodev-1.18.0.20131219022322 tests/helpers/compute/server_helper.rb
fog-maestrodev-1.18.0.20131218202447 tests/helpers/compute/server_helper.rb
fog-maestrodev-1.18.0.20131209091424 tests/helpers/compute/server_helper.rb
fog-maestrodev-1.18.0.20131209090811 tests/helpers/compute/server_helper.rb
fog-maestrodev-1.18.0.20131206115947 tests/helpers/compute/server_helper.rb
fog-maestrodev-1.18.0.20131205181604 tests/helpers/compute/server_helper.rb
fog-maestrodev-1.18.0.20131127194823 tests/helpers/compute/server_helper.rb
fog-maestrodev-1.18.0.20131126183714 tests/helpers/compute/server_helper.rb