puppet-designate/spec/classes/designate_config_spec.rb

31 lines
1.1 KiB
Ruby

require 'spec_helper'
describe 'designate::config' do
let :params do
{ :designate_config => {
'DEFAULT/foo' => { 'value' => 'fooValue' },
'DEFAULT/bar' => { 'value' => 'barValue' },
'DEFAULT/baz' => { 'ensure' => 'absent' }
},
:api_paste_ini_config => {
'DEFAULT/foo2' => { 'value' => 'fooValue' },
'DEFAULT/bar2' => { 'value' => 'barValue' },
'DEFAULT/baz2' => { 'ensure' => 'absent' }
}
}
end
it 'configures arbitrary designate configurations' do
should contain_designate_config('DEFAULT/foo').with_value('fooValue')
should contain_designate_config('DEFAULT/bar').with_value('barValue')
should contain_designate_config('DEFAULT/baz').with_ensure('absent')
end
it 'configures arbitrary designate api-paste configurations' do
should contain_designate_api_paste_ini('DEFAULT/foo2').with_value('fooValue')
should contain_designate_api_paste_ini('DEFAULT/bar2').with_value('barValue')
should contain_designate_api_paste_ini('DEFAULT/baz2').with_ensure('absent')
end
end