Commit 7eb10a4f authored by Geoff Simmons's avatar Geoff Simmons

Add an HTTP/2 test for e18.vtc.

parent 5f82fe7c
varnishtest "Test XML 1.0 entity references"
server s1 {
rxreq
expect req.url == "/"
txresp -body {
loop 2 {
rxreq
expect req.url == "/"
txresp -body {
<esi:include src="&amp;"/>
<esi:include src="&lt;"/>
<esi:include src="&gt;"/>
<esi:include src="&apos;"/>
<esi:include src="&quot;"/>
}
}
} -start
server s2 {
rxreq
expect req.url == "/&"
txresp -body "1"
rxreq
expect req.url == "/&"
txresp -body "1"
} -start
server s3 {
rxreq
expect req.url == "/<"
txresp -body "22"
rxreq
expect req.url == "/<"
txresp -body "22"
} -start
server s4 {
rxreq
expect req.url == "/>"
txresp -body "333"
rxreq
expect req.url == "/>"
txresp -body "333"
} -start
server s5 {
rxreq
expect req.url == {/'}
txresp -body "4444"
rxreq
expect req.url == {/'}
txresp -body "4444"
} -start
server s6 {
rxreq
expect req.url == {/"}
txresp -body "55555"
rxreq
expect req.url == {/"}
txresp -body "55555"
} -start
varnish v1 -arg "-p thread_pool_min=100" -arg "-p debug=+syncvsl,+processors" -vcl+backend {
varnish v1 -arg "-p thread_pool_min=100" -vcl+backend {
import ${vmod_pesi};
sub vcl_recv {
......@@ -85,4 +102,31 @@ client c1 {
rxresp
expect resp.status == 200
expect resp.bodylen == 32
expect resp.body == {
1
22
333
4444
55555
}
} -run
## HTTP/2
varnish v1 -cliok "param.set feature +http2"
client c1 {
stream 1 {
txreq
rxresp
expect resp.status == 200
expect resp.bodylen == 32
expect resp.body == {
1
22
333
4444
55555
}
} -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