forked from theforeman/puppet-foreman
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforeman_spec.rb
More file actions
32 lines (27 loc) · 972 Bytes
/
foreman_spec.rb
File metadata and controls
32 lines (27 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
require 'spec_helper'
describe 'foreman' do
on_supported_os.each do |os, facts|
next if only_test_os() and not only_test_os.include?(os)
next if exclude_test_os() and exclude_test_os.include?(os)
context "on #{os}" do
let(:facts) do
facts.merge({
:concat_basedir => '/tmp',
})
end
it { should contain_class('foreman::repo').that_notifies('Class[foreman::install]') }
it { should contain_class('foreman::install') }
it { should contain_class('foreman::config') }
it { should contain_class('foreman::database') }
it { should contain_class('foreman::service') }
describe 'with foreman::cli' do
let :pre_condition do
"class { 'foreman': }
class { 'foreman::cli': }"
end
it { is_expected.to compile.with_all_deps }
it { should contain_package('foreman-cli').that_subscribes_to('Class[foreman::repo]') }
end
end
end
end