Project

General

Profile

Download (1 KB) Statistics
| Branch: | Tag: | Revision:
8a3b92b5 Jan Vansteenkiste
require 'spec_helper'


e56d7a1e Ewoud Kohl van Wijngaarden
describe 'foreman' do
let :default_facts do
{
b22f96ff Ewoud Kohl van Wijngaarden
:concat_basedir => '/tmp',
:interfaces => '',
e56d7a1e Ewoud Kohl van Wijngaarden
}
end
8a3b92b5 Jan Vansteenkiste
e56d7a1e Ewoud Kohl van Wijngaarden
context 'on redhat' do
let :facts do
default_facts.merge({
b22f96ff Ewoud Kohl van Wijngaarden
:operatingsystem => 'RedHat',
:operatingsystemrelease => '6.4',
:osfamily => 'RedHat',
e56d7a1e Ewoud Kohl van Wijngaarden
})
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({
b22f96ff Ewoud Kohl van Wijngaarden
:operatingsystem => 'Debian',
:operatingsystemrelease => 'wheezy',
:osfamily => 'Debian',
e56d7a1e Ewoud Kohl van Wijngaarden
})
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