puppet-mistral/spec/classes/mistral_config_spec.rb
Limor Stotland 3b0bc55c5b puppet-mistral: initial commit
Change-Id: I07c22568ca6c6d1155626fff7cf1d3ca3c6fd5c5
Implements: blueprint add-puppet-mistral
2015-08-09 10:00:45 +00:00

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