[master] ce3c13b Add a test case for #2429

Martin Blix Grydeland martin at varnish-software.com
Tue Nov 14 10:24:05 UTC 2017


commit ce3c13b5f43ff76e8f6b9f11141cb8a143546b7b
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Tue Nov 14 11:23:15 2017 +0100

    Add a test case for #2429

diff --git a/bin/varnishtest/tests/r02429.vtc b/bin/varnishtest/tests/r02429.vtc
new file mode 100644
index 0000000..02c8450
--- /dev/null
+++ b/bin/varnishtest/tests/r02429.vtc
@@ -0,0 +1,20 @@
+varnishtest "#2429 file stevedore error buffer regression test"
+
+server s1 {
+	accept
+} -start
+
+varnish v1 -arg "-s Transient=file,${tmpdir}/_.file,1m" -vcl+backend {
+	sub vcl_backend_error {
+		synthetic("foo");
+		return (deliver);
+	}
+} -start
+
+client c1 {
+	txreq
+	rxresp
+	expect resp.status == 503
+	expect resp.http.content-length == 3
+	expect resp.body == "foo"
+} -run


More information about the varnish-commit mailing list