[master] ec88f33 Test a particular error handling

Poul-Henning Kamp phk at FreeBSD.org
Thu May 19 10:00:09 CEST 2016


commit ec88f3380d9857a3639b7b6a57fd42f03534c87e
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu May 19 00:12:52 2016 +0000

    Test a particular error handling

diff --git a/bin/varnishtest/tests/v00020.vtc b/bin/varnishtest/tests/v00020.vtc
index 540a560..a05b7fb 100644
--- a/bin/varnishtest/tests/v00020.vtc
+++ b/bin/varnishtest/tests/v00020.vtc
@@ -283,6 +283,14 @@ varnish v1 -errvcl {Function returns VOID} {
 	}
 }
 
+varnish v1 -errvcl {'beresp.status': Not available in method 'vcl_recv'.} {
+	backend b { .host = "127.0.0.1"; }
+
+	sub vcl_recv {
+		set req.http.foo = 100 + beresp.status;
+	}
+}
+
 varnish v1 -errvcl {Names of VCL acl's cannot contain '-'} {
 	backend b { .host = "127.0.0.1"; }
 	acl foo-bar {



More information about the varnish-commit mailing list