3 describe 'apache::mod::auth_cas', :type => :class do
6 :cas_login_url => 'https://cas.example.com/login',
7 :cas_validate_url => 'https://cas.example.com/validate',
15 context "on a Debian OS", :compile do
20 :lsbdistcodename => 'squeeze',
21 :osfamily => 'Debian',
22 :operatingsystem => 'Debian',
23 :operatingsystemrelease => '6',
24 :path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
25 :concat_basedir => '/dne',
29 it { is_expected.to contain_class("apache::params") }
30 it { is_expected.to contain_apache__mod("auth_cas") }
31 it { is_expected.to contain_package("libapache2-mod-auth-cas") }
32 it { is_expected.to contain_file("auth_cas.conf").with_path('/etc/apache2/mods-available/auth_cas.conf') }
33 it { is_expected.to contain_file("/var/cache/apache2/mod_auth_cas/").with_owner('www-data') }
35 context "on a RedHat OS", :compile do
40 :osfamily => 'RedHat',
41 :operatingsystem => 'RedHat',
42 :operatingsystemrelease => '6',
43 :path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
44 :concat_basedir => '/dne',
48 it { is_expected.to contain_class("apache::params") }
49 it { is_expected.to contain_apache__mod("auth_cas") }
50 it { is_expected.to contain_package("mod_auth_cas") }
51 it { is_expected.to contain_file("auth_cas.conf").with_path('/etc/httpd/conf.d/auth_cas.conf') }
52 it { is_expected.to contain_file("/var/cache/mod_auth_cas/").with_owner('apache') }