From: phk Date: Mon, 7 Jul 2008 17:42:42 +0000 (+0000) Subject: Add a test-case for backend reference errors. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5611231f0d9b64f13318cb1e823e7117b7fc032d;p=varnish Add a test-case for backend reference errors. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2884 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/tests/v00002.vtc b/varnish-cache/bin/varnishtest/tests/v00002.vtc index f6821af1..17fc064f 100644 --- a/varnish-cache/bin/varnishtest/tests/v00002.vtc +++ b/varnish-cache/bin/varnishtest/tests/v00002.vtc @@ -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 + } +}