Sha256: e520c110eb833f2ce6d399f4558eef9c43a0652cd0686cb157f269326b3ad76d
Contents?: true
Size: 1.52 KB
Versions: 11
Compression:
Stored size: 1.52 KB
Contents
describe 'apache::mod::worker', :type => :class do let :pre_condition do 'class { "apache": mpm_module => false, }' end context "on a Debian OS" do let :facts do { :osfamily => 'Debian', :operatingsystemrelease => '6', :concat_basedir => '/dne', } end it { should contain_class("apache::params") } it { should_not contain_apache__mod('worker') } it { should contain_file("/etc/apache2/mods-available/worker.conf").with_ensure('file') } it { should contain_file("/etc/apache2/mods-enabled/worker.conf").with_ensure('link') } it { should contain_package("apache2-mpm-worker") } end context "on a RedHat OS" do let :facts do { :osfamily => 'RedHat', :operatingsystemrelease => '6', :concat_basedir => '/dne', } end it { should contain_class("apache::params") } it { should_not contain_apache__mod('worker') } it { should contain_file("/etc/httpd/conf.d/worker.conf").with_ensure('file') } it { should contain_file_line("/etc/sysconfig/httpd worker enable") } end context "on a FreeBSD OS" do let :facts do { :osfamily => 'FreeBSD', :operatingsystemrelease => '9', :concat_basedir => '/dne', } end it { should contain_class("apache::params") } it { should_not contain_apache__mod('worker') } it { should contain_file("/usr/local/etc/apache22/Modules/worker.conf").with_ensure('file') } end end
Version data entries
11 entries across 11 versions & 1 rubygems