From: phk Date: Tue, 3 Feb 2009 17:34:08 +0000 (+0000) Subject: Add bodylen expects to the ESI test cases X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39cb00e8a6860058830d870b3f807ba0c1c08db0;p=varnish Add bodylen expects to the ESI test cases git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3572 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/tests/e00001.vtc b/varnish-cache/bin/varnishtest/tests/e00001.vtc index 517fb9a2..db84e6c2 100644 --- a/varnish-cache/bin/varnishtest/tests/e00001.vtc +++ b/varnish-cache/bin/varnishtest/tests/e00001.vtc @@ -17,12 +17,13 @@ varnish v1 -vcl+backend { 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 diff --git a/varnish-cache/bin/varnishtest/tests/e00002.vtc b/varnish-cache/bin/varnishtest/tests/e00002.vtc index 73d7d2e1..eb688a3d 100644 --- a/varnish-cache/bin/varnishtest/tests/e00002.vtc +++ b/varnish-cache/bin/varnishtest/tests/e00002.vtc @@ -24,6 +24,7 @@ client c1 { txreq rxresp expect resp.status == 200 + expect resp.bodylen == 35 } client c1 -run diff --git a/varnish-cache/bin/varnishtest/tests/e00003.vtc b/varnish-cache/bin/varnishtest/tests/e00003.vtc index 61d88210..b0d9b540 100644 --- a/varnish-cache/bin/varnishtest/tests/e00003.vtc +++ b/varnish-cache/bin/varnishtest/tests/e00003.vtc @@ -27,6 +27,7 @@ varnish v1 -vcl+backend { client c1 { txreq rxresp + expect resp.bodylen == 65 expect resp.status == 200 } diff --git a/varnish-cache/bin/varnishtest/tests/e00004.vtc b/varnish-cache/bin/varnishtest/tests/e00004.vtc index 1a430507..564a21ea 100644 --- a/varnish-cache/bin/varnishtest/tests/e00004.vtc +++ b/varnish-cache/bin/varnishtest/tests/e00004.vtc @@ -28,6 +28,7 @@ client c1 { txreq rxresp expect resp.status == 200 + expect resp.bodylen == 67 } client c1 -run diff --git a/varnish-cache/bin/varnishtest/tests/e00005.vtc b/varnish-cache/bin/varnishtest/tests/e00005.vtc index b886b7d5..361e48b1 100644 --- a/varnish-cache/bin/varnishtest/tests/e00005.vtc +++ b/varnish-cache/bin/varnishtest/tests/e00005.vtc @@ -29,6 +29,7 @@ client c1 { txreq -url /foo/bar rxresp expect resp.status == 200 + expect resp.bodylen == 67 } client c1 -run diff --git a/varnish-cache/bin/varnishtest/tests/e00006.vtc b/varnish-cache/bin/varnishtest/tests/e00006.vtc index d503900b..b63f045c 100644 --- a/varnish-cache/bin/varnishtest/tests/e00006.vtc +++ b/varnish-cache/bin/varnishtest/tests/e00006.vtc @@ -40,6 +40,7 @@ client c1 { txreq -url /foo/bar -hdr "Host: froboz" rxresp expect resp.status == 200 + expect resp.bodylen == 67 } client c1 -run diff --git a/varnish-cache/bin/varnishtest/tests/e00008.vtc b/varnish-cache/bin/varnishtest/tests/e00008.vtc index 9ff7fe0a..a95d0497 100644 --- a/varnish-cache/bin/varnishtest/tests/e00008.vtc +++ b/varnish-cache/bin/varnishtest/tests/e00008.vtc @@ -67,6 +67,7 @@ client c1 { txreq rxresp expect resp.status == 200 + expect resp.bodylen == 231 } client c1 -run diff --git a/varnish-cache/bin/varnishtest/tests/e00009.vtc b/varnish-cache/bin/varnishtest/tests/e00009.vtc index 0b639cfd..066edf87 100644 --- a/varnish-cache/bin/varnishtest/tests/e00009.vtc +++ b/varnish-cache/bin/varnishtest/tests/e00009.vtc @@ -31,6 +31,7 @@ client c1 { txreq rxresp expect resp.status == 200 + expect resp.bodylen == 72 expect resp.http.content-length == 72 } -run @@ -40,5 +41,6 @@ client c1 { txreq -url bar rxresp expect resp.status == 200 + expect resp.bodylen == 37 expect resp.http.transfer-encoding == "chunked" } -run diff --git a/varnish-cache/bin/varnishtest/tests/e00014.vtc b/varnish-cache/bin/varnishtest/tests/e00014.vtc index 10d9e9e2..16af7f07 100644 --- a/varnish-cache/bin/varnishtest/tests/e00014.vtc +++ b/varnish-cache/bin/varnishtest/tests/e00014.vtc @@ -20,6 +20,7 @@ varnish v1 -cliok "debug.fragfetch 4" client c1 { txreq -url /foo rxresp + expect resp.bodylen == 49 } -run varnish v1 -expect esi_parse == 0