[4.0] abe6218 Reinstate this testcase, but make the servers failure to deliver non-fatal.
Lasse Karstensen
lkarsten at varnish-software.com
Mon Sep 22 16:38:25 CEST 2014
commit abe621845787c100e90358b138e8600e48aaaaf5
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Sep 1 08:09:46 2014 +0000
Reinstate this testcase, but make the servers failure to deliver
non-fatal.
Fixes: #1414
diff --git a/bin/varnishtest/tests.disabled/r01391.vtc b/bin/varnishtest/tests.disabled/r01391.vtc
deleted file mode 100644
index 4b98fda..0000000
--- a/bin/varnishtest/tests.disabled/r01391.vtc
+++ /dev/null
@@ -1,39 +0,0 @@
-varnishtest "client abandoning hit-for-pass"
-
-
-server s1 {
- rxreq
- txresp -nolen -hdr "Transfer-Encoding: chunked" -hdr "Set-Cookie: foo=bar"
- chunked "foo"
- sema r1 sync 2
- chunked "bar"
- delay .1
- chunkedlen 64
- delay .1
- chunkedlen 64
- chunkedlen 0
-} -start
-
-varnish v1 -vcl+backend {
-} -start
-
-
-client c1 {
- txreq
- rxhdrs
- rxchunk
- sema r1 sync 2
-} -run
-
-delay 2
-
-server s1 {
- rxreq
- txresp
-} -start
-
-client c1 {
- txreq
- rxresp
- expect resp.status == 200
-} -run
diff --git a/bin/varnishtest/tests/r01391.vtc b/bin/varnishtest/tests/r01391.vtc
new file mode 100644
index 0000000..3858558
--- /dev/null
+++ b/bin/varnishtest/tests/r01391.vtc
@@ -0,0 +1,40 @@
+varnishtest "client abandoning hit-for-pass"
+
+
+server s1 {
+ non-fatal
+ rxreq
+ txresp -nolen -hdr "Transfer-Encoding: chunked" -hdr "Set-Cookie: foo=bar"
+ chunked "foo"
+ sema r1 sync 2
+ chunked "bar"
+ delay .1
+ chunkedlen 64
+ delay .1
+ chunkedlen 64
+ chunkedlen 0
+} -start
+
+varnish v1 -vcl+backend {
+} -start
+
+
+client c1 {
+ txreq
+ rxresphdrs
+ rxchunk
+ sema r1 sync 2
+} -run
+
+delay 2
+
+server s1 {
+ rxreq
+ txresp
+} -start
+
+client c1 {
+ txreq
+ rxresp
+ expect resp.status == 200
+} -run
More information about the varnish-commit
mailing list