diff options
author | Josh Cooper <josh@puppet.com> | 2018-04-26 11:41:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-26 11:41:34 -0700 |
commit | 81d2cf81cd02c09f53774c1b95ae2de474b28b80 (patch) | |
tree | 4997f732281a7e0cb5ff33a745663cc5cffed741 /spec/spec_helper_acceptance.rb | |
parent | 7c51be1c0d8ace7cb679f16ee4d8e3697ea95ae8 (diff) | |
parent | beb0aa2b549ed4b6f90d82a864a443e35c102b38 (diff) | |
download | puppet-mailalias_core-81d2cf81cd02c09f53774c1b95ae2de474b28b80.tar.gz puppet-mailalias_core-81d2cf81cd02c09f53774c1b95ae2de474b28b80.tar.bz2 |
Merge pull request #1 from melissa/maint/master/initial-commits
Maint/master/initial commits
Diffstat (limited to 'spec/spec_helper_acceptance.rb')
-rw-r--r-- | spec/spec_helper_acceptance.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb new file mode 100644 index 0000000..0adde24 --- /dev/null +++ b/spec/spec_helper_acceptance.rb @@ -0,0 +1,24 @@ +require 'puppet' +require 'beaker-rspec' +require 'beaker/module_install_helper' +require 'beaker/puppet_install_helper' + +$LOAD_PATH << File.join(__dir__, 'acceptance/lib') + +def beaker_opts + { debug: true, trace: true, expect_failures: true, acceptable_exit_codes: (0...256) } +end + +def non_windows_agents + agents.reject { |agent| agent['platform'].include?('windows') } +end + +RSpec.configure do |c| + c.before :suite do + unless ENV['BEAKER_provision'] == 'no' + run_puppet_install_helper + install_module_on(hosts_as(hosts)) + install_module_dependencies_on(hosts) + end + end +end |