]> err.no Git - varnish/commitdiff
More coverage of vcc_dir_random.c
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 10 Oct 2008 21:57:34 +0000 (21:57 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 10 Oct 2008 21:57:34 +0000 (21:57 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3289 d4fa192b-c00b-0410-8231-f00ffab90ce4

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

index 706f160c6caa9cf30535f57a26c31e7a3066b780..0104584e335093c8d5f86a24f8682cceb3dda143 100644 (file)
@@ -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; }
+       }
+}
+