Sha256: f4eaddaaba343be0b278528a4b7714ff558ebc09c06211af200a7bd3b7851d3d
Contents?: true
Size: 1.91 KB
Versions: 11
Compression:
Stored size: 1.91 KB
Contents
describe 'apache::mod::authnz_ldap', :type => :class do let :pre_condition do 'include apache' 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_class("apache::mod::ldap") } it { should contain_apache__mod('authnz_ldap') } context 'default verifyServerCert' do it { should contain_file('authnz_ldap.conf').with_content(/^LDAPVerifyServerCert On$/) } end context 'verifyServerCert = false' do let(:params) { { :verifyServerCert => false } } it { should contain_file('authnz_ldap.conf').with_content(/^LDAPVerifyServerCert Off$/) } end context 'verifyServerCert = wrong' do let(:params) { { :verifyServerCert => 'wrong' } } it 'should raise an error' do expect { should raise_error Puppet::Error } end end end #Debian 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_class("apache::mod::ldap") } it { should contain_apache__mod('authnz_ldap') } context 'default verifyServerCert' do it { should contain_file('authnz_ldap.conf').with_content(/^LDAPVerifyServerCert On$/) } end context 'verifyServerCert = false' do let(:params) { { :verifyServerCert => false } } it { should contain_file('authnz_ldap.conf').with_content(/^LDAPVerifyServerCert Off$/) } end context 'verifyServerCert = wrong' do let(:params) { { :verifyServerCert => 'wrong' } } it 'should raise an error' do expect { should raise_error Puppet::Error } end end end # Redhat end
Version data entries
11 entries across 11 versions & 1 rubygems