Skip to content

Commit

Permalink
Merge pull request #994 from nosrio/AddUnitTest
Browse files Browse the repository at this point in the history
Add unit test to handle bug solved on PR #993
  • Loading branch information
wyardley authored May 20, 2024
2 parents 55a0fd5 + e96d12e commit 137edee
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions spec/classes/rabbitmq_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,21 @@
is_expected.to contain_file('rabbitmq.config').with('content' => %r{cluster_nodes.*\['rabbit@hare-1', 'rabbit@hare-2'\], ram})
end
end

describe 'without cluster_nodes and sets appropriate configuration' do
let(:params) do
{
config_cluster: true,
cluster_node_type: 'ram',
erlang_cookie: 'ORIGINAL',
wipe_db_on_cookie_change: true
}
end

it 'for cluster_nodes' do
is_expected.to contain_file('rabbitmq.config').with('content' => %r{cluster_nodes.*\[\], ram})
end
end
end

describe 'rabbitmq-env configuration' do
Expand Down

0 comments on commit 137edee

Please sign in to comment.