mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-10-23 21:01:35 +00:00
increase coverage
This commit is contained in:
parent
3cba2310ff
commit
295f7b88c9
1 changed files with 3 additions and 2 deletions
|
|
@ -286,11 +286,12 @@ class Fail2banRegexTest(LogCaptureTestCase):
|
|||
"-l", "notice", # put down log-level, because of too many debug-messages
|
||||
"--datepattern", "^(?:%a )?%b %d %H:%M:%S(?:\.%f)?(?: %ExY)?",
|
||||
"--debuggex", "--print-all-matched",
|
||||
Fail2banRegexTest.FILENAME_WRONGCHAR, Fail2banRegexTest.FILTER_SSHD
|
||||
Fail2banRegexTest.FILENAME_WRONGCHAR, Fail2banRegexTest.FILTER_SSHD,
|
||||
r"llinco[^\\]"
|
||||
)
|
||||
self.assertTrue(fail2banRegex.start(args))
|
||||
self.assertLogged('Error decoding line')
|
||||
self.assertLogged('Lines: 4 lines, 0 ignored, 2 matched, 2 missed')
|
||||
self.assertLogged('Lines: 4 lines, 1 ignored, 2 matched, 1 missed')
|
||||
|
||||
self.assertLogged('https://')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue