From bcb54c33d2e32fcb5f150bc83297828a50145929 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 26 Jun 2008 21:09:32 +0000 Subject: [PATCH] Testcase for ESI fragmented storage parsing git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2837 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- .../bin/varnishtest/tests/e00007.vtc | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 varnish-cache/bin/varnishtest/tests/e00007.vtc diff --git a/varnish-cache/bin/varnishtest/tests/e00007.vtc b/varnish-cache/bin/varnishtest/tests/e00007.vtc new file mode 100644 index 00000000..332dcf38 --- /dev/null +++ b/varnish-cache/bin/varnishtest/tests/e00007.vtc @@ -0,0 +1,32 @@ +# $Id$ + +test "ESI spanning storage bits" + + +server s1 { + rxreq + expect req.url == "/foo/bar" + txresp -hdr "Connection: close" + send { + This is before the test + + + This is a test: Unseen University + + This is a test: Hello world + } +} -start + +varnish v1 -vcl+backend { + sub vcl_fetch { + esi; + } +} -start -cli "debug.fragfetch 32" + +client c1 { + txreq -url /foo/bar -hdr "Host: froboz" + rxresp + expect resp.status == 200 +} + +client c1 -run -- 2.39.5