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

phk at varnish-cache.org phk at varnish-cache.org
Wed Jan 5 15:28:16 CET 2011


Author: phk
Date: 2011-01-05 15:28:16 +0100 (Wed, 05 Jan 2011)
New Revision: 5691

Modified:
   trunk/varnish-cache/bin/varnishtest/tests/g00001.vtc
Log:
Test now more capable gunzip feature



Modified: trunk/varnish-cache/bin/varnishtest/tests/g00001.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/g00001.vtc	2011-01-05 14:27:58 UTC (rev 5690)
+++ trunk/varnish-cache/bin/varnishtest/tests/g00001.vtc	2011-01-05 14:28:16 UTC (rev 5691)
@@ -16,12 +16,28 @@
 	rxresp
 	expect resp.bodylen == "3"
 	expect resp.http.content-encoding == "resp.http.content-encoding"
-} -run
 
-client c1 {
 	txreq -hdr "Accept-encoding: gzip;q=0.1"
 	rxresp
 	expect resp.http.content-encoding == "gzip"
 	gunzip
 	expect resp.bodylen == "3"
 } -run
+
+client c1 {
+	txreq -proto HTTP/1.0
+	rxresp
+	expect resp.bodylen == "3"
+	expect resp.http.content-encoding == "resp.http.content-encoding"
+} -run
+
+client c1 {
+	txreq -req HEAD
+	rxresp -no_obj
+	expect resp.http.content-encoding == "resp.http.content-encoding"
+
+	txreq -req HEAD -hdr "Accept-encoding: gzip;q=0.1"
+	rxresp -no_obj
+	expect resp.http.content-length == "26"
+	expect resp.http.content-encoding == "gzip"
+} -run




More information about the varnish-commit mailing list