[master] bd74e05 Verify outputs of varnishncsa -b when UDS addresses are in use.

Geoff Simmons geoff at uplex.de
Mon Mar 12 09:45:10 UTC 2018


commit bd74e05ac0bbe2b7c673274ab4d35162b835b71f
Author: Geoff Simmons <geoff at uplex.de>
Date:   Wed Feb 21 15:29:06 2018 +0100

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

diff --git a/bin/varnishtest/tests/u00013.vtc b/bin/varnishtest/tests/u00013.vtc
index 1d9b47d..bdfe8d1 100644
--- a/bin/varnishtest/tests/u00013.vtc
+++ b/bin/varnishtest/tests/u00013.vtc
@@ -1,9 +1,12 @@
 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.
+# The %h formatter gets its value from ReqStart or BackendStart,
+# which now may be a UDS address.
 
-server s1 {
+# For UDS backends without a .hosthdr setting, the Host header is
+# set to "localhost", which may appear in %r output.
+
+server s1 -listen "${tmpdir}/s1.sock" {
 	rxreq
 	txresp
 } -start
@@ -22,3 +25,11 @@ shell -expect "0.0.0.0" {
 shell -expect "http://localhost/" {
 	varnishncsa -n ${v1_name} -d -c -F "%r"
 }
+
+shell -expect "0.0.0.0" {
+	varnishncsa -n ${v1_name} -d -b -F "%h"
+}
+
+shell -expect "http://0.0.0.0/" {
+	varnishncsa -n ${v1_name} -d -b -F "%r"
+}


More information about the varnish-commit mailing list