diff options
author | Fabien COMBERNOUS <Dan33l@users.noreply.github.com> | 2019-09-09 17:25:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-09 17:25:11 +0200 |
commit | 81748ba786c6a55c4575a400c08de99716da8fbb (patch) | |
tree | 8cc5198a4e729299607e3a05533bf504054446e5 /spec/spec_helper_acceptance.rb | |
parent | 2900940d7c07b4ec7aeeb3f3977ba21d548737b0 (diff) | |
parent | 2fc602af79b0b18fef1fab4a34134741ff35e10f (diff) | |
download | puppet-ferm-81748ba786c6a55c4575a400c08de99716da8fbb.tar.gz puppet-ferm-81748ba786c6a55c4575a400c08de99716da8fbb.tar.bz2 |
Merge pull request #59 from Dan33l/enable_acceptance
enable acceptance and drop EOL ubuntu1404
Diffstat (limited to 'spec/spec_helper_acceptance.rb')
-rw-r--r-- | spec/spec_helper_acceptance.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb new file mode 100644 index 0000000..50dadbe --- /dev/null +++ b/spec/spec_helper_acceptance.rb @@ -0,0 +1,22 @@ +require 'beaker-rspec' +require 'beaker-puppet' +require 'beaker/puppet_install_helper' +require 'beaker/module_install_helper' + +run_puppet_install_helper unless ENV['BEAKER_provision'] == 'no' +install_module +install_module_dependencies + +RSpec.configure do |c| + # Configure all nodes in nodeset + c.before :suite do + # ferm is into epel with RedHat like OSes + install_module_from_forge('stahnma-epel', '>= 1.3.1 < 2.0.0') if fact('os.family') == 'RedHat' + + pp = %( + include epel + ) + + apply_manifest(pp, catch_failures: true) if fact('os.family') == 'RedHat' + end +end |