]> git.donarmstrong.com Git - dsa-puppet.git/blob - 3rdparty/modules/apache/spec/classes/mod/shib_spec.rb
add Openstack modules to 3rdparty
[dsa-puppet.git] / 3rdparty / modules / apache / spec / classes / mod / shib_spec.rb
1 describe 'apache::mod::shib', :type => :class do
2   let :pre_condition do
3     'include apache'
4   end
5   context "on a Debian OS" do
6     let :facts do
7       {
8         :osfamily               => 'Debian',
9         :operatingsystemrelease => '6',
10         :concat_basedir         => '/dne',
11         :lsbdistcodename        => 'squeeze',
12         :operatingsystem        => 'Debian',
13         :id                     => 'root',
14         :kernel                 => 'Linux',
15         :path                   => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
16         :fqdn                   => 'test.example.com',
17         :is_pe                  => false,
18       }
19     end
20     describe 'with no parameters' do
21       it { should contain_apache__mod('shib2').with_id('mod_shib') }
22     end
23   end
24   context "on a RedHat OS" do
25     let :facts do
26       {
27         :osfamily               => 'RedHat',
28         :operatingsystemrelease => '6',
29         :concat_basedir         => '/dne',
30         :operatingsystem        => 'RedHat',
31         :id                     => 'root',
32         :kernel                 => 'Linux',
33         :path                   => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
34         :fqdn                   => 'test.example.com',
35         :is_pe                  => false,
36       }
37     end
38     describe 'with no parameters' do
39       it { should contain_apache__mod('shib2').with_id('mod_shib') }
40     end
41   end
42 end