Skip to content

Commit 769e366

Browse files
author
Felipe Zimmerle
committed
tests: Changes the state of the AuditLog engine in the auditlog tests
1 parent 5175214 commit 769e366

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/modsecurity-config-auditlog.t

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ http {
5656
modsecurity on;
5757
modsecurity_rules '
5858
SecRuleEngine On
59+
SecDebugLogEngine RelevantOnly
5960
SecRule ARGS "@streq whee" "id:10,phase:2"
6061
SecRule ARGS "@streq whee" "id:11,phase:2"
6162
';
@@ -65,6 +66,7 @@ http {
6566
SecRule ARGS "@streq root" "id:21,phase:1,auditlog,status:302,redirect:http://www.modsecurity.org"
6667
SecDebugLog %%TESTDIR%%/auditlog-debug-root.txt
6768
SecDebugLogLevel 9
69+
SecAuditLogEngine On
6870
SecAuditLogParts AB
6971
SecAuditLog %%TESTDIR%%/auditlog-root.txt
7072
SecAuditLogType Serial
@@ -78,6 +80,7 @@ http {
7880
SecDebugLog %%TESTDIR%%/auditlog-debug-subfolder1.txt
7981
SecDebugLogLevel 9
8082
SecAuditLogParts AB
83+
SecAuditLogEngine On
8184
SecAuditLog %%TESTDIR%%/auditlog-subfolder1.txt
8285
SecAuditLogType Serial
8386
SecAuditLogStorageDir %%TESTDIR%%/
@@ -87,6 +90,7 @@ http {
8790
SecRule ARGS "@streq subfolder2" "id:41,phase:1,status:302,auditlog,redirect:http://www.modsecurity.org"
8891
SecDebugLog %%TESTDIR%%/auditlog-debug-subfolder2.txt
8992
SecDebugLogLevel 9
93+
SecAuditLogEngine On
9094
SecAuditLogParts AB
9195
SecAuditLog %%TESTDIR%%/auditlog-subfolder2.txt
9296
SecAuditLogType Serial
@@ -100,6 +104,7 @@ http {
100104
SecDebugLog %%TESTDIR%%/auditlog-debug-subfolder3.txt
101105
SecDebugLogLevel 9
102106
SecAuditLogParts AB
107+
SecAuditLogEngine On
103108
SecAuditLog %%TESTDIR%%/auditlog-subfolder3.txt
104109
SecAuditLogType Serial
105110
SecAuditLogStorageDir %%TESTDIR%%/
@@ -110,6 +115,7 @@ http {
110115
SecRule ARGS "@streq subfolder4withE" "id:2,phase:1,status:302,ctl:auditLogParts=+E,auditlog,redirect:http://www.modsecurity.org"
111116
SecDebugLog %%TESTDIR%%/auditlog-debug-subfolder4.txt
112117
SecDebugLogLevel 9
118+
SecAuditLogEngine On
113119
SecAuditLogParts AB
114120
SecAuditLog %%TESTDIR%%/auditlog-subfolder4.txt
115121
SecAuditLogType Serial

0 commit comments

Comments
 (0)