3 describe 'apache::dev', :type => :class do
7 context "on a Debian OS" do
10 :lsbdistcodename => 'squeeze',
11 :osfamily => 'Debian',
12 :operatingsystem => 'Debian',
13 :operatingsystemrelease => '6',
15 :concat_basedir => '/foo',
17 :path => '/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin',
21 it { is_expected.to contain_class("apache::params") }
22 it { is_expected.to contain_package("libaprutil1-dev") }
23 it { is_expected.to contain_package("libapr1-dev") }
24 it { is_expected.to contain_package("apache2-prefork-dev") }
26 context "on an Ubuntu 14 OS" do
29 :lsbdistrelease => '14.04',
30 :lsbdistcodename => 'trusty',
31 :osfamily => 'Debian',
32 :operatingsystem => 'Ubuntu',
33 :operatingsystemrelease => '14.04',
35 :concat_basedir => '/foo',
37 :path => '/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin',
41 it { is_expected.to contain_package("apache2-dev") }
43 context "on a RedHat OS" do
46 :osfamily => 'RedHat',
47 :operatingsystem => 'RedHat',
48 :operatingsystemrelease => '6',
50 :concat_basedir => '/foo',
52 :path => '/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin',
56 it { is_expected.to contain_class("apache::params") }
57 it { is_expected.to contain_package("httpd-devel") }
59 context "on a FreeBSD OS" do
62 :osfamily => 'FreeBSD',
63 :operatingsystem => 'FreeBSD',
64 :operatingsystemrelease => '9',
66 :concat_basedir => '/foo',
68 :path => '/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin',
72 it { is_expected.to contain_class("apache::params") }
74 context "on a Gentoo OS" do
77 :osfamily => 'Gentoo',
78 :operatingsystem => 'Gentoo',
79 :operatingsystemrelease => '3.16.1-gentoo',
80 :concat_basedir => '/dne',
82 :concat_basedir => '/foo',
84 :path => '/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin',
88 it { is_expected.to contain_class("apache::params") }