Commit 1fc6b15c authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

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: http://www.varnish-cache.org/svn/trunk/varnish-cache@3018 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 19acd520
......@@ -6,6 +6,7 @@ test "ESI include"
server s1 {
rxreq
txresp -body {
<html>
Before include
<esi:include src="/body"/>
After include
......
......@@ -6,6 +6,7 @@ test "ESI commented include"
server s1 {
rxreq
txresp -body {
<html>
Before include
<!--esi <esi:include src="/body"/> -->
After include
......
......@@ -7,6 +7,7 @@ server s1 {
rxreq
expect req.url == "/foo/bar"
txresp -body {
<html>
Before include
<!--esi <esi:include src="body"/> -->
After include
......
......@@ -7,6 +7,7 @@ server s1 {
rxreq
expect req.url == "/foo/bar"
txresp -body {
<html>
Before include
<!--esi <esi:include src="http://bozz/body"/> -->
After include
......
......@@ -8,6 +8,7 @@ server s1 {
expect req.url == "/foo/bar"
txresp -hdr "Connection: close"
send {
<html>
This is before the test
<![CDATA[fooooooobar]]>
<esi:remove>
......
......@@ -5,6 +5,7 @@ test "ESI parsing errors"
server s1 {
rxreq
txresp -body {
<html>
Before include
<!--esi <esi:include src="/body"/> -->
After include
......
# $Id: e00008.vtc 3012 2008-07-24 12:22:35Z des $
test "ESI binary detector"
server s1 {
rxreq
txresp -body {
Before include
<esi:remove>
bar
</esi:remove>
<esi:include
}
rxreq
txresp -body {
Before include
<esi:remove>
bar
</esi:remove>
<esi:include
}
} -start
varnish v1 -vcl+backend {
sub vcl_fetch {
esi;
}
} -start
client c1 {
txreq
rxresp
expect resp.status == 200
expect resp.http.content-length == 72
} -run
varnish v1 -cli "param.set esi_syntax 1"
client c1 {
txreq -url bar
rxresp
expect resp.status == 200
expect resp.http.transfer-encoding == "chunked"
} -run
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment