]> err.no Git - varnish/commitdiff
Add a test-case for backend reference errors.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 7 Jul 2008 17:42:42 +0000 (17:42 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 7 Jul 2008 17:42:42 +0000 (17:42 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2884 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/tests/v00002.vtc

index f6821af13f938840773f8104356a0bea098b5628..17fc064f248ae102017d9ad0c5df5bcd621e3830 100644 (file)
@@ -34,3 +34,13 @@ varnish v1 -badvcl {
                .connect_timeout = 1m;
        }
 }
+
+# Check backend reference by name
+varnish v1 -badvcl {
+       backend b1 { .host = "127.0.0.2"; }
+       director r1 random {
+               { .weight = 1; .backend = b1; }
+               { .weight = 1; .backend = { .host = "127.0.0.3"; } }
+               { .weight = 1; .backend = 3745; }  // Brownie points for getting the joke
+       }
+}