Closed teutonet closed 2 years ago
Thanks for the contribution! It looks good but could you do the following:
Thanks for the contribution! It looks good but could you do the following:
* Add tests (can use https://github.com/ribbybibby/ssl_exporter/blob/master/prober/tcp_test.go#L210-L247 for reference) * Update the README: https://github.com/ribbybibby/ssl_exporter#tcp_probe
I implemented the POP3 test, hopefully this is okay now. When running "make" everything seemed to be okay.
=== RUN TestProbeTCPStartTLSPOP3
level=debug msg="read line: +OK XPOP3 ready."
level=debug msg="regex: OK matched: +OK XPOP3 ready."
level=debug msg="sending line: STLS"
level=debug msg="read line: +OK Begin TLS negotiation now."
level=debug msg="regex: OK matched: +OK Begin TLS negotiation now."
--- PASS: TestProbeTCPStartTLSPOP3 (0.37s)
Relating to RFC https://datatracker.ietf.org/doc/html/rfc2595#section-4, we created a pop3 starttls query. Hopefully this will be included in your ssl-exporter to implement POP3 starttls probes.
Do you need any tests to prove the function?
without patch
with patch (cut off)
configuration