Skip to content

Commit d9402c9

Browse files
authored
Merge pull request #580 from voxpupuli/rewrite-acceptance-tests
Use voxpupuli-acceptance
2 parents cfdc43e + 4e22a87 commit d9402c9

File tree

3 files changed

+6
-49
lines changed

3 files changed

+6
-49
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ matrix:
2424
env: PUPPET_VERSION="~> 5.0" CHECK=build DEPLOY_TO_FORGE=yes
2525
- rvm: 2.5.3
2626
bundler_args: --without development release
27-
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_debug=true BEAKER_setfile=centos7-64 BEAKER_HYPERVISOR=docker CHECK=beaker
27+
env: BEAKER_PUPPET_COLLECTION=puppet5 BEAKER_setfile=centos7-64 CHECK=beaker
2828
services: docker
2929
- rvm: 2.5.3
3030
bundler_args: --without development release
31-
env: PUPPET_INSTALL_TYPE=agent BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_debug=true BEAKER_setfile=centos7-64 BEAKER_HYPERVISOR=docker CHECK=beaker
31+
env: BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_setfile=centos7-64 CHECK=beaker
3232
services: docker
3333
branches:
3434
only:

Gemfile

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,7 @@ group :development do
2424
end
2525

2626
group :system_tests do
27-
gem 'winrm', :require => false
28-
if beaker_version = ENV['BEAKER_VERSION']
29-
gem 'beaker', *location_for(beaker_version)
30-
else
31-
gem 'beaker', '>= 4.2.0', :require => false
32-
end
33-
if beaker_rspec_version = ENV['BEAKER_RSPEC_VERSION']
34-
gem 'beaker-rspec', *location_for(beaker_rspec_version)
35-
else
36-
gem 'beaker-rspec', :require => false
37-
end
38-
gem 'serverspec', :require => false
39-
gem 'beaker-hostgenerator', '>= 1.1.22', :require => false
40-
gem 'beaker-docker', :require => false
41-
gem 'beaker-puppet', :require => false
42-
gem 'beaker-puppet_install_helper', :require => false
43-
gem 'beaker-module_install_helper', :require => false
44-
gem 'rbnacl', '>= 4', :require => false
45-
gem 'rbnacl-libsodium', :require => false
46-
gem 'bcrypt_pbkdf', :require => false
47-
gem 'ed25519', :require => false
27+
gem 'voxpupuli-acceptance', :require => false
4828
end
4929

5030
group :release do

spec/spec_helper_acceptance.rb

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,5 @@
1-
require 'beaker-puppet'
2-
require 'beaker-rspec'
3-
require 'beaker/puppet_install_helper'
4-
require 'beaker/module_install_helper'
1+
require 'voxpupuli/acceptance/spec_helper_acceptance'
52

6-
run_puppet_install_helper unless ENV['BEAKER_provision'] == 'no'
7-
8-
RSpec.configure do |c|
9-
# Readable test descriptions
10-
c.formatter = :documentation
11-
12-
# Configure all nodes in nodeset
13-
c.before :suite do
14-
install_module_on(hosts)
15-
install_module_dependencies_on(hosts)
16-
17-
hosts.each do |host|
18-
next unless fact_on(host, 'osfamily') == 'RedHat'
19-
# don't delete downloaded rpm for use with BEAKER_provision=no +
20-
# BEAKER_destroy=no
21-
on host, 'sed -i "s/keepcache=.*/keepcache=1/" /etc/yum.conf'
22-
# refresh check if cache needs refresh on next yum command
23-
on host, 'yum clean expire-cache'
24-
# We always need EPEL
25-
host.install_package('epel-release')
26-
end
27-
end
3+
configure_beaker do |host|
4+
install_package(host, 'epel-release') if fact_on(host, 'os.name') == 'CentOS'
285
end

0 commit comments

Comments
 (0)