45 lines
1.0 KiB
Ruby
45 lines
1.0 KiB
Ruby
require 'spec_helper'
|
|
|
|
describe 'oslo::versionedobjects' do
|
|
|
|
let (:title) { 'keystone_config' }
|
|
|
|
shared_examples 'shared examples' do
|
|
|
|
context 'with only required parameters' do
|
|
let :params do
|
|
required_params
|
|
end
|
|
|
|
it { is_expected.to contain_keystone_config('oslo_versionedobjects/fatal_exception_format_errors').with_value('false') }
|
|
|
|
end
|
|
|
|
context 'with overridden parameters' do
|
|
let :params do
|
|
required_params.merge(
|
|
{ :fatal_exception_format_errors => true,
|
|
}
|
|
)
|
|
end
|
|
it { is_expected.to contain_keystone_config('oslo_versionedobjects/fatal_exception_format_errors').with_value('false') }
|
|
end
|
|
end
|
|
|
|
context 'on a Debian osfamily' do
|
|
let :facts do
|
|
@default_facts.merge({ :osfamily => "Debian" })
|
|
end
|
|
|
|
include_examples 'shared examples'
|
|
end
|
|
|
|
context 'on a RedHat osfamily' do
|
|
let :facts do
|
|
@default_facts.merge({ :osfamily => 'RedHat' })
|
|
end
|
|
|
|
include_examples 'shared examples'
|
|
end
|
|
end
|