Skip to content

Commit

Permalink
Added manage corosync feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekototori committed Nov 15, 2017
1 parent 0f05e08 commit dca698a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions spec/classes/corosync_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,24 @@
shared_examples_for 'corosync' do
it { is_expected.to compile.with_all_deps }

it 'does manage the corosync service' do
is_expected.to contain_service('corosync').with(
ensure: 'running'
)
end

context 'when manage_corosync_service is false' do
before do
params.merge!(
manage_corosync_service: false
)
end

it 'is not managing corosync service' do
is_expected.not_to compile
end
end

context 'when set_votequorum is true' do
before do
params.merge!(
Expand Down

0 comments on commit dca698a

Please sign in to comment.