Commit 6c5a14df authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add testcase for creation and destruction of backends



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2896 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent e0896411
# $Id$
test "VCL: test creation/destruction of backends"
varnish v1 -vcl {
backend b1 {
.host = "127.0.0.1";
}
} -start
varnish v1 -cli vcl.list
varnish v1 -cli debug.backend
varnish v1 -vcl {
backend b1 {
.host = "127.0.0.1";
}
}
varnish v1 -cli vcl.list
varnish v1 -cli debug.backend
varnish v1 -vcl {
backend b2 {
.host = "127.0.0.1";
}
}
varnish v1 -cli vcl.list
varnish v1 -cli debug.backend
varnish v1 -cli "vcl.discard vcl1"
varnish v1 -cli vcl.list
varnish v1 -cli debug.backend
varnish v1 -cli "vcl.discard vcl2"
varnish v1 -cli vcl.list
varnish v1 -cli debug.backend
varnish v1 -vcl {
backend b2 {
.host = "127.0.0.1";
}
director r1 random {
{ .backend = { .host = "127.0.0.1"; } .weight = 1; }
{ .backend = b2 ; .weight = 1; }
}
sub vcl_recv {
set req.backend = r1;
}
}
varnish v1 -cli vcl.list
varnish v1 -cli debug.backend
varnish v1 -cli "vcl.use vcl3"
varnish v1 -cli vcl.list
varnish v1 -cli debug.backend
varnish v1 -cli "vcl.discard vcl4"
varnish v1 -cli vcl.list
varnish v1 -cli debug.backend
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