-
-
Notifications
You must be signed in to change notification settings - Fork 129
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 #335 from wyardley/fix_acceptance_tests
Fix acceptance tests and run in Travis. Resolve idempotency issue
- Loading branch information
Showing
15 changed files
with
77 additions
and
92 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
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
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
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,29 +1,17 @@ | ||
require 'beaker-rspec/spec_helper' | ||
require 'beaker-rspec/helpers/serverspec' | ||
require 'beaker-rspec' | ||
require 'beaker/puppet_install_helper' | ||
require 'beaker/module_install_helper' | ||
|
||
hosts.each do |_host| | ||
version = ENV['PUPPET_GEM_VERSION'] | ||
install_puppet(version: version) | ||
end | ||
|
||
RSpec.configure do |c| | ||
proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..')) | ||
|
||
c.formatter = :documentation | ||
|
||
c.before :suite do | ||
hosts.each do |host| | ||
c.host = host | ||
UNSUPPORTED_PLATFORMS = [].freeze | ||
|
||
path = File.expand_path(File.dirname(__FILE__) + '/../').split('/') | ||
name = path[path.length - 1].split('-')[1] | ||
run_puppet_install_helper | ||
install_module | ||
install_module_dependencies | ||
|
||
copy_module_to(host, source: proj_root, module_name: name) | ||
# Install additional modules for soft deps | ||
install_module_from_forge('puppetlabs-java', '>= 2.1.0 < 3.0.0') | ||
install_module_from_forge('puppetlabs-apt', '>= 4.1.0 < 5.0.0') | ||
|
||
on host, puppet('module', 'install', 'puppetlabs-stdlib'), acceptable_exit_codes: [0, 1] | ||
on host, puppet('module', 'install', 'puppetlabs-java'), acceptable_exit_codes: [0, 1] | ||
on host, puppet('module', 'install', 'puppetlabs-inifile'), acceptable_exit_codes: [0, 1] | ||
on host, puppet('module', 'install', 'puppetlabs-apt'), acceptable_exit_codes: [0, 1] | ||
end | ||
end | ||
RSpec.configure do |c| | ||
c.formatter = :documentation | ||
end |