aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJorie Tappa <jorie@jorietappa.com>2018-08-09 14:56:53 -0500
committerJorie Tappa <jorie@jorietappa.com>2018-08-09 14:56:53 -0500
commitaccffdfb24b66faf5c2cd210427edadf27be64da (patch)
tree737eeb76d692615503f5be9dc7e9ae5873caacc0 /spec
parent79180eb1a5ddffc404df965617dbfcc7d6691c42 (diff)
downloadpuppet-cron_core-accffdfb24b66faf5c2cd210427edadf27be64da.tar.gz
puppet-cron_core-accffdfb24b66faf5c2cd210427edadf27be64da.tar.bz2
Add spec_helper_accceptance.rb
Diffstat (limited to 'spec')
-rw-r--r--spec/spec_helper_acceptance.rb24
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..c41d7a6
--- /dev/null
+++ b/spec/spec_helper_acceptance.rb
@@ -0,0 +1,24 @@
+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 compatible_agents
+ agents.reject { |agent| agent['platform'].include?('windows') || agent['platform'].include?('eos-') || agent['platform'].include?('fedora-28') }
+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 \ No newline at end of file