From 77f75fa766524fe8c3d2ce16bb5a8cbb4dc6bff3 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 26 Jun 2008 11:49:58 +0000 Subject: [PATCH] ESI include with relative src git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2831 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- .../bin/varnishtest/tests/e00005.vtc | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 varnish-cache/bin/varnishtest/tests/e00005.vtc diff --git a/varnish-cache/bin/varnishtest/tests/e00005.vtc b/varnish-cache/bin/varnishtest/tests/e00005.vtc new file mode 100644 index 00000000..02aab1f6 --- /dev/null +++ b/varnish-cache/bin/varnishtest/tests/e00005.vtc @@ -0,0 +1,33 @@ +# $Id$ + +test "ESI relative include" + + +server s1 { + rxreq + expect req.url == "/foo/bar" + txresp -body { + Before include + + After include + } + rxreq + expect req.url == "/foo/body" + txresp -body { + Included file + } +} -start + +varnish v1 -vcl+backend { + sub vcl_fetch { + esi; + } +} -start + +client c1 { + txreq -url /foo/bar + rxresp + expect resp.status == 200 +} + +client c1 -run -- 2.39.5