Steven Hiscocks
1116f23151
TST: Sample log regex test now warns if no log for a filter
...
Also checks that at least some tests are present
2013-07-14 18:19:16 +01:00
Steven Hiscocks
94376bfbe1
TST: Handle lack of `json` library in python2.5 for samples test case
2013-07-14 11:15:45 +01:00
Steven Hiscocks
40f67c64b8
TST: Test sample logs' entries are matched by filter regexs
2013-07-13 23:03:01 +01:00
Yaroslav Halchenko
404574499d
BF: fail2ban-testcases -- use full "warning" instead of warn for the verbosity dictionary
2013-07-02 23:52:37 -04:00
Yaroslav Halchenko
97f9cfc0b0
ENH: 'heavydebug' level == 5 for even more debugging in tricky cases
...
I mocked logging library directly -- seems to be Ok.
2013-06-13 23:19:28 -04:00
Yaroslav Halchenko
571ff33fde
ENH: issue a warning if jail name is longer than 19 symbols ( Close #222 )
2013-05-12 22:19:50 -04:00
Yaroslav Halchenko
dc05eee0f5
TST: Some primarily smoke tests for tests utils
2013-05-09 23:43:22 -04:00
Yaroslav Halchenko
26715d5e5e
ENH: basic test for setup.py itself (when applicable, should greatly improve coverage ;) )
2013-05-09 23:08:20 -04:00
Yaroslav Halchenko
90d6a4a6cd
ENH: consistent operation of formatExceptionInfo + unittest for it
2013-05-09 22:46:59 -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
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
Steven Hiscocks
ec87e3edbd
TST: Break out server testcases that modify logging settings
2013-03-22 21:15:37 +00:00
Steven Hiscocks
d4362859ef
Added testcase for csocket and asyncserver
2013-03-11 17:22:57 +00:00
Daniel Black
3665e6dc44
Add development documentation and framework for code coverage measurement
2013-03-10 15:18:42 +11:00
Steven Hiscocks
088e40c481
Rewrite and enable server testcase for Transmitter
2013-02-20 23:14:42 +00:00
Yaroslav Halchenko
9ba27353b6
NF: allow customization configuration under corresponding .d directories (Closes gh-114)
...
Additional changes:
ENH: make basedir for Config's a kwarg to the constructor
ENH: improved analysis/reporting on presence/accessibility of config
files. Got carried away and forgot about existing work done by
Steven Hiscocks in the gh-115 -- will merge it in the next
commit for the fair ack of his work
Now for any X.conf configuration file we have following ways to
provide customizations
X.local -- read after .conf (kept for backward compatibility)
X.d/ -- directory to contain additional .conf files, sorted
alphabetically, e.g
X.d/01_enable.conf - to enable the jail
X.d/02_custom_port.conf - to change the port
X could be a 'jail' or 'fail2ban' or any other configuration file in
fail2ban.
Mention that all files still must contain the corresponding sections
(most of the time duplicating it across all of them).
2013-02-17 17:03:23 -05:00
Orion Poplawski
431489c9b9
Remove unneeded setting of opts.no_network
2013-01-25 14:19:10 -07:00
Orion Poplawski
fdd9dfb4b5
Initial support for --no-network option for fail2ban-testcases
2013-01-25 12:56:00 -07:00
Yaroslav Halchenko
7bd977e2df
ENH: fail2ban-testscases -- allow to specify regexps for tests to be ran
...
Eventually we will switch to use nose or py.test -- for now this
homebrew solution could be used to run selected suites only
2012-12-11 11:18:52 -05:00
Yaroslav Halchenko
03b31398aa
ENH: BF (forgotten import) for prev commit + removed duplicate Author, adjusted __ fields for that in fail2ban-* scripts
2012-11-09 08:58:19 -05:00
Yaroslav Halchenko
39172a99c5
BF: added a little shell script to excercise tests against all available Python versions
...
also report Python version inside fail2ban-testcases
2012-11-06 21:45:55 -05:00
Yaroslav Halchenko
5becaf8ef2
BF: (python 2.[45]) store backends names in a list to use .index later on (Closes gh-83)
...
.index() got into tuple's API only in 2.6
2012-11-01 15:34:20 -04:00
Yaroslav Halchenko
9510619b7b
ENH: minor -- print out why skipping a backend while testing
2012-11-01 15:24:32 -04:00
Yaroslav Halchenko
481b1530d6
RF: reordered tests + enabled gamin now that its fix is pending in Debian
...
reference: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=542361
2012-07-19 23:08:33 -04:00
Yaroslav Halchenko
08564bda1a
ENH: fail2ban-testcases -- custom logging format to ease debugging, non-0 exit code in case of failure
2012-07-19 13:30:55 -04:00
Yaroslav Halchenko
0b842272e3
ENH: extended test LogfileMonitor
2012-07-18 10:26:42 -04:00
Yaroslav Halchenko
9a2b41f6ad
ENH: add more verbosity levels to be controlled while running unittests
2012-06-30 00:35:43 -04:00
Yaroslav Halchenko
215c3cc5c5
ENH: added a basic test for FilterPoll for detection of modifications
...
The test class MonitorFailures is intended to be excercised for all
Filter*'s, i.e. backends. It is just atm it is useful only for Poll
2012-06-29 12:56:32 -04:00
Yaroslav Halchenko
d0a322f2b8
ENH: be able to control verbosity from cmdline for fail2ban-testcases
2012-06-15 22:21:16 -04:00
Leonardo Chiquitto
a7d47e8b36
Update Free Software Foundation's address
...
The address has changed from "59 Temple Place, Suite 330, Boston,
MA 02111-1307 USA" to "51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA" some time ago.
2011-12-30 12:41:46 -05:00
Yaroslav Halchenko
441cd891bc
NF: adding unittests for previous commit
2011-11-18 10:16:17 -05:00
Yaroslav Halchenko
ed6daa70bf
ENH: modelines for emacs and vim to assure consistent indentation scheme (tabs)
2011-10-07 15:49:38 -04:00
Yaroslav Halchenko
5a2d518bf2
BF: set TZ to CEST while unittesting so dates matching would work
...
now unittesting should work on any box (not only in CEST timezone ;) )
uff -- so much time was wasted to come to this minimal (and now
obvious) solution -- it is just scary ;)
2011-10-07 15:14:13 -04:00
Cyril Jaquier
a257fdc87d
- Call Python interpreter directly (instead of using "env")
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@522 a942ae1a-1317-0410-a47c-b1dcaea8d605
2007-01-21 22:19:57 +00:00
Cyril Jaquier
ffc9c5d8f9
- Removed sys.path.insert as fail2ban-testcases is not installed
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@517 a942ae1a-1317-0410-a47c-b1dcaea8d605
2007-01-08 21:09:50 +00:00
Cyril Jaquier
ab3d2d1b9a
- Now Fail2ban goes in /usr/share/fail2ban instead of /usr/lib/fail2ban. This is more compliant with FHS. Thanks to Axel Thimm and Yaroslav Halchenko
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@511 a942ae1a-1317-0410-a47c-b1dcaea8d605
2007-01-04 12:58:21 +00:00
Cyril Jaquier
58acd9fb9f
- Moved version.py and protocol.py to common/
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@467 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-11-16 21:07:42 +00:00
Cyril Jaquier
5c668c8fed
- Added action test case
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@429 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-10-23 20:13:21 +00:00
Cyril Jaquier
ee86212435
- Updated testcases to fix the time using MyTime
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@419 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-10-18 22:35:32 +00:00
Cyril Jaquier
21b6e76cde
- Added date detector
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@325 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-09-05 21:16:28 +00:00
Cyril Jaquier
0326a94157
- Removed test which depends on current time
...
- Fixed self.server.start()
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@275 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-08-20 20:40:47 +00:00
Cyril Jaquier
8af85f5c40
- Bug fix: '-', '_' and '.' are valid as action file
...
- Added a pyunit test
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@266 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-08-06 21:56:01 +00:00
Cyril Jaquier
6d2aa15aa7
- Added property 'svn:keywords'
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@253 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-07-16 22:21:58 +00:00
Cyril Jaquier
12c222bd1c
- One step forward to 0.7.0
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@250 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-07-08 16:51:14 +00:00
Cyril Jaquier
ea1948eff4
- Initial commit of the new development release 0.7
...
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@249 a942ae1a-1317-0410-a47c-b1dcaea8d605
2006-06-26 20:05:00 +00:00