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

phk at projects.linpro.no phk at projects.linpro.no
Tue Feb 3 18:34:08 CET 2009


Author: phk
Date: 2009-02-03 18:34:08 +0100 (Tue, 03 Feb 2009)
New Revision: 3572

Modified:
   trunk/varnish-cache/bin/varnishtest/tests/e00001.vtc
   trunk/varnish-cache/bin/varnishtest/tests/e00002.vtc
   trunk/varnish-cache/bin/varnishtest/tests/e00003.vtc
   trunk/varnish-cache/bin/varnishtest/tests/e00004.vtc
   trunk/varnish-cache/bin/varnishtest/tests/e00005.vtc
   trunk/varnish-cache/bin/varnishtest/tests/e00006.vtc
   trunk/varnish-cache/bin/varnishtest/tests/e00008.vtc
   trunk/varnish-cache/bin/varnishtest/tests/e00009.vtc
   trunk/varnish-cache/bin/varnishtest/tests/e00014.vtc
Log:
Add bodylen expects to the ESI test cases



Modified: trunk/varnish-cache/bin/varnishtest/tests/e00001.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/e00001.vtc	2009-02-03 12:59:13 UTC (rev 3571)
+++ trunk/varnish-cache/bin/varnishtest/tests/e00001.vtc	2009-02-03 17:34:08 UTC (rev 3572)
@@ -17,12 +17,13 @@
 	sub vcl_fetch {
 		esi;
 	}
-} -start
+} -start -cliok "param.set esi_syntax 4"
 
 client c1 {
 	txreq 
 	rxresp
 	expect resp.status == 200
+	expect resp.bodylen == 35
 }
 
 client c1 -run

Modified: trunk/varnish-cache/bin/varnishtest/tests/e00002.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/e00002.vtc	2009-02-03 12:59:13 UTC (rev 3571)
+++ trunk/varnish-cache/bin/varnishtest/tests/e00002.vtc	2009-02-03 17:34:08 UTC (rev 3572)
@@ -24,6 +24,7 @@
 	txreq 
 	rxresp
 	expect resp.status == 200
+	expect resp.bodylen == 35
 }
 
 client c1 -run

Modified: trunk/varnish-cache/bin/varnishtest/tests/e00003.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/e00003.vtc	2009-02-03 12:59:13 UTC (rev 3571)
+++ trunk/varnish-cache/bin/varnishtest/tests/e00003.vtc	2009-02-03 17:34:08 UTC (rev 3572)
@@ -27,6 +27,7 @@
 client c1 {
 	txreq 
 	rxresp
+	expect resp.bodylen == 65
 	expect resp.status == 200
 }
 

Modified: trunk/varnish-cache/bin/varnishtest/tests/e00004.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/e00004.vtc	2009-02-03 12:59:13 UTC (rev 3571)
+++ trunk/varnish-cache/bin/varnishtest/tests/e00004.vtc	2009-02-03 17:34:08 UTC (rev 3572)
@@ -28,6 +28,7 @@
 	txreq 
 	rxresp
 	expect resp.status == 200
+	expect resp.bodylen == 67
 }
 
 client c1 -run

Modified: trunk/varnish-cache/bin/varnishtest/tests/e00005.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/e00005.vtc	2009-02-03 12:59:13 UTC (rev 3571)
+++ trunk/varnish-cache/bin/varnishtest/tests/e00005.vtc	2009-02-03 17:34:08 UTC (rev 3572)
@@ -29,6 +29,7 @@
 	txreq -url /foo/bar
 	rxresp
 	expect resp.status == 200
+	expect resp.bodylen == 67
 }
 
 client c1 -run

Modified: trunk/varnish-cache/bin/varnishtest/tests/e00006.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/e00006.vtc	2009-02-03 12:59:13 UTC (rev 3571)
+++ trunk/varnish-cache/bin/varnishtest/tests/e00006.vtc	2009-02-03 17:34:08 UTC (rev 3572)
@@ -40,6 +40,7 @@
 	txreq -url /foo/bar -hdr "Host: froboz"
 	rxresp
 	expect resp.status == 200
+	expect resp.bodylen == 67
 }
 
 client c1 -run

Modified: trunk/varnish-cache/bin/varnishtest/tests/e00008.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/e00008.vtc	2009-02-03 12:59:13 UTC (rev 3571)
+++ trunk/varnish-cache/bin/varnishtest/tests/e00008.vtc	2009-02-03 17:34:08 UTC (rev 3572)
@@ -68,6 +68,7 @@
 	txreq 
 	rxresp
 	expect resp.status == 200
+	expect resp.bodylen == 231
 }
 
 client c1 -run

Modified: trunk/varnish-cache/bin/varnishtest/tests/e00009.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/e00009.vtc	2009-02-03 12:59:13 UTC (rev 3571)
+++ trunk/varnish-cache/bin/varnishtest/tests/e00009.vtc	2009-02-03 17:34:08 UTC (rev 3572)
@@ -31,6 +31,7 @@
 	txreq 
 	rxresp
 	expect resp.status == 200
+	expect resp.bodylen == 72
 	expect resp.http.content-length == 72
 } -run
 
@@ -40,5 +41,6 @@
 	txreq -url bar
 	rxresp
 	expect resp.status == 200
+	expect resp.bodylen == 37
 	expect resp.http.transfer-encoding == "chunked"
 } -run

Modified: trunk/varnish-cache/bin/varnishtest/tests/e00014.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/e00014.vtc	2009-02-03 12:59:13 UTC (rev 3571)
+++ trunk/varnish-cache/bin/varnishtest/tests/e00014.vtc	2009-02-03 17:34:08 UTC (rev 3572)
@@ -20,6 +20,7 @@
 client c1 {
         txreq -url /foo
         rxresp
+	expect resp.bodylen == 49
 } -run
 
 varnish v1 -expect esi_parse == 0



More information about the varnish-commit mailing list