Skip to content

Commit 8bd94b8

Browse files
nosriowyardley
authored andcommitted
Add unit test to handle bug solved on PR #993
fix identation
1 parent 9c4c6fc commit 8bd94b8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

spec/classes/rabbitmq_spec.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,21 @@
411411
is_expected.to contain_file('rabbitmq.config').with('content' => %r{cluster_nodes.*\['rabbit@hare-1', 'rabbit@hare-2'\], ram})
412412
end
413413
end
414+
415+
describe 'without cluster_nodes and sets appropriate configuration' do
416+
let(:params) do
417+
{
418+
config_cluster: true,
419+
cluster_node_type: 'ram',
420+
erlang_cookie: 'ORIGINAL',
421+
wipe_db_on_cookie_change: true
422+
}
423+
end
424+
425+
it 'for cluster_nodes' do
426+
is_expected.to contain_file('rabbitmq.config').with('content' => %r{cluster_nodes.*\[\], ram})
427+
end
428+
end
414429
end
415430

416431
describe 'rabbitmq-env configuration' do

0 commit comments

Comments
 (0)