diff options
author | Hunter Haugen <hunter@puppetlabs.com> | 2014-05-06 18:48:59 -0700 |
---|---|---|
committer | Hunter Haugen <hunter@puppetlabs.com> | 2014-05-07 15:00:30 -0700 |
commit | 890ef5c471027eb164e0296d4fd172a0115319d6 (patch) | |
tree | cc788202d8b5dde0c7bbabd0117b98106a7af554 /spec/spec_helper_acceptance.rb | |
parent | 176ff3abdc1e63de02d6d8d9cb2d70c09f7b7766 (diff) | |
download | puppet-stdlib-890ef5c471027eb164e0296d4fd172a0115319d6.tar.gz puppet-stdlib-890ef5c471027eb164e0296d4fd172a0115319d6.tar.bz2 |
Adding more spec coverage
Diffstat (limited to 'spec/spec_helper_acceptance.rb')
-rw-r--r-- | spec/spec_helper_acceptance.rb | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index f388729..8e56daa 100644 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -4,14 +4,16 @@ require 'beaker-rspec' UNSUPPORTED_PLATFORMS = [] unless ENV['RS_PROVISION'] == 'no' or ENV['BEAKER_provision'] == 'no' + if hosts.first.is_pe? + install_pe + on hosts, 'mkdir -p /etc/puppetlabs/facter/facts.d' + else + install_puppet + on hosts, 'mkdir -p /etc/facter/facts.d' + on hosts, '/bin/touch /etc/puppet/hiera.yaml' + end hosts.each do |host| - # Install Puppet - if host.is_pe? - install_pe - else - install_puppet - on host, "mkdir -p #{host['distmoduledir']}" - end + on host, "mkdir -p #{host['distmoduledir']}" end end @@ -24,10 +26,6 @@ RSpec.configure do |c| # Configure all nodes in nodeset c.before :suite do - # Install module and dependencies puppet_module_install(:source => proj_root, :module_name => 'stdlib') - hosts.each do |host| - shell('/bin/touch /etc/puppet/hiera.yaml') - end end end |