~ubuntu-branches/ubuntu/saucy/varnish/saucy

« back to all changes in this revision

Viewing changes to bin/varnishtest/tests/c00035.vtc

  • Committer: Bazaar Package Importer
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2011-03-21 10:16:07 UTC
  • mfrom: (24.1.2 experimental)
  • Revision ID: james.westby@ubuntu.com-20110321101607-528fzl583fqanas5
Tags: 2.1.5-2
ReleaseĀ forĀ unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# $Id$
 
2
 
 
3
test "Dropping polling of a backend"
 
4
 
 
5
server s1 -repeat 1 {
 
6
        rxreq
 
7
        txresp
 
8
} -start
 
9
 
 
10
varnish v1 -vcl {
 
11
        backend s1 {
 
12
                .host = "${s1_addr}";
 
13
                .port = "${s1_port}";
 
14
                .probe = {
 
15
                        .window = 8;
 
16
                        .initial = 7;
 
17
                        .threshold = 8;
 
18
                        .interval = 0.1s;
 
19
                }
 
20
        }
 
21
} -start
 
22
 
 
23
delay 1
 
24
 
 
25
varnish v1 -vcl {
 
26
        backend s1 {
 
27
                .host = "${s1_addr}";
 
28
                .port = "${s1_port}";
 
29
        }
 
30
} -cliok "vcl.use vcl2" -cliok "vcl.discard vcl1"
 
31
 
 
32
delay 1
 
33
 
 
34
varnish v1 -cliok "vcl.list"
 
35
varnish v1 -cliok "debug.health"
 
36
 
 
37
server s1 {
 
38
        rxreq
 
39
        expect req.url == /foo
 
40
        txresp -bodylen 4
 
41
} -start
 
42
 
 
43
client c1 {
 
44
        txreq -url /foo
 
45
        rxresp
 
46
        expect resp.status == 200
 
47
        expect resp.bodylen == 4
 
48
} -run