aboutsummaryrefslogtreecommitdiff
path: root/plugins/tests/check_http.t
AgeCommit message (Collapse)Author
2022-01-30sslutils: use chain from client certificatesGravatar Tobias Wiese
sslutils used to load only the first certificate when it was given a client certificate file. Added tests for check_http to connect to a http server that expects a client certificate (simple and with chain). Signed-off-by: Tobias Wiese <tobias@tobiaswiese.com>
2021-05-20tests: ignore sigpipes in https test daemonGravatar Sven Nierlein
check_http closes the connection after checking the certificate with -C. This leads to sigpipe errors when the ssl daemon wants to send a response and the daemon quits which makes the subsequent tests fail.
2021-05-20tests: increase startup sleepGravatar Sven Nierlein
github action might fail from to time otherwise
2020-05-15tests: update expired test certificateGravatar Sven Nierlein
the certificate used to test expired http checks is to old to be used with recent ssl libraries and results in: > SSL routines:SSL_CTX_use_certificate:ee key too small unfortunatly the error is only visible when setting $IO::Socket::SSL::DEBUG in the check_http.t file.
2019-04-04Merge branch 'master' into feature_check_curlGravatar Andreas Baumann
2019-02-19renew test certificatesGravatar Sven Nierlein
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2018-10-22check_curl: make check_curl use the same tests as check_httpGravatar Sven Nierlein
2017-03-26Added tests for virtual port behaviour. Separated from all other tests this ↵Gravatar Christopher Odenbach
time.
2016-11-11Revert "adopt http test to changed ssl expire date output"Gravatar Sven Nierlein
This reverts commit 6cd50bc42cb4b25a3c0f7153df7f83b7262f404b.
2016-11-11tests: make tests reliable for forcing the locale to CGravatar Sven Nierlein
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2016-11-11adopt http test to changed ssl expire date outputGravatar Sven Nierlein
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2016-11-07GMT expiry displayGravatar Peter (pir) Radcliffe
Change solution to display GMT time in the local display format with the offset number of hours from GMT to be clear about what timezone this is if the local display format does not include offset.
2016-11-07Revert "Fix check_http test time output"Gravatar Peter (pir) Radcliffe
This reverts commit 2d9e61a4382b8366331cde7617dbc4e381a0219a.
2016-11-07Fix check_http test time outputGravatar Peter (pir) Radcliffe
Tests need to match new output time and timezone.
2015-10-02fix tests for certificates expire date with secondsGravatar Sven Nierlein
2014-07-21plugins/tests/check_http.t: Adjust date stringsGravatar Holger Weiss
Adjust the expected date strings to the now-localized output produced by plugins/sslutils.c. Closes #1275.
2014-06-13require at least HTTP::Daemon 6.01Gravatar Sven Nierlein
since the test uses send_header from HTTP::Daemon::ClientConn which has been introduced in HTTP::Daemon 6.01
2014-06-12tests: testCmd has own timeout which overwrites local oneGravatar Sven Nierlein
so add configurable/optional timeout to testCmd. Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
2014-01-19Project rename initial commit.Gravatar Monitoring Plugins Development Team
This is an initial take at renaming the project to Monitoring Plugins. It's not expected to be fully complete, and it is expected to break things (The perl module for instance). More testing will be required before this goes mainline.
2013-08-18Fix the "check_http -d" testsGravatar Holger Weiss
2013-08-18added ability to check regex against http headers. booyah!Gravatar linkslice
2012-08-10tests/check_http.t: Fix whitespace issuesGravatar Holger Weiss
In tests/check_http.t, tabs are used for indentation. While at it, apply another few cosmetic changes.
2012-08-10tests/check_http.t: Update the number of SSL testsGravatar Holger Weiss
2012-08-10tests/check_http.t: Fix test caseGravatar Holger Weiss
Fix the test case which is meant to make sure that check_http -C <n>,<m> [...] returns a CRITICAL state if <m> is large enough.
2012-06-25added test case for certificate checs with both warning and critical valuesGravatar William Leibzon
2011-02-04check_http: check for and print the certificate cnGravatar Thomas Guyot-Sionnest
This patch adds a check for the certificate cn (hostname) to normal certificate checks. It returns CRITICAL if th cn is missing, otherwise it prints it in the normal output. Patch by Stéphane Urbanovski
2010-11-30Fix minor test issuesGravatar Thomas Guyot-Sionnest
My Test::More wouldn't print the total number of tests anymore, moving the plan at the top appears to fix it. At the same time I made check-http.t eval the special modules so it can skip the tests instead of failing.
2010-06-23Display missing search string and URL when failed (Duncan Ferguson #2999924)Gravatar tonvoon
2009-03-21check_http: add --onredirect=stickyport - also follow the same portGravatar Thomas Guyot-Sionnest
2009-03-20tests/check_http.t: Add various timeout-related testsGravatar Thomas Guyot-Sionnest
2009-03-19Revert "Add timezone support and fix checks around cert expiration" (keep ↵Gravatar Thomas Guyot-Sionnest
the expiration fix) This reverts commit d41a33a434558189300113c28b26e2d3d681d390.
2009-03-18Add timezone support and fix checks around cert expirationGravatar Thomas Guyot-Sionnest
2009-03-16Update extended check_http tests for 0d78171...Gravatar Thomas Guyot-Sionnest
Also add some tests, and make debug mode loop infinitely.
2009-03-06Create expired cert for testing purposes. Updated tests to checkGravatar Ton Voon
expired and unexpired certificates
2009-03-05Added inline tests for HTTPS using HTTP::Daemon::SSLGravatar Ton Voon
2008-11-08Fixed bug where extra headers and redirect caused segfault (Dieter Van de ↵Gravatar Ton Voon
Walle - 2089159) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2076 f882894a-f735-0410-b71e-b25c423dba1c
2008-11-08check_http now has options to specify the HTTP method (Jan - 2155152)Gravatar Ton Voon
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2075 f882894a-f735-0410-b71e-b25c423dba1c
2008-09-25Fix small test failureGravatar Ton Voon
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2056 f882894a-f735-0410-b71e-b25c423dba1c
2008-08-25Fix HTTP::Daemon::VERSION to get a fixed header size for testsGravatar Ton Voon
(Sven Nierlein) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2048 f882894a-f735-0410-b71e-b25c423dba1c
2008-08-25Updated with more tests re: multiple status codes (Sven Nierlein)Gravatar Ton Voon
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2047 f882894a-f735-0410-b71e-b25c423dba1c
2008-08-25The "-e" option now accepts a comma-delimited list of expected statusGravatar Holger Weiss
lines (Sven Nierlein - 1894496). git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2046 f882894a-f735-0410-b71e-b25c423dba1c
2008-08-22Added HTTP tests for status codesGravatar Ton Voon
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2045 f882894a-f735-0410-b71e-b25c423dba1c