Commit fd141417 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add testcase to check that backends named "default" get used as such.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4983 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 3ecacd9d
# $Id$
test "Check that backend named 'default' is the default"
server s1 {
rxreq
txresp -bodylen 25
} -start
server s2 {
rxreq
txresp -bodylen 52
} -start
varnish v1 -vcl {
backend s1 {
.host = "${s1_addr}";
.port = "${s1_port}";
}
backend default {
.host = "${s2_addr}";
.port = "${s2_port}";
}
sub vcl_recv {
if (req.url != req.url) {
set req.backend = s1;
}
}
} -start
client c1 {
txreq
rxresp
expect resp.bodylen == 52
} -run
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