Sha256: f315b538f388035c19a7172c6a40f7c7f03eb92544233553e7d076b180781a4d

Contents?: true

Size: 421 Bytes

Versions: 33

Compression:

Stored size: 421 Bytes

Contents

def server_tests(connection, params = {}, mocks_implemented = true)

  model_tests(connection.servers, params, mocks_implemented) do

    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

33 entries across 33 versions & 2 rubygems

Version Path
fog-0.8.1 tests/helpers/compute/server_helper.rb
fog-0.8.0 tests/helpers/compute/server_helper.rb
fog-0.7.2 tests/helpers/compute/server_helper.rb
fog-0.7.1 tests/helpers/compute/server_helper.rb
fog-0.7.0 tests/helpers/compute/server_helper.rb
fog-0.6.0 tests/helpers/compute/server_helper.rb
fog-0.5.3 tests/helpers/compute/server_helper.rb
fog-0.5.2 tests/helpers/compute/server_helper.rb
fog-0.5.1 tests/helpers/compute/server_helper.rb
fog-0.5.0 tests/helpers/compute/server_helper.rb
phpfog-fog-0.4.1.3 tests/helpers/compute/server_helper.rb
phpfog-fog-0.4.1.2 tests/helpers/compute/server_helper.rb
phpfog-fog-0.4.1.1 tests/helpers/compute/server_helper.rb
phpfog-fog-0.4.1 tests/helpers/compute/server_helper.rb
fog-0.4.1 tests/helpers/compute/server_helper.rb
fog-0.4.0 tests/helpers/compute/server_helper.rb
fog-0.3.34 tests/helpers/compute/server_tests.rb
fog-0.3.33 tests/helpers/compute/server_tests.rb
fog-0.3.32 tests/helpers/compute/server_tests.rb
fog-0.3.31 tests/helpers/compute/server_tests.rb