Changes regressions tests to fit the recent modification on the parser

This commit is contained in:
Felipe Zimmerle 2016-06-24 09:18:48 -03:00
parent 0c0a9b3083
commit 193fa2e804
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277
3 changed files with 7 additions and 7 deletions

View File

@ -82,7 +82,7 @@
]
},
"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":[
"SecRuleEngine On",
@ -220,7 +220,7 @@
]
},
"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":[
"SecRuleEngine On",
@ -266,7 +266,7 @@
]
},
"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":[
"SecRuleEngine On",

View File

@ -4,7 +4,7 @@
"version_min":300000,
"title":"Include - bad rule",
"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":[
"SecRuleEngine On",
@ -19,7 +19,7 @@
"version_min":300000,
"title":"Include - missing file",
"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":[
"SecRuleEngine On",
@ -34,7 +34,7 @@
"version_min":300000,
"title":"Include - missing at include",
"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":[
"SecRuleEngine On",

View File

@ -82,7 +82,7 @@
]
},
"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":[
"SecRuleEngine On",