mirror of https://github.com/fail2ban/fail2ban
TST: add datepattern for samplestestcases
parent
ed9ed6d0cb
commit
a115297ebd
|
@ -78,6 +78,8 @@ def testSampleRegexsFactory(name):
|
|||
self.filter.setMaxLines(opt[3])
|
||||
elif opt[2] == "addignoreregex":
|
||||
self.filter.addIgnoreRegex(opt[3])
|
||||
elif opt[2] == "datepattern":
|
||||
self.filter.setDatePattern(opt[3])
|
||||
|
||||
self.assertTrue(
|
||||
os.path.isfile(os.path.join(TEST_FILES_DIR, "logs", name)),
|
||||
|
|
Loading…
Reference in New Issue