From 5f7baa38a43d7b07aac1eaf7eb0e8c8cc249223d Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 10 Jul 2008 20:08:57 +0000 Subject: [PATCH] Test XML/ESI syntax errors etc. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2922 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- .../bin/varnishtest/tests/e00008.vtc | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 varnish-cache/bin/varnishtest/tests/e00008.vtc diff --git a/varnish-cache/bin/varnishtest/tests/e00008.vtc b/varnish-cache/bin/varnishtest/tests/e00008.vtc new file mode 100644 index 00000000..b6877e0f --- /dev/null +++ b/varnish-cache/bin/varnishtest/tests/e00008.vtc @@ -0,0 +1,33 @@ +# $Id: e00004.vtc 2906 2008-07-08 10:29:07Z phk $ + +test "ESI parsing errors" + +server s1 { + rxreq + txresp -body { + Before include + + After include + + + } + rxreq + expect req.url == "/body" + txresp -body { + Included file + } +} -start + +varnish v1 -vcl+backend { + sub vcl_fetch { + esi; + } +} -start + +client c1 { + txreq + rxresp + expect resp.status == 200 +} + +client c1 -run -- 2.39.5