Project

General

Profile

Download (1 KB) Statistics
| Branch: | Tag: | Revision:
require 'spec_helper'


describe 'foreman' do
let :default_facts do
{
:concat_basedir => '/tmp',
:interfaces => '',
}
end

context 'on redhat' do
let :facts do
default_facts.merge({
:operatingsystem => 'RedHat',
:operatingsystemrelease => '6.4',
:osfamily => 'RedHat',
})
end

it { should contain_class('foreman::install') }
it { should contain_class('foreman::config') }
it { should contain_class('foreman::database') }
it { should contain_class('foreman::service') }
end

context 'on debian' do
let :facts do
default_facts.merge({
:operatingsystem => 'Debian',
:operatingsystemrelease => 'wheezy',
:osfamily => 'Debian',
})
end

it { should contain_class('foreman::install') }
it { should contain_class('foreman::config') }
it { should contain_class('foreman::database') }
it { should contain_class('foreman::service') }
end
end
(10-10/10)