aboutsummaryrefslogtreecommitdiff
path: root/spec/spec_helper_acceptance.rb
diff options
context:
space:
mode:
authorTim Meusel <tim@bastelfreak.de>2020-04-07 16:33:29 +0200
committerGitHub <noreply@github.com>2020-04-07 16:33:29 +0200
commit926cc5ecf8946440cec80c08010cc3ab89494f01 (patch)
treefb75af48d22978338b0bb2b649851567fe9a8d3f /spec/spec_helper_acceptance.rb
parenta8b3e9696564e992fcb08170d81b7c2feee6fced (diff)
parent46070b1fb947250ed35424bdd9b8b02e1582293a (diff)
downloadpuppet-ferm-926cc5ecf8946440cec80c08010cc3ab89494f01.tar.gz
puppet-ferm-926cc5ecf8946440cec80c08010cc3ab89494f01.tar.bz2
Merge pull request #97 from voxpupuli/rewrite-acceptance-tests
Use voxpupuli-acceptance
Diffstat (limited to 'spec/spec_helper_acceptance.rb')
-rw-r--r--spec/spec_helper_acceptance.rb23
1 files changed, 3 insertions, 20 deletions
diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb
index 50dadbe..7db1a99 100644
--- a/spec/spec_helper_acceptance.rb
+++ b/spec/spec_helper_acceptance.rb
@@ -1,22 +1,5 @@
-require 'beaker-rspec'
-require 'beaker-puppet'
-require 'beaker/puppet_install_helper'
-require 'beaker/module_install_helper'
+require 'voxpupuli/acceptance/spec_helper_acceptance'
-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
+configure_beaker do |host|
+ install_package(host, 'epel-release') if fact_on(host, 'os.name') == 'CentOS'
end