Skip to content

Commit 540dd53

Browse files
author
Felix Gilcher
committed
added specs
adds specs that test the desired behavior
1 parent 158ed0f commit 540dd53

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

spec/classes/opennebula_spec.rb

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,18 @@
286286
#it { should contain_package('parse-cron') }
287287
end
288288
it { should contain_service('opennebula-gate').with_ensure('running') }
289+
context 'with ha-setup' do
290+
let(:params) { {
291+
:onegate => true,
292+
:oneflow => true,
293+
:ha_setup => true
294+
} }
295+
it { should contain_class('one::oned::onegate') }
296+
it { should contain_service('opennebula-flow').with_enable(false) }
297+
it { should contain_service('opennebula-flow').without_ensure }
298+
it { should contain_service('opennebula-gate').with_enable(false) }
299+
it { should contain_service('opennebula-gate').without_ensure }
300+
end
289301
end
290302
context 'with sunstone' do
291303
let(:params) { {
@@ -338,7 +350,7 @@
338350
let(:params) { {
339351
:oned => true,
340352
:sunstone => true,
341-
:ha_setup => true,
353+
:ha_setup => true
342354
} }
343355
it { should contain_service('opennebula').with_enable('false') }
344356
it { should contain_service('opennebula-sunstone').with_ensure('running') }

0 commit comments

Comments
 (0)