mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-17 09:55:28 +03:00
actions: Removes Rule parameter from runtime execute
Generals organization on the Action class
This commit is contained in:
38
test/test-cases/regression/tempCodeRunnerFile.json
Normal file
38
test/test-cases/regression/tempCodeRunnerFile.json
Normal file
@@ -0,0 +1,38 @@
|
||||
|
||||
"enabled":1,
|
||||
"version_min":300000,
|
||||
"title":"Testing allow action (1/3)",
|
||||
"expected":{
|
||||
"debug_log": "Skipped rule id 'action-allow.json:3' as request trough the utilization of an `allow' action",
|
||||
"http_code": 200
|
||||
},
|
||||
"client":{
|
||||
"ip":"200.249.12.31",
|
||||
"port":123
|
||||
},
|
||||
"request":{
|
||||
"headers":{
|
||||
"Host":"localhost",
|
||||
"User-Agent":"curl/7.38.0",
|
||||
"Accept":"*/*",
|
||||
"User-Agent":"My sweet little browser",
|
||||
"Cookie": "PHPSESSID=rAAAAAAA2t5uvjq435r4q7ib3vtdjq120"
|
||||
},
|
||||
"uri":"/?key=value&key=other_value",
|
||||
"method":"GET"
|
||||
},
|
||||
"server":{
|
||||
"ip":"200.249.12.31",
|
||||
"port":80
|
||||
},
|
||||
"rules":[
|
||||
"SecRuleEngine On",
|
||||
"SecAction \"phase:1,allow,msg:'ALLOWED',id:500065\"",
|
||||
"SecAction \"phase:1,deny,msg:'DENIED',id:500066\""
|
||||
]
|
||||
},
|
||||
{
|
||||
"enabled":1,
|
||||
"version_min":300000,
|
||||
"title":"Testing allow action (2/3)",
|
||||
"expected":{
|
||||
Reference in New Issue
Block a user