|
require 'spec_helper'
|
|
|
|
describe 'puppet' do
|
|
|
|
let :facts do {
|
|
:clientcert => 'puppetmaster.example.com',
|
|
:concat_basedir => '/nonexistant',
|
|
:fqdn => 'puppetmaster.example.com',
|
|
:operatingsystemrelease => '6.5',
|
|
:osfamily => 'RedHat',
|
|
} end
|
|
|
|
describe 'with no custom parameters' do
|
|
it { should contain_class('puppet::config') }
|
|
it { should contain_file('/etc/puppet').with_ensure('directory') }
|
|
it { should contain_file('/etc/puppet/puppet.conf') }
|
|
it { should contain_package('puppet').with_ensure('present') }
|
|
end
|
|
|
|
end
|