Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Apparently running on GitHub actions doesn't support a filesystem that will
correctly handle file locks? Let's use the Splunk provided option to be able for
Splunkd to start.
  • Loading branch information
siegy22 committed Mar 16, 2024
1 parent a943843 commit 77661fa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/acceptance/splunk_enterprise_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
it 'works idempotently with no errors' do
pp = <<-EOS
class { 'splunk::enterprise': }
# See https://community.splunk.com/t5/Installation/Why-am-I-getting-an-error-to-start-a-fresh-Splunk-instance-in-my/m-p/336938
file_line { 'file_locking':
path => '/opt/splunk/etc/splunk-launch.conf',
line => 'OPTIMISTIC_ABOUT_FILE_LOCKING=1',
require => Class['splunk::enterprise'],
}
EOS

# Run it twice and test for idempotency
Expand Down

0 comments on commit 77661fa

Please sign in to comment.