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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2009-04-27 08:12:28 UTC
  • mfrom: (0.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090427081228-m3puwxp393j51qwj
Tags: 2.0.4-1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# $Id$
 
2
 
 
3
test "noidx"
 
4
 
 
5
server s1 {
 
6
        rxreq
 
7
        expect req.url == "/foo"
 
8
        txresp -hdr "Connection: close"
 
9
        send {
 
10
<H>
 
11
FOO{
 
12
<esi:include src="/bar"/>
 
13
}FOO
 
14
<!-- blablablabablablablablablablablablabla >
 
15
blablablablab -->
 
16
The end.
 
17
}
 
18
 
 
19
} -start
 
20
 
 
21
server s2 -listen 127.0.0.1:9082 {
 
22
        rxreq
 
23
        expect req.url == "/bar"
 
24
        txresp -body "bar"
 
25
} -start
 
26
 
 
27
varnish v1 -vcl+backend {
 
28
        sub vcl_recv {
 
29
                if (req.url == "/foo") {
 
30
                        set req.backend = s1;
 
31
                } else {
 
32
                        set req.backend = s2;
 
33
                }
 
34
        }
 
35
 
 
36
        sub vcl_fetch {
 
37
                esi;
 
38
        }
 
39
} -start
 
40
 
 
41
varnish v1 -cliok "param.set esi_syntax 4"
 
42
varnish v1 -cliok "param.set diag_bitmap 0x10000"
 
43
varnish v1 -cliok "debug.fragfetch 32"
 
44
 
 
45
client c1 {
 
46
        txreq -url /foo
 
47
        rxresp
 
48
} -run