Adds verbose message when a resource is not found.

Fix #1309
This commit is contained in:
Felipe Zimmerle
2017-05-02 13:38:41 -03:00
parent 77a658c7cd
commit c97db2f361
10 changed files with 906 additions and 831 deletions

View File

@@ -2,7 +2,7 @@
{
"enabled":1,
"version_min":300000,
"title":"Include (1/6)",
"title":"Include (1/7)",
"client":{
"ip":"200.249.12.31",
"port":123
@@ -42,7 +42,7 @@
{
"enabled":1,
"version_min":300000,
"title":"Include (2/6)",
"title":"Include (2/7)",
"client":{
"ip":"200.249.12.31",
"port":123
@@ -82,7 +82,7 @@
{
"enabled":1,
"version_min":300000,
"title":"Include (3/6)",
"title":"Include (3/7)",
"client":{
"ip":"200.249.12.31",
"port":123
@@ -122,7 +122,7 @@
{
"enabled":1,
"version_min":300000,
"title":"Include (4/6)",
"title":"Include (4/7)",
"client":{
"ip":"200.249.12.31",
"port":123
@@ -162,7 +162,7 @@
{
"enabled":1,
"version_min":300000,
"title":"Include (5/6)",
"title":"Include (5/7)",
"client":{
"ip":"200.249.12.31",
"port":123
@@ -203,7 +203,7 @@
{
"enabled":1,
"version_min":300000,
"title":"Include (6/6)",
"title":"Include (6/7)",
"client":{
"ip":"200.249.12.31",
"port":123
@@ -239,5 +239,45 @@
"Include test-cases/data/config_example2.txt",
"SecRule ARGS \"@contains test\" \"id:9,pass,t:trim\""
]
},
{
"enabled":1,
"version_min":300000,
"title":"Include (7/7)",
"client":{
"ip":"200.249.12.31",
"port":123
},
"server":{
"ip":"200.249.12.31",
"port":80
},
"request":{
"headers":{
"Host":"localhost",
"User-Agent":"curl/7.38.0",
"Accept":"*/*"
},
"uri":"/?key=value&key=other_value",
"method":"GET"
},
"response":{
"headers":{
"Date":"Mon, 13 Jul 2015 20:02:41 GMT",
"Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT",
"Content-Type":"text/html"
},
"body":[
"no need."
]
},
"expected":{
"parser_error":"Looking at: 'test-cases/data/conasdffig_example2.txt'"
},
"rules":[
"SecRuleEngine On",
"Include test-cases/data/conasdffig_example2.txt",
"SecRule ARGS \"@contains test\" \"id:9,pass,t:trim\""
]
}
]