42 Commits

Author SHA1 Message Date
58ac46126a
Also test registering from scratch 2022-03-14 16:06:50 +01:00
a7970c4f6b
Assert that we indeed merge the existing pf rules 2022-03-14 16:00:31 +01:00
3dacbe7a5d
Uh, switched names of tests 2022-03-14 15:45:03 +01:00
798a72cb73
Gracefully handle FileNotFoundError exceptions 2022-03-14 15:43:28 +01:00
59cc645b98
code coverage shows the case is not hit. remove noop conditional 2022-03-14 15:43:26 +01:00
feb8c93737
Let AUTHFILE be absolute path 2022-03-14 15:20:49 +01:00
27bc683f8f
Add readme with badges 2022-03-12 17:27:03 +01:00
3f94410716
Let's test an method that is not allowed in app.route 2022-03-11 22:07:04 +01:00
e3a71a851d
Allowed methods are listed in app.route, elif is noop here 2022-03-11 22:04:48 +01:00
542718b956
Add exception handler for when pfctl operations fail 2022-03-11 21:21:40 +01:00
34f871ae75
Simplify code by letting run() generate exception on non zero exit status 2022-03-11 20:42:19 +01:00
f3f8bd5dc6
Fix test (was used to test gitlab email 2022-03-11 13:42:36 +01:00
5971c27a8f
Correct stderr for test 2022-03-11 10:38:37 +01:00
47e8208ce2
Add test for flush 2022-03-11 10:38:19 +01:00
af1fef189c
Handle pfctl_cfg_write output as expected 2022-03-10 23:29:14 +01:00
c33e63978e
Test unregistering and check intended fields 2022-03-10 21:39:07 +01:00
963f7e5702
Test unban 2022-03-10 21:24:35 +01:00
450792b2d2
Do this always 2022-03-10 21:18:27 +01:00
ffe144f6b5
Add case for detecing invalid input 2022-03-10 21:12:24 +01:00
a20145b447
Also generate unit test report 2022-03-10 21:01:02 +01:00
b5f16f161c
Test for invalid address handling 2022-03-10 20:43:24 +01:00
7c7734c996
Not exactly using it. remove for now 2022-03-10 14:32:36 +01:00
bd12b2a18a
pylint fixes 2022-03-10 14:03:09 +01:00
64523ae8b5
Add tests for /ban 2022-03-10 13:37:34 +01:00
bfe4a0af89 Fix the regular expression 2022-03-10 11:04:00 +00:00
5a26b448f1
Add coverage in pipeline 2022-03-10 12:02:35 +01:00
a8dbafd21e
Let it work without config.py, as we configure it through the test 2022-03-10 11:53:31 +01:00
975c3bb3f3
Add dependencies that are not scooped up by the test plugins 2022-03-10 11:49:33 +01:00
4c5fceb6f2
Merge branch 'main' of gitlab.niet.verweg.com:ruben/jail2ban 2022-03-10 11:47:54 +01:00
d8d34924f8
Add extra dependencies for testing 2022-03-10 11:47:38 +01:00
5486de3858 Fix tags level 2022-03-10 10:24:31 +00:00
1494f1a5e0
First tests! 2022-03-10 11:22:04 +01:00
d7f8fcec88
Show what is going on there 2022-03-10 11:21:37 +01:00
89ef9747f9
Decode as ascii and work from there instead 2022-03-10 11:20:50 +01:00
da83d716d7
Externalize userlist 2022-03-07 18:06:21 +01:00
438f8eaf63
Move application into package and use factory 2022-03-07 15:25:59 +01:00
95b0a73e78
Ignore python runtime generated files 2022-03-07 15:19:46 +01:00
00e59fb638
Use app.logger instead of rolling with logging 2022-03-07 13:14:00 +01:00
6e5ccbbf81
Still need check_password_hash Revert "No longer required here"
This reverts commit 5b14dd078ae38d54fdf7467fbcc31d6e0bf016f3.
2022-03-07 13:07:22 +01:00
851429da46
Use jsonify instead of rolling with json.dumps() 2022-03-07 13:06:30 +01:00
5b14dd078a
No longer required here 2022-03-07 13:00:42 +01:00
d08ff18b2a
Alpha version of the jail2ban daemon 2022-03-06 22:48:53 +01:00