Commit c964189d authored by Geoff Simmons's avatar Geoff Simmons

Add HTTP/2 tests to e09.vtc.

parent 0c3bd687
varnishtest "ESI binary detector" varnishtest "ESI binary detector"
server s1 { server s1 {
rxreq loop 4 {
txresp -body { rxreq
txresp -body {
Before include Before include
<esi:remove> <esi:remove>
bar bar
</esi:remove> </esi:remove>
} }
rxreq
txresp -body {
Before include
<esi:remove>
bar
</esi:remove>
} }
} -start } -start
...@@ -38,6 +33,12 @@ client c1 { ...@@ -38,6 +33,12 @@ client c1 {
rxresp rxresp
expect resp.status == 200 expect resp.status == 200
expect resp.bodylen == 57 expect resp.bodylen == 57
expect resp.body == {
Before include
<esi:remove>
bar
</esi:remove>
}
} -run } -run
logexpect l1 -wait logexpect l1 -wait
...@@ -50,5 +51,43 @@ client c1 { ...@@ -50,5 +51,43 @@ client c1 {
expect resp.status == 200 expect resp.status == 200
expect resp.bodylen == 22 expect resp.bodylen == 22
expect resp.http.transfer-encoding == "chunked" expect resp.http.transfer-encoding == "chunked"
expect resp.body == {
Before include
}
} -run } -run
varnish v1 -expect esi_errors == 0 varnish v1 -expect esi_errors == 0
## HTTP/2
varnish v1 -cliok "param.set feature +http2,-esi_disable_xml_check"
client c1 {
stream 1 {
txreq -url foo
rxresp
expect resp.status == 200
expect resp.bodylen == 57
expect resp.body == {
Before include
<esi:remove>
bar
</esi:remove>
}
} -run
} -run
varnish v1 -cli "param.set feature +esi_disable_xml_check"
client c1 {
stream 1 {
txreq -url baz
rxresp
expect resp.status == 200
expect resp.bodylen == 22
expect resp.body == {
Before include
}
} -run
} -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