Project

General

Profile

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

describe 'pulp::install' do
let :default_facts do
{
:concat_basedir => '/tmp',
:interfaces => '',
:operatingsystem => 'RedHat',
:operatingsystemrelease => '6.4',
:operatingsystemmajrelease => '6.4',
:osfamily => 'RedHat',
:fqdn => 'pulp.compony.net',
:hostname => 'pulp',
}
end

describe "with enable_parent_node" do
let :facts do
default_facts
end

let :pre_condition do
"class {'pulp': enable_parent_node => true}"
end

it { should contain_package('pulp-nodes-parent').with_ensure('installed') }
end

describe "with enable_ostree" do
let :facts do
default_facts
end

let :pre_condition do
"class {'pulp': enable_ostree => true}"
end

it { should contain_package('ostree').with_ensure('present') }
it { should contain_package('pulp-ostree-plugins').with_ensure('installed') }
end
end
(7-7/8)