[master] 69425d5 Reinstate this testcase, but make the servers failure to deliver non-fatal.

Poul-Henning Kamp phk at FreeBSD.org
Mon Sep 1 10:10:30 CEST 2014


commit 69425d5ec6b0c7870e0e967aa3b3c56cd4724c1c
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