fuel-library/deployment/puppet/heat/spec/classes/heat_api_spec.rb
Bogdan Dobrelya d14ea2edf3 Sync puppet-heat
17736b2fd726858cb83590f8a8b1d594a087ea44 4.0.0

Partial blueprint merge-openstack-puppet-modules

Change-Id: Icbe9f8c87ea0b6c0a3287c1c36137302bf293009
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2014-07-03 13:27:38 +03:00

29 lines
628 B
Ruby

require 'spec_helper'
describe 'heat::api' do
let :params do
{
:bind_host => '127.0.0.1',
:bind_port => '1234',
:workers => '0'
}
end
let :facts do
{ :osfamily => 'Debian' }
end
context 'config params' do
it { should contain_class('heat') }
it { should contain_class('heat::params') }
it { should contain_heat_config('heat_api/bind_host').with_value( params[:bind_host] ) }
it { should contain_heat_config('heat_api/bind_port').with_value( params[:bind_port] ) }
it { should contain_heat_config('heat_api/workers').with_value( params[:workers] ) }
end
end