[master] 3028aa3 Add the beginnings of a HPACK coverage test
Poul-Henning Kamp
phk at FreeBSD.org
Thu Sep 8 10:32:16 CEST 2016
commit 3028aa365bfa6d20e836cf1e423f1e5ddeddc6aa
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Thu Sep 8 08:31:14 2016 +0000
Add the beginnings of a HPACK coverage test
diff --git a/bin/varnishtest/tests/t02002.vtc b/bin/varnishtest/tests/t02002.vtc
new file mode 100644
index 0000000..ebb0146
--- /dev/null
+++ b/bin/varnishtest/tests/t02002.vtc
@@ -0,0 +1,37 @@
+varnishtest "HPACK coverage"
+
+server s1 {
+ rxreq
+ expect req.http.host == www.example.com
+ expect req.http.foohdr == FOOcont
+ txresp -status 500 -bodylen 10
+ rxreq
+ expect req.http.host == www.example.com
+ expect req.http.foohdr == FOOcont2
+ txresp -status 404 -bodylen 20
+} -start
+
+varnish v1 -vcl+backend {} -start
+
+varnish v1 -cliok "param.set feature +http2"
+varnish v1 -cliok "param.set debug +syncvsl"
+
+client c1 {
+ stream 7 {
+ txreq \
+ -litIdxHdr inc 1 huf "www.example.com" \
+ -idxHdr 16 \
+ -litHdr inc huf "foohdr" huf "FOOcont"
+ rxresp
+ expect resp.status == 500
+ expect resp.bodylen == 10
+ } -run
+ stream 9 {
+ txreq \
+ -idxHdr 63 \
+ -litIdxHdr never 62 plain "FOOcont2"
+ rxresp
+ expect resp.status == 404
+ expect resp.bodylen == 20
+ } -run
+} -run
More information about the varnish-commit
mailing list