-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from voxpupuli/rewrite-acceptance-tests
Use voxpupuli-acceptance
- Loading branch information
Showing
4 changed files
with
31 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,10 @@ | ||
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_ca_certs unless ENV['PUPPET_INSTALL_TYPE'] =~ %r{pe}i | ||
install_module_on(hosts) | ||
install_module_dependencies_on(hosts) | ||
|
||
# Install aditional modules for soft deps | ||
install_module_from_forge('puppetlabs-apt', '>= 4.1.0 < 8.0.0') if fact('os.family') == 'Debian' | ||
|
||
RSpec.configure do |c| | ||
# Readable test descriptions | ||
c.formatter = :documentation | ||
hosts.each do |host| | ||
if host[:platform] =~ %r{el-7-x86_64} && host[:hypervisor] =~ %r{docker} | ||
on(host, "sed -i '/nodocs/d' /etc/yum.conf") | ||
end | ||
configure_beaker do |host| | ||
case fact_on(host, 'os.family') | ||
when 'Debian' | ||
install_module_from_forge_on(host, 'puppetlabs-apt', '>= 4.1.0 < 8.0.0') | ||
when 'RedHat' | ||
install_package(host, 'epel-release') | ||
end | ||
end |