Commit 286604ce authored by Nils Goroll's avatar Nils Goroll

fix b00016.vtc

The second vcl did not actually do anything useful because the second
client would hit a cached response.
parent 9bca6f7b
varnishtest "Check naming of backends"
server s1 {
server s1 -repeat 2 -keepalive {
rxreq
txresp
} -start
varnish v1 -vcl+backend {
sub vcl_recv {
return (pass);
}
sub vcl_backend_response {
set beresp.http.X-Backend-Name = bereq.backend;
set beresp.http.X-Backend-Name = bereq.backend;
}
} -start
......@@ -28,15 +31,18 @@ varnish v1 -vcl+backend {
sub vcl_recv {
set req.backend_hint = bar.backend();
return (pass);
}
sub vcl_backend_response {
set beresp.http.X-Backend-Name = bereq.backend;
set beresp.http.X-Director-Name = bereq.backend;
set beresp.http.X-Backend-Name = beresp.backend;
}
}
client c1 {
txreq -url "/"
rxresp
expect resp.http.X-Director-Name == "bar"
expect resp.http.X-Backend-Name == "s1"
} -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