r3471 - trunk/varnish-cache/bin/varnishtest/tests

phk at projects.linpro.no phk at projects.linpro.no
Thu Dec 18 12:30:18 CET 2008


Author: phk
Date: 2008-12-18 12:30:17 +0100 (Thu, 18 Dec 2008)
New Revision: 3471

Added:
   trunk/varnish-cache/bin/varnishtest/tests/r00400.vtc
Log:
Add regression test for #400



Added: trunk/varnish-cache/bin/varnishtest/tests/r00400.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/r00400.vtc	                        (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/r00400.vtc	2008-12-18 11:30:17 UTC (rev 3471)
@@ -0,0 +1,21 @@
+# $Id$
+
+test "Regression test for ticket 409"
+
+server s1 {
+	rxreq
+	expect req.url == "/"
+	send "HTTP/1.0 400 Not funny\r\n"
+	send "\r\n"
+	send "12345\r\n"
+} -start
+
+varnish v1 -vcl+backend {
+} -start
+
+client c1 {
+	txreq
+	rxresp
+	expect resp.status == 400
+	expect resp.bodylen == 7
+} -run



More information about the varnish-commit mailing list