Commit d8bc0938 authored by Geoff Simmons's avatar Geoff Simmons

Add HTTP/2 tests to pesi.vtc (currently with intermittent errors).

parent 445cfc63
...@@ -43,3 +43,73 @@ client c1 { ...@@ -43,3 +43,73 @@ client c1 {
rxresp rxresp
expect resp.body == "DATA" expect resp.body == "DATA"
} -run } -run
## HTTP/2
varnish v1 -stop
barrier b2 cond 2
server s2 {
rxreq
txresp -body {<esi:include src="someurl"/>}
} -start
server s3 {
rxreq
txresp -body {<esi:include src="otherurl"/>}
} -start
server s4 {
rxreq
barrier b2 sync
delay 1
txresp -body {DATA}
} -start
varnish v2 -arg "-p debug=+waitinglist -p feature=+http2" -vcl+backend {
import ${vmod_pesi};
sub vcl_backend_fetch {
if (bereq.url == "/") {
set bereq.backend = s2;
}
elsif (bereq.url == "someurl") {
set bereq.backend = s3;
}
else {
set bereq.backend = s4;
}
}
sub vcl_backend_response {
set beresp.do_esi = true;
}
sub vcl_deliver {
pesi.activate();
}
} -start
client c1 -connect "${v2_sock}" {
stream 1 {
txreq
rxresp
expect resp.status == 200
expect resp.body == "DATA"
} -start
stream 3 {
txreq
barrier b2 sync
rxresp
expect resp.status == 200
expect resp.body == "DATA"
} -run
stream 5 {
txreq
rxresp
expect resp.status == 200
expect resp.body == "DATA"
} -run
stream 1 -wait
} -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