spec_helper_acceptance.rb 717 B

123456789101112131415161718192021222324
  1. require 'beaker-rspec'
  2. require 'beaker/puppet_install_helper'
  3. run_puppet_install_helper
  4. UNSUPPORTED_PLATFORMS = ['RedHat','Suse','windows','AIX','Solaris']
  5. RSpec.configure do |c|
  6. # Project root
  7. proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
  8. # Readable test descriptions
  9. c.formatter = :documentation
  10. # Configure all nodes in nodeset
  11. c.before :suite do
  12. # Install module and dependencies
  13. hosts.each do |host|
  14. copy_module_to(host, :source => proj_root, :module_name => 'apt')
  15. shell("/bin/touch #{default['puppetpath']}/hiera.yaml")
  16. on host, puppet('module install puppetlabs-stdlib --version 4.5.0'), { :acceptable_exit_codes => [0,1] }
  17. end
  18. end
  19. end