~ubuntu-branches/ubuntu/lucid/varnish/lucid-updates

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2010-03-24 13:26:08 UTC
  • mfrom: (0.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100324132608-4uzkavctn26bdwyi
Tags: 2.1.0-1
* New upstream version
* Fix small error in man/vcl.7so

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id$
 
1
# $Id: s00002.vtc 4554 2010-02-12 11:25:46Z phk $
2
2
 
3
3
test "Check grace with sick backends"
4
4
 
5
 
server s1 -listen 127.0.0.1:9080 -repeat 4 {
 
5
server s1 -repeat 4 {
6
6
        rxreq
7
7
        expect req.url == "/"
8
8
        txresp -body "hi"
10
10
 
11
11
varnish v1 -vcl {
12
12
        backend b { 
13
 
                .host = "127.0.0.1"; 
14
 
                .port = "9080"; 
 
13
                .host = "${s1_addr}"; 
 
14
                .port = "${s1_port}"; 
15
15
                .probe = { 
16
16
                        .url = "/"; 
17
17
                        .timeout = 30ms; 
22
22
                        } 
23
23
                }
24
24
        sub vcl_fetch { 
25
 
                set obj.ttl = 1s; 
26
 
                set obj.grace = 1m; 
27
 
                set obj.cacheable = true; 
 
25
                set beresp.ttl = 1s; 
 
26
                set beresp.grace = 1m; 
 
27
                set beresp.cacheable = true; 
28
28
        }
29
29
} -start
30
30