Skip to content

Commit

Permalink
e2e: improve WAF policy test config (use regex in regex parameters)
Browse files Browse the repository at this point in the history
  • Loading branch information
xavier-rbz committed Dec 21, 2020
1 parent ba04fdd commit 1157774
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions e2e/test_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -1081,26 +1081,26 @@ def test_count_toomany(self, default_config, target, section):
"names": [
{
"key": "name-norestrict",
"reg": "value",
"reg": "[v]+[a]{1}l?u*e",
"restrict": False,
"exclusions": {"100140": 1}
},
{
"key": "name-restrict",
"reg": "value",
"reg": "[v]+[a]{1}l?u*e",
"restrict": True,
"exclusions": {}
}
],
"regex": [
{
"key": "regex-norestrict",
"key": "reg[e]x{1}-norestrict",
"reg": "[v]+[a]{1}l?u*e",
"restrict": False,
"exclusions": {"100140": 1}
},
{
"key": "regex-restrict",
"key": "reg[e]x{1}-restrict",
"reg": "[v]+[a]{1}l?u*e",
"restrict": True,
"exclusions": {}
Expand Down

0 comments on commit 1157774

Please sign in to comment.