mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
TST: add datepattern for samplestestcases
This commit is contained in:
parent
ed9ed6d0cb
commit
a115297ebd
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue