Skip to content

Commit

Permalink
Merge pull request #512 from ekohl/spec-helper-acceptance
Browse files Browse the repository at this point in the history
Clean up acceptance spec helper
  • Loading branch information
baurmatt authored Nov 26, 2019
2 parents fc89de2 + 0eeecab commit 734acec
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@
require 'beaker/module_install_helper'

run_puppet_install_helper unless ENV['BEAKER_provision'] == 'no'
install_ca_certs unless ENV['PUPPET_INSTALL_TYPE'] =~ %r{pe}i
install_module_on(hosts)
install_module_dependencies_on(hosts)

RSpec.configure do |c|
# Readable test descriptions
c.formatter = :documentation
hosts.each do |host|
if host[:platform] =~ %r{el-7-x86_64} && host[:hypervisor] =~ %r{docker}
on(host, "sed -i '/nodocs/d' /etc/yum.conf")
end

# Configure all nodes in nodeset
c.before :suite do
install_module
install_module_dependencies
end
end

0 comments on commit 734acec

Please sign in to comment.