diff --git a/testcases/files/logs/recidive b/testcases/files/logs/recidive new file mode 100644 index 00000000..cf6df933 --- /dev/null +++ b/testcases/files/logs/recidive @@ -0,0 +1,6 @@ +# failJSON: { "time": "2006-02-13T15:52:30", "match": true , "host": "1.2.3.4" } +2006-02-13 15:52:30,388 fail2ban.actions: WARNING [sendmail] Ban 1.2.3.4 +# failJSON: { "match": false } +2006-02-13 16:07:31,183 fail2ban.actions: WARNING [sendmail] Unban 1.2.3.4 +# failJSON: { "match": false } +2006-02-13 15:52:30,388 fail2ban.actions: WARNING [recidive] Ban 1.2.3.4 diff --git a/testcases/samplestestcase.py b/testcases/samplestestcase.py index a52873b9..dd478fbf 100644 --- a/testcases/samplestestcase.py +++ b/testcases/samplestestcase.py @@ -65,6 +65,8 @@ def testSampleRegexsFactory(name): for opt in filterConf.convert(): if opt[2] == "addfailregex": self.filter.addFailRegex(opt[3]) + elif opt[2] == "addignoreregex": + self.filter.addIgnoreRegex(opt[3]) if not self.filter.getFailRegex(): # No fail regexs set: likely just common file for includes.