Commit 0e299496 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add bodylen expects to the ESI test cases



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3572 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 54d6f881
...@@ -17,12 +17,13 @@ varnish v1 -vcl+backend { ...@@ -17,12 +17,13 @@ varnish v1 -vcl+backend {
sub vcl_fetch { sub vcl_fetch {
esi; esi;
} }
} -start } -start -cliok "param.set esi_syntax 4"
client c1 { client c1 {
txreq txreq
rxresp rxresp
expect resp.status == 200 expect resp.status == 200
expect resp.bodylen == 35
} }
client c1 -run client c1 -run
...@@ -24,6 +24,7 @@ client c1 { ...@@ -24,6 +24,7 @@ client c1 {
txreq txreq
rxresp rxresp
expect resp.status == 200 expect resp.status == 200
expect resp.bodylen == 35
} }
client c1 -run client c1 -run
...@@ -27,6 +27,7 @@ varnish v1 -vcl+backend { ...@@ -27,6 +27,7 @@ varnish v1 -vcl+backend {
client c1 { client c1 {
txreq txreq
rxresp rxresp
expect resp.bodylen == 65
expect resp.status == 200 expect resp.status == 200
} }
......
...@@ -28,6 +28,7 @@ client c1 { ...@@ -28,6 +28,7 @@ client c1 {
txreq txreq
rxresp rxresp
expect resp.status == 200 expect resp.status == 200
expect resp.bodylen == 67
} }
client c1 -run client c1 -run
...@@ -29,6 +29,7 @@ client c1 { ...@@ -29,6 +29,7 @@ client c1 {
txreq -url /foo/bar txreq -url /foo/bar
rxresp rxresp
expect resp.status == 200 expect resp.status == 200
expect resp.bodylen == 67
} }
client c1 -run client c1 -run
...@@ -40,6 +40,7 @@ client c1 { ...@@ -40,6 +40,7 @@ client c1 {
txreq -url /foo/bar -hdr "Host: froboz" txreq -url /foo/bar -hdr "Host: froboz"
rxresp rxresp
expect resp.status == 200 expect resp.status == 200
expect resp.bodylen == 67
} }
client c1 -run client c1 -run
...@@ -67,6 +67,7 @@ client c1 { ...@@ -67,6 +67,7 @@ client c1 {
txreq txreq
rxresp rxresp
expect resp.status == 200 expect resp.status == 200
expect resp.bodylen == 231
} }
client c1 -run client c1 -run
......
...@@ -31,6 +31,7 @@ client c1 { ...@@ -31,6 +31,7 @@ client c1 {
txreq txreq
rxresp rxresp
expect resp.status == 200 expect resp.status == 200
expect resp.bodylen == 72
expect resp.http.content-length == 72 expect resp.http.content-length == 72
} -run } -run
...@@ -40,5 +41,6 @@ client c1 { ...@@ -40,5 +41,6 @@ client c1 {
txreq -url bar txreq -url bar
rxresp rxresp
expect resp.status == 200 expect resp.status == 200
expect resp.bodylen == 37
expect resp.http.transfer-encoding == "chunked" expect resp.http.transfer-encoding == "chunked"
} -run } -run
...@@ -20,6 +20,7 @@ varnish v1 -cliok "debug.fragfetch 4" ...@@ -20,6 +20,7 @@ varnish v1 -cliok "debug.fragfetch 4"
client c1 { client c1 {
txreq -url /foo txreq -url /foo
rxresp rxresp
expect resp.bodylen == 49
} -run } -run
varnish v1 -expect esi_parse == 0 varnish v1 -expect esi_parse == 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment