54 Commits

Author SHA1 Message Date
4999208fc3
Test when pfctl fails for another reason than an nonexisting table 2023-01-16 17:14:27 +01:00
a6796bbf72
Provide a bit more information in the log why it failed 2023-01-16 17:13:35 +01:00
59ecd48210
Make sure we set the error message in the json as defined in the test 2023-01-15 18:57:26 +01:00
dd66bf3dc9
Try the pfctl_table_op and set http code accordingly 2023-01-15 18:45:28 +01:00
d43a574579
Raise CalledProcessError as side effect 2023-01-15 18:10:48 +01:00
32032de81d
WIP: Mention that we should raise a CalledProcessError here 2023-01-14 19:52:32 +01:00
d969ce5242
Add missing mock content from real pfctl run 2023-01-14 19:43:56 +01:00
8f0dfc9d63
Fix test by looking at the right data 2023-01-14 19:42:55 +01:00
ee38b9d5e8
Need to decode the subprocess.run bytes to ascii 2023-01-14 19:41:43 +01:00
ea325b0686
#6 Implement /list/<name> for #4 2023-01-14 17:26:00 +01:00
62d92d3c91
Pylint fixes 2023-01-14 16:29:39 +01:00
4bf881f03b
Move _PFCTL_TABLE_PAT out of the pfctl module. it is not interpreted there 2023-01-14 16:14:15 +01:00
610ccec47a
Please linters 2023-01-14 16:12:34 +01:00
5f7a0a4abd
Write tests #5 2023-01-14 16:03:19 +01:00
87252b6c5d
Ignore vim swapfiles 2023-01-14 16:03:03 +01:00
e39ffc14e1
Store this ginourmous regex I made up 2023-01-13 22:25:32 +01:00
a64d17b2e8
Merge branch 'release/2023.1' 2023-01-13 10:33:45 +01:00
3e64189f8f
2023.1 release notes 2023.1 2023-01-13 10:33:34 +01:00
45dc173ea7 Merge branch 'feature/3-provide-application-health-check' into 'develop'
Implements #3, a /ping endpoint

See merge request ruben/jail2ban-pf!5
2023-01-13 09:30:03 +00:00
9b85bfabdb Implements #3, a /ping endpoint 2023-01-13 09:30:03 +00:00
969ba0f64c
Switch to python 3.9 image 2023-01-09 22:58:27 +01:00
d9b5d36835
Not yet 2023-01-09 22:55:21 +01:00
9f86e143fe Oops vim autoindent 2023-01-09 21:51:10 +00:00
a49da1f3ef
Enable SAST 2023-01-09 22:47:34 +01:00
36ff86c71e
Looks like the gitlab-ci.yml syntax was changed. adjust
https://docs.gitlab.com/ee/ci/yaml/artifacts_reports.html#artifactsreportscoverage_report
2023-01-09 22:38:14 +01:00
29f6e6093b Missed a spot 2023-01-09 15:01:06 +00:00
ccc7165d1b More documentation fixes
Using the web based markdown editor for this to get right
2023-01-09 14:59:52 +00:00
72f0e095ca Fix code blocks, add additional documentation 2023-01-09 14:50:52 +00:00
61869049a0
Picky markdown... 2023-01-09 15:17:38 +01:00
c868c63aa7
fix documentation verbatim blocks 2023-01-09 15:11:40 +01:00
9875dccec0
For use with the documented uwsgi 2023-01-09 15:08:02 +01:00
359514e581
Update documentation 2023-01-09 15:07:29 +01:00
9ed6b65b6d
Exclude software testing reports 2023-01-09 14:50:03 +01:00
9c6208f5c0
Merge branch 'release/2022.1' 2022-03-14 16:43:26 +01:00
1c2e3413ec Merge branch 'feature/01_test_all_the_things' into 'develop'
Feature/01 test all the things

See merge request ruben/jail2ban-pf!1
2022.1
2022-03-14 15:41:45 +00:00
4ca4233892 Feature/01 test all the things 2022-03-14 15:41:45 +00: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