1[
2  {
3    "enabled":1,
4    "version_min":300000,
5    "title":"Include - bad rule",
6    "expected":{
7      "parser_error": "Rules error. File: test-cases/data/config_example3.txt. Line: 2. Column: 66. Expecting an action, got:  ops \"id:1000,pass,t:trim\""
8    },
9    "rules":[
10      "SecRuleEngine On",
11      "Include test-cases/data/config_example3.txt",
12      "SecRule ARGS \"@missing_operator test\" \"id:19,pass,t:trim\""
13    ]
14  },
15  {
16    "enabled":1,
17    "version_min":300000,
18    "title":"Include - missing file",
19    "expected":{
20      "parser_error": "Rules error. File: config-include-bad.json. Line: 2. Column: 46. test-cases/data/config_example-ops.txt: Not able to open file."
21    },
22    "rules":[
23      "SecRuleEngine On",
24      "Include test-cases/data/config_example-ops.txt",
25      "SecRule ARGS \"@contains test\" \"id:19,pass,t:trim\""
26    ]
27  },
28  {
29    "enabled":1,
30    "version_min":300000,
31    "title":"Include - missing at include",
32    "expected":{
33      "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."
34    },
35    "rules":[
36      "SecRuleEngine On",
37      "Include test-cases/data/config_example-ops-include.txt",
38      "SecRule ARGS \"@contains test\" \"id:19,pass,t:trim\""
39    ]
40  },
41  {
42    "enabled":1,
43    "version_min":300000,
44    "title":"Include - duplicate id",
45    "expected":{
46      "parser_error": "Rule id: 40 is duplicated"
47    },
48    "rules":[
49      "SecRuleEngine On",
50      "Include test-cases/data/config_example.txt",
51      "Include test-cases/data/config_example.txt",
52      "SecRule ARGS \"@missing_operator test\" \"id:19,pass,t:trim\""
53    ]
54  }
55]
56