From: phk Date: Thu, 24 Jul 2008 22:09:25 +0000 (+0000) Subject: Make the ESI testcases start with an XML tag to satsify our new X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d469160667a43e12644b259704897cd720a680c3;p=varnish Make the ESI testcases start with an XML tag to satsify our new non-XML detector logic. Add a testcase to see if it works and that we can override it. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3018 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/tests/e00003.vtc b/varnish-cache/bin/varnishtest/tests/e00003.vtc index 85675e20..61d88210 100644 --- a/varnish-cache/bin/varnishtest/tests/e00003.vtc +++ b/varnish-cache/bin/varnishtest/tests/e00003.vtc @@ -6,6 +6,7 @@ test "ESI include" server s1 { rxreq txresp -body { + Before include After include diff --git a/varnish-cache/bin/varnishtest/tests/e00004.vtc b/varnish-cache/bin/varnishtest/tests/e00004.vtc index 4e829214..1a430507 100644 --- a/varnish-cache/bin/varnishtest/tests/e00004.vtc +++ b/varnish-cache/bin/varnishtest/tests/e00004.vtc @@ -6,6 +6,7 @@ test "ESI commented include" server s1 { rxreq txresp -body { + Before include After include diff --git a/varnish-cache/bin/varnishtest/tests/e00005.vtc b/varnish-cache/bin/varnishtest/tests/e00005.vtc index 94f3df63..b886b7d5 100644 --- a/varnish-cache/bin/varnishtest/tests/e00005.vtc +++ b/varnish-cache/bin/varnishtest/tests/e00005.vtc @@ -7,6 +7,7 @@ server s1 { rxreq expect req.url == "/foo/bar" txresp -body { + Before include After include diff --git a/varnish-cache/bin/varnishtest/tests/e00006.vtc b/varnish-cache/bin/varnishtest/tests/e00006.vtc index 8f2f98aa..d503900b 100644 --- a/varnish-cache/bin/varnishtest/tests/e00006.vtc +++ b/varnish-cache/bin/varnishtest/tests/e00006.vtc @@ -7,6 +7,7 @@ server s1 { rxreq expect req.url == "/foo/bar" txresp -body { + Before include After include diff --git a/varnish-cache/bin/varnishtest/tests/e00007.vtc b/varnish-cache/bin/varnishtest/tests/e00007.vtc index 332dcf38..992d5f4c 100644 --- a/varnish-cache/bin/varnishtest/tests/e00007.vtc +++ b/varnish-cache/bin/varnishtest/tests/e00007.vtc @@ -8,6 +8,7 @@ server s1 { expect req.url == "/foo/bar" txresp -hdr "Connection: close" send { + This is before the test diff --git a/varnish-cache/bin/varnishtest/tests/e00008.vtc b/varnish-cache/bin/varnishtest/tests/e00008.vtc index 99a44b9c..9ff7fe0a 100644 --- a/varnish-cache/bin/varnishtest/tests/e00008.vtc +++ b/varnish-cache/bin/varnishtest/tests/e00008.vtc @@ -5,6 +5,7 @@ test "ESI parsing errors" server s1 { rxreq txresp -body { + Before include After include diff --git a/varnish-cache/bin/varnishtest/tests/e00009.vtc b/varnish-cache/bin/varnishtest/tests/e00009.vtc new file mode 100644 index 00000000..a60b15f0 --- /dev/null +++ b/varnish-cache/bin/varnishtest/tests/e00009.vtc @@ -0,0 +1,44 @@ +# $Id: e00008.vtc 3012 2008-07-24 12:22:35Z des $ + +test "ESI binary detector" + +server s1 { + rxreq + txresp -body { + Before include + + bar + + + bar + +