source: bin/varnishtest/tests.disabled/r00977.vtc @ 3dffeb

Revision 3dffeb, 491 bytes checked in by Kristian Lyngstol <kristian@…>, 3 years ago (diff)

Add (disabled) test-case for #977

  • Property mode set to 100644
Line 
1
2varnishtest "Test proper fallbacks of client director"
3
4server s1 -repeat 1 {
5        rxreq
6        txresp -status 200
7} -start
8
9varnish v1 -vcl+backend {
10        director foo client{
11                .retries = 5;
12                { .backend = { .host = "${bad_ip}"; .port = "9090"; } .weight = 1; }
13                { .backend = s1; .weight = 1;}
14        }
15        sub vcl_recv {
16                set req.backend = foo;
17                set client.identity = "44.452";
18                return (pass);
19        }
20} -start
21
22client c1 {
23        txreq
24        rxresp
25        expect resp.status == 200
26} -run
27
28varnish v1 -expect backend_fail == 1
Note: See TracBrowser for help on using the repository browser.