]> git.donarmstrong.com Git - dsa-puppet.git/blob - 3rdparty/modules/apache/spec/classes/mod/auth_kerb_spec.rb
add Openstack modules to 3rdparty
[dsa-puppet.git] / 3rdparty / modules / apache / spec / classes / mod / auth_kerb_spec.rb
1 require 'spec_helper'
2
3 describe 'apache::mod::auth_kerb', :type => :class do
4   let :pre_condition do
5     'include apache'
6   end
7   context "on a Debian OS", :compile do
8     let :facts do
9       {
10         :id                     => 'root',
11         :kernel                 => 'Linux',
12         :lsbdistcodename        => 'squeeze',
13         :osfamily               => 'Debian',
14         :operatingsystem        => 'Debian',
15         :operatingsystemrelease => '6',
16         :path                   => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
17         :concat_basedir         => '/dne',
18         :is_pe                  => false,
19       }
20     end
21     it { is_expected.to contain_class("apache::params") }
22     it { is_expected.to contain_apache__mod("auth_kerb") }
23     it { is_expected.to contain_package("libapache2-mod-auth-kerb") }
24   end
25   context "on a RedHat OS", :compile do
26     let :facts do
27       {
28         :id                     => 'root',
29         :kernel                 => 'Linux',
30         :osfamily               => 'RedHat',
31         :operatingsystem        => 'RedHat',
32         :operatingsystemrelease => '6',
33         :path                   => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
34         :concat_basedir         => '/dne',
35         :is_pe                  => false,
36       }
37     end
38     it { is_expected.to contain_class("apache::params") }
39     it { is_expected.to contain_apache__mod("auth_kerb") }
40     it { is_expected.to contain_package("mod_auth_kerb") }
41   end
42   context "on a FreeBSD OS", :compile do
43     let :facts do
44       {
45         :id                     => 'root',
46         :kernel                 => 'FreeBSD',
47         :osfamily               => 'FreeBSD',
48         :operatingsystem        => 'FreeBSD',
49         :operatingsystemrelease => '9',
50         :path                   => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
51         :concat_basedir         => '/dne',
52         :is_pe                  => false,
53       }
54     end
55     it { is_expected.to contain_class("apache::params") }
56     it { is_expected.to contain_apache__mod("auth_kerb") }
57     it { is_expected.to contain_package("www/mod_auth_kerb2") }
58   end
59   context "on a Gentoo OS", :compile do
60     let :facts do
61       {
62         :id                     => 'root',
63         :kernel                 => 'Linux',
64         :osfamily               => 'Gentoo',
65         :operatingsystem        => 'Gentoo',
66         :path                   => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin',
67         :operatingsystemrelease => '3.16.1-gentoo',
68         :concat_basedir         => '/dne',
69         :is_pe                  => false,
70       }
71     end
72     it { is_expected.to contain_class("apache::params") }
73     it { is_expected.to contain_apache__mod("auth_kerb") }
74     it { is_expected.to contain_package("www-apache/mod_auth_kerb") }
75   end
76 end