mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
TST: display details of duplicate matches
This commit is contained in:
parent
6a56727669
commit
9a1df3501b
1 changed files with 2 additions and 1 deletions
|
|
@ -106,7 +106,8 @@ def testSampleRegexsFactory(name):
|
|||
self.assertTrue(faildata.get('match', False),
|
||||
"Line matched when shouldn't have: %s:%i %r" %
|
||||
(logFile.filename(), logFile.filelineno(), line))
|
||||
self.assertEqual(len(ret), 1, "Multiple regexs matched")
|
||||
self.assertEqual(len(ret), 1, "Multiple regexs matched - %s:%i %r " %
|
||||
(logFile.filename(), logFile.filelineno(), ret))
|
||||
# Verify timestamp and host as expected
|
||||
failregex, host, time = ret[0]
|
||||
self.assertEqual(host, faildata.get("host", None))
|
||||
|
|
|
|||
Loading…
Reference in a new issue