-
-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
22 additions
and
58 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 +1 @@ | ||
modulesync_config_version: '3.0.0' | ||
modulesync_config_version: '2.12.0' |
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,13 @@ | ||
require 'beaker-rspec' | ||
require 'beaker-puppet' | ||
require 'beaker/puppet_install_helper' | ||
require 'beaker/module_install_helper' | ||
require 'voxpupuli/acceptance/spec_helper_acceptance' | ||
require 'splunk_data.rb' | ||
|
||
run_puppet_install_helper unless ENV['BEAKER_provision'] == 'no' | ||
configure_beaker do |host| | ||
# Need to stage the Splunk/Splunkforwarder packages here. | ||
|
||
RSpec.configure do |c| | ||
# Readable test descriptions | ||
c.formatter = :documentation | ||
|
||
# Configure all nodes in nodeset | ||
c.before :suite do | ||
install_module | ||
install_module_dependencies | ||
|
||
# Need to stage the Splunk/Splunkforwarder packages here. | ||
|
||
# The splunk unit file assumes certain cgroups are present, which is not | ||
# the case in the testing container(s). Create cgroups resources here. | ||
hosts.each do |host| | ||
on(host, '/bin/mkdir -p /sys/fs/cgroup/cpu/system.slice/Splunkd.service') | ||
on(host, '/bin/mkdir -p /sys/fs/cgroup/memory/system.slice/Splunkd.service') | ||
on(host, '/bin/mkdir -p /sys/fs/cgroup/cpu/system.slice/SplunkForwarder.service') | ||
on(host, '/bin/mkdir -p /sys/fs/cgroup/memory/system.slice/SplunkForwarder.service') | ||
end | ||
end | ||
# The splunk unit file assumes certain cgroups are present, which is not | ||
# the case in the testing container(s). Create cgroups resources here. | ||
on(host, '/bin/mkdir -p /sys/fs/cgroup/cpu/system.slice/Splunkd.service') | ||
on(host, '/bin/mkdir -p /sys/fs/cgroup/memory/system.slice/Splunkd.service') | ||
on(host, '/bin/mkdir -p /sys/fs/cgroup/cpu/system.slice/SplunkForwarder.service') | ||
on(host, '/bin/mkdir -p /sys/fs/cgroup/memory/system.slice/SplunkForwarder.service') | ||
end |