Sha256: 042ac2e3790cfeb71c25ec4560e914ddae66f1a1c9ab1d9752ce1c814783c66e

Contents?: true

Size: 654 Bytes

Versions: 53

Compression:

Stored size: 654 Bytes

Contents

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

53 entries across 53 versions & 1 rubygems

Version Path
beaker-puppet-1.29.0 setup/common/012_Finalize_Installs.rb
beaker-puppet-1.28.0 setup/common/012_Finalize_Installs.rb
beaker-puppet-1.27.0 setup/common/012_Finalize_Installs.rb
beaker-puppet-1.26.3 setup/common/012_Finalize_Installs.rb
beaker-puppet-1.26.2 setup/common/012_Finalize_Installs.rb
beaker-puppet-1.26.1 setup/common/012_Finalize_Installs.rb
beaker-puppet-1.26.0 setup/common/012_Finalize_Installs.rb
beaker-puppet-1.25.0 setup/common/012_Finalize_Installs.rb
beaker-puppet-1.24.0 setup/common/012_Finalize_Installs.rb
beaker-puppet-1.23.0 setup/common/012_Finalize_Installs.rb
beaker-puppet-1.22.2 setup/common/012_Finalize_Installs.rb
beaker-puppet-1.22.1 setup/common/012_Finalize_Installs.rb
beaker-puppet-1.22.0 setup/common/012_Finalize_Installs.rb
beaker-puppet-1.21.0 setup/common/012_Finalize_Installs.rb
beaker-puppet-1.20.0 setup/common/012_Finalize_Installs.rb
beaker-puppet-1.19.2 setup/common/012_Finalize_Installs.rb
beaker-puppet-1.19.1 setup/common/012_Finalize_Installs.rb
beaker-puppet-1.19.0 setup/common/012_Finalize_Installs.rb
beaker-puppet-1.18.15 setup/common/012_Finalize_Installs.rb
beaker-puppet-1.18.14 setup/common/012_Finalize_Installs.rb