puppet-heat/spec/classes/heat_api_cfn_spec.rb

27 lines
526 B
Ruby

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