Adds a test case for WEBSERVER_ERROR_LOG

WEBSERVER_ERROR_LOG is not supported by libmodsecurity. This test case
confirms the parser error that says so.
This commit is contained in:
Felipe Zimmerle 2016-07-08 11:05:09 -03:00
parent 833089eb70
commit 4daf9d8ab0
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277

View File

@ -0,0 +1,14 @@
[
{
"enabled":1,
"version_min":300000,
"version_max":0,
"title":"Testing Variables :: WEBSERVER_ERROR_LOG (1/1)",
"expected":{
"parser_error":"Line: 1. Column: 27. Variable VARIABLE_WEBSERVER_ERROR_LOG is not supported by libModSecurity"
},
"rules":[
"secrule WEBSERVER_ERROR_LOG \"@contains test\" \"id:1,t:lowercase,t:none,msg:'This is a test, %{REQUEST_HEADERS:Accept}%'\""
]
}
]