Sha256: 69e80c38658b873d3a338c1e2767129dd975da03b9d37c8d3bc5aabfa5719e65

Contents?: true

Size: 699 Bytes

Versions: 16

Compression:

Stored size: 699 Bytes

Contents

extend Beaker::DSL::InstallUtils::FOSSUtils

test_name "Finalize Host Installation"

step "Verify host times" do
  # Get a rough estimate of clock skew among hosts
  times = []
  hosts.each do |host|
    ruby = ruby_command(host)
    on(host, "#{ruby} -e 'puts Time.now.strftime(\"%Y-%m-%d %T.%L %z\")'") do |result|
      times << result.stdout.chomp
    end
  end
  times.map! do |time|
    (Time.strptime(time, "%Y-%m-%d %T.%L %z").to_f * 1000.0).to_i
  end
  diff = times.max - times.min
  if diff < 60000
    logger.info "Host times vary #{diff} ms"
  else
    logger.warn "Host times vary #{diff} ms, tests may fail"
  end
end

step "Configure gem mirror" do
  configure_gem_mirror(hosts)
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
beaker-puppet-1.0.0 setup/aio/012_Finalize_Installs.rb
beaker-puppet-0.17.1 setup/aio/012_Finalize_Installs.rb
beaker-puppet-0.17.0 setup/aio/012_Finalize_Installs.rb
beaker-puppet-0.16.0 setup/aio/012_Finalize_Installs.rb
beaker-puppet-0.15.2 setup/aio/012_Finalize_Installs.rb
beaker-puppet-0.15.1 setup/aio/012_Finalize_Installs.rb
beaker-puppet-0.15.0 setup/aio/012_Finalize_Installs.rb
beaker-puppet-0.14.0 setup/aio/012_Finalize_Installs.rb
beaker-puppet-0.13.6 setup/aio/012_Finalize_Installs.rb
beaker-puppet-0.13.5 setup/aio/012_Finalize_Installs.rb
beaker-puppet-0.13.4 setup/aio/012_Finalize_Installs.rb
beaker-puppet-0.13.3 setup/aio/012_Finalize_Installs.rb
beaker-puppet-0.13.2 setup/aio/012_Finalize_Installs.rb
beaker-puppet-0.13.1 setup/aio/012_Finalize_Installs.rb
beaker-puppet-0.13.0 setup/aio/012_Finalize_Installs.rb
beaker-puppet-0.12.0 setup/aio/012_Finalize_Installs.rb