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