
Other modules provide an X::config class to be able to specify parameters that are not yet part of the module. Tuskar was missing this feature. This commit aims to add it for puppet-tuskar. Change-Id: I651657170d10b31c8280581adea2e19a8419eadd
21 lines
573 B
Ruby
21 lines
573 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'tuskar::config' do
|
|
|
|
let :params do
|
|
{ :tuskar_config => {
|
|
'DEFAULT/foo' => { 'value' => 'fooValue' },
|
|
'DEFAULT/bar' => { 'value' => 'barValue' },
|
|
'DEFAULT/baz' => { 'ensure' => 'absent' }
|
|
}
|
|
}
|
|
end
|
|
|
|
it 'configures arbitrary tuskar configurations' do
|
|
is_expected.to contain_tuskar_config('DEFAULT/foo').with_value('fooValue')
|
|
is_expected.to contain_tuskar_config('DEFAULT/bar').with_value('barValue')
|
|
is_expected.to contain_tuskar_config('DEFAULT/baz').with_ensure('absent')
|
|
end
|
|
|
|
end
|