From 5611231f0d9b64f13318cb1e823e7117b7fc032d Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 7 Jul 2008 17:42:42 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishtest/tests/v00002.vtc | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 + } +} -- 2.39.5