Commit c04aa1df authored by Geoff Simmons's avatar Geoff Simmons

Add HTTP/2 tests to e28.vtc.

parent 5628b347
...@@ -142,3 +142,125 @@ client c1 { ...@@ -142,3 +142,125 @@ client c1 {
expect resp.body == "fooqux" expect resp.body == "fooqux"
expect resp.http.Vary == "fooqux, Accept-Encoding" expect resp.http.Vary == "fooqux, Accept-Encoding"
} -run } -run
## HTTP/2
varnish v1 -cliok "param.set feature +http2"
## See comments in e23.vtc about limitations using vtc to test
## gzipped H2 responses.
client c1 {
stream 1 {
txreq -url /foo
rxresp
expect resp.status == 200
expect resp.body == "foo"
expect resp.http.Vary == <undef>
} -run
stream 3 {
txreq -url /foo -hdr accept-encoding gzip
rxresp
expect resp.status == 200
expect resp.body == "foo"
expect resp.http.Vary == <undef>
} -run
stream 5 {
txreq -url /bar
rxresp
expect resp.status == 200
expect resp.body == "bar"
expect resp.http.Vary == "Accept-Encoding"
} -run
stream 7 {
txreq -url /bar -hdr accept-encoding gzip
rxresp
expect resp.status == 200
expect resp.bodylen == 34
expect resp.http.Vary == "Accept-Encoding"
} -run
stream 9 {
txreq -url /baz
rxresp
expect resp.status == 200
expect resp.body == "baz"
expect resp.http.Vary == "Accept-Encoding"
} -run
stream 11 {
txreq -url /baz -hdr accept-encoding gzip
rxresp
expect resp.status == 200
expect resp.bodylen == 34
expect resp.http.Vary == "Accept-Encoding"
} -run
stream 13 {
txreq -url /qux
rxresp
expect resp.status == 200
expect resp.body == "qux"
expect resp.http.Vary == "qux, Accept-Encoding"
} -run
stream 15 {
txreq -url /qux -hdr accept-encoding gzip
rxresp
expect resp.status == 200
expect resp.bodylen == 34
expect resp.http.Vary == "qux, Accept-Encoding"
} -run
stream 17 {
txreq -url /fubar
rxresp
expect resp.status == 200
expect resp.body == "fubar"
expect resp.http.Vary == "fubar, Accept-Encoding"
} -run
stream 19 {
txreq -url /fubar -hdr accept-encoding gzip
rxresp
expect resp.status == 200
expect resp.bodylen == 36
expect resp.http.Vary == "fubar, Accept-Encoding"
} -run
stream 21 {
txreq -url /foobar
rxresp
expect resp.status == 200
expect resp.body == "foobar"
expect resp.http.Vary == <undef>
} -run
stream 23 {
txreq -url /foobar -hdr accept-encoding gzip
rxresp
expect resp.status == 200
expect resp.body == "foobar"
expect resp.http.Vary == <undef>
} -run
stream 25 {
txreq -url /foobaz
rxresp
expect resp.status == 200
expect resp.body == "foobaz"
expect resp.http.Vary == "foobaz"
} -run
stream 27 {
txreq -url /foobaz -hdr accept-encoding gzip
rxresp
expect resp.status == 200
expect resp.body == "foobaz"
expect resp.http.Vary == "foobaz"
} -run
stream 29 {
txreq -url /fooqux
rxresp
expect resp.status == 200
expect resp.body == "fooqux"
expect resp.http.Vary == "fooqux, Accept-Encoding"
} -run
stream 31 {
txreq -url /fooqux -hdr accept-encoding gzip
rxresp
expect resp.status == 200
expect resp.body == "fooqux"
expect resp.http.Vary == "fooqux, Accept-Encoding"
} -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