summaryrefslogtreecommitdiff
path: root/spec/spec_helper_acceptance.rb
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2016-06-29 18:42:02 +0000
committerintrigeri <intrigeri@boum.org>2016-06-29 18:42:02 +0000
commitf035fd1621c8f0fa5eeeacd89ba52742c540cb7c (patch)
treed36a1e4d388dd024ca63469fa260306564734e02 /spec/spec_helper_acceptance.rb
parent5102b7863b09e58bdd712c9019885313270299ce (diff)
parentbc73809d7b33541b50ba9f38cb3bf1dd2237b98f (diff)
Merge remote-tracking branch 'shared/master' into bugfix/drop-obsolete-code-and-global-variable-in-apt-cron
Diffstat (limited to 'spec/spec_helper_acceptance.rb')
-rw-r--r--spec/spec_helper_acceptance.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb
new file mode 100644
index 0000000..1ccd84d
--- /dev/null
+++ b/spec/spec_helper_acceptance.rb
@@ -0,0 +1,18 @@
+require 'beaker-rspec'
+
+RSpec.configure do |c|
+ module_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
+ module_name = module_root.split('-').last
+
+ # Readable test descriptions
+ c.formatter = :documentation
+
+ # Configure all nodes in nodeset
+ c.before :suite do
+ # Install module and dependencies
+ puppet_module_install(:source => module_root, :module_name => module_name)
+ hosts.each do |host|
+ shell('git clone https://gitlab.com/shared-puppet-modules-group/common.git /etc/puppet/modules/common')
+ end
+ end
+end