[experimental-ims] 53a842b Add test-case for #971

Geoff Simmons geoff at varnish-cache.org
Wed Aug 31 16:00:15 CEST 2011


commit 53a842bc2eee26b6cf960f91b0f3b80c81ae499a
Author: Kristian Lyngstol <kristian at bohemians.org>
Date:   Thu Aug 4 16:48:20 2011 +0200

    Add test-case for #971

diff --git a/bin/varnishtest/tests/r00971.vtc b/bin/varnishtest/tests/r00971.vtc
new file mode 100644
index 0000000..b508cd7
--- /dev/null
+++ b/bin/varnishtest/tests/r00971.vtc
@@ -0,0 +1,22 @@
+
+varnishtest "Test DNS director order"
+
+varnish v1 -vcl+backend {
+	
+	backend test {
+		.host = "192.168.0.1";
+	}
+
+	director foo dns {
+		{ .backend = { .host = "127.0.0.1";} }
+	}
+
+	sub vcl_recv {
+		set req.backend = foo;
+		if (req.http.x-aa) {
+			set req.backend = test;
+		}
+	}
+
+} -start
+



More information about the varnish-commit mailing list