3 describe 'apache::mod::peruser', :type => :class do
5 'class { "apache": mpm_module => false, }'
7 context "on a FreeBSD OS" do
10 :osfamily => 'FreeBSD',
11 :operatingsystemrelease => '10',
12 :concat_basedir => '/dne',
13 :operatingsystem => 'FreeBSD',
16 :path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
23 }.to raise_error(Puppet::Error, /Unsupported osfamily FreeBSD/)
26 context "on a Gentoo OS" do
29 :osfamily => 'Gentoo',
30 :operatingsystem => 'Gentoo',
31 :operatingsystemrelease => '3.16.1-gentoo',
32 :concat_basedir => '/dne',
35 :path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin',
39 it { is_expected.to contain_class("apache::params") }
40 it { is_expected.not_to contain_apache__mod('peruser') }
41 it { is_expected.to contain_file("/etc/apache2/modules.d/peruser.conf").with_ensure('file') }