Compare commits

25 Commits

Author SHA1 Message Date
e0d115790e Reuse credentials as fixture / linelength fixes for readability 2022-03-14 16:39:24 +01:00
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

Diff Content Not Available