[master] 0de7f7f Test the vcl4.1 restrictions on UDS

Poul-Henning Kamp phk at FreeBSD.org
Wed Mar 14 11:01:11 UTC 2018


commit 0de7f7f6e4feae3df57ea05909cb05e0fff35bde
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Mar 14 10:56:31 2018 +0000

    Test the vcl4.1 restrictions on UDS

diff --git a/bin/varnishtest/tests/a00019.vtc b/bin/varnishtest/tests/a00019.vtc
index 864ab21..a6d1317 100644
--- a/bin/varnishtest/tests/a00019.vtc
+++ b/bin/varnishtest/tests/a00019.vtc
@@ -2,6 +2,14 @@ varnishtest "vtc v_* macros when the listen address is UDS"
 
 varnish v1 -arg "-a ${tmpdir}/v1.sock -b '${bad_backend}'" -start
 
+varnish v1 -syntax 4.0 -errvcl {Compiled VCL version (4.0) not supported.} {
+	backend default { .host = "${bad_ip}"; }
+}
+
+varnish v1 -syntax 4.0 -errvcl \
+	{Unix socket backends only supported in VCL4.1 and higher.} \
+	{backend default { .path = "${tmpdir}/v1.sock"; }}
+
 varnish v2 -vcl {
 	backend default { .host = "${bad_ip}"; }
 


More information about the varnish-commit mailing list