diff options
author | Melissa <melissa@puppet.com> | 2018-07-02 11:45:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-02 11:45:02 -0700 |
commit | c42bbe6471b9f1813d7b40b9f67d988b994a8e5a (patch) | |
tree | fa26c6a5cd53626ac3cddc4922c47add356c6435 /spec/spec_helper_acceptance.rb | |
parent | d1719de1d77b9c139b1b5f5832330807c0fe11fe (diff) | |
parent | 950a6c0a21896989118badc0f541f7469752c63f (diff) | |
download | puppet-sshkeys_core-c42bbe6471b9f1813d7b40b9f67d988b994a8e5a.tar.gz puppet-sshkeys_core-c42bbe6471b9f1813d7b40b9f67d988b994a8e5a.tar.bz2 |
Merge pull request #1 from jhelwig/module-updates
Import the module
Diffstat (limited to 'spec/spec_helper_acceptance.rb')
-rw-r--r-- | spec/spec_helper_acceptance.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb new file mode 100644 index 0000000..ac6b27e --- /dev/null +++ b/spec/spec_helper_acceptance.rb @@ -0,0 +1,26 @@ +require 'beaker-rspec' +require 'beaker/module_install_helper' +require 'beaker/puppet_install_helper' + +def beaker_opts + { debug: true, trace: true, expect_failures: true, acceptable_exit_codes: (0...256) } + # { expect_failures: true, acceptable_exit_codes: (0...256) } +end + +def posix_agents + agents.reject { |agent| agent['platform'].include?('windows') } +end + +def osx_agents + agents.select { |agent| agent['platform'].include?('osx') } +end + +RSpec.configure do |c| + c.before :suite do + unless ENV['BEAKER_provision'] == 'no' + run_puppet_install_helper + install_module_on(hosts_as('default')) + install_module_dependencies_on(hosts) + end + end +end |