31 lines
920 B
Ruby
31 lines
920 B
Ruby
require 'spec_helper_acceptance'
|
|
require_relative '../../lib/serverspec/type/pacemaker_operation_default'
|
|
|
|
describe 'pacemaker_operation_default' do
|
|
context 'create' do
|
|
include_examples 'manifest', example_manifest('pacemaker_operation_default/create.pp')
|
|
|
|
describe pacemaker_operation_default('interval') do
|
|
it { is_expected.to be_present }
|
|
its(:value) { is_expected.to eq '300' }
|
|
end
|
|
end
|
|
|
|
context 'update' do
|
|
include_examples 'manifest', example_manifest('pacemaker_operation_default/update.pp')
|
|
|
|
describe pacemaker_operation_default('interval') do
|
|
it { is_expected.to be_present }
|
|
its(:value) { is_expected.to eq '301' }
|
|
end
|
|
end
|
|
|
|
context 'delete' do
|
|
include_examples 'manifest', example_manifest('pacemaker_operation_default/delete.pp')
|
|
|
|
describe pacemaker_operation_default('interval') do
|
|
it { is_expected.not_to be_present }
|
|
end
|
|
end
|
|
end
|