[experimental-ims] 029e95a Test case for #972
Geoff Simmons
geoff at varnish-cache.org
Wed Aug 31 16:00:22 CEST 2011
commit 029e95a7afcb30a76d9908fc952b0b16b24fd8b7
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Wed Aug 10 13:18:36 2011 +0000
Test case for #972
Written by: Martin
diff --git a/bin/varnishtest/tests/r00972.vtc b/bin/varnishtest/tests/r00972.vtc
new file mode 100644
index 0000000..ed3a916
--- /dev/null
+++ b/bin/varnishtest/tests/r00972.vtc
@@ -0,0 +1,21 @@
+varnishtest "Test conditional delivery and do_stream"
+
+server s1 {
+ rxreq
+ txresp -hdr "ETag: foo" -body "11111\n"
+} -start
+
+varnish v1 -vcl+backend {
+ sub vcl_fetch {
+ set beresp.do_stream = true;
+ }
+} -start
+
+client c1 {
+ txreq -hdr "If-None-Match: foo"
+ rxresp
+ expect resp.status == 304
+ expect resp.http.etag == "foo"
+ expect resp.bodylen == 0
+} -run
+
More information about the varnish-commit
mailing list