Commit 3a1f6fd0 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

More coverage of vcc_dir_random.c



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3289 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent f0782bc2
......@@ -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; }
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment