File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 1010 end
1111
1212 case facts [ :os ] [ 'family' ]
13+ when 'Suse'
14+ context 'on Suse based systems' do
15+ it {
16+ is_expected . to contain_file ( 'security.conf' )
17+ . with_content ( %r{^\s +SecTmpDir /var/lib/mod_security$} )
18+ }
19+ end
1320 when 'RedHat'
1421 context 'on RedHat based systems' do
1522 it {
4249 . with_content ( %r{^\s +SecAuditLogType Serial$} )
4350 . with_content ( %r{^\s +SecDebugLog /var/log/httpd/modsec_debug.log$} )
4451 . with_content ( %r{^\s +SecAuditLog /var/log/httpd/modsec_audit.log$} )
52+ . with_content ( %r{^\s +SecTmpDir /var/lib/mod_security$} )
4553 }
4654 it {
4755 is_expected . to contain_file ( '/etc/httpd/modsecurity.d' ) . with (
211219 . with_content ( %r{^\s +SecAuditLogType Serial$} )
212220 . with_content ( %r{^\s +SecDebugLog /var/log/apache2/modsec_debug.log$} )
213221 . with_content ( %r{^\s +SecAuditLog /var/log/apache2/modsec_audit.log$} )
222+ . with_content ( %r{^\s +SecTmpDir /var/cache/modsecurity$} )
214223 }
215224 it {
216225 is_expected . to contain_file ( '/etc/modsecurity' ) . with (
You can’t perform that action at this time.
0 commit comments