Sha256: b5a7d98824f5cf4c4785695421d31e9b9fc8de69c84f364245c25df9449c2576

Contents?: true

Size: 1.58 KB

Versions: 11

Compression:

Stored size: 1.58 KB

Contents

describe 'apache::mod::prefork', :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('prefork') }
    it { should contain_file("/etc/apache2/mods-available/prefork.conf").with_ensure('file') }
    it { should contain_file("/etc/apache2/mods-enabled/prefork.conf").with_ensure('link') }
    it { should contain_package("apache2-mpm-prefork") }
  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('prefork') }
    it { should contain_file("/etc/httpd/conf.d/prefork.conf").with_ensure('file') }
    it { should contain_file_line("/etc/sysconfig/httpd prefork enable").with({
      'require' => 'Package[httpd]',
    })
    }
  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('prefork') }
    it { should contain_file("/usr/local/etc/apache22/Modules/prefork.conf").with_ensure('file') }
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
freighthop-0.6.1 modules/apache/spec/classes/mod/prefork_spec.rb
freighthop-0.6.0 modules/apache/spec/classes/mod/prefork_spec.rb
freighthop-0.5.2 modules/apache/spec/classes/mod/prefork_spec.rb
freighthop-0.5.1 modules/apache/spec/classes/mod/prefork_spec.rb
freighthop-0.5.0 modules/apache/spec/classes/mod/prefork_spec.rb
freighthop-0.4.1 modules/apache/spec/classes/mod/prefork_spec.rb
freighthop-0.4.0 modules/apache/spec/classes/mod/prefork_spec.rb
freighthop-0.3.3 modules/apache/spec/classes/mod/prefork_spec.rb
freighthop-0.3.2 modules/apache/spec/classes/mod/prefork_spec.rb
freighthop-0.3.1 modules/apache/spec/classes/mod/prefork_spec.rb
freighthop-0.3.0 modules/apache/spec/classes/mod/prefork_spec.rb