From: phk Date: Fri, 10 Oct 2008 21:57:34 +0000 (+0000) Subject: More coverage of vcc_dir_random.c X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aef0060e95bd719bd3103a7317b7e85ed15bd519;p=varnish More coverage of vcc_dir_random.c git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3289 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/tests/v00003.vtc b/varnish-cache/bin/varnishtest/tests/v00003.vtc index 706f160c..0104584e 100644 --- a/varnish-cache/bin/varnishtest/tests/v00003.vtc +++ b/varnish-cache/bin/varnishtest/tests/v00003.vtc @@ -29,3 +29,33 @@ varnish v1 -badvcl { { .backend = {.host = "127.0.0.1";} .weight = k; } } } + +# invalid weight +varnish v1 -badvcl { + director r1 random { + { .backend = {.host = "127.0.0.1";} .weight = 0; } + } +} + +# retries spec +varnish v1 -vcl { + director r1 random { + .retries = 3; + { .backend = {.host = "127.0.0.1";} .weight = 1; } + } +} + +varnish v1 -badvcl { + director r1 random { + .foobar = 3; + { .backend = {.host = "127.0.0.1";} .weight = 1; } + } +} + +varnish v1 -badvcl { + director r1 random { + .retries = x; + { .backend = {.host = "127.0.0.1";} .weight = 1; } + } +} +