d14ea2edf3
17736b2fd726858cb83590f8a8b1d594a087ea44 4.0.0 Partial blueprint merge-openstack-puppet-modules Change-Id: Icbe9f8c87ea0b6c0a3287c1c36137302bf293009 Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
29 lines
672 B
Ruby
29 lines
672 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'heat::api_cloudwatch' 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_cloudwatch/bind_host').with_value( params[:bind_host] ) }
|
|
it { should contain_heat_config('heat_api_cloudwatch/bind_port').with_value( params[:bind_port] ) }
|
|
it { should contain_heat_config('heat_api_cloudwatch/workers').with_value( params[:workers] ) }
|
|
|
|
end
|
|
|
|
end
|