Actions refactoring: now there is a clear definiation on the action name

This commit is contained in:
Felipe Zimmerle
2016-05-17 14:36:59 -03:00
parent 1b88947d9b
commit 8c714af8e1
62 changed files with 431 additions and 359 deletions

View File

@@ -128,7 +128,7 @@
]
},
"expected":{
"debug_log": " trim: \"value2\""
"debug_log": " t:trim: \"value2\""
},
"rules":[
"SecRuleEngine On",
@@ -174,7 +174,7 @@
]
},
"expected":{
"debug_log": " trim: \"value2\""
"debug_log": " t:trim: \"value2\""
},
"rules":[
"SecRuleEngine On",

View File

@@ -49,7 +49,7 @@
},
"expected": {
"audit_log": "",
"debug_log": "\\[9\\] T \\(0\\) trim: \"test",
"debug_log": "\\[9\\] T \\(0\\) t:trim: \"test",
"error_log": "",
"http_code": 403
},
@@ -110,7 +110,7 @@
},
"expected": {
"audit_log": "",
"debug_log": "\\[9\\] T \\(0\\) trim: \"test",
"debug_log": "\\[9\\] T \\(0\\) t:trim: \"test",
"error_log": "",
"http_code": 302,
"redirect_url": "http://www.google.com"
@@ -172,7 +172,7 @@
},
"expected": {
"audit_log": "",
"debug_log": "\\[9\\] T \\(0\\) trim: \"test",
"debug_log": "\\[9\\] T \\(0\\) t:trim: \"test",
"error_log": "",
"http_code": 500,
"redirect_url": "http://www.google.com"
@@ -234,7 +234,7 @@
},
"expected": {
"audit_log": "",
"debug_log": "\\[9\\] T \\(0\\) trim: \"test",
"debug_log": "\\[9\\] T \\(0\\) t:trim: \"test",
"error_log": "",
"http_code": 500
},
@@ -295,7 +295,7 @@
},
"expected": {
"audit_log": "",
"debug_log": "\\[9\\] T \\(0\\) trim: \"test",
"debug_log": "\\[9\\] T \\(0\\) t:trim: \"test",
"error_log": "",
"http_code": 500
},
@@ -356,7 +356,7 @@
},
"expected": {
"audit_log": "",
"debug_log": "\\[9\\] T \\(0\\) trim: \"test",
"debug_log": "\\[9\\] T \\(0\\) t:trim: \"test",
"error_log": "",
"http_code": 500
},

View File

@@ -40,7 +40,7 @@
},
"expected": {
"audit_log": "",
"debug_log": "\\[9\\] T \\(0\\) trim: \"test",
"debug_log": "\\[9\\] T \\(0\\) t:trim: \"test",
"error_log": "",
"http_code": 403
},
@@ -99,7 +99,7 @@
},
"expected": {
"audit_log": "",
"debug_log": "\\[9\\] T \\(0\\) trim: \"test",
"debug_log": "\\[9\\] T \\(0\\) t:trim: \"test",
"error_log": "",
"http_code": 403
},
@@ -159,7 +159,7 @@
},
"expected": {
"audit_log": "",
"debug_log": "\\[9\\] T \\(0\\) trim: \"test",
"debug_log": "\\[9\\] T \\(0\\) t:trim: \"test",
"error_log": "",
"http_code": 403
},

View File

@@ -31,7 +31,7 @@
]
},
"expected":{
"debug_log":"T \\(0\\) trim: \"no need.\""
"debug_log":"T \\(0\\) t:trim: \"no need.\""
},
"rules":[
"SecRuleEngine On",

View File

@@ -205,7 +205,7 @@
"version_max":0,
"title":"Testing action :: SecDefaultAction: action not suitable",
"expected":{
"parser_error":"The action 'id:1' is not suitable to be part of the SecDefaultActions"
"parser_error":"The action 'id' is not suitable to be part of the SecDefaultActions"
},
"rules":[
"SecRuleEngine On",

View File

@@ -49,7 +49,7 @@
},
"expected": {
"audit_log": "",
"debug_log": " trim: \"test\"",
"debug_log": " t:trim: \"test\"",
"error_log": ""
},
"rules": [

View File

@@ -51,7 +51,7 @@
]
},
"expected":{
"debug_log":"T \\(1\\) trim: \"small_text_file"
"debug_log":"T \\(1\\) t:trim: \"small_text_file"
},
"rules":[
"SecRuleEngine On",

View File

@@ -51,7 +51,7 @@
]
},
"expected":{
"debug_log":"T \\(1\\) trim: \"filedata"
"debug_log":"T \\(1\\) t:trim: \"filedata"
},
"rules":[
"SecRuleEngine On",