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 10
10
end
11
11
12
12
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
13
20
when 'RedHat'
14
21
context 'on RedHat based systems' do
15
22
it {
42
49
. with_content ( %r{^\s +SecAuditLogType Serial$} )
43
50
. with_content ( %r{^\s +SecDebugLog /var/log/httpd/modsec_debug.log$} )
44
51
. with_content ( %r{^\s +SecAuditLog /var/log/httpd/modsec_audit.log$} )
52
+ . with_content ( %r{^\s +SecTmpDir /var/lib/mod_security$} )
45
53
}
46
54
it {
47
55
is_expected . to contain_file ( '/etc/httpd/modsecurity.d' ) . with (
211
219
. with_content ( %r{^\s +SecAuditLogType Serial$} )
212
220
. with_content ( %r{^\s +SecDebugLog /var/log/apache2/modsec_debug.log$} )
213
221
. with_content ( %r{^\s +SecAuditLog /var/log/apache2/modsec_audit.log$} )
222
+ . with_content ( %r{^\s +SecTmpDir /var/cache/modsecurity$} )
214
223
}
215
224
it {
216
225
is_expected . to contain_file ( '/etc/modsecurity' ) . with (
You can’t perform that action at this time.
0 commit comments