From f3bbcfc7ef13cf266f8acdfcea852a0cbc7f2f0e Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Tue, 18 Oct 2016 18:23:35 -0300 Subject: [PATCH] Removes SecDebugLog directive from the test cases --- test/test-cases/regression/action-allow.json | 2 +- .../action-ctl_request_body_processor.json | 2 +- .../regression/action-disruptive.json | 7 +----- test/test-cases/regression/action-id.json | 20 ++++------------- .../test-cases/regression/action-initcol.json | 3 +-- test/test-cases/regression/action-msg.json | 6 +---- test/test-cases/regression/action-setsid.json | 3 +-- test/test-cases/regression/action-setuid.json | 3 +-- test/test-cases/regression/action-skip.json | 7 ++---- test/test-cases/regression/action-tag.json | 6 +---- test/test-cases/regression/actions.json | 12 ---------- test/test-cases/regression/auditlog.json | 6 ----- .../collection-case-insensitive.json | 4 +--- ...llection-regular_expression_selection.json | 6 +---- .../regression/collection-tx-with-macro.json | 10 +-------- test/test-cases/regression/collection-tx.json | 10 +-------- .../regression/config-body_limits.json | 8 ------- .../config-calling_phases_by_name.json | 4 ---- .../regression/config-include-bad.json | 10 +-------- .../test-cases/regression/config-include.json | 14 +----------- .../regression/config-remove_by_id.json | 2 +- .../regression/config-response_type.json | 6 +---- .../regression/config-secdefaultaction.json | 16 +------------- .../regression/config-secremoterules.json | 8 +------ test/test-cases/regression/debug_log.json | 2 -- test/test-cases/regression/issue-394.json | 4 +--- test/test-cases/regression/misc.json | 4 +--- .../operator-UnconditionalMatch.json | 4 +--- .../regression/operator-ipMatchFromFile.json | 10 ++------- test/test-cases/regression/operator-rx.json | 4 +--- .../regression/sec_component_signature.json | 4 +--- test/test-cases/regression/secaction.json | 2 -- test/test-cases/regression/secmarker.json | 4 ---- test/test-cases/regression/secruleengine.json | 7 +----- .../regression/transformation-none.json | 4 ---- .../regression/transformations.json | 4 ---- test/test-cases/regression/variable-ARGS.json | 14 ------------ .../variable-ARGS_COMBINED_SIZE.json | 14 ------------ .../regression/variable-ARGS_GET.json | 6 ----- .../regression/variable-ARGS_GET_NAMES.json | 4 ---- .../regression/variable-ARGS_NAMES.json | 8 ------- .../regression/variable-ARGS_POST.json | 4 ---- .../regression/variable-ARGS_POST_NAMES.json | 4 ---- .../regression/variable-AUTH_TYPE.json | 4 ---- .../regression/variable-DURATION.json | 2 -- test/test-cases/regression/variable-ENV.json | 6 ----- .../test-cases/regression/variable-FILES.json | 4 +--- .../variable-FILES_COMBINED_SIZE.json | 4 +--- .../regression/variable-FILES_NAMES.json | 4 +--- .../regression/variable-FILES_SIZES.json | 4 +--- .../regression/variable-FULL_REQUEST.json | 4 +--- .../variable-FULL_REQUEST_LENGTH.json | 4 +--- test/test-cases/regression/variable-GEO.json | 22 ------------------- .../regression/variable-HIGHEST_SEVERITY.json | 4 ---- .../variable-INBOUND_DATA_ERROR.json | 4 ---- .../regression/variable-MATCHED_VAR.json | 4 ---- .../regression/variable-MATCHED_VARS.json | 4 ---- .../variable-MATCHED_VARS_NAMES.json | 4 ---- .../regression/variable-MATCHED_VAR_NAME.json | 4 ---- .../regression/variable-MODSEC_BUILD.json | 2 -- .../variable-MULTIPART_CRLF_LF_LINES.json | 4 ---- .../variable-MULTIPART_FILENAME.json | 4 ---- .../regression/variable-MULTIPART_NAME.json | 4 ---- .../variable-MULTIPART_STRICT_ERROR.json | 10 --------- ...variable-MULTIPART_UNMATCHED_BOUNDARY.json | 4 +--- .../variable-OUTBOUND_DATA_ERROR.json | 4 ---- .../regression/variable-PATH_INFO.json | 8 +------ .../regression/variable-QUERY_STRING.json | 4 +--- .../regression/variable-REMOTE_ADDR.json | 6 +---- .../regression/variable-REMOTE_HOST.json | 6 +---- .../regression/variable-REMOTE_PORT.json | 6 +---- .../regression/variable-REMOTE_USER.json | 4 +--- .../variable-REQBODY_PROCESSOR.json | 6 ----- .../variable-REQBODY_PROCESSOR_ERROR.json | 4 ---- .../regression/variable-REQUEST_BASENAME.json | 4 +--- .../regression/variable-REQUEST_BODY.json | 4 +--- .../variable-REQUEST_BODY_LENGTH.json | 4 +--- .../regression/variable-REQUEST_COOKIES.json | 6 ----- .../variable-REQUEST_COOKIES_NAMES.json | 6 ----- .../regression/variable-REQUEST_FILENAME.json | 4 +--- .../regression/variable-REQUEST_HEADERS.json | 4 +--- .../variable-REQUEST_HEADERS_NAMES.json | 4 +--- .../regression/variable-REQUEST_LINE.json | 2 -- .../regression/variable-REQUEST_METHOD.json | 2 -- .../regression/variable-REQUEST_PROTOCOL.json | 2 -- .../regression/variable-REQUEST_URI.json | 2 -- .../regression/variable-REQUEST_URI_RAW.json | 2 -- .../regression/variable-RESPONSE_BODY.json | 2 -- .../variable-RESPONSE_CONTENT_LENGTH.json | 2 -- .../variable-RESPONSE_CONTENT_TYPE.json | 2 -- .../regression/variable-RESPONSE_HEADERS.json | 4 +--- .../variable-RESPONSE_HEADERS_NAMES.json | 4 +--- .../variable-RESPONSE_PROTOCOL.json | 2 -- test/test-cases/regression/variable-RULE.json | 14 ------------ .../regression/variable-SERVER_ADDR.json | 6 +---- .../regression/variable-SERVER_NAME.json | 4 ---- .../regression/variable-SERVER_PORT.json | 6 +---- .../regression/variable-SESSIONID.json | 4 +--- .../regression/variable-STATUS.json | 4 ---- test/test-cases/regression/variable-TIME.json | 4 +--- .../regression/variable-TIME_DAY.json | 4 +--- .../regression/variable-TIME_EPOCH.json | 4 +--- .../regression/variable-TIME_HOUR.json | 4 +--- .../regression/variable-TIME_MIN.json | 4 +--- .../regression/variable-TIME_MON.json | 4 +--- .../regression/variable-TIME_SEC.json | 4 +--- .../regression/variable-TIME_WDAY.json | 4 +--- .../regression/variable-TIME_YEAR.json | 4 +--- test/test-cases/regression/variable-TX.json | 6 +---- .../regression/variable-UNIQUE_ID.json | 4 +--- .../regression/variable-URLENCODED_ERROR.json | 14 ------------ .../regression/variable-USERID.json | 4 +--- .../regression/variable-variation-count.json | 6 ----- .../variable-variation-exclusion.json | 6 +---- 114 files changed, 69 insertions(+), 547 deletions(-) diff --git a/test/test-cases/regression/action-allow.json b/test/test-cases/regression/action-allow.json index 2a127271..e8c6d193 100644 --- a/test/test-cases/regression/action-allow.json +++ b/test/test-cases/regression/action-allow.json @@ -98,4 +98,4 @@ "SecRule ARGS \"@contains value\" \"id:1,t:trim,status:500,deny,phase:3\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/action-ctl_request_body_processor.json b/test/test-cases/regression/action-ctl_request_body_processor.json index 085e8f5b..b714eadf 100644 --- a/test/test-cases/regression/action-ctl_request_body_processor.json +++ b/test/test-cases/regression/action-ctl_request_body_processor.json @@ -172,4 +172,4 @@ "SecRule XML:/bookstore/book/price[text()] \"Fred\" \"phase:3,id:123,xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/action-disruptive.json b/test/test-cases/regression/action-disruptive.json index 3c40cb35..66e9fafc 100644 --- a/test/test-cases/regression/action-disruptive.json +++ b/test/test-cases/regression/action-disruptive.json @@ -9,7 +9,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", "SecDefaultAction \"phase:2,deny,status:404\"", "SecAction \"id:'900001',phase:request,nolog,status:403,t:none\"" ] @@ -24,7 +23,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", "SecDefaultAction \"phase:2,deny,status:404\"", "SecAction \"id:'1',phase:request,nolog,t:none\"" ] @@ -39,7 +37,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", "SecDefaultAction \"phase:2,deny,status:404\"", "SecAction \"id:'1',phase:request,nolog,block,t:none\"" ] @@ -53,7 +50,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", "SecAction \"id:'1',phase:request,nolog,t:none\"" ] }, @@ -66,9 +62,8 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", "SecDefaultAction \"phase:2,deny,status:404\"", "SecAction \"id:'1',phase:request,nolog,pass,t:none\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/action-id.json b/test/test-cases/regression/action-id.json index d5d39396..82ce5128 100644 --- a/test/test-cases/regression/action-id.json +++ b/test/test-cases/regression/action-id.json @@ -40,8 +40,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@rx (value1)\" \"id:111111111111222222222222222222222222222333333333333333333333333333444444444444444444444444444444555555555555555555555555666666666666666666666666666666666666666666,phase:2,pass,t:trim\"" ] }, @@ -82,12 +80,10 @@ ] }, "expected":{ - "parser_error": "File: action-id.json. Line: 4. Column: 30. invalid character i" + "parser_error": "File: action-id.json. Line: 2. Column: 30. invalid character i" }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@rx (value1)\" \"id:-1,phase:2,pass,t:trim\"" ] }, @@ -132,8 +128,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@rx (value1)\" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -178,8 +172,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@rx (value1)\" \"id:'1',phase:3,pass,t:trim\"" ] }, @@ -220,12 +212,10 @@ ] }, "expected":{ - "parser_error": "action-id.json. Line: 4. Column: 30. invalid character i" + "parser_error": "action-id.json. Line: 2. Column: 30. invalid character i" }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@rx (value1)\" \"id:'1,phase:2,pass,t:trim\"" ] }, @@ -266,13 +256,11 @@ ] }, "expected":{ - "parser_error": "action-id.json. Line: 4. Column: 34. invalid character '" + "parser_error": "action-id.json. Line: 2. Column: 34. invalid character '" }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@rx (value1)\" \"id:1',phase:2,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/action-initcol.json b/test/test-cases/regression/action-initcol.json index 69948fda..5051f2e6 100644 --- a/test/test-cases/regression/action-initcol.json +++ b/test/test-cases/regression/action-initcol.json @@ -26,7 +26,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", "SecRule REQUEST_HEADERS:User-Agent \"^(.*)$\" \"id:'900018',phase:1,t:none,t:sha1,t:hexEncode,setvar:tx.ua_hash=%{matched_var},nolog,pass\"", "SecRule &TX:REAL_IP \"@eq 0\" \"id:'900021',phase:1,t:none,initcol:global=global,initcol:ip=%{remote_addr}_%{tx.ua_hash},setvar:tx.real_ip=%{remote_addr},nolog,pass\"", "SecRule REQUEST_HEADERS:User-Agent \"^(.*)$\" \"id:'900019',phase:2,t:none,setvar:ip.auth_attempt=+1,nolog,pass\"", @@ -34,4 +33,4 @@ "SecRule REQUEST_HEADERS:User-Agent \"^(.*)$\" \"id:'900022',phase:2,t:none,setvar:ip.auth_attempt=+1,nolog,pass\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/action-msg.json b/test/test-cases/regression/action-msg.json index 79a7317d..6198d7a6 100644 --- a/test/test-cases/regression/action-msg.json +++ b/test/test-cases/regression/action-msg.json @@ -53,8 +53,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_HEADERS \"@contains PHPSESSID\" \"id:1,t:lowercase,t:none,msg:'This is a test, %{REQUEST_HEADERS:Accept}%'\"", "SecRule TX \"@contains to_test\" \"id:2,t:lowercase,t:none\"" ] @@ -113,10 +111,8 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_HEADERS \"@contains PHPSESSID\" \"id:1,capture,t:lowercase,t:none,msg:'This is a test: %{TX.0}% ops'\"", "SecRule TX \"@contains to_test\" \"id:2,t:lowercase,capture,t:none\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/action-setsid.json b/test/test-cases/regression/action-setsid.json index d3ecb255..2d4e2cdd 100644 --- a/test/test-cases/regression/action-setsid.json +++ b/test/test-cases/regression/action-setsid.json @@ -27,11 +27,10 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", "SecRule REQUEST_HEADERS:User-Agent \"^(.*)$\" \"id:'900018',phase:1,t:none,t:sha1,t:hexEncode,setsid:%{REQUEST_COOKIES:PHPSESSID}%,nolog,pass\"", "SecRule REQUEST_HEADERS \".*\" \"id:'900021',phase:1,setvar:SESSION.score=+10\"", "SecRule REQUEST_HEADERS:User-Agent \"^(.*)$\" \"id:'900068',phase:1,t:none,t:sha1,t:hexEncode,setsid:%{REQUEST_COOKIES:PHPSESSID}2,nolog,pass\"", "SecRule REQUEST_HEADERS \".*\" \"id:'900022',phase:1,setvar:SESSION.score=+5\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/action-setuid.json b/test/test-cases/regression/action-setuid.json index 6fba6631..726efd1e 100644 --- a/test/test-cases/regression/action-setuid.json +++ b/test/test-cases/regression/action-setuid.json @@ -27,11 +27,10 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", "SecRule REQUEST_HEADERS:User-Agent \"^(.*)$\" \"id:'900018',phase:1,t:none,t:sha1,t:hexEncode,setuid:%{REQUEST_COOKIES:USER}%,nolog,pass\"", "SecRule REQUEST_HEADERS \".*\" \"id:'900021',phase:1,setvar:USER.score=+10\"", "SecRule REQUEST_HEADERS:User-Agent \"^(.*)$\" \"id:'900068',phase:1,t:none,t:sha1,t:hexEncode,setsid:%{REQUEST_COOKIES:PHPSESSID}2,nolog,pass\"", "SecRule REQUEST_HEADERS \".*\" \"id:'900022',phase:1,setvar:USER.score=+5\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/action-skip.json b/test/test-cases/regression/action-skip.json index f5189cc4..7aaea13e 100644 --- a/test/test-cases/regression/action-skip.json +++ b/test/test-cases/regression/action-skip.json @@ -27,7 +27,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", "SecRule REQUEST_HEADERS:User-Agent \"^(.*)$\" \"id:'1',phase:1,skip:1\"", "SecRule REQUEST_HEADERS \"should be skipped\" \"id:'2',phase:1,setvar:SESSION.score=+10\"", "SecRule REQUEST_HEADERS:User-Agent \"^(.*)$\" \"id:'3',phase:1,t:none,nolog,pass\"", @@ -39,7 +38,7 @@ "version_min":300000, "title":"Testing skip action 2/3", "expected":{ - "parser_error": "Rules error. File: action-skip.json. Line: 3. Column: 61. invalid character s" + "parser_error": "Rules error. File: action-skip.json. Line: 2. Column: 61. invalid character s" }, "client":{ "ip":"200.249.12.31", @@ -62,7 +61,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", "SecRule REQUEST_HEADERS:User-Agent \"^(.*)$\" \"id:'1',phase:1,skip:abc\"", "SecRule REQUEST_HEADERS \"should be skipped\" \"id:'2',phase:1,setvar:SESSION.score=+10\"", "SecRule REQUEST_HEADERS:User-Agent \"^(.*)$\" \"id:'3',phase:1,t:none,nolog,pass\"", @@ -97,11 +95,10 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", "SecRule REQUEST_HEADERS:User-Agent \"^(.*)$\" \"id:'1',phase:1,skip:2\"", "SecRule REQUEST_HEADERS \"should be skipped\" \"id:'2',phase:1,setvar:SESSION.score=+10\"", "SecRule REQUEST_HEADERS:User-Agent \"^(.*)$\" \"id:'3',phase:1,t:none,nolog,pass\"", "SecRule REQUEST_HEADERS \".*\" \"id:'4',phase:1,setvar:SESSION.score=+5\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/action-tag.json b/test/test-cases/regression/action-tag.json index 1fd64b6c..870297b4 100644 --- a/test/test-cases/regression/action-tag.json +++ b/test/test-cases/regression/action-tag.json @@ -53,8 +53,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_HEADERS \"@contains PHPSESSID\" \"id:1,tag:'teste',t:lowercase,t:none\"", "SecRule TX \"@contains to_test\" \"id:2,t:lowercase,t:none\"" ] @@ -113,10 +111,8 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_HEADERS \"@contains PHPSESSID\" \"id:1,tag:'teste %{REQUEST_HEADERS:Pragma}%',t:lowercase,t:none\"", "SecRule TX \"@contains to_test\" \"id:2,t:lowercase,t:none\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/actions.json b/test/test-cases/regression/actions.json index 7fbcd3cc..2baea223 100644 --- a/test/test-cases/regression/actions.json +++ b/test/test-cases/regression/actions.json @@ -55,8 +55,6 @@ }, "rules": [ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@contains test\" \"id:1,t:trim,deny\"" ] }, @@ -117,8 +115,6 @@ }, "rules": [ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@contains test\" \"id:1,t:trim,redirect:'http://www.google.com'\"" ] }, @@ -179,8 +175,6 @@ }, "rules": [ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@contains test\" \"id:1,t:trim,status:500,redirect:'http://www.google.com'\"" ] }, @@ -240,8 +234,6 @@ }, "rules": [ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@contains test\" \"id:1,t:trim,deny,status:500\"" ] }, @@ -301,8 +293,6 @@ }, "rules": [ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@contains test\" \"id:1,phase:2,t:trim,status:500,deny\"" ] }, @@ -362,8 +352,6 @@ }, "rules": [ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@contains test\" \"id:1,phase:4,t:trim,status:500,deny\"" ] } diff --git a/test/test-cases/regression/auditlog.json b/test/test-cases/regression/auditlog.json index 30d3f0d5..4729370b 100644 --- a/test/test-cases/regression/auditlog.json +++ b/test/test-cases/regression/auditlog.json @@ -46,8 +46,6 @@ }, "rules": [ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@contains test\" \"id:1,t:trim,deny,auditlog\"", "SecAuditEngine RelevantOnly", "SecAuditLogParts ABCFHZ", @@ -105,8 +103,6 @@ }, "rules": [ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@contains test\" \"id:1,t:trim,deny,auditlog\"", "SecAuditEngine RelevantOnly", "SecAuditLogParts ABCFHZ", @@ -165,8 +161,6 @@ }, "rules": [ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@contains test\" \"id:1,t:trim,deny,auditlog\"", "SecAuditEngine RelevantOnly", "SecAuditLogParts ABCFHZ", diff --git a/test/test-cases/regression/collection-case-insensitive.json b/test/test-cases/regression/collection-case-insensitive.json index 384eaec7..83c3a4d8 100644 --- a/test/test-cases/regression/collection-case-insensitive.json +++ b/test/test-cases/regression/collection-case-insensitive.json @@ -53,10 +53,8 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_headers \"@contains PHPSESSID\" \"id:1,t:lowercase,t:none,setvar:TX.something=matched_var:%{matched_var}%\"", "SecRule TX \"@contains to_test\" \"id:2,t:lowercase,t:none\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/collection-regular_expression_selection.json b/test/test-cases/regression/collection-regular_expression_selection.json index bcbbe390..97681cba 100644 --- a/test/test-cases/regression/collection-regular_expression_selection.json +++ b/test/test-cases/regression/collection-regular_expression_selection.json @@ -53,8 +53,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS:/^id_/ \"@contains nops\" \"id:1,t:lowercase,block,status:404\"" ] }, @@ -112,12 +110,10 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS:/^id_/ \"@contains test\" \"id:1,t:lowercase,initcol:ip=%{REMOTE_ADDR},setvar:IP.id_a=test\"", "SecRule ARGS:/^id_/ \"@contains test\" \"id:3,t:lowercase,setvar:IP.nah=nops\"", "SecRule IP:/^id_/ \"@contains test\" \"id:2,t:lowercase,initcol:ip=%{REMOTE_ADDR}\"", "SecRule IP:/^id_/ \"@contains nops\" \"id:4,t:lowercase,block,status:404\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/collection-tx-with-macro.json b/test/test-cases/regression/collection-tx-with-macro.json index b310bfb5..a0173b6b 100644 --- a/test/test-cases/regression/collection-tx-with-macro.json +++ b/test/test-cases/regression/collection-tx-with-macro.json @@ -53,8 +53,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_HEADERS \"@contains PHPSESSID\" \"id:1,t:lowercase,t:none,setvar:TX.something=%{REQUEST_HEADERS:Cookie}%\"", "SecRule TX \"@contains to_test\" \"id:2,t:lowercase,t:none\"" ] @@ -113,8 +111,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_HEADERS \"@contains PHPSESSID\" \"id:1,t:lowercase,t:none,setvar:TX.something%{REQUEST_HEADERS:Cookie}%\"", "SecRule TX \"@contains to_test\" \"id:2,t:lowercase,t:none\"" ] @@ -173,8 +169,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_HEADERS \"@contains PHPSESSID\" \"id:1,t:lowercase,t:none,setvar:TX.something=%{REQUEST_HEADERS:Keep-Alive}%\"", "SecRule REQUEST_HEADERS \"@contains PHPSESSID\" \"id:2,t:lowercase,t:none,setvar:TX.something=+10\"", "SecRule TX \"@contains to_test\" \"id:3,t:lowercase,t:none\"" @@ -234,12 +228,10 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_HEADERS \"@contains PHPSESSID\" \"id:1,t:lowercase,t:none,setvar:TX.something=+10\"", "SecRule REQUEST_HEADERS \"@contains PHPSESSID\" \"id:2,t:lowercase,t:none,setvar:TX.something_else=%{tx.something}%\"", "SecRule REQUEST_HEADERS \"@contains PHPSESSID\" \"id:3,t:lowercase,t:none,setvar:TX.something_else=-5\"", "SecRule TX:something_else \"@contains to_test\" \"id:4,t:lowercase,t:none\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/collection-tx.json b/test/test-cases/regression/collection-tx.json index 1552f608..127f701c 100644 --- a/test/test-cases/regression/collection-tx.json +++ b/test/test-cases/regression/collection-tx.json @@ -53,8 +53,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_HEADERS \"@contains PHPSESSID\" \"id:1,t:lowercase,t:none,setvar:TX.something=to_test\"", "SecRule TX \"@contains to_test\" \"id:2,t:lowercase,t:none\"" ] @@ -113,8 +111,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_HEADERS \"@contains PHPSESSID\" \"id:1,t:lowercase,t:none,setvar:TX.something\"", "SecRule TX \"@contains to_test\" \"id:2,t:lowercase,t:none\"" ] @@ -173,8 +169,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_HEADERS \"@contains PHPSESSID\" \"id:1,t:lowercase,t:none,setvar:TX.something=+10\"", "SecRule REQUEST_HEADERS \"@contains PHPSESSID\" \"id:2,t:lowercase,t:none,setvar:TX.something=+10\"", "SecRule TX \"@contains to_test\" \"id:3,t:lowercase,t:none\"" @@ -234,12 +228,10 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_HEADERS \"@contains PHPSESSID\" \"id:1,t:lowercase,t:none,setvar:TX.something=+10\"", "SecRule REQUEST_HEADERS \"@contains PHPSESSID\" \"id:2,t:lowercase,t:none,setvar:TX.something=+10\"", "SecRule REQUEST_HEADERS \"@contains PHPSESSID\" \"id:3,t:lowercase,t:none,setvar:TX.something=-5\"", "SecRule TX \"@contains to_test\" \"id:4,t:lowercase,t:none\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/config-body_limits.json b/test/test-cases/regression/config-body_limits.json index c05b2f47..97896039 100644 --- a/test/test-cases/regression/config-body_limits.json +++ b/test/test-cases/regression/config-body_limits.json @@ -35,8 +35,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecResponseBodyLimitAction Reject", "SecResponseBodyLimit 5" ] @@ -77,8 +75,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecResponseBodyLimitAction ProcessPartial", "SecResponseBodyLimit 5" ] @@ -136,8 +132,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRequestBodyLimitAction Reject", "SecRequestBodyLimit 5" ] @@ -195,8 +189,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRequestBodyLimitAction ProcessPartial", "SecRequestBodyLimit 5" ] diff --git a/test/test-cases/regression/config-calling_phases_by_name.json b/test/test-cases/regression/config-calling_phases_by_name.json index 2524369a..4cfe9a2b 100644 --- a/test/test-cases/regression/config-calling_phases_by_name.json +++ b/test/test-cases/regression/config-calling_phases_by_name.json @@ -35,8 +35,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS:key \"@contains other_value\" \"id:1,phase:request,chain\"", "SecRule MATCHED_VAR \"@contains asdf\" \"phase:request,pass\"" ] @@ -77,8 +75,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS:key \"@contains other_value\" \"chain,phase:response,id:28\"", "SecRule MATCHED_VAR \"@contains Aasdf\" \"pass\"", "SecRule MATCHED_VAR \"@contains other_value\" \"id:29,phase:response,pass\"", diff --git a/test/test-cases/regression/config-include-bad.json b/test/test-cases/regression/config-include-bad.json index db21eb73..2584e54b 100644 --- a/test/test-cases/regression/config-include-bad.json +++ b/test/test-cases/regression/config-include-bad.json @@ -8,8 +8,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "Include test-cases/data/config_example3.txt", "SecRule ARGS \"@missing_operator test\" \"id:19,pass,t:trim\"" ] @@ -19,12 +17,10 @@ "version_min":300000, "title":"Include - missing file", "expected":{ - "parser_error": "Rules error. File: config-include-bad.json. Line: 4. Column: 46. test-cases/data/config_example-ops.txt: Not able to open file." + "parser_error": "Rules error. File: config-include-bad.json. Line: 2. Column: 46. test-cases/data/config_example-ops.txt: Not able to open file." }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "Include test-cases/data/config_example-ops.txt", "SecRule ARGS \"@contains test\" \"id:19,pass,t:trim\"" ] @@ -38,8 +34,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "Include test-cases/data/config_example-ops-include.txt", "SecRule ARGS \"@contains test\" \"id:19,pass,t:trim\"" ] @@ -53,8 +47,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "Include test-cases/data/config_example.txt", "Include test-cases/data/config_example.txt", "SecRule ARGS \"@missing_operator test\" \"id:19,pass,t:trim\"" diff --git a/test/test-cases/regression/config-include.json b/test/test-cases/regression/config-include.json index 39984a9a..1c72d9d8 100644 --- a/test/test-cases/regression/config-include.json +++ b/test/test-cases/regression/config-include.json @@ -35,8 +35,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "Include test-cases/data/config_example2.txt", "SecRule ARGS \"@contains test\" \"id:9,pass,t:trim\"" ] @@ -77,8 +75,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "Include test-cases/data/config_example.txt", "SecRule ARGS \"@contains test\" \"id:9,pass,t:trim\"" ] @@ -119,8 +115,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "Include test-cases/data/config_example2.txt", "SecRule ARGS \"@contains test\" \"id:9,pass,t:trim\"" ] @@ -161,8 +155,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@contains test\" \"id:9,pass,t:trim\"", "Include test-cases/data/config_example2.txt" ] @@ -203,8 +195,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@contains test\" \"id:1,pass,t:trim\"", "Include test-cases/data/config_example.txt", "SecRule ARGS \"@contains test\" \"id:3,pass,t:trim\"" @@ -246,10 +236,8 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "Include test-cases/data/config_example2.txt", "SecRule ARGS \"@contains test\" \"id:9,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/config-remove_by_id.json b/test/test-cases/regression/config-remove_by_id.json index 509e3fb5..9f074420 100644 --- a/test/test-cases/regression/config-remove_by_id.json +++ b/test/test-cases/regression/config-remove_by_id.json @@ -122,4 +122,4 @@ "SecRule ARGS \"@contains test\" \"id:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/config-response_type.json b/test/test-cases/regression/config-response_type.json index f368ff52..5445a45b 100644 --- a/test/test-cases/regression/config-response_type.json +++ b/test/test-cases/regression/config-response_type.json @@ -35,8 +35,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecResponseBodyMimeType text\/plain text\/html text\/xml", "SecRule RESPONSE_BODY \"@contains RESPONSE_CONTENT_TYPE\" \"id:9,pass,t:trim,phase:4\"" ] @@ -77,11 +75,9 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecResponseBodyMimeType application\/something", "SecRule RESPONSE_BODY \"@contains RESPONSE_CONTENT_TYPE\" \"id:9,pass,t:trim,phase:4\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/config-secdefaultaction.json b/test/test-cases/regression/config-secdefaultaction.json index 48c2075c..fa11c456 100644 --- a/test/test-cases/regression/config-secdefaultaction.json +++ b/test/test-cases/regression/config-secdefaultaction.json @@ -53,8 +53,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecDefaultAction \"phase:2,t:lowercase\"", "SecRule REQUEST_HEADERS \"@contains PHPSESSID\" \"phase:2,id:1,msg:'This is a test, %{REQUEST_HEADERS:Accept}%'\"", "SecRule TX \"@contains to_test\" \"id:2,t:lowercase,t:none\"" @@ -114,8 +112,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecDefaultAction \"phase:2,t:lowercase\"", "SecRule REQUEST_HEADERS \"@contains PHPSESSID\" \"t:none,phase:2,id:1,msg:'This is a test, %{REQUEST_HEADERS:Accept}%'\"", "SecRule TX \"@contains to_test\" \"id:2,t:lowercase,t:none\"" @@ -131,8 +127,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecDefaultAction \"phase:2,t:none\"", "SecRule REQUEST_HEADERS \"@contains PHPSESSID\" \"t:none,phase:2,id:1,msg:'This is a test, %{REQUEST_HEADERS:Accept}%'\"", "SecRule TX \"@contains to_test\" \"id:2,t:lowercase,t:none\"" @@ -192,8 +186,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecDefaultAction \"phase:2,log,auditlog,pass\"", "SecRule REQUEST_HEADERS \"@contains PHPSESSID\" \"id:1,t:lowercase,t:none,msg:'This is a test, %{REQUEST_HEADERS:Accept}%'\"", "SecRule TX \"@contains to_test\" \"id:2,t:lowercase,t:none\"" @@ -209,8 +201,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecDefaultAction \"phase:2,id:1,log,auditlog,pass,tag:'teste'\"", "SecRule REQUEST_HEADERS \"@contains PHPSESSID\" \"id:1,tag:'teste',t:lowercase,t:none,msg:'This is a test, %{REQUEST_HEADERS:Accept}%'\"", @@ -227,8 +217,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecDefaultAction \"phase:2,log,auditlog,pass,tag:'teste'\"", "SecDefaultAction \"phase:2,log,auditlog,pass,tag:'teste'\"", "SecRule REQUEST_HEADERS \"@contains PHPSESSID\" \"id:1,tag:'teste',t:lowercase,t:none,msg:'This is a test, %{REQUEST_HEADERS:Accept}%'\"", @@ -289,11 +277,9 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecDefaultAction \"phase:2,log,auditlog,status:302\"", "SecRule REQUEST_HEADERS \"@contains PHPSESSID\" \"phase:2,id:1,redirect:'http://www.google.com'\"", "SecRule TX \"@contains to_test\" \"id:2,t:lowercase,t:none\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/config-secremoterules.json b/test/test-cases/regression/config-secremoterules.json index 55557d97..afaaac4b 100644 --- a/test/test-cases/regression/config-secremoterules.json +++ b/test/test-cases/regression/config-secremoterules.json @@ -35,8 +35,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRemoteRules key https://www.modsecurity.org/modsecurity-regression-test-secremoterules.txt", "SecRule ARGS \"@contains somethingelse\" \"id:9,pass,t:trim\"" ] @@ -50,8 +48,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRemoteRulesFailAction Abort", "SecRemoteRules key https://www.modsecurity.org/modsecurity-regression-test-secremoterules-bonga.txt" ] @@ -92,11 +88,9 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRemoteRulesFailAction Warn", "SecRemoteRules key https://www.modsecurity.org/modsecurity-regression-test-secremoterules-bonga.txt", "SecRule ARGS \"@contains somethingelse\" \"id:9,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/debug_log.json b/test/test-cases/regression/debug_log.json index fd7eb7f7..9e17fac6 100644 --- a/test/test-cases/regression/debug_log.json +++ b/test/test-cases/regression/debug_log.json @@ -54,8 +54,6 @@ }, "rules": [ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@contains test\" \"id:3,pass\"", "SecRule ARGS \"@contains /test.txt\" \"id:4,allow\"", "SecRule ARGS:teste \"@contains /test.txt\" \" id:1,allow,deny\"", diff --git a/test/test-cases/regression/issue-394.json b/test/test-cases/regression/issue-394.json index 1ce7a596..177792a9 100644 --- a/test/test-cases/regression/issue-394.json +++ b/test/test-cases/regression/issue-394.json @@ -36,9 +36,7 @@ "SecAuditEngine On", "SecAuditLogType Serial", "SecAuditLog logs\/modsec_audit.log", - "SecAuditLogParts ABCDEFHJKZ", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9" + "SecAuditLogParts ABCDEFHJKZ" ] } ] diff --git a/test/test-cases/regression/misc.json b/test/test-cases/regression/misc.json index 0ca21636..dde68b9f 100644 --- a/test/test-cases/regression/misc.json +++ b/test/test-cases/regression/misc.json @@ -11,10 +11,8 @@ }, "rules":[ "secruleengine On", - "secdebuglog \/tmp\/modsec_debug.log", - "secdebugloglevel 9", "secrule REQUEST_HEADERS \"@contains PHPSESSID\" \"id:1,t:lowercase,t:none,msg:'This is a test, %{REQUEST_HEADERS:Accept}%'\"", "secrule TX \"@contains to_test\" \"id:2,t:lowercase,t:none\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/operator-UnconditionalMatch.json b/test/test-cases/regression/operator-UnconditionalMatch.json index 3365089f..5f73a2ec 100644 --- a/test/test-cases/regression/operator-UnconditionalMatch.json +++ b/test/test-cases/regression/operator-UnconditionalMatch.json @@ -40,9 +40,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@UnconditionalMatch\" \"id:1,phase:2,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/operator-ipMatchFromFile.json b/test/test-cases/regression/operator-ipMatchFromFile.json index 0bf7460f..474975be 100644 --- a/test/test-cases/regression/operator-ipMatchFromFile.json +++ b/test/test-cases/regression/operator-ipMatchFromFile.json @@ -40,8 +40,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REMOTE_ADDR \"@ipMatchFromFile test-cases\/data\/ipMatchFromFile.txt\" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -82,12 +80,10 @@ ] }, "expected":{ - "parser_error":"File: operator-ipMatchFromFile.json. Line: 4. Column: 19. Failed to open file: file-not-found.txt" + "parser_error":"File: operator-ipMatchFromFile.json. Line: 2. Column: 19. Failed to open file: file-not-found.txt" }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REMOTE_ADDR \"@ipMatchFromFile file-not-found.txt\" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -132,9 +128,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REMOTE_ADDR \"@ipMatchFromFile https://www.modsecurity.org/modsecurity-regression-test.txt\" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/operator-rx.json b/test/test-cases/regression/operator-rx.json index 8635b870..df051fb6 100644 --- a/test/test-cases/regression/operator-rx.json +++ b/test/test-cases/regression/operator-rx.json @@ -40,9 +40,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@rx (value1)\" \"id:1,phase:2,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/sec_component_signature.json b/test/test-cases/regression/sec_component_signature.json index 7b5539a8..580663f6 100644 --- a/test/test-cases/regression/sec_component_signature.json +++ b/test/test-cases/regression/sec_component_signature.json @@ -46,10 +46,8 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecComponentSignature \"OWASP_CRS/2.2.9\"", "SecRule ARGS \"@contains test\" \"id:1,t:trim,deny,status:403,auditlog\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/secaction.json b/test/test-cases/regression/secaction.json index 5fbb7a01..a742542b 100644 --- a/test/test-cases/regression/secaction.json +++ b/test/test-cases/regression/secaction.json @@ -54,8 +54,6 @@ }, "rules": [ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@contains test\" \"phase:2,id:1,t:trim\"", "SecAction \"phase:2,nolog,pass\"" ] diff --git a/test/test-cases/regression/secmarker.json b/test/test-cases/regression/secmarker.json index ffface80..337f5182 100644 --- a/test/test-cases/regression/secmarker.json +++ b/test/test-cases/regression/secmarker.json @@ -54,8 +54,6 @@ }, "rules": [ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@contains test\" \"phase:2,id:1,t:trim\"", "SecAction \"phase:2,nolog,pass\"", "SecMarker HERE_GOES_A_MARKER", @@ -117,8 +115,6 @@ }, "rules": [ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@contains test\" \"phase:2,id:1,t:trim,skipAfter:HERE_GOES_A_MARKER\"", "SecRule ARGS \"@contains test1\" \"phase:2,id:2,t:trim\"", "SecRule ARGS \"@contains test2\" \"phase:2,id:3,t:trim\"", diff --git a/test/test-cases/regression/secruleengine.json b/test/test-cases/regression/secruleengine.json index 715c1592..07250f0d 100644 --- a/test/test-cases/regression/secruleengine.json +++ b/test/test-cases/regression/secruleengine.json @@ -9,7 +9,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", "SecRuleEngine On", "SecDefaultAction \"phase:2,deny,status:404\"", "SecAction \"id:'900001',phase:request,nolog,status:403,t:none\"" @@ -25,7 +24,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", "SecRuleEngine Off", "SecDefaultAction \"phase:2,deny,status:404\"", "SecAction \"id:'1',phase:request,nolog,t:none\"" @@ -41,7 +39,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", "SecRuleEngine DetectionOnly", "SecDefaultAction \"phase:2,deny,status:404\"", "SecAction \"id:'1',phase:request,nolog,block,t:none\"" @@ -57,7 +54,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", "SecRuleEngine Off", "SecDefaultAction \"phase:2,deny,status:404\"", "SecAction \"id:'1',phase:request,nolog,t:none\"" @@ -73,10 +69,9 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", "SecRuleEngine Off", "SecDefaultAction \"phase:2,deny,status:404\"", "SecAction \"id:'1',phase:request,nolog,block,t:none\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/transformation-none.json b/test/test-cases/regression/transformation-none.json index 8df23807..e12d5451 100644 --- a/test/test-cases/regression/transformation-none.json +++ b/test/test-cases/regression/transformation-none.json @@ -54,8 +54,6 @@ }, "rules": [ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_COOKIES \"@contains test \" \"id:1,t:lowercase,t:none\"" ] }, @@ -114,8 +112,6 @@ }, "rules": [ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_COOKIES \"@contains test \" \"id:14,t:none,t:lowercase\"" ] } diff --git a/test/test-cases/regression/transformations.json b/test/test-cases/regression/transformations.json index 90d88a91..dcb328f1 100644 --- a/test/test-cases/regression/transformations.json +++ b/test/test-cases/regression/transformations.json @@ -54,8 +54,6 @@ }, "rules": [ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@contains test \" \"id:1,pass,t:trim\"" ] }, @@ -114,8 +112,6 @@ }, "rules": [ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@contains test \" \"id:1,pass,t:trim,t:lowercase\"" ] } diff --git a/test/test-cases/regression/variable-ARGS.json b/test/test-cases/regression/variable-ARGS.json index e20f7ad2..1149a2f5 100644 --- a/test/test-cases/regression/variable-ARGS.json +++ b/test/test-cases/regression/variable-ARGS.json @@ -35,8 +35,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@contains test \" \"id:1,pass,t:trim\"" ] }, @@ -76,8 +74,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@contains test \" \"id:1,pass,t:trim\"" ] }, @@ -122,8 +118,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -168,8 +162,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -214,8 +206,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -260,8 +250,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS:param3 \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -306,8 +294,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS:param2 \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-ARGS_COMBINED_SIZE.json b/test/test-cases/regression/variable-ARGS_COMBINED_SIZE.json index a1db2aa2..034005ac 100644 --- a/test/test-cases/regression/variable-ARGS_COMBINED_SIZE.json +++ b/test/test-cases/regression/variable-ARGS_COMBINED_SIZE.json @@ -35,8 +35,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS_COMBINED_SIZE \"@gt 10 \" \"id:1,pass\"" ] }, @@ -76,8 +74,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS_COMBINED_SIZE \"@gt 10 \" \"id:1,pass\"" ] }, @@ -122,8 +118,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS_COMBINED_SIZE \"@gt 10 \" \"id:1,phase:3,pass\"" ] }, @@ -168,8 +162,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS_COMBINED_SIZE \"@gt 10 \" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -214,8 +206,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS_COMBINED_SIZE \"@gt 10 \" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -257,8 +247,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS_COMBINED_SIZE \"@gt 10 \" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -300,8 +288,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS_COMBINED_SIZE \"@gt 10 \" \"id:1,phase:3,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-ARGS_GET.json b/test/test-cases/regression/variable-ARGS_GET.json index a9590d29..a4aa7b4c 100644 --- a/test/test-cases/regression/variable-ARGS_GET.json +++ b/test/test-cases/regression/variable-ARGS_GET.json @@ -35,8 +35,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS_GET \"@contains test \" \"id:1,pass,t:trim\"" ] }, @@ -76,8 +74,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS_GET \"@contains test \" \"id:1,pass,t:trim\"" ] }, @@ -117,8 +113,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS_GET \"@contains test \" \"id:1,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-ARGS_GET_NAMES.json b/test/test-cases/regression/variable-ARGS_GET_NAMES.json index 08b5c68c..c88e6014 100644 --- a/test/test-cases/regression/variable-ARGS_GET_NAMES.json +++ b/test/test-cases/regression/variable-ARGS_GET_NAMES.json @@ -35,8 +35,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS_GET_NAMES \"@contains test \" \"id:1,pass,t:trim\"" ] }, @@ -76,8 +74,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS_GET_NAMES \"@contains test \" \"id:1,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-ARGS_NAMES.json b/test/test-cases/regression/variable-ARGS_NAMES.json index 2747b51b..fc8c5f3d 100644 --- a/test/test-cases/regression/variable-ARGS_NAMES.json +++ b/test/test-cases/regression/variable-ARGS_NAMES.json @@ -35,8 +35,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS_NAMES \"@contains test \" \"id:1,pass,t:trim\"" ] }, @@ -76,8 +74,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS_NAMES \"@contains test \" \"id:1,pass,t:trim\"" ] }, @@ -122,8 +118,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS_NAMES \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -168,8 +162,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS_NAMES \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-ARGS_POST.json b/test/test-cases/regression/variable-ARGS_POST.json index 8ba6c87e..5ef93dca 100644 --- a/test/test-cases/regression/variable-ARGS_POST.json +++ b/test/test-cases/regression/variable-ARGS_POST.json @@ -40,8 +40,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS_POST \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -86,8 +84,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS_POST \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-ARGS_POST_NAMES.json b/test/test-cases/regression/variable-ARGS_POST_NAMES.json index 5407cf45..967124fe 100644 --- a/test/test-cases/regression/variable-ARGS_POST_NAMES.json +++ b/test/test-cases/regression/variable-ARGS_POST_NAMES.json @@ -40,8 +40,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS_POST_NAMES \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -86,8 +84,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS_POST_NAMES \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-AUTH_TYPE.json b/test/test-cases/regression/variable-AUTH_TYPE.json index c3ab34cc..1eddd50d 100644 --- a/test/test-cases/regression/variable-AUTH_TYPE.json +++ b/test/test-cases/regression/variable-AUTH_TYPE.json @@ -41,8 +41,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule AUTH_TYPE \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -88,8 +86,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule AUTH_TYPE \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-DURATION.json b/test/test-cases/regression/variable-DURATION.json index f173de44..2f20d17f 100644 --- a/test/test-cases/regression/variable-DURATION.json +++ b/test/test-cases/regression/variable-DURATION.json @@ -41,8 +41,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule DURATION \"@contains test \" \"id:1,phase:3,pass,t:trim\"", "SecRule DURATION \"@contains test \" \"id:2,phase:3,pass,t:trim\"", "SecRule DURATION \"@contains test \" \"id:3,phase:3,pass,t:trim\"" diff --git a/test/test-cases/regression/variable-ENV.json b/test/test-cases/regression/variable-ENV.json index 85733bb3..b5d0c70b 100644 --- a/test/test-cases/regression/variable-ENV.json +++ b/test/test-cases/regression/variable-ENV.json @@ -40,8 +40,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ENV:PATH \"@contains test\" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -86,8 +84,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ENV:TERM \"@contains test\" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -132,8 +128,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ENV \"@contains test\" \"id:1,phase:3,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-FILES.json b/test/test-cases/regression/variable-FILES.json index 12056feb..6fcd6917 100644 --- a/test/test-cases/regression/variable-FILES.json +++ b/test/test-cases/regression/variable-FILES.json @@ -55,9 +55,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule FILES \"@contains small_text_file.txt\" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-FILES_COMBINED_SIZE.json b/test/test-cases/regression/variable-FILES_COMBINED_SIZE.json index f776fef7..23a1c027 100644 --- a/test/test-cases/regression/variable-FILES_COMBINED_SIZE.json +++ b/test/test-cases/regression/variable-FILES_COMBINED_SIZE.json @@ -55,9 +55,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule FILES_COMBINED_SIZE \"@gt 70\" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-FILES_NAMES.json b/test/test-cases/regression/variable-FILES_NAMES.json index ee306203..5726c658 100644 --- a/test/test-cases/regression/variable-FILES_NAMES.json +++ b/test/test-cases/regression/variable-FILES_NAMES.json @@ -55,9 +55,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule FILES_NAMES \"@contains small_text_file.txt\" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-FILES_SIZES.json b/test/test-cases/regression/variable-FILES_SIZES.json index 7ac11478..fa8a3525 100644 --- a/test/test-cases/regression/variable-FILES_SIZES.json +++ b/test/test-cases/regression/variable-FILES_SIZES.json @@ -55,9 +55,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule FILES_SIZES \"@gt 70.000000\" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-FULL_REQUEST.json b/test/test-cases/regression/variable-FULL_REQUEST.json index c3ee4aec..2da4f6e9 100644 --- a/test/test-cases/regression/variable-FULL_REQUEST.json +++ b/test/test-cases/regression/variable-FULL_REQUEST.json @@ -55,9 +55,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule FULL_REQUEST \"@contains small_text_file.txt\" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-FULL_REQUEST_LENGTH.json b/test/test-cases/regression/variable-FULL_REQUEST_LENGTH.json index 0deafaae..e7d3b1ab 100644 --- a/test/test-cases/regression/variable-FULL_REQUEST_LENGTH.json +++ b/test/test-cases/regression/variable-FULL_REQUEST_LENGTH.json @@ -55,9 +55,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule FULL_REQUEST_LENGTH \"@contains small_text_file.txt\" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-GEO.json b/test/test-cases/regression/variable-GEO.json index 2516bbb9..8fa3c2d7 100644 --- a/test/test-cases/regression/variable-GEO.json +++ b/test/test-cases/regression/variable-GEO.json @@ -36,8 +36,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecGeoLookupDb test-cases\/data\/geo\/GeoIPCity.dat", "SecRule REMOTE_ADDR \"@geoLookup\" \"id:1,pass,t:trim\"", "SecRule GEO \"@contains test \" \"id:2,pass,t:trim\"" @@ -80,8 +78,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecGeoLookupDb test-cases\/data\/geo\/GeoIPCity.dat", "SecRule REMOTE_ADDR \"@geoLookup\" \"id:1,pass,t:trim\"", "SecRule GEO \"@contains test \" \"id:2,pass,t:trim\"" @@ -124,8 +120,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecGeoLookupDb test-cases\/data\/geo\/GeoIPCity.dat", "SecRule REMOTE_ADDR \"@geoLookup\" \"id:1,pass,t:trim\"", "SecRule GEO \"@contains test \" \"id:2,pass,t:trim\"" @@ -168,8 +162,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecGeoLookupDb test-cases\/data\/geo\/GeoIPCity.dat", "SecRule REMOTE_ADDR \"@geoLookup\" \"id:1,pass,t:trim\"", "SecRule GEO \"@contains test \" \"id:2,pass,t:trim\"" @@ -212,8 +204,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecGeoLookupDb test-cases\/data\/geo\/GeoIPCity.dat", "SecRule REMOTE_ADDR \"@geoLookup\" \"id:1,pass,t:trim\"", "SecRule GEO \"@contains test \" \"id:2,pass,t:trim\"" @@ -256,8 +246,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecGeoLookupDb test-cases\/data\/geo\/GeoIPCity.dat", "SecRule REMOTE_ADDR \"@geoLookup\" \"id:1,pass,t:trim\"", "SecRule GEO \"@contains test \" \"id:2,pass,t:trim\"" @@ -300,8 +288,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecGeoLookupDb test-cases\/data\/geo\/GeoIPCity.dat", "SecRule REMOTE_ADDR \"@geoLookup\" \"id:1,pass,t:trim\"", "SecRule GEO \"@contains test \" \"id:2,pass,t:trim\"" @@ -344,8 +330,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecGeoLookupDb test-cases\/data\/geo\/GeoIPCity.dat", "SecRule REMOTE_ADDR \"@geoLookup\" \"id:1,pass,t:trim\"", "SecRule GEO \"@contains test \" \"id:2,pass,t:trim\"" @@ -388,8 +372,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecGeoLookupDb test-cases\/data\/geo\/GeoIPCity.dat", "SecRule REMOTE_ADDR \"@geoLookup\" \"id:1,pass,t:trim\"", "SecRule GEO \"@contains test \" \"id:2,pass,t:trim\"" @@ -432,8 +414,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecGeoLookupDb test-cases\/data\/geo\/GeoIPCity.dat", "SecRule REMOTE_ADDR \"@geoLookup\" \"id:1,pass,t:trim\"", "SecRule GEO \"@contains test \" \"id:2,pass,t:trim\"" @@ -476,8 +456,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecGeoLookupDb test-cases\/data\/geo\/GeoIPCity.dat", "SecRule REMOTE_ADDR \"@geoLookup\" \"id:1,pass,t:trim\"", "SecRule GEO \"@contains test \" \"id:2,pass,t:trim\"" diff --git a/test/test-cases/regression/variable-HIGHEST_SEVERITY.json b/test/test-cases/regression/variable-HIGHEST_SEVERITY.json index 028011d8..7da62133 100644 --- a/test/test-cases/regression/variable-HIGHEST_SEVERITY.json +++ b/test/test-cases/regression/variable-HIGHEST_SEVERITY.json @@ -35,8 +35,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REMOTE_ADDR \"@contains 200.249\" \"id:1,pass,t:trim,severity:0\"", "SecRule HIGHEST_SEVERITY \"@lt 10\" \"id:2,pass,t:trim\"" ] @@ -77,8 +75,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REMOTE_ADDR \"@contains 200.249\" \"id:1,pass,t:trim,severity:EMERGENCY\"", "SecRule HIGHEST_SEVERITY \"@lt 10\" \"id:2,pass,t:trim\"" ] diff --git a/test/test-cases/regression/variable-INBOUND_DATA_ERROR.json b/test/test-cases/regression/variable-INBOUND_DATA_ERROR.json index be21681b..e66a1647 100644 --- a/test/test-cases/regression/variable-INBOUND_DATA_ERROR.json +++ b/test/test-cases/regression/variable-INBOUND_DATA_ERROR.json @@ -35,8 +35,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule INBOUND_DATA_ERROR \"@eq 1\" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -96,9 +94,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", "SecRequestBodyLimit 2", - "SecDebugLogLevel 9", "SecRule INBOUND_DATA_ERROR \"@eq 1\" \"id:1,phase:3,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-MATCHED_VAR.json b/test/test-cases/regression/variable-MATCHED_VAR.json index 6ed67401..7903b76a 100644 --- a/test/test-cases/regression/variable-MATCHED_VAR.json +++ b/test/test-cases/regression/variable-MATCHED_VAR.json @@ -35,8 +35,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS:key \"@contains other_value\" \"chain,id:28\"", "SecRule MATCHED_VAR \"@contains asdf\" \"pass\"" ] @@ -77,8 +75,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS:key \"@contains other_value\" \"chain,id:28\"", "SecRule MATCHED_VAR \"@contains Aasdf\" \"pass\"", "SecRule MATCHED_VAR \"@contains other_value\" \"id:29,pass\"", diff --git a/test/test-cases/regression/variable-MATCHED_VARS.json b/test/test-cases/regression/variable-MATCHED_VARS.json index a3199745..ecece68e 100644 --- a/test/test-cases/regression/variable-MATCHED_VARS.json +++ b/test/test-cases/regression/variable-MATCHED_VARS.json @@ -35,8 +35,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS:keyI \"@contains value\" \"chain,id:28\"", "SecRule ARGS:keyII \"@contains other_value\" \"chain\"", "SecRule MATCHED_VARS \"@contains asdf\" \"pass\"" @@ -78,8 +76,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS:keyI \"@contains value\" \"chain,id:28\"", "SecRule ARGS:keyII \"@contains other_value\" \"chain\"", "SecRule MATCHED_VARS \"@contains asdf\" \"pass\"", diff --git a/test/test-cases/regression/variable-MATCHED_VARS_NAMES.json b/test/test-cases/regression/variable-MATCHED_VARS_NAMES.json index 7388d317..6fa33920 100644 --- a/test/test-cases/regression/variable-MATCHED_VARS_NAMES.json +++ b/test/test-cases/regression/variable-MATCHED_VARS_NAMES.json @@ -35,8 +35,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS:keyI \"@contains value\" \"chain,id:28\"", "SecRule ARGS:keyII \"@contains other_value\" \"chain\"", "SecRule MATCHED_VARS_NAMES \"@contains asdf\" \"pass\"" @@ -78,8 +76,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS:keyI \"@contains value\" \"chain,id:28\"", "SecRule ARGS:keyII \"@contains other_value\" \"chain\"", "SecRule MATCHED_VARS_NAMES \"@contains asdf\" \"pass\"", diff --git a/test/test-cases/regression/variable-MATCHED_VAR_NAME.json b/test/test-cases/regression/variable-MATCHED_VAR_NAME.json index 164ffee0..f6792a21 100644 --- a/test/test-cases/regression/variable-MATCHED_VAR_NAME.json +++ b/test/test-cases/regression/variable-MATCHED_VAR_NAME.json @@ -35,8 +35,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS:keyI \"@contains value\" \"chain,id:28\"", "SecRule ARGS:keyII \"@contains other_value\" \"chain\"", "SecRule MATCHED_VAR_NAME \"@contains asdf\" \"pass\"" @@ -78,8 +76,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS:keyI \"@contains value\" \"chain,id:28\"", "SecRule ARGS:keyII \"@contains other_value\" \"chain\"", "SecRule MATCHED_VAR_NAME \"@contains asdf\" \"pass\"", diff --git a/test/test-cases/regression/variable-MODSEC_BUILD.json b/test/test-cases/regression/variable-MODSEC_BUILD.json index f10f59b7..b42eec85 100644 --- a/test/test-cases/regression/variable-MODSEC_BUILD.json +++ b/test/test-cases/regression/variable-MODSEC_BUILD.json @@ -40,8 +40,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule MODSEC_BUILD \"@contains test\" \"id:1,phase:3,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-MULTIPART_CRLF_LF_LINES.json b/test/test-cases/regression/variable-MULTIPART_CRLF_LF_LINES.json index 5415d1e3..21427299 100644 --- a/test/test-cases/regression/variable-MULTIPART_CRLF_LF_LINES.json +++ b/test/test-cases/regression/variable-MULTIPART_CRLF_LF_LINES.json @@ -55,8 +55,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule MULTIPART_CRLF_LF_LINES \"@contains 0\" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -116,8 +114,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule MULTIPART_CRLF_LF_LINES \"@contains 0\" \"id:1,phase:3,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-MULTIPART_FILENAME.json b/test/test-cases/regression/variable-MULTIPART_FILENAME.json index dbae0b31..45e16553 100644 --- a/test/test-cases/regression/variable-MULTIPART_FILENAME.json +++ b/test/test-cases/regression/variable-MULTIPART_FILENAME.json @@ -55,8 +55,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule MULTIPART_FILENAME \"@contains 0\" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -116,8 +114,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule MULTIPART_FILENAME \"@contains 0\" \"id:1,phase:3,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-MULTIPART_NAME.json b/test/test-cases/regression/variable-MULTIPART_NAME.json index 212dbdce..17bc5803 100644 --- a/test/test-cases/regression/variable-MULTIPART_NAME.json +++ b/test/test-cases/regression/variable-MULTIPART_NAME.json @@ -55,8 +55,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule MULTIPART_NAME \"@contains 0\" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -116,8 +114,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule MULTIPART_NAME \"@contains 0\" \"id:1,phase:3,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-MULTIPART_STRICT_ERROR.json b/test/test-cases/regression/variable-MULTIPART_STRICT_ERROR.json index 591ee753..be15ac12 100644 --- a/test/test-cases/regression/variable-MULTIPART_STRICT_ERROR.json +++ b/test/test-cases/regression/variable-MULTIPART_STRICT_ERROR.json @@ -55,8 +55,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule MULTIPART_STRICT_ERROR \"@contains 0\" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -116,8 +114,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule MULTIPART_STRICT_ERROR \"@contains 0\" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -177,8 +173,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule MULTIPART_STRICT_ERROR \"@contains 0\" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -238,8 +232,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule MULTIPART_STRICT_ERROR \"@contains 0\" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -299,8 +291,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule MULTIPART_STRICT_ERROR \"@contains 0\" \"id:1,phase:3,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-MULTIPART_UNMATCHED_BOUNDARY.json b/test/test-cases/regression/variable-MULTIPART_UNMATCHED_BOUNDARY.json index d02b1938..97b34d55 100644 --- a/test/test-cases/regression/variable-MULTIPART_UNMATCHED_BOUNDARY.json +++ b/test/test-cases/regression/variable-MULTIPART_UNMATCHED_BOUNDARY.json @@ -55,9 +55,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule MULTIPART_UNMATCHED_BOUNDARY \"@contains small_text_file.txt\" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-OUTBOUND_DATA_ERROR.json b/test/test-cases/regression/variable-OUTBOUND_DATA_ERROR.json index 9aecfa94..6b06c5dd 100644 --- a/test/test-cases/regression/variable-OUTBOUND_DATA_ERROR.json +++ b/test/test-cases/regression/variable-OUTBOUND_DATA_ERROR.json @@ -35,8 +35,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule OUTBOUND_DATA_ERROR \"@eq 1\" \"id:1,phase:4,pass,t:trim\"" ] }, @@ -110,9 +108,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", "SecResponseBodyLimit 2", - "SecDebugLogLevel 9", "SecRule OUTBOUND_DATA_ERROR \"@eq 1\" \"id:1,phase:4,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-PATH_INFO.json b/test/test-cases/regression/variable-PATH_INFO.json index a10bcb4c..77651d9e 100644 --- a/test/test-cases/regression/variable-PATH_INFO.json +++ b/test/test-cases/regression/variable-PATH_INFO.json @@ -40,8 +40,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule PATH_INFO \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -86,8 +84,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule PATH_INFO \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -132,9 +128,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule PATH_INFO \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-QUERY_STRING.json b/test/test-cases/regression/variable-QUERY_STRING.json index 0b3f5943..a2246a1b 100644 --- a/test/test-cases/regression/variable-QUERY_STRING.json +++ b/test/test-cases/regression/variable-QUERY_STRING.json @@ -37,9 +37,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule QUERY_STRING \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-REMOTE_ADDR.json b/test/test-cases/regression/variable-REMOTE_ADDR.json index e85d49c3..5fca80e7 100644 --- a/test/test-cases/regression/variable-REMOTE_ADDR.json +++ b/test/test-cases/regression/variable-REMOTE_ADDR.json @@ -37,8 +37,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REMOTE_ADDR \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -80,9 +78,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REMOTE_ADDR \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-REMOTE_HOST.json b/test/test-cases/regression/variable-REMOTE_HOST.json index 9433602d..d1b5a0f0 100644 --- a/test/test-cases/regression/variable-REMOTE_HOST.json +++ b/test/test-cases/regression/variable-REMOTE_HOST.json @@ -37,8 +37,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REMOTE_HOST \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -80,9 +78,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REMOTE_HOST \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-REMOTE_PORT.json b/test/test-cases/regression/variable-REMOTE_PORT.json index 9792ed8f..459e01fd 100644 --- a/test/test-cases/regression/variable-REMOTE_PORT.json +++ b/test/test-cases/regression/variable-REMOTE_PORT.json @@ -37,8 +37,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REMOTE_PORT \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -80,9 +78,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REMOTE_PORT \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-REMOTE_USER.json b/test/test-cases/regression/variable-REMOTE_USER.json index 965fd83e..8c4209c8 100644 --- a/test/test-cases/regression/variable-REMOTE_USER.json +++ b/test/test-cases/regression/variable-REMOTE_USER.json @@ -38,9 +38,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REMOTE_USER \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-REQBODY_PROCESSOR.json b/test/test-cases/regression/variable-REQBODY_PROCESSOR.json index ff18bf01..965128b2 100644 --- a/test/test-cases/regression/variable-REQBODY_PROCESSOR.json +++ b/test/test-cases/regression/variable-REQBODY_PROCESSOR.json @@ -73,8 +73,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_HEADERS:Content-Type \"^text/xml$\" \"id:500005,phase:1,t:none,t:lowercase,nolog,pass,ctl:requestBodyProcessor=XML\"", "SecRule REQBODY_PROCESSOR \"@contains test\" \"id:1,pass,phase:2,t:trim\"" ] @@ -134,8 +132,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQBODY_PROCESSOR \"@contains test\" \"id:1,pass,t:trim\"" ] }, @@ -180,8 +176,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQBODY_PROCESSOR \"@contains test\" \"id:1,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-REQBODY_PROCESSOR_ERROR.json b/test/test-cases/regression/variable-REQBODY_PROCESSOR_ERROR.json index d6525351..e470362d 100644 --- a/test/test-cases/regression/variable-REQBODY_PROCESSOR_ERROR.json +++ b/test/test-cases/regression/variable-REQBODY_PROCESSOR_ERROR.json @@ -73,8 +73,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_HEADERS:Content-Type \"^text/xml$\" \"id:500005,phase:1,t:none,t:lowercase,nolog,pass,ctl:requestBodyProcessor=XML\"", "SecRule REQBODY_PROCESSOR_ERROR \"@contains test\" \"phase:2,id:1,pass,t:trim\"", "SecRule REQBODY_PROCESSOR_ERROR_MSG \"@contains test\" \"phase:2,id:2,pass,t:trim\"" @@ -134,8 +132,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_HEADERS:Content-Type \"^text/xml$\" \"id:500005,phase:1,t:none,t:lowercase,nolog,pass,ctl:requestBodyProcessor=XML\"", "SecRule REQBODY_PROCESSOR_ERROR \"@contains test\" \"phase:2,id:1,pass,t:trim\"", "SecRule REQBODY_PROCESSOR_ERROR_MSG \"@contains test\" \"phase:2,id:2,pass,t:trim\"" diff --git a/test/test-cases/regression/variable-REQUEST_BASENAME.json b/test/test-cases/regression/variable-REQUEST_BASENAME.json index 3d8a254f..5a703af9 100644 --- a/test/test-cases/regression/variable-REQUEST_BASENAME.json +++ b/test/test-cases/regression/variable-REQUEST_BASENAME.json @@ -37,9 +37,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_BASENAME \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-REQUEST_BODY.json b/test/test-cases/regression/variable-REQUEST_BODY.json index 517fe4cf..b1f99b45 100644 --- a/test/test-cases/regression/variable-REQUEST_BODY.json +++ b/test/test-cases/regression/variable-REQUEST_BODY.json @@ -55,9 +55,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_BODY \"@contains small_text_file.txt\" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-REQUEST_BODY_LENGTH.json b/test/test-cases/regression/variable-REQUEST_BODY_LENGTH.json index 43767d59..d7a8e910 100644 --- a/test/test-cases/regression/variable-REQUEST_BODY_LENGTH.json +++ b/test/test-cases/regression/variable-REQUEST_BODY_LENGTH.json @@ -55,9 +55,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_BODY_LENGTH \"@contains small_text_file.txt\" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-REQUEST_COOKIES.json b/test/test-cases/regression/variable-REQUEST_COOKIES.json index 2df6ceac..fc38a69a 100644 --- a/test/test-cases/regression/variable-REQUEST_COOKIES.json +++ b/test/test-cases/regression/variable-REQUEST_COOKIES.json @@ -36,8 +36,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_COOKIES \"@contains test \" \"id:1,pass,t:trim\"" ] }, @@ -78,8 +76,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_COOKIES \"@contains test \" \"id:1,pass,t:trim\"" ] }, @@ -120,8 +116,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_COOKIES \"@contains test \" \"id:1,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-REQUEST_COOKIES_NAMES.json b/test/test-cases/regression/variable-REQUEST_COOKIES_NAMES.json index 68b1c939..51af9a17 100644 --- a/test/test-cases/regression/variable-REQUEST_COOKIES_NAMES.json +++ b/test/test-cases/regression/variable-REQUEST_COOKIES_NAMES.json @@ -36,8 +36,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_COOKIES_NAMES \"@contains test \" \"id:1,pass,t:trim\"" ] }, @@ -78,8 +76,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_COOKIES_NAMES \"@contains test \" \"id:1,pass,t:trim\"" ] }, @@ -120,8 +116,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_COOKIES_NAMES \"@contains test \" \"id:1,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-REQUEST_FILENAME.json b/test/test-cases/regression/variable-REQUEST_FILENAME.json index 8572f8fe..5a41c29e 100644 --- a/test/test-cases/regression/variable-REQUEST_FILENAME.json +++ b/test/test-cases/regression/variable-REQUEST_FILENAME.json @@ -37,9 +37,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_FILENAME \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-REQUEST_HEADERS.json b/test/test-cases/regression/variable-REQUEST_HEADERS.json index 5f2f244c..3e34bc6d 100644 --- a/test/test-cases/regression/variable-REQUEST_HEADERS.json +++ b/test/test-cases/regression/variable-REQUEST_HEADERS.json @@ -55,9 +55,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_HEADERS \"@contains small_text_file.txt\" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-REQUEST_HEADERS_NAMES.json b/test/test-cases/regression/variable-REQUEST_HEADERS_NAMES.json index 6ff98b68..a98e4ce3 100644 --- a/test/test-cases/regression/variable-REQUEST_HEADERS_NAMES.json +++ b/test/test-cases/regression/variable-REQUEST_HEADERS_NAMES.json @@ -55,9 +55,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_HEADERS_NAMES \"@contains small_text_file.txt\" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-REQUEST_LINE.json b/test/test-cases/regression/variable-REQUEST_LINE.json index 1f75caa1..83b493bb 100644 --- a/test/test-cases/regression/variable-REQUEST_LINE.json +++ b/test/test-cases/regression/variable-REQUEST_LINE.json @@ -36,8 +36,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_LINE \"@contains test \" \"id:1,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-REQUEST_METHOD.json b/test/test-cases/regression/variable-REQUEST_METHOD.json index 4f343624..2a9b609b 100644 --- a/test/test-cases/regression/variable-REQUEST_METHOD.json +++ b/test/test-cases/regression/variable-REQUEST_METHOD.json @@ -36,8 +36,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_METHOD \"@contains test \" \"id:1,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-REQUEST_PROTOCOL.json b/test/test-cases/regression/variable-REQUEST_PROTOCOL.json index 3d24585b..e5a53de7 100644 --- a/test/test-cases/regression/variable-REQUEST_PROTOCOL.json +++ b/test/test-cases/regression/variable-REQUEST_PROTOCOL.json @@ -36,8 +36,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_PROTOCOL \"@contains test \" \"id:1,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-REQUEST_URI.json b/test/test-cases/regression/variable-REQUEST_URI.json index e3e5fcb6..8336c9fa 100644 --- a/test/test-cases/regression/variable-REQUEST_URI.json +++ b/test/test-cases/regression/variable-REQUEST_URI.json @@ -36,8 +36,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_URI \"@contains test \" \"id:1,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-REQUEST_URI_RAW.json b/test/test-cases/regression/variable-REQUEST_URI_RAW.json index 81760c19..d4ea9b37 100644 --- a/test/test-cases/regression/variable-REQUEST_URI_RAW.json +++ b/test/test-cases/regression/variable-REQUEST_URI_RAW.json @@ -36,8 +36,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_URI_RAW \"@contains test \" \"id:1,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-RESPONSE_BODY.json b/test/test-cases/regression/variable-RESPONSE_BODY.json index 0102bb8d..792d5ec8 100644 --- a/test/test-cases/regression/variable-RESPONSE_BODY.json +++ b/test/test-cases/regression/variable-RESPONSE_BODY.json @@ -36,8 +36,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule RESPONSE_BODY \"@contains test \" \"id:1,phase:4,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-RESPONSE_CONTENT_LENGTH.json b/test/test-cases/regression/variable-RESPONSE_CONTENT_LENGTH.json index 9268a4c7..ce6b54f6 100644 --- a/test/test-cases/regression/variable-RESPONSE_CONTENT_LENGTH.json +++ b/test/test-cases/regression/variable-RESPONSE_CONTENT_LENGTH.json @@ -36,8 +36,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule RESPONSE_CONTENT_LENGTH \"@contains test \" \"id:1,phase:4,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-RESPONSE_CONTENT_TYPE.json b/test/test-cases/regression/variable-RESPONSE_CONTENT_TYPE.json index ed9fd2b5..704d2040 100644 --- a/test/test-cases/regression/variable-RESPONSE_CONTENT_TYPE.json +++ b/test/test-cases/regression/variable-RESPONSE_CONTENT_TYPE.json @@ -36,8 +36,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule RESPONSE_CONTENT_TYPE \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-RESPONSE_HEADERS.json b/test/test-cases/regression/variable-RESPONSE_HEADERS.json index 524a48d9..dd0c3d74 100644 --- a/test/test-cases/regression/variable-RESPONSE_HEADERS.json +++ b/test/test-cases/regression/variable-RESPONSE_HEADERS.json @@ -55,9 +55,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule RESPONSE_HEADERS \"@contains small_text_file.txt\" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-RESPONSE_HEADERS_NAMES.json b/test/test-cases/regression/variable-RESPONSE_HEADERS_NAMES.json index 570fb50c..68be5d57 100644 --- a/test/test-cases/regression/variable-RESPONSE_HEADERS_NAMES.json +++ b/test/test-cases/regression/variable-RESPONSE_HEADERS_NAMES.json @@ -55,9 +55,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule RESPONSE_HEADERS_NAMES \"@contains small_text_file.txt\" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-RESPONSE_PROTOCOL.json b/test/test-cases/regression/variable-RESPONSE_PROTOCOL.json index c5a5dcdd..a54c16c0 100644 --- a/test/test-cases/regression/variable-RESPONSE_PROTOCOL.json +++ b/test/test-cases/regression/variable-RESPONSE_PROTOCOL.json @@ -37,8 +37,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule RESPONSE_PROTOCOL \"^HTTP\" \"id:1,phase:5,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-RULE.json b/test/test-cases/regression/variable-RULE.json index a2bd18c7..fbc351c3 100644 --- a/test/test-cases/regression/variable-RULE.json +++ b/test/test-cases/regression/variable-RULE.json @@ -40,8 +40,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule RULE:id \"@contains test\" \"id:1,phase:3,rev:1.3,pass,t:trim\"" ] }, @@ -86,8 +84,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule RULE:rev \"@contains test\" \"id:1,rev:200,phase:3,pass,t:trim\"" ] }, @@ -132,8 +128,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule RULE:severity \"@contains test\" \"id:1,phase:3,severity:critical,pass,t:trim\"" ] }, @@ -178,8 +172,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule RULE:logdata \"@contains test\" \"id:1,logdata:'data123',phase:3,pass,t:trim\"" ] }, @@ -224,8 +216,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule RULE:msg \"@contains test\" \"id:1,msg:'message123',phase:3,pass,t:trim\"" ] }, @@ -270,8 +260,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule rule:msg \"@contains test\" \"id:1,msg:'message123',phase:3,pass,t:trim\"" ] }, @@ -316,8 +304,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule rule:msg \"@contains message\" \"id:1,setvar:'ip.block_reason=%{RULE.msg}%',msg:'message123',phase:3,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-SERVER_ADDR.json b/test/test-cases/regression/variable-SERVER_ADDR.json index 5de1f203..2f62130f 100644 --- a/test/test-cases/regression/variable-SERVER_ADDR.json +++ b/test/test-cases/regression/variable-SERVER_ADDR.json @@ -37,8 +37,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule SERVER_ADDR \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -80,9 +78,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule SERVER_ADDR \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-SERVER_NAME.json b/test/test-cases/regression/variable-SERVER_NAME.json index 6318539b..e0fd6c10 100644 --- a/test/test-cases/regression/variable-SERVER_NAME.json +++ b/test/test-cases/regression/variable-SERVER_NAME.json @@ -37,8 +37,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule SERVER_NAME \"^HTTP\" \"id:1,phase:5,pass,t:trim\"" ] }, @@ -80,8 +78,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule SERVER_NAME \"^HTTP\" \"id:1,phase:5,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-SERVER_PORT.json b/test/test-cases/regression/variable-SERVER_PORT.json index 73a9bde2..4e4bb1b8 100644 --- a/test/test-cases/regression/variable-SERVER_PORT.json +++ b/test/test-cases/regression/variable-SERVER_PORT.json @@ -37,8 +37,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule SERVER_PORT \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -80,9 +78,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule SERVER_PORT \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-SESSIONID.json b/test/test-cases/regression/variable-SESSIONID.json index 1bc713a3..b1f11bc9 100644 --- a/test/test-cases/regression/variable-SESSIONID.json +++ b/test/test-cases/regression/variable-SESSIONID.json @@ -27,7 +27,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", "SecRule REQUEST_HEADERS:User-Agent \"^(.*)$\" \"id:'900018',phase:1,t:none,t:sha1,t:hexEncode,setsid:%{REQUEST_COOKIES:PHPSESSID}%,nolog,pass\"", "SecRule REQUEST_HEADERS \".*\" \"id:'900021',phase:1,setvar:SESSION.score=+10\"", "SecRule REQUEST_HEADERS:User-Agent \"^(.*)$\" \"id:'900068',phase:1,t:none,t:sha1,t:hexEncode,setsid:%{REQUEST_COOKIES:PHPSESSID}2,nolog,pass\"", @@ -63,10 +62,9 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", "SecRule REQUEST_HEADERS:User-Agent \"^(.*)$\" \"id:'900018',phase:1,t:none,t:sha1,t:hexEncode,setsid:%{REQUEST_COOKIES:PHPSESSID}%,nolog,pass\"", "SecRule REQUEST_HEADERS \".*\" \"id:'900021',phase:1,setvar:SESSION.score=+10\"", "SecRule SESSIONID \".*\" \"id:1239,phase:1,log,pass\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-STATUS.json b/test/test-cases/regression/variable-STATUS.json index ea5f052b..57a52d51 100644 --- a/test/test-cases/regression/variable-STATUS.json +++ b/test/test-cases/regression/variable-STATUS.json @@ -40,8 +40,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule STATUS \"@contains test\" \"id:1,phase:5,rev:1.3,pass,t:trim\"" ] }, @@ -87,8 +85,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule ARGS \"@pm value\" \"id:1,phase:2,t:trim,status:500,deny\"", "SecRule STATUS \"@contains test\" \"id:2,phase:5,rev:1.3,pass,t:trim\"" ] diff --git a/test/test-cases/regression/variable-TIME.json b/test/test-cases/regression/variable-TIME.json index 963a2a74..baded1d3 100644 --- a/test/test-cases/regression/variable-TIME.json +++ b/test/test-cases/regression/variable-TIME.json @@ -37,9 +37,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule TIME \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-TIME_DAY.json b/test/test-cases/regression/variable-TIME_DAY.json index 2cffc966..58041bcd 100644 --- a/test/test-cases/regression/variable-TIME_DAY.json +++ b/test/test-cases/regression/variable-TIME_DAY.json @@ -37,9 +37,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule TIME_DAY \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-TIME_EPOCH.json b/test/test-cases/regression/variable-TIME_EPOCH.json index 72507a99..37e4674d 100644 --- a/test/test-cases/regression/variable-TIME_EPOCH.json +++ b/test/test-cases/regression/variable-TIME_EPOCH.json @@ -37,9 +37,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule TIME_EPOCH \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-TIME_HOUR.json b/test/test-cases/regression/variable-TIME_HOUR.json index 1f6abc20..e1653090 100644 --- a/test/test-cases/regression/variable-TIME_HOUR.json +++ b/test/test-cases/regression/variable-TIME_HOUR.json @@ -37,9 +37,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule TIME_HOUR \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-TIME_MIN.json b/test/test-cases/regression/variable-TIME_MIN.json index 5003bcb3..404d173e 100644 --- a/test/test-cases/regression/variable-TIME_MIN.json +++ b/test/test-cases/regression/variable-TIME_MIN.json @@ -37,9 +37,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule TIME_MIN \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-TIME_MON.json b/test/test-cases/regression/variable-TIME_MON.json index 8085104b..663956ae 100644 --- a/test/test-cases/regression/variable-TIME_MON.json +++ b/test/test-cases/regression/variable-TIME_MON.json @@ -37,9 +37,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule TIME_MON \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-TIME_SEC.json b/test/test-cases/regression/variable-TIME_SEC.json index 0141500e..85f4c213 100644 --- a/test/test-cases/regression/variable-TIME_SEC.json +++ b/test/test-cases/regression/variable-TIME_SEC.json @@ -37,9 +37,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule TIME_SEC \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-TIME_WDAY.json b/test/test-cases/regression/variable-TIME_WDAY.json index 25beaca7..6fce8bdf 100644 --- a/test/test-cases/regression/variable-TIME_WDAY.json +++ b/test/test-cases/regression/variable-TIME_WDAY.json @@ -37,9 +37,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule TIME_WDAY \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-TIME_YEAR.json b/test/test-cases/regression/variable-TIME_YEAR.json index 99e145f8..435e841f 100644 --- a/test/test-cases/regression/variable-TIME_YEAR.json +++ b/test/test-cases/regression/variable-TIME_YEAR.json @@ -37,9 +37,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule TIME_YEAR \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-TX.json b/test/test-cases/regression/variable-TX.json index 1648ae1d..e181393b 100644 --- a/test/test-cases/regression/variable-TX.json +++ b/test/test-cases/regression/variable-TX.json @@ -37,8 +37,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRequestBodyAccess On", "SecRule RESPONSE_BODY \"@rx ([0-9]+)\" \"id:1,phase:4,capture,id:105\"", "SecRule TX \"@rx ([A-z]+)\" \"phase:4,id:106\"" @@ -78,10 +76,8 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_HEADERS \"@rx ([A-z]+)\" \"id:1,log,pass,capture,id:14\"", "SecRule TX:0 \"@rx ([A-z]+)\" \"id:15\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-UNIQUE_ID.json b/test/test-cases/regression/variable-UNIQUE_ID.json index fe461a01..e4ddd4e4 100644 --- a/test/test-cases/regression/variable-UNIQUE_ID.json +++ b/test/test-cases/regression/variable-UNIQUE_ID.json @@ -37,9 +37,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule UNIQUE_ID \"@contains test \" \"id:1,phase:3,pass,t:trim\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-URLENCODED_ERROR.json b/test/test-cases/regression/variable-URLENCODED_ERROR.json index 15c61e99..060df0b4 100644 --- a/test/test-cases/regression/variable-URLENCODED_ERROR.json +++ b/test/test-cases/regression/variable-URLENCODED_ERROR.json @@ -35,8 +35,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule URLENCODED_ERROR \"@gt 10 \" \"id:1,pass\"" ] }, @@ -76,8 +74,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule URLENCODED_ERROR \"@gt 10 \" \"id:1,pass\"" ] }, @@ -122,8 +118,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule URLENCODED_ERROR \"@gt 10 \" \"id:1,phase:3,pass\"" ] }, @@ -168,8 +162,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule URLENCODED_ERROR \"@gt 10 \" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -214,8 +206,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule URLENCODED_ERROR \"@gt 10 \" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -257,8 +247,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule URLENCODED_ERROR \"@gt 10 \" \"id:1,phase:3,pass,t:trim\"" ] }, @@ -300,8 +288,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule URLENCODED_ERROR \"@gt 10 \" \"id:1,phase:3,pass,t:trim\"" ] } diff --git a/test/test-cases/regression/variable-USERID.json b/test/test-cases/regression/variable-USERID.json index af38cca1..d805949e 100644 --- a/test/test-cases/regression/variable-USERID.json +++ b/test/test-cases/regression/variable-USERID.json @@ -27,7 +27,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", "SecRule REQUEST_HEADERS:User-Agent \"^(.*)$\" \"id:'900018',phase:1,t:none,t:sha1,t:hexEncode,setuid:%{REQUEST_COOKIES:USER}%,nolog,pass\"", "SecRule REQUEST_HEADERS:User-Agent \"^(.*)$\" \"id:'900068',phase:1,t:none,t:sha1,t:hexEncode,setuid:%{REQUEST_COOKIES:USER}2,nolog,pass\"", "SecRule USERID \".*\" \"id:1239,phase:1,log,pass\"" @@ -61,9 +60,8 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", "SecRule REQUEST_HEADERS:User-Agent \"^(.*)$\" \"id:'900018',phase:1,t:none,t:sha1,t:hexEncode,setuid:%{REQUEST_COOKIES:USER}%,nolog,pass\"", "SecRule USERID \".*\" \"id:1239,phase:1,log,pass\"" ] } -] \ No newline at end of file +] diff --git a/test/test-cases/regression/variable-variation-count.json b/test/test-cases/regression/variable-variation-count.json index ac7e609e..b00daf67 100644 --- a/test/test-cases/regression/variable-variation-count.json +++ b/test/test-cases/regression/variable-variation-count.json @@ -53,8 +53,6 @@ }, "rules": [ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule &REQUEST_HEADERS \"@contains test \" \"id:1,t:lowercase,t:none\"" ] }, @@ -112,8 +110,6 @@ }, "rules": [ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule &REQUEST_HEADERS:Accept \"@contains test \" \"id:1,t:lowercase,t:none\"" ] }, @@ -171,8 +167,6 @@ }, "rules": [ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule &REQUEST_HEADERS:missing \"@contains test \" \"id:1,t:lowercase,t:none\"" ] } diff --git a/test/test-cases/regression/variable-variation-exclusion.json b/test/test-cases/regression/variable-variation-exclusion.json index 37c7bd24..eb349222 100644 --- a/test/test-cases/regression/variable-variation-exclusion.json +++ b/test/test-cases/regression/variable-variation-exclusion.json @@ -53,8 +53,6 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_HEADERS|!REQUEST_HEADERS:Accept|!REMOTE_HOST \"@contains test \" \"id:1,t:lowercase,t:none\"" ] }, @@ -112,9 +110,7 @@ }, "rules":[ "SecRuleEngine On", - "SecDebugLog \/tmp\/modsec_debug.log", - "SecDebugLogLevel 9", "SecRule REQUEST_HEADERS|!REQUEST_HEADERS \"@contains test \" \"id:1,t:lowercase,t:none\"" ] } -] \ No newline at end of file +]