Commit ea91ade1 authored by Geoff Simmons's avatar Geoff Simmons

Add an HTTP/2 test for e11.vtc.

parent 31790959
varnishtest "Make sure that PASS'ed ESI requests use GET for includes"
server s1 {
rxreq
expect req.method == POST
expect req.url == /foobar
txresp -body {<HTML>
loop 2 {
rxreq
expect req.method == POST
expect req.url == /foobar
txresp -body {<HTML>
FOO
<esi:include src="/bar"/>
}
rxreq
expect req.method == GET
txresp -hdr "Set-Cookie: Foo=bar" -body {<HTML>
rxreq
expect req.method == GET
txresp -hdr "Set-Cookie: Foo=bar" -body {<HTML>
BAR
}
}
} -start
varnish v1 -vcl+backend {
......@@ -37,5 +39,35 @@ client c1 {
rxresp
expect resp.status == 200
expect resp.bodylen == 31
expect resp.body == {<HTML>
FOO
<HTML>
BAR
}
} -run
varnish v1 -expect esi_errors == 0
## HTTP/2
varnish v1 -cliok "param.set feature +http2"
client c1 {
stream 1 {
txreq -req POST -url /foobar -body {
A debugged program is one for which you have
not yet found the conditions that make it fail.
-- Jerry Ogdin
}
rxwinup
rxresp
expect resp.status == 200
expect resp.bodylen == 31
expect resp.body == {<HTML>
FOO
<HTML>
BAR
}
} -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