Add rspec test for oslo::versionedobjects
This commit is contained in:
parent
840c07d111
commit
6a8058ca1b
|
@ -0,0 +1,44 @@
|
||||||
|
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
|
Loading…
Reference in New Issue