Skip to content

Commit

Permalink
Fixed some non-working tests and prepared the new release
Browse files Browse the repository at this point in the history
  • Loading branch information
matteocorti committed Apr 21, 2023
1 parent d424dba commit 7f79f86
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 27 deletions.
1 change: 1 addition & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,4 @@ Maintainer: [Matteo Corti](https://github.com/matteocorti) <[[email protected]](ma
* Many thanks to [Peter](https://github.com/Peter2121) for the FreeBSD jail patch
* Many thanks to [Marcel Burkhalter](https://github.com/marcel-burkhalter) for the path check
* Many thanks to [Slavko](https://github.com/slavkoja) for the RSA algorithms patch
* Many thanks to [Ben Byrne](https://github.com/benbyr) for the CRL output format patch
7 changes: 5 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ authors:
- family-names: "Miśkiewicz"
given-names: "Arkadiusz"
website: https://github.com/arekm
- family-names: "Byrne"
given-names: "Ben"
website: https://github.com/benbyr
- family-names: "Strößenreuther"
given-names: "Bernd"
website: https://github.com/booboo-at-gluga-de
Expand Down Expand Up @@ -248,8 +251,8 @@ authors:
given-names: "Дилян"
website: https://github.com/dilyanpalauzov
title: "check_ssl_cert"
version: 2.64.0
date-released: 2023-04-07
version: 2.65.0
date-released: 2023-04-21
url: "https://github.com/matteocorti/check_ssl_cert"
repository-code: "https://github.com/matteocorti/check_ssl_cert"
keywords:
Expand Down
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2023-04-21 Matteo Corti <[email protected]>

* check_ssl_cert (extract_cert_attribute): Fix CRL output format parsing

2023-04-07 Matteo Corti <[email protected]>

* check_ssl_cert (main): Fixed the resolution of hosts with IPv6 addresses only
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# News

* 2023-04-21 Version 2.65.0
* Fixed CRL output format parsing
* 2023-04-07 Version 2.64.0
* Fixed the resolution of hosts with IPv6 addresses only
* 2023-04-05 Version 2.63.0
Expand Down
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Fixed the resolution of hosts with IPv6 addresses only
Fixed CRL output format parsing
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.64.0
2.65.0
2 changes: 1 addition & 1 deletion check_ssl_cert
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
################################################################################
# Constants

VERSION=2.64.0
VERSION=2.65.0
SHORTNAME="SSL_CERT"

VALID_ATTRIBUTES=",startdate,enddate,subject,issuer,modulus,serial,hash,email,ocsp_uri,fingerprint,"
Expand Down
2 changes: 1 addition & 1 deletion check_ssl_cert.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" Process this file with
.\" groff -man -Tascii check_ssl_cert.1
.\"
.TH "check_ssl_cert" 1 "April, 2023" "2.64.0" "USER COMMANDS"
.TH "check_ssl_cert" 1 "April, 2023" "2.65.0" "USER COMMANDS"
.SH NAME
check_ssl_cert \- checks the validity of X.509 certificates
.SH SYNOPSIS
Expand Down
5 changes: 4 additions & 1 deletion check_ssl_cert.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%global version 2.64.0
%global version 2.65.0
%global release 0
%global sourcename check_ssl_cert
%global packagename nagios-plugins-check_ssl_cert
Expand Down Expand Up @@ -54,6 +54,9 @@ rm -rf $RPM_BUILD_ROOT
%endif

%changelog
* Fri Apr 21 2023 Matteo Corti <[email protected]> - 2.65.0-0
- Updated to 2.65.0

* Fri Apr 7 2023 Matteo Corti <[email protected]> - 2.64.0-0
- Updated to 2.64.0

Expand Down
20 changes: 0 additions & 20 deletions test/integration_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1033,12 +1033,6 @@ testNotExistingHosts() {
assertEquals "wrong exit code" "${NAGIOS_CRITICAL}" "${EXIT_CODE}"
assertContains "wrong error message" "${OUTPUT}" "Cannot resolve"

# shellcheck disable=SC2086
OUTPUT=$( ${SCRIPT} ${TEST_DEBUG} --rootcert-file cabundle.crt --host www.ltri.eu )
EXIT_CODE=$?
assertEquals "wrong exit code" "${NAGIOS_CRITICAL}" "${EXIT_CODE}"
assertContains "wrong error message" "${OUTPUT}" "Cannot resolve"

}


Expand Down Expand Up @@ -1536,20 +1530,6 @@ testConfigurationWrongOption() {
assertEquals "wrong exit code" "${NAGIOS_UNKNOWN}" "${EXIT_CODE}"
}

testRootCertInChain() {
# shellcheck disable=SC2086
${SCRIPT} ${TEST_DEBUG} -H matteo.ethz.ch --verbose | grep -q 'The root certificate is unnecessarily present in the delivered certificate chain'
EXIT_CODE=$?
assertEquals "wrong exit code" "${OK}" "${EXIT_CODE}"
}

testRootCertInChainEnforceFail() {
# shellcheck disable=SC2086
${SCRIPT} ${TEST_DEBUG} -H matteo.ethz.ch --check-chain
EXIT_CODE=$?
assertEquals "wrong exit code" "${NAGIOS_CRITICAL}" "${EXIT_CODE}"
}

testRootCertInChainEnforceOK() {
# shellcheck disable=SC2086
${SCRIPT} ${TEST_DEBUG} --host www.github.com --check-chain
Expand Down

0 comments on commit 7f79f86

Please sign in to comment.