puppet-foreman/spec/classes/foreman_spec.rb @ d19da48d
8a3b92b5 | Jan Vansteenkiste | require 'spec_helper'
|
|
e56d7a1e | Ewoud Kohl van Wijngaarden | describe 'foreman' do
|
|
let :default_facts do
|
|||
{
|
|||
:concat_basedir => '/tmp',
|
|||
:interfaces => '',
|
|||
:postgres_default_version => '8.4',
|
|||
}
|
|||
end
|
|||
8a3b92b5 | Jan Vansteenkiste | ||
e56d7a1e | Ewoud Kohl van Wijngaarden | context 'on redhat' do
|
|
let :facts do
|
|||
default_facts.merge({
|
|||
:operatingsystem => 'RedHat',
|
|||
:osfamily => 'RedHat',
|
|||
})
|
|||
8a3b92b5 | Jan Vansteenkiste | end
|
|
d19da48d | Ewoud Kohl van Wijngaarden | it { should contain_class('foreman::install') }
|
|
it { should contain_class('foreman::config') }
|
|||
it { should contain_class('foreman::database') }
|
|||
it { should contain_class('foreman::service') }
|
|||
8a3b92b5 | Jan Vansteenkiste | end
|
|
e56d7a1e | Ewoud Kohl van Wijngaarden | context 'on debian' do
|
|
let :facts do
|
|||
default_facts.merge({
|
|||
:operatingsystem => 'Debian',
|
|||
:osfamily => 'Debian',
|
|||
})
|
|||
end
|
|||
8a3b92b5 | Jan Vansteenkiste | ||
d19da48d | Ewoud Kohl van Wijngaarden | it { should contain_class('foreman::install') }
|
|
it { should contain_class('foreman::config') }
|
|||
it { should contain_class('foreman::database') }
|
|||
it { should contain_class('foreman::service') }
|
|||
e56d7a1e | Ewoud Kohl van Wijngaarden | end
|
|
8a3b92b5 | Jan Vansteenkiste | end
|