1[
2  {
3    "enabled":1,
4    "version_min":300000,
5    "title":"Include (1/7)",
6    "client":{
7      "ip":"200.249.12.31",
8      "port":123
9    },
10    "server":{
11      "ip":"200.249.12.31",
12      "port":80
13    },
14    "request":{
15      "headers":{
16        "Host":"localhost",
17        "User-Agent":"curl/7.38.0",
18        "Accept":"*/*"
19      },
20      "uri":"/?key=value&key=other_value",
21      "method":"GET"
22    },
23    "response":{
24      "headers":{
25        "Date":"Mon, 13 Jul 2015 20:02:41 GMT",
26        "Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT",
27        "Content-Type":"text/html"
28      },
29      "body":[
30        "no need."
31      ]
32    },
33    "expected":{
34      "debug_log":"Executing operator \"Contains\" with param \"config_example2\" against ARGS."
35    },
36    "rules":[
37      "SecRuleEngine On",
38      "Include test-cases/data/config_example2.txt",
39      "SecRule ARGS \"@contains test\" \"id:9,pass,t:trim\""
40    ]
41  },
42  {
43    "enabled":1,
44    "version_min":300000,
45    "title":"Include (2/7)",
46    "client":{
47      "ip":"200.249.12.31",
48      "port":123
49    },
50    "server":{
51      "ip":"200.249.12.31",
52      "port":80
53    },
54    "request":{
55      "headers":{
56        "Host":"localhost",
57        "User-Agent":"curl/7.38.0",
58        "Accept":"*/*"
59      },
60      "uri":"/?key=value&key=other_value",
61      "method":"GET"
62    },
63    "response":{
64      "headers":{
65        "Date":"Mon, 13 Jul 2015 20:02:41 GMT",
66        "Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT",
67        "Content-Type":"text/html"
68      },
69      "body":[
70        "no need."
71      ]
72    },
73    "expected":{
74      "debug_log":"Executing operator \"Contains\" with param \"config_example\" against ARGS."
75    },
76    "rules":[
77      "SecRuleEngine On",
78      "Include test-cases/data/config_example.txt",
79      "SecRule ARGS \"@contains test\" \"id:9,pass,t:trim\""
80    ]
81  },
82  {
83    "enabled":1,
84    "version_min":300000,
85    "title":"Include (3/7)",
86    "client":{
87      "ip":"200.249.12.31",
88      "port":123
89    },
90    "server":{
91      "ip":"200.249.12.31",
92      "port":80
93    },
94    "request":{
95      "headers":{
96        "Host":"localhost",
97        "User-Agent":"curl/7.38.0",
98        "Accept":"*/*"
99      },
100      "uri":"/?key=value&key=other_value",
101      "method":"GET"
102    },
103    "response":{
104      "headers":{
105        "Date":"Mon, 13 Jul 2015 20:02:41 GMT",
106        "Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT",
107        "Content-Type":"text/html"
108      },
109      "body":[
110        "no need."
111      ]
112    },
113    "expected":{
114      "debug_log":"Executing operator \"Contains\" with param \"config_example2\" against ARGS."
115    },
116    "rules":[
117      "SecRuleEngine On",
118      "Include test-cases/data/config_example2.txt",
119      "SecRule ARGS \"@contains test\" \"id:9,pass,t:trim\""
120    ]
121  },
122  {
123    "enabled":1,
124    "version_min":300000,
125    "title":"Include (4/7)",
126    "client":{
127      "ip":"200.249.12.31",
128      "port":123
129    },
130    "server":{
131      "ip":"200.249.12.31",
132      "port":80
133    },
134    "request":{
135      "headers":{
136        "Host":"localhost",
137        "User-Agent":"curl/7.38.0",
138        "Accept":"*/*"
139      },
140      "uri":"/?key=value&key=other_value",
141      "method":"GET"
142    },
143    "response":{
144      "headers":{
145        "Date":"Mon, 13 Jul 2015 20:02:41 GMT",
146        "Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT",
147        "Content-Type":"text/html"
148      },
149      "body":[
150        "no need."
151      ]
152    },
153    "expected":{
154      "debug_log":"Executing operator \"Contains\" with param \"test\" against ARGS."
155    },
156    "rules":[
157      "SecRuleEngine On",
158      "SecRule ARGS \"@contains test\" \"id:9,pass,t:trim\"",
159      "Include test-cases/data/config_example2.txt"
160    ]
161  },
162  {
163    "enabled":1,
164    "version_min":300000,
165    "title":"Include (5/7)",
166    "client":{
167      "ip":"200.249.12.31",
168      "port":123
169    },
170    "server":{
171      "ip":"200.249.12.31",
172      "port":80
173    },
174    "request":{
175      "headers":{
176        "Host":"localhost",
177        "User-Agent":"curl/7.38.0",
178        "Accept":"*/*"
179      },
180      "uri":"/?key=value&key=other_value",
181      "method":"GET"
182    },
183    "response":{
184      "headers":{
185        "Date":"Mon, 13 Jul 2015 20:02:41 GMT",
186        "Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT",
187        "Content-Type":"text/html"
188      },
189      "body":[
190        "no need."
191      ]
192    },
193    "expected":{
194      "debug_log":"Executing operator \"Contains\" with param \"config_example2\" against ARGS."
195    },
196    "rules":[
197      "SecRuleEngine On",
198      "SecRule ARGS \"@contains test\" \"id:1,pass,t:trim\"",
199      "Include test-cases/data/config_example.txt",
200      "SecRule ARGS \"@contains test\" \"id:3,pass,t:trim\""
201    ]
202  },
203  {
204    "enabled":1,
205    "version_min":300000,
206    "title":"Include (6/7)",
207    "client":{
208      "ip":"200.249.12.31",
209      "port":123
210    },
211    "server":{
212      "ip":"200.249.12.31",
213      "port":80
214    },
215    "request":{
216      "headers":{
217        "Host":"localhost",
218        "User-Agent":"curl/7.38.0",
219        "Accept":"*/*"
220      },
221      "uri":"/?key=value&key=other_value",
222      "method":"GET"
223    },
224    "response":{
225      "headers":{
226        "Date":"Mon, 13 Jul 2015 20:02:41 GMT",
227        "Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT",
228        "Content-Type":"text/html"
229      },
230      "body":[
231        "no need."
232      ]
233    },
234    "expected":{
235      "debug_log":"Executing operator \"Contains\" with param \"test\" against ARGS."
236    },
237    "rules":[
238      "SecRuleEngine On",
239      "Include test-cases/data/config_example2.txt",
240      "SecRule ARGS \"@contains test\" \"id:9,pass,t:trim\""
241    ]
242  },
243  {
244    "enabled":1,
245    "version_min":300000,
246    "title":"Include (7/7)",
247    "client":{
248      "ip":"200.249.12.31",
249      "port":123
250    },
251    "server":{
252      "ip":"200.249.12.31",
253      "port":80
254    },
255    "request":{
256      "headers":{
257        "Host":"localhost",
258        "User-Agent":"curl/7.38.0",
259        "Accept":"*/*"
260      },
261      "uri":"/?key=value&key=other_value",
262      "method":"GET"
263    },
264    "response":{
265      "headers":{
266        "Date":"Mon, 13 Jul 2015 20:02:41 GMT",
267        "Last-Modified":"Sun, 26 Oct 2014 22:33:37 GMT",
268        "Content-Type":"text/html"
269      },
270      "body":[
271        "no need."
272      ]
273    },
274    "expected":{
275      "parser_error":"Looking at: 'test-cases/data/conasdffig_example2.txt'"
276    },
277    "rules":[
278      "SecRuleEngine On",
279      "Include test-cases/data/conasdffig_example2.txt",
280      "SecRule ARGS \"@contains test\" \"id:9,pass,t:trim\""
281    ]
282  }
283]
284