mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-16 07:56:12 +03:00
Changes regressions tests to fit the recent modification on the parser
This commit is contained in:
parent
0c0a9b3083
commit
193fa2e804
@ -82,7 +82,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"expected":{
|
"expected":{
|
||||||
"parser_error": "Rules error. File: action-id.json. Line: 4. Column: 31. .*"
|
"parser_error": "File: action-id.json. Line: 4. Column: 30. invalid character i"
|
||||||
},
|
},
|
||||||
"rules":[
|
"rules":[
|
||||||
"SecRuleEngine On",
|
"SecRuleEngine On",
|
||||||
@ -220,7 +220,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"expected":{
|
"expected":{
|
||||||
"parser_error": "Rules error. File: action-id.json. Line: 4. Column: 31. .*"
|
"parser_error": "action-id.json. Line: 4. Column: 30. invalid character i"
|
||||||
},
|
},
|
||||||
"rules":[
|
"rules":[
|
||||||
"SecRuleEngine On",
|
"SecRuleEngine On",
|
||||||
@ -266,7 +266,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"expected":{
|
"expected":{
|
||||||
"parser_error": "Rules error. File: action-id.json. Line: 4. Column: 35. invalid character '"
|
"parser_error": "action-id.json. Line: 4. Column: 34. invalid character '"
|
||||||
},
|
},
|
||||||
"rules":[
|
"rules":[
|
||||||
"SecRuleEngine On",
|
"SecRuleEngine On",
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"version_min":300000,
|
"version_min":300000,
|
||||||
"title":"Include - bad rule",
|
"title":"Include - bad rule",
|
||||||
"expected":{
|
"expected":{
|
||||||
"parser_error": "Rules error. File: test-cases/data/config_example3.txt. Line: 2. Column: 42. invalid character .*"
|
"parser_error": "Rules error. File: test-cases/data/config_example3.txt. Line: 2. Column: 41. invalid character o"
|
||||||
},
|
},
|
||||||
"rules":[
|
"rules":[
|
||||||
"SecRuleEngine On",
|
"SecRuleEngine On",
|
||||||
@ -19,7 +19,7 @@
|
|||||||
"version_min":300000,
|
"version_min":300000,
|
||||||
"title":"Include - missing file",
|
"title":"Include - missing file",
|
||||||
"expected":{
|
"expected":{
|
||||||
"parser_error": "Rules error. File: config-include-bad.json. Line: 4. Column: 47. test-cases/data/config_example-ops.txt: Not able to open file."
|
"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."
|
||||||
},
|
},
|
||||||
"rules":[
|
"rules":[
|
||||||
"SecRuleEngine On",
|
"SecRuleEngine On",
|
||||||
@ -34,7 +34,7 @@
|
|||||||
"version_min":300000,
|
"version_min":300000,
|
||||||
"title":"Include - missing at include",
|
"title":"Include - missing at include",
|
||||||
"expected":{
|
"expected":{
|
||||||
"parser_error": "Rules error. File: test-cases/data/config_example-ops-include.txt. Line: 1. Column: 53. test-cases/data/config_example-not-exist.txt: Not able to open file."
|
"parser_error": "Rules error. File: test-cases/data/config_example-ops-include.txt. Line: 1. Column: 52. test-cases/data/config_example-not-exist.txt: Not able to open file."
|
||||||
},
|
},
|
||||||
"rules":[
|
"rules":[
|
||||||
"SecRuleEngine On",
|
"SecRuleEngine On",
|
||||||
|
@ -82,7 +82,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"expected":{
|
"expected":{
|
||||||
"parser_error":"Rules error. File: operator-ipMatchFromFile.json. Line: 4. Column: 20. .*"
|
"parser_error":"File: operator-ipMatchFromFile.json. Line: 4. Column: 19. Failed to open file: file-not-found.txt"
|
||||||
},
|
},
|
||||||
"rules":[
|
"rules":[
|
||||||
"SecRuleEngine On",
|
"SecRuleEngine On",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user