Commit graph

7 commits

Author SHA1 Message Date
c46c9d76d9 feat: add the check_output_matches plugin (#5)
All checks were successful
Run tests and linters / test (push) Successful in 50s
Run tests and linters / build (push) Successful in 48s
Run tests and linters / lint (push) Successful in 1m27s
This PR adds the `check_output_matches` plugin, which can be used to count regexp or substring matches from either text files or command outputs and determine the final status based on the amount of matches that were found.

Reviewed-on: #5
Co-authored-by: Emmanuel BENOÎT <tseeker@nocternity.net>
Co-committed-by: Emmanuel BENOÎT <tseeker@nocternity.net>
2024-07-20 22:57:10 +02:00
78af496fe9 refactor: make internals easier to test and add unit tests (#2)
All checks were successful
Run tests and linters / test (push) Successful in 44s
Run tests and linters / build (push) Successful in 47s
Run tests and linters / lint (push) Successful in 1m20s
This PR refactors most of the internals to make them easier to test (and also because the names didn't make sense). It adds unit tests for all internal components.

Reviewed-on: #2
Co-authored-by: Emmanuel BENOÎT <tseeker@nocternity.net>
Co-committed-by: Emmanuel BENOÎT <tseeker@nocternity.net>
2024-07-20 10:01:05 +02:00
2fa0e37900 refactor: reorganize project in order to include automation (#1)
All checks were successful
Run tests and linters / test (push) Successful in 43s
Run tests and linters / build (push) Successful in 41s
Run tests and linters / lint (push) Successful in 1m22s
Reviewed-on: #1
Co-authored-by: Emmanuel BENOÎT <tseeker@nocternity.net>
Co-committed-by: Emmanuel BENOÎT <tseeker@nocternity.net>
2024-07-19 22:01:34 +02:00
f67dd244a4 check_zone_serial added
This pluging queries a pair of DNSs for a zone's SOA record and ensures
that serials received from both servers match.
2021-02-27 11:26:34 +01:00
14e1a764ae Changed project URL 2021-02-19 19:10:40 +01:00
916dc35de6 Use golf for command line parsing
* Split command line flags data from the main program data structure
* Use golf to support GNU-style flags
* Added -h/--help flag
2021-02-19 10:53:07 +01:00
66a1b017be Initial import of lib + certificate validity checker 2021-01-03 10:33:21 +01:00