[master] fc53691 Make this test-case even more strange.

Poul-Henning Kamp phk at FreeBSD.org
Thu May 14 22:12:50 CEST 2015


commit fc53691edb65e9f5c5eab82aae6ab4a1c213afc2
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu May 14 20:12:34 2015 +0000

    Make this test-case even more strange.

diff --git a/bin/varnishtest/tests/e00029.vtc b/bin/varnishtest/tests/e00029.vtc
index 5be8aa3..ea3dd70 100644
--- a/bin/varnishtest/tests/e00029.vtc
+++ b/bin/varnishtest/tests/e00029.vtc
@@ -2,16 +2,27 @@ varnishtest "fun esi includes and ranges"
 
 server s1 {
 	rxreq
+	expect req.url == "/1"
 	txresp -body {<html><esi:include src="/bar"/></html>}
-	rxreq 
+
+	rxreq
 	expect req.url == /bar
+	txresp -body {<html><esi:include src="/foo"/></html>}
+
+	rxreq
+	expect req.url == /foo
 	txresp -body "ABCD"
+
+	rxreq
+	expect req.url == "/2"
+	txresp -gzipbody {<html><esi:include src="/bar"/></html>}
+
 } -start
 
 varnish v1 -vcl+backend {
 	sub vcl_recv {
 		if (req.url == "/bar") {
-			set req.http.Range = "bytes=1-2";
+			set req.http.Range = "bytes=7-8";
 		}
 	}
 	sub vcl_backend_response {
@@ -20,7 +31,12 @@ varnish v1 -vcl+backend {
 } -start
 
 client c1 {
-	txreq
+	txreq -url /1 -hdr "Accept-encoding: gzip"
+	rxresp
+	expect resp.body == "<html>BC</html>"
+	delay .1
+	txreq -url /2 -hdr "Accept-encoding: gzip"
 	rxresp
+	gunzip
 	expect resp.body == "<html>BC</html>"
 } -run



More information about the varnish-commit mailing list