Commit Graph

90 Commits (33fcf8d80984ac7d4437d1ad2a401c26623efaaf)

Author SHA1 Message Date
sebres af126eb308 simplify fail2ban-testcases: move some code pieces inclusive option parser from fail2ban-testcases to tests/utils.py (+ coverage)
8 years ago
sebres f7f618b15d Let know the version (and python), also in travis (no output if verbosity is 0)
8 years ago
sebres cd6b528542 new test-cases option "--verbosity" to set numeric level of verbosity during test cases;
8 years ago
sebres 2b5c5103f4 safer multi-threaded execution inside (logging with lock inside LogCaptureTestCase logging handler);
8 years ago
sebres fcae05190f move common initializing functionality from fail2ban-testcases to tests/utils.py, to afford setting of default options by test execution from setup process.
8 years ago
sebres 461e9bab56 better handling of setup in test-cases (prevent execution of 2to3 twice, full logging in heavydebug, etc.)
8 years ago
sebres c8e7c1f7f4 BF: prefer sys.argv[0] by retrieving of root resp. bin path: __file__ seems to be overwritten sometimes on some python versions (e.g. bug of 2.6 by running under cProfile, etc.)
8 years ago
sebres 08af8de981 compatibility fix (virtualenv, running test cases in py3)
8 years ago
sebres 77f451c4a3 introduces new command "fail2ban-python", as automatically created symlink to python executable, where fail2ban currently installed (resp. its modules are located);
8 years ago
sebres 7242c9cbde code review after enhancements of Yaroslav
9 years ago
Yaroslav Halchenko 4df06f5352 ENH: testcases - verbosity > 2 now also includes logger name (to replace need for custom --s)
9 years ago
sebres 4c1bcac0c7 Merge branch '0.10' into f2b-perfom-prepare-716-cs-0.10
9 years ago
sebres 06dcad7650 fixed mixed indentation (spaces through tabs), duplicate code removed
9 years ago
Alexander Koeppe 975608dfb6 no hardcoded python interpreter path
9 years ago
sebres 53956501da increase readability and details level by increased verbosity
9 years ago
sebres afa1cdc3ae client/server (bin) test cases introduced, ultimate closes #1121, closes #1139
9 years ago
sebres 5a053f4b74 starting of the server (and client/server communication behavior during start and daemonize) completely rewritten:
9 years ago
sebres 556ddaabd7 temporary commit (move client/server from bin)
9 years ago
sebres 4ce240ed40 try to start server in foreground
9 years ago
sebres 05f38285f1 Merge remote-tracking branch 'remotes/gh-upstream/master' into f2b-perfom-prepare-716
9 years ago
sebres 9d7e860edb possibility to increase verbosity up to heavy debug (partial ported from 716-cs)
9 years ago
sebres 134c33cc6d fail2ban-testcases: added option "--ignore": negate [regexps] filter, to ignore tests matched specified regexps
9 years ago
sebres cf3cf27fa3 - filtering of test cases extended for method additionally to class (matches method only not whole class for regexp matched method name);
9 years ago
sebres 59bf5013c0 - performance of fail2ban optimized
9 years ago
sebres 38f09b417a fail2ban-regex command line (after fail2ban-regex functionality moved to the client)
9 years ago
sebres 0877d66228 fail2ban-regex moved to the client + test cases for initial coverage added
9 years ago
sebres a42aa726ab fixed fail2ban-regex reads invalid character (in sense of given encoding); continuing to process line ignoring invalid characters (still has no test cases).
9 years ago
sebres 81e659b760 performance fix: minimizes connection overhead, using same socket by multiple commands without close it (ex.: 'start' sends several hundreds commands at once)
10 years ago
Lee Clemens 77f5983b42 Test permissions to socket for detailed errors if socket.error raised
10 years ago
Lee Clemens c7e203b20f Fix PEP8 E401 - multiple imports on one line
10 years ago
Steven Hiscocks 0c869910ea BF: Fix fail2ban-regex not parsing journalmatch correctly
10 years ago
sebres 74c6f6ac4b BF: fail2ban-regex does not read '.local' file of given filter (gh-954)
10 years ago
Yaroslav Halchenko caa6006a31 ENH: do use @staticmethod (we are well beyond support of 2.4 now)
10 years ago
sebres 73a06d55a8 reset share/cache storage (if we use 'reload' in client with interactive mode)
10 years ago
Yaroslav Halchenko 602239051b BF: reincarnated import of logging (used to obtain level constants)
11 years ago
Steven Hiscocks 2d54161696 Merge branch 'kwirk/harmonize-log-msgs'
11 years ago
Steven Hiscocks 4fc7f1a831 ENH: Tweak naming of getF2BLogger, and ensure consistent use
11 years ago
Steven Hiscocks e8131475cd ENH: Realign and harmonise log messages with getF2BLogger helper
11 years ago
Yaroslav Halchenko eb2487986c ENH: minor -- print time which was used to process lines
11 years ago
Yaroslav Halchenko 3471f13a84 Merge pull request #700 from kwirk/format-traceback-to-helpers
11 years ago
Yaroslav Halchenko 1e19bca28e Merge pull request #704 from CameronNemo/foreground-opt-client
11 years ago
Steven Hiscocks 7cc64a14e0 BF: fail2ban-regex assertion error caused by miscounted "missed" lines
11 years ago
Cameron Norman 73cb3e3eec Added more specific help message to fail2ban-client with -f option
11 years ago
Cameron Norman 7818b0cb2a Added f and b to cmdOpts.
11 years ago
Cameron Norman 9c2a0cb403 Added foreground and background options to fail2ban-client
11 years ago
Steven Hiscocks 6a740f684a ENH: Move traceback formatter to from tests.utils to helpers
11 years ago
Hank Leininger 2d42b46a7c
Add a --print-all-matched option.
11 years ago
Steven Hiscocks e193e67718 BF: fail2ban-regex mix of tabs and spaces
11 years ago
Daniel Black aa7e8fb9ce DOC: Credits. close gh-644
11 years ago
Steven Hiscocks 5630c56c75 ENH: Change logging levels and make info more verbose
11 years ago