[master] 0def0b6 Verify outputs of varnishncsa -c when UDS addresses are in use.

Geoff Simmons geoff at uplex.de
Thu Feb 22 09:23:10 UTC 2018


commit 0def0b6aaf99b70ddf852bd2eb14b14685d8bcf0
Author: Geoff Simmons <geoff at uplex.de>
Date:   Wed Feb 21 15:26:57 2018 +0100

    Verify outputs of varnishncsa -c when UDS addresses are in use.

diff --git a/bin/varnishtest/tests/u00013.vtc b/bin/varnishtest/tests/u00013.vtc
new file mode 100644
index 0000000..1d9b47d
--- /dev/null
+++ b/bin/varnishtest/tests/u00013.vtc
@@ -0,0 +1,24 @@
+varnishtest "varnishncsa outputs when UDS addresses are in use"
+
+# The -c %h formatter gets its value from ReqStart, which now may be
+# 0.0.0.0 for a UDS address.
+
+server s1 {
+	rxreq
+	txresp
+} -start
+
+varnish v1 -arg "-a ${tmpdir}/v1.sock" -vcl+backend {} -start
+
+client c1 -connect "${tmpdir}/v1.sock" {
+	txreq
+	rxresp
+} -run
+
+shell -expect "0.0.0.0" {
+	varnishncsa -n ${v1_name} -d -c -F "%h"
+}
+
+shell -expect "http://localhost/" {
+	varnishncsa -n ${v1_name} -d -c -F "%r"
+}


More information about the varnish-commit mailing list