Holger Weiss
66003414af
tests/check_http.t: Fix whitespace issues
...
In tests/check_http.t, tabs are used for indentation.
While at it, apply another few cosmetic changes.
2012-08-10 12:49:30 +02:00
Holger Weiss
3f944a50b7
tests/check_http.t: Update the number of SSL tests
2012-08-10 12:41:41 +02:00
Holger Weiss
62d01df1fd
tests/check_http.t: Fix test case
...
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-08-10 12:35:16 +02:00
William Leibzon
181260d636
added test case for certificate checs with both warning and critical values
2012-06-25 12:54:15 +02:00
Thomas Guyot-Sionnest
4611e41bc5
check_http: check for and print the certificate cn
...
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
2011-02-04 00:54:52 -05:00
Thomas Guyot-Sionnest
c49fed07c3
Fix minor test issues
...
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-11-30 23:57:04 -05:00
tonvoon
1252195ed5
Display missing search string and URL when failed (Duncan Ferguson #2999924 )
2010-06-23 14:44:34 +00:00
Thomas Guyot-Sionnest
e7cdcfee2a
check_http: add --onredirect=stickyport - also follow the same port
2009-03-21 02:32:50 -04:00
Thomas Guyot-Sionnest
31f2afcf4a
tests/check_http.t: Add various timeout-related tests
2009-03-20 01:21:18 -04:00
Thomas Guyot-Sionnest
37e432ec77
Revert "Add timezone support and fix checks around cert expiration" (keep the expiration fix)
...
This reverts commit d41a33a434 .
2009-03-19 01:04:33 -04:00
Thomas Guyot-Sionnest
d41a33a434
Add timezone support and fix checks around cert expiration
2009-03-18 03:34:25 -04:00
Thomas Guyot-Sionnest
d89d0b40f9
Update extended check_http tests for 0d78171...
...
Also add some tests, and make debug mode loop infinitely.
2009-03-16 03:09:15 -04:00
Ton Voon
674841e279
Create expired cert for testing purposes. Updated tests to check
...
expired and unexpired certificates
2009-03-06 00:24:38 +00:00
Ton Voon
8580335779
Added inline tests for HTTPS using HTTP::Daemon::SSL
2009-03-05 23:37:45 +00:00
Ton Voon
6c5f781bc5
Fixed bug where extra headers and redirect caused segfault (Dieter Van de Walle - 2089159)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2076 f882894a-f735-0410-b71e-b25c423dba1c
2008-11-08 02:32:03 +00:00
Ton Voon
288b742ed6
check_http now has options to specify the HTTP method (Jan - 2155152)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2075 f882894a-f735-0410-b71e-b25c423dba1c
2008-11-08 02:08:56 +00:00
Ton Voon
4181892bcc
Fix small test failure
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2056 f882894a-f735-0410-b71e-b25c423dba1c
2008-09-25 08:04:42 +00:00
Ton Voon
3b4d0bb292
Fix HTTP::Daemon::VERSION to get a fixed header size for tests
...
(Sven Nierlein)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2048 f882894a-f735-0410-b71e-b25c423dba1c
2008-08-25 18:39:27 +00:00
Ton Voon
bb5ce4be01
Updated with more tests re: multiple status codes (Sven Nierlein)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2047 f882894a-f735-0410-b71e-b25c423dba1c
2008-08-25 13:26:11 +00:00
Holger Weiss
c349438e32
The "-e" option now accepts a comma-delimited list of expected status
...
lines (Sven Nierlein - 1894496).
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2046 f882894a-f735-0410-b71e-b25c423dba1c
2008-08-25 11:42:57 +00:00
Ton Voon
e61022df19
Added HTTP tests for status codes
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2045 f882894a-f735-0410-b71e-b25c423dba1c
2008-08-22 13:08:08 +00:00