forked from simp/pupmod-voxpupuli-firewalld
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Work around a bug in firewall-cmd and use raw python to get the firewalld version if firewalld-cmd does not return anything * Incorporated the simp-beaker-helpers gem to get access to the helper methods Fixes voxpupuli#263
- Loading branch information
1 parent
a1f6ec1
commit befefc3
Showing
8 changed files
with
69 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
--format documentation | ||
--color | ||
--fail-fast |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
require 'simp/rake/beaker' | ||
|
||
Simp::Rake::Beaker.new(File.join(File.dirname(__FILE__), '..')) |
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,30 +1,34 @@ | ||
require 'beaker-rspec' | ||
require 'pry' | ||
require 'tmpdir' | ||
require 'yaml' | ||
require 'simp/beaker_helpers' | ||
include Simp::BeakerHelpers | ||
|
||
UNSUPPORTED_PLATFORMS = %w[windows Darwin].freeze | ||
|
||
unless ENV['RS_PROVISION'] == 'no' || ENV['BEAKER_provision'] == 'no' | ||
|
||
require 'beaker/puppet_install_helper' | ||
|
||
run_puppet_install_helper('agent', ENV['PUPPET_VERSION']) | ||
|
||
RSpec.configure do |c| | ||
# Project root | ||
proj_root = File.expand_path(File.join(__dir__, '..')) | ||
unless ENV['BEAKER_provision'] == 'no' | ||
hosts.each do |host| | ||
# Install Puppet | ||
if host.is_pe? | ||
install_pe | ||
else | ||
install_puppet | ||
end | ||
end | ||
end | ||
|
||
# Readable test descriptions | ||
c.formatter = :documentation | ||
RSpec.configure do |c| | ||
# ensure that environment OS is ready on each host | ||
fix_errata_on hosts | ||
|
||
# Don't burn resources if we don't have to | ||
c.fail_fast = true | ||
# Readable test descriptions | ||
c.formatter = :documentation | ||
|
||
# Configure all nodes in nodeset | ||
c.before :suite do | ||
hosts.each do |host| | ||
install_dev_puppet_module_on(host, source: proj_root, module_name: 'firewalld') | ||
install_puppet_module_via_pmt_on(host, module_name: 'puppetlabs/stdlib') | ||
end | ||
# Configure all nodes in nodeset | ||
c.before :suite do | ||
begin | ||
# Install modules and dependencies from spec/fixtures/modules | ||
copy_fixture_modules_to(hosts) | ||
end | ||
end | ||
end |
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