Skip to content

Commit

Permalink
Fix acceptance test on Ubuntu 22.04
Browse files Browse the repository at this point in the history
- Add hosts entry for `foobar` in acceptance test step (resolves issue
  that was causing rabbitmq not to start)
- Switch `rabbitmq::cluster[:local_node]` to have `catch_failures =
  true` vs `expect_failures = true`
wyardley committed Nov 15, 2024
1 parent 1f583ce commit 2a742df
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/acceptance/clustering_spec.rb
Original file line number Diff line number Diff line change
@@ -68,6 +68,10 @@ class { 'rabbitmq':
context 'rabbitmq::cluster[:local_node] = foobar' do
it 'runs successfully' do
pp = <<-EOS
# Needed to avoid nxdomain error
host { 'foobar':
ip => '127.0.0.1',
}
class { 'rabbitmq':
cluster => { 'name' => 'rabbit_cluster', 'init_node' => 'foobar', 'local_node' => 'foobar' },
config_cluster => true,
@@ -78,7 +82,7 @@ class { 'rabbitmq':
}
EOS

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

0 comments on commit 2a742df

Please sign in to comment.