1[
2  {
3    "enabled":1,
4    "version_min":300000,
5    "title":"Testing 'block' action without desruptive action",
6    "expected":{
7      "parser_error": "Line: 1. Column: 16. SecDefaultAction must specify a disruptive action."
8    },
9    "client":{
10      "ip":"200.249.12.31",
11      "port":12300
12    },
13    "request":{
14      "headers":{
15        "Host":"a.b.com",
16        "User-Agent":"curl/7.38.0",
17        "Accept":"*/*",
18        "User-Agent":"My sweet little browser",
19        "Cookie": "PHPSESSID=rAAAAAAA2t5uvjq435r4q7ib3vtdjq120"
20      },
21      "uri":"/path1",
22      "method":"GET"
23    },
24    "server":{
25      "ip":"200.249.12.31",
26      "port":80
27    },
28    "rules":[
29      "SecRuleEngine On",
30      "SecDefaultAction \"phase:1,log,block,status:404\"",
31      "SecRule REQUEST_URI \"@contains path1\" \"phase:1,block,id:5\""
32    ]
33  },
34  {
35    "enabled":1,
36    "version_min":300000,
37    "title":"Testing 'block' action with desruptive action",
38    "expected":{
39      "http_code": 400
40    },
41    "client":{
42      "ip":"200.249.12.31",
43      "port":12300
44    },
45    "request":{
46      "headers":{
47        "Host":"a.b.com",
48        "User-Agent":"curl/7.38.0",
49        "Accept":"*/*",
50        "User-Agent":"My sweet little browser",
51        "Cookie": "PHPSESSID=rAAAAAAA2t5uvjq435r4q7ib3vtdjq120"
52      },
53      "uri":"/path1",
54      "method":"GET"
55    },
56    "server":{
57      "ip":"200.249.12.31",
58      "port":80
59    },
60    "rules":[
61      "SecRuleEngine On",
62      "SecDefaultAction \"phase:1,log,block,deny,status:400\"",
63      "SecRule REQUEST_URI \"@contains path1\" \"phase:1,block,id:5\""
64    ]
65  }
66]
67