Yaroslav Halchenko
e7184e70f6
ENH: increase waiting to 4 sec for gamin/pyinotify
...
This will be the last gesture from me for the bloody tests:
https://travis-ci.org/kwirk/fail2ban/jobs/5904668
2013-03-29 14:59:52 -04:00
Steven Hiscocks
92d26e6897
TST+BF: Fix incorrect commands for coveralls support
2013-03-29 17:22:48 +00:00
Steven Hiscocks
b3251fca79
TST: Add support for coveralls for python 2.6 and python 2.7
2013-03-29 17:16:19 +00:00
Yaroslav Halchenko
ffbbb9f8a3
ENH: deleted trailing spaces in fail2ban- cmdline tools
...
Now it was already a mix, and Cyril is not working on this code any
longer so no need to maintain this convention.
2013-03-29 12:31:50 -04:00
Yaroslav Halchenko
7cf509378c
DOC: minor change -- refer to the fail2ban manpage
2013-03-28 11:36:18 -04:00
Yaroslav Halchenko
ef3f2b7e99
TST: be more aggressive in cleanup of temp files + use mktemp instead of mkstemp
2013-03-27 23:40:50 -04:00
Yaroslav Halchenko
bf4d4af1d4
ENH(BF?): overload open() (for buffering) within filtertestcase to guarantee atomic writing
...
This is with the hope to further resolve random tests failures
( primarily on fast travis-ci systems ;) )
2013-03-27 15:11:49 -04:00
Yaroslav Halchenko
ab044b75ea
BF: delay check for the existence of config directory until read()
2013-03-27 12:22:39 -04:00
Yaroslav Halchenko
4b11f071ed
DOC: minor fix ups of manpages. fixes #159
2013-03-27 12:02:19 -04:00
Yaroslav Halchenko
f643e2e907
non-static (get|set)BaseDir for Configurator. fixes #160
...
ConfigReader's (get|set)BaseDir are no longer static as a result of
.d/ support RFing
2013-03-27 11:51:07 -04:00
Yaroslav Halchenko
72b06479a5
ENH: Slight tune ups for fresh SOGo filter + comment into the sample log file
2013-03-27 11:09:54 -04:00
Yaroslav Halchenko
105306e1a8
Merge remote-tracking branch 'pr/117/head' -- SOGo filters
...
* pr/117/head:
An example of failed logins against sogo
Update sogo-auth.conf
Update config/filter.d/sogo-auth.conf
Create sogo-auth.conf
Update config/jail.conf
2013-03-27 11:09:35 -04:00
Yaroslav Halchenko
cd57d9c552
Merge pull request #155 from yarikoptic/master
...
TST+ENH: enable basic (smoke) testing of the default jail.conf + improve postfix filter
2013-03-27 05:43:55 -07:00
Yaroslav Halchenko
01b4870adc
Merge pull request #154 from fail2ban/_tent/fixup_tests_racing
...
Multiple ENHs + fixup tests racing. fixes #103
2013-03-27 05:42:44 -07:00
Erwan Ben Souiden
c4d92fba71
fix the script name to check_fail2ban everywhere
2013-03-26 16:08:05 +01:00
Erwan Ben Souiden
d7d5228964
Replace the check_fail2ban script by a new one which respects the Nagios specs (like status, output, perfdata, help...).
...
Also add a README which includes the content of f2ban.txt (which is now removed)
2013-03-26 15:55:26 +01:00
Yaroslav Halchenko
91d5736c12
ENH: postfix filter -- react also on (450 4.7.1) with empty from/to. fixes #126
2013-03-26 09:40:04 -04:00
Yaroslav Halchenko
c06b7abb46
TST: basic testing of reading the shipped jail.conf (forcing all jails to be enabled)
2013-03-26 00:01:56 -04:00
Yaroslav Halchenko
8fe4e11b67
ENH: allow to force enable all jails (for testing), do not crash for jails without actions (just warn)
...
also a bit more explicit handling of regexp groups in splitAction
2013-03-26 00:01:12 -04:00
Yaroslav Halchenko
2fb053643e
ENH: minor -- add default value into the warning if option had none provided
2013-03-25 23:59:42 -04:00
Yaroslav Halchenko
7064a411c2
ENH: _copy_lines_between_files -- read all needed, and only then write/flush at once
...
I think this is the one which should resolve
https://github.com/fail2ban/fail2ban/issues/103
2013-03-25 23:05:55 -04:00
Yaroslav Halchenko
ba042c6e3a
ENH: move pyinotify callback debug message into callback + delay string interpolations
2013-03-25 23:05:55 -04:00
Yaroslav Halchenko
52af29a080
ENH: adding ability to incorporate tracebacks into log lines while running tests
2013-03-25 23:05:48 -04:00
Yaroslav Halchenko
c29553354b
ENH: FailManager -- improve log message to report total # of detected failures as well
2013-03-25 23:05:47 -04:00
Yaroslav Halchenko
f72bc13111
BF: allow to wait longer for FilterPoll in test_move_file
2013-03-25 23:05:47 -04:00
Yaroslav Halchenko
5ea2ab14e6
ENH: elaborated debug log message about already detected failures
...
Now it should be evaluated only if logging mode is debug or "lower", and also
should happen not only on initial detections but for every added failure.
It also reports counts per each IP now
2013-03-25 23:05:47 -04:00
Yaroslav Halchenko
e6983b4f9b
BF: Remove custom __str__ for MonitorFailures and just adjust __name__ of the generated class
...
Also to guarantee unique file names across tests -- append incremental
numeric suffix.
This should prevent unittest from not reporting specific unittest method names,
thus complicating the analysis of failures
2013-03-25 23:05:07 -04:00
Yaroslav Halchenko
ca474eb488
DOC: Added suggested by @beilber description of .d/ + added I formatting to all filenames
2013-03-25 12:05:10 -04:00
Yaroslav Halchenko
755f27493e
Merge branch '_tent/conf_d'. fixes #114
...
It also fixes #115 since current implementation provides similarly informative
error messages. But see #153 for possible improvements
* _tent/conf_d:
Reincarnated removed (by mistake) test for SplitAction
ENH: made log messages while parsing files more informative + test for inaccessible file (Closes: gh-24)
NF: allow customization configuration under corresponding .d directories (Closes gh-114)
Fix up for warning/error for inaccessible config files
Warn if config file present but unreadable
Conflicts:
fail2ban-testcases
2013-03-25 11:53:45 -04:00
Yaroslav Halchenko
007827fac6
ENH: increase timeout to 20 sec from 10 sec in assert_correct_last_attempt
...
This is done with a hope to resolve randomly failing tests on travis-ci
and thus fixing the #103
2013-03-25 11:03:55 -04:00
Yaroslav Halchenko
3b4084d471
BF: fixing up for handling of TAI64N timestamps and adding some unittest for prev commit (not effective much though)
2013-03-25 10:41:13 -04:00
Yaroslav Halchenko
7813340e1c
Merge branch 'master' of https://github.com/sebres/fail2ban
...
* 'master' of https://github.com/sebres/fail2ban :
invalid date recognition, irregular because of sorting template list, now via setRegex
invalid date recognition, irregular because of sorting template list (sometimes not reproducible by fail2ban-regex, cause will be not sorted)
2013-03-25 10:00:55 -04:00
Artur Penttinen
edc0eb2a9c
Added testcase for MySQL date format to testcases/datedetectortestcase.py
...
and example of MySQL log file.
2013-03-25 16:00:07 +02:00
ArndRa
ebb6e5f4eb
An example of failed logins against sogo
2013-03-25 09:11:51 +01:00
ArndRa
bba3fd8568
Update sogo-auth.conf
...
included hint by user yarikoptic
2013-03-25 08:43:13 +01:00
Yaroslav Halchenko
c0915e5c7b
Added Daniel and Steven to THANKS
2013-03-24 22:13:16 -04:00
Yaroslav Halchenko
6eb262fea6
My improvements to manpages
2013-03-24 22:12:52 -04:00
Yaroslav Halchenko
e86addf171
Merge branch 'misc-fixes' of https://github.com/grooverdan/fail2ban
...
Conflicts:
testcases/servertestcase.py -- excluded all the changes to this file,
since they were conflicting and actually not needed (yet at least)
* 'misc-fixes' of https://github.com/grooverdan/fail2ban :
PKG: change email that I want in RPMs
BF: defer testSocket for later
DOC: Defin{a,i}tion
DOC: add fail2ban.1 manual page
DOC: init -> Init, defination -> Defination. Improved intro
DOC: punishment claimed
BF: add missing items from MANIFEST, used by python setup.py sdist
DOC: tags are documented in the jail.conf(5) man page
ENH: add test case for testing socket
ENH: jail.conf man page
ENH: git ignore failed patch reminants
BF: remove non-existant files from setup.py. ENH: add documentation
ENH: packaging information for RPM builds
completed items from TODO list
2013-03-24 21:19:26 -04:00
Artur Penttinen
29d0df58be
Added support for MySQL logfiles
2013-03-24 16:52:58 +02:00
Steven Hiscocks
21888dfe69
ENH: Add python3 versions to Travis CI config
2013-03-23 19:31:29 +00:00
Steven Hiscocks
8ddc9de928
BF: Handle expected errors for python3.{0,1} when changing log target
2013-03-23 19:04:58 +00:00
Daniel Black
e6ae8872c6
PKG: change email that I want in RPMs
2013-03-23 21:31:09 +11:00
Daniel Black
6f804f9259
BF: defer testSocket for later
2013-03-23 21:04:03 +11:00
Daniel Black
ab16246619
DOC: Defin{a,i}tion
2013-03-23 20:19:05 +11:00
Daniel Black
b5cbee9e65
DOC: add fail2ban.1 manual page
2013-03-23 20:12:31 +11:00
Yaroslav Halchenko
996e23455c
DOC: reverted unneeded stripping of DoW + added comments for why [:6]
2013-03-22 20:56:45 -04:00
Yaroslav Halchenko
e3d3a6ac02
Merge branch 'datedetector-testcase' of https://github.com/kwirk/fail2ban
...
* 'datedetector-testcase' of https://github.com/kwirk/fail2ban :
Correct datedetector testcases for TAI64N format
Additional date/time formats for datedetector testcases
2013-03-22 20:27:39 -04:00
Yaroslav Halchenko
217b04d009
Merge pull request #148 from kwirk/testcases-logissues
...
Do not allow server tests to change logging until the last moment. fixes #147
2013-03-22 15:24:59 -07:00
Daniel Black
847c474b11
DOC: init -> Init, defination -> Defination. Improved intro
2013-03-23 09:17:40 +11:00
Daniel Black
8ce986e9f9
DOC: punishment claimed
2013-03-23 09:15:55 +11:00