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

phk at projects.linpro.no phk at projects.linpro.no
Wed Jun 25 11:58:43 CEST 2008


Author: phk
Date: 2008-06-25 11:58:43 +0200 (Wed, 25 Jun 2008)
New Revision: 2800

Added:
   trunk/varnish-cache/bin/varnishtest/tests/r00262.vtc
Log:
Add regression test for ticket 262



Added: trunk/varnish-cache/bin/varnishtest/tests/r00262.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/r00262.vtc	                        (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/r00262.vtc	2008-06-25 09:58:43 UTC (rev 2800)
@@ -0,0 +1,29 @@
+# $Id$
+
+test "Test that inter-request whitespace trimming works"
+
+server s1 {
+	rxreq 
+	txresp \
+		-hdr "Connection: close" \
+		-body "012345\n"
+}
+
+varnish v1 -arg "-p session_linger=20" -vcl+backend { } -start 
+
+server s1 -start 
+
+client c1 {
+	send "GET / HTTP/1.1\r\n\r\n\r\n"
+
+	rxresp
+	expect resp.status == 200
+	expect resp.http.X-Varnish == "1001"
+
+	send "GET / HTTP/1.1\r\n\r\n"
+	rxresp
+	expect resp.status == 200
+	expect resp.http.X-Varnish == "1002 1001"
+}
+
+client c1 -run




More information about the varnish-commit mailing list