Skip to content

Commit

Permalink
fix f38 acceptance tests failing on rsyslog-elasticsearch
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoblitt committed Oct 20, 2023
1 parent dd9d115 commit e65b91d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions spec/acceptance/actions_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,20 @@ class { 'rsyslog::config':
is_expected.to match(%r{# myaction\naction\(type="omelasticsearch"\n.*name="myaction"\n.*host=\["127.0.0.1", "192.168.0.1"\]\n.*queue.type="linkedlist"\n.*queue.spoolDirectory="/var/log/rsyslog/queue"\n.*\)})
end
end

# rm the rsyslog-elasticsearch package as it will block the uninstall of
# the rsyslog package in other acceptance tests
if fact('os.name') == 'Fedora'
it 'applies with action' do
pp = <<-MANIFEST
if $facts['os']['name'] == 'Fedora' {
package { 'rsyslog-elasticsearch': ensure => absent }
}
MANIFEST

apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
end
end
end
end

0 comments on commit e65b91d

Please sign in to comment.