Sha256: 3916e965ff84982285dfd0dae6954b84a08aca4fc55859efbe0f3253127b6c0b

Contents?: true

Size: 1.38 KB

Versions: 11

Compression:

Stored size: 1.38 KB

Contents

describe 'apache::mod::ssl', :type => :class do
  let :pre_condition do
    'include apache'
  end
  context 'on an unsupported OS' do
    let :facts do
      {
        :osfamily               => 'Magic',
        :operatingsystemrelease => '0',
        :concat_basedir         => '/dne',
      }
    end
    it { expect { subject }.to raise_error(Puppet::Error, /Unsupported osfamily:/) }
  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 contain_apache__mod('ssl') }
    it { should contain_package('mod_ssl') }
  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 contain_apache__mod('ssl') }
    it { should_not contain_package('libapache2-mod-ssl') }
  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 contain_apache__mod('ssl') }
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

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