Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

Commit

Permalink
More coverage of vcc_dir_random.c
Browse files Browse the repository at this point in the history
git-svn-id: http://www.varnish-cache.org/svn/trunk@3289 d4fa192b-c00b-0410-8231-f00ffab90ce4
  • Loading branch information
bsdphk committed Oct 10, 2008
1 parent 031b57b commit 22851a2
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions bin/varnishtest/tests/v00003.vtc
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
}
}

0 comments on commit 22851a2

Please sign in to comment.