Skip to content

Commit 2a742df

Browse files
committed
Fix acceptance test on Ubuntu 22.04
- 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`
1 parent 1f583ce commit 2a742df

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

spec/acceptance/clustering_spec.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ class { 'rabbitmq':
6868
context 'rabbitmq::cluster[:local_node] = foobar' do
6969
it 'runs successfully' do
7070
pp = <<-EOS
71+
# Needed to avoid nxdomain error
72+
host { 'foobar':
73+
ip => '127.0.0.1',
74+
}
7175
class { 'rabbitmq':
7276
cluster => { 'name' => 'rabbit_cluster', 'init_node' => 'foobar', 'local_node' => 'foobar' },
7377
config_cluster => true,
@@ -78,7 +82,7 @@ class { 'rabbitmq':
7882
}
7983
EOS
8084

81-
apply_manifest(pp, expect_failures: true)
85+
apply_manifest(pp, catch_failures: true)
8286
end
8387
end
8488
end

0 commit comments

Comments
 (0)