
Change-Id: I07c22568ca6c6d1155626fff7cf1d3ca3c6fd5c5 Implements: blueprint add-puppet-mistral
20 lines
576 B
Ruby
20 lines
576 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'mistral::config' do
|
|
|
|
let :params do
|
|
{ :mistral_config => {
|
|
'DEFAULT/foo' => { 'value' => 'fooValue' },
|
|
'DEFAULT/bar' => { 'value' => 'barValue' },
|
|
'DEFAULT/baz' => { 'ensure' => 'absent' }
|
|
}
|
|
}
|
|
end
|
|
|
|
it 'configures arbitrary mistral configurations' do
|
|
is_expected.to contain_mistral_config('DEFAULT/foo').with_value('fooValue')
|
|
is_expected.to contain_mistral_config('DEFAULT/bar').with_value('barValue')
|
|
is_expected.to contain_mistral_config('DEFAULT/baz').with_ensure('absent')
|
|
end
|
|
|
|
end |