You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fail2ban/fail2ban/tests
sebres f0214b3d36
filter.d/sendmail-reject.conf: fixed regex to consider "Connection rate limit exceeded" with different combination of arguments
4 years ago
..
action_d action.d/badips.* removed (badips.com is no longer active, gh-2889) 4 years ago
config filter.d/sshd.conf: fixed regex for mode `extra` - "No authentication methods available" (supported seems to be optional now, gh-2682) 5 years ago
files filter.d/sendmail-reject.conf: fixed regex to consider "Connection rate limit exceeded" with different combination of arguments 4 years ago
__init__.py
actionstestcase.py introduces new flavor `short` for `fail2ban-client status $jail short`: output total and current counts only, without banned IPs list in order to speedup it and to provide more clear output (gh-2819), flavor `basic` (still default) is unmodified for backwards compatibility; 4 years ago
actiontestcase.py substituteRecursiveTags: more precise self- or cyclic-recursion prevention (don't clear replacement counts of tags, rather consider replacement count by tax X in tag Y) 4 years ago
banmanagertestcase.py fix cymru test cases 4 years ago
clientbeautifiertestcase.py output execution time of each test case if verbosity > 2 8 years ago
clientreadertestcase.py action.d/badips.* removed (badips.com is no longer active, gh-2889) 4 years ago
databasetestcase.py closes gh-2647: add ban to database is moved from jail.putFailTicket to actions.__CheckBan; be sure manual ban is written to database, so can be restored by restart; reload/restart test extended 5 years ago
datedetectortestcase.py more fixes and optimizations, better RE's for patterns, allow parse date without time with such a datepattern (assume 00:00:00 then), etc 4 years ago
dummyjail.py amend to RC-fix 9f1c6f1617 (gh-2660): 5 years ago
fail2banclienttestcase.py `action.d/nginx-block-map.conf`: reload nginx only if it is running (also avoid error in nginx-errorlog, gh-2949) and better test coverage for the action 4 years ago
fail2banregextestcase.py extractOptions: ensure options are parsed completely - avoids unexpected skip or truncate of parameters, produces more verbose error message in case of incorrect syntax; added more tests covering several cases 4 years ago
failmanagertestcase.py small amend (rename maxEntries -> maxMatches for consistency reasons) 6 years ago
filtertestcase.py tests: add missing constraint (causing incomplete comparison in below cycle if fewer lines as expected was found) 4 years ago
misctestcase.py compat: some 2.x pypy versions produce UnicodeEncodeError: 'ascii' codec can't encode character on surrogates (uni_string must be fixed also for UTF-8 system encoding) 4 years ago
samplestestcase.py better assert message in sample regex factory 4 years ago
servertestcase.py fixes restore of original logging withing tests (`LogCaptureTestCase.tearDown`) - python 3 seemed still to log wordy after tear down (setting of log.level does not restore the level for related log objects - e. g. for logger of `fail2ban.jail` etc, so `fail2ban-testcases '(testVersion|testLongName).*servertest'` generating messages in stdout handler in testLongName) 4 years ago
sockettestcase.py resolves a bottleneck within transmitting of large data between server and client: speedup search of communications end-marker and increase max buffer size (up to 32KB) 4 years ago
tickettestcase.py failmanager, ticket: avoid reset of retry count by pause between attempts near to findTime - adjust time of ticket will now change current attempts considering findTime as an estimation from rate by previous known interval (if it exceeds the findTime); 5 years ago
utils.py fixes restore of original logging withing tests (`LogCaptureTestCase.tearDown`) - python 3 seemed still to log wordy after tear down (setting of log.level does not restore the level for related log objects - e. g. for logger of `fail2ban.jail` etc, so `fail2ban-testcases '(testVersion|testLongName).*servertest'` generating messages in stdout handler in testLongName) 4 years ago