Merge pull request #3216 from jerrykan/fix_missing_assert

Add missing assert in Fail2banRegexTest.testFrmtOutput
pull/3229/head
Sergey G. Brester 3 years ago committed by GitHub
commit 246d0e1100
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -364,6 +364,7 @@ class Fail2banRegexTest(LogCaptureTestCase):
self.assertTrue(_test_exec('-o', 'id',
'1591983743.667 left 192.0.2.3 right',
r'^\s*<F-TUPLE_ID_1>\S+</F-TUPLE_ID_1> <F-ID/> <F-TUPLE_ID_2>\S+</F-TUPLE_ID_2>'))
self.assertLogged(str(('192.0.2.3', 'left', 'right')))
self.pruneLog()
# id had higher precedence as ip-address:
self.assertTrue(_test_exec('-o', 'id',

Loading…
Cancel
Save