Commit graph

37 commits

Author SHA1 Message Date
10b9933e6a
chore: merge master --> 20240719-more-tests
All checks were successful
Run tests and linters / test (pull_request) Successful in 45s
Run tests and linters / build (pull_request) Successful in 48s
Run tests and linters / lint (pull_request) Successful in 1m23s
2024-07-20 09:39:27 +02:00
dcd732cc34
chore: fix test runner
All checks were successful
Run tests and linters / test (pull_request) Successful in 42s
Run tests and linters / build (pull_request) Successful in 43s
Run tests and linters / lint (pull_request) Successful in 1m19s
Run tests and linters / test (push) Successful in 41s
Run tests and linters / build (push) Successful in 42s
Run tests and linters / lint (push) Successful in 1m23s
2024-07-20 09:05:17 +02:00
9f282c40f9
test(pkg): add tests for version 2024-07-20 00:25:31 +02:00
1a29325c34
refactor(pkg): rename internals so their names actually make sense
A "program" was in fact a plugin, while a "plugin" represented the
plugin's results.
2024-07-20 00:20:28 +02:00
ffbec78937
test(pkg): add tests for plugin 2024-07-20 00:05:58 +02:00
1e0304f450
chore(pkg): fix copypasta in comments 2024-07-19 23:50:50 +02:00
5432360f0e
refactor(pkg): refactor Plugin to make it easier to test
Writing the plugin's output string and exiting the program will no
longer take place in the plugin status itself. It will only be done in
the main program.
2024-07-19 23:46:33 +02:00
b3aa7dfcad
refactor(pkg): rename plugin status constants 2024-07-19 23:27:37 +02:00
ebdb99be8b
refactor(pkg): split plugin into multiple files 2024-07-19 23:24:19 +02:00
cf88d63bc2
refactor(pkg): clean up perfdata to string conversion 2024-07-19 23:20:41 +02:00
47b342b317
refactor(pkg): rename PDRange to Range 2024-07-19 23:16:57 +02:00
db47981d23
test(pkg): add tests for all parts of perfdata 2024-07-19 23:15:40 +02:00
70670e0657
refactor(pkg): split perfdata across multiple files 2024-07-19 23:14:59 +02:00
0776ee6741
chore: add testify to dependencies 2024-07-19 23:12:55 +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
8feb34bbe6
fix(check_zone_serial): use net.JoinHostPort 2023-11-02 11:42:19 +01:00
bad82cf32d
README - Fix Markdown bug 2023-11-02 10:24:00 +01:00
26ac3da54a README - Section about check_zone_serial 2021-02-27 11:33:28 +01: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
31850c9901 Plugin - Accept format strings+data for AddLine
Most calls were being made from fmt.Sprintf() anyway, so it was clear
this required formatted input.
2021-02-27 10:54:40 +01:00
a856b449a8 README.md added 2021-02-19 19:28:25 +01:00
14e1a764ae Changed project URL 2021-02-19 19:10:40 +01:00
8f566fa955 check_ssl_certificate - Fixed map loop syntax 2021-02-19 17:39:08 +01:00
08e8ff920a check_ssl_certificate - Generate list of supported StartTLS procols 2021-02-19 17:37:57 +01:00
5badf33e31 check_ssl_certificate - Support for ManageSieve/STARTTLS 2021-02-19 17:33:13 +01:00
65239769a0 check_ssl_certificate - SMTP STARTTLS support
* Refactored code so that obtaining TLS certificates from server can
  have different implementations
* Added SMTP-specific implementation that will send a HELO followed
  by a STARTTLS.
2021-02-19 16:53:34 +01:00
55c4a7b3a5 check_ssl_certificate - Handle the case of actually expired certificates 2021-02-19 15:58:40 +01:00
ffe98f702b Build script - Build for x86 and amd64 2021-02-19 13:55:27 +01:00
97f0cf48bb check_ssl_certificate - Comments 2021-02-19 13:41:50 +01:00
830d51365f check_ssl_certificate - Check additional names 2021-02-19 13:21:06 +01:00
ac1eacd2a5 plugin - SetState no longer resets additional text 2021-02-19 13:18:21 +01:00
fc5f4c1638 plugin - "Fixed" comments to silence go-lint 2021-02-19 12:47:00 +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
2c5d27684a Cleaner SSL check program
* Split off the progam into various functions
* Pass the program's data (plugin, certificate) through a single
  structure
2021-02-19 10:38:18 +01:00
cdcb18821f Additional comments; pointer use where possible 2021-01-07 20:55:10 +01:00
b86fdf53b9 Short documentation for the plugin state code 2021-01-03 12:03:10 +01:00
66a1b017be Initial import of lib + certificate validity checker 2021-01-03 10:33:21 +01:00