source: bin/varnishtest/tests/p00002.vtc @ 68a788

Revision 68a788, 732 bytes checked in by Poul-Henning Kamp <phk@…>, 4 years ago (diff)

Introduce a -storage spec, and default it -sfile,<workdir>,10m to aovid
mapping more VM than a 32bit machine can cope with, if /tmp is huge.

git-svn-id:  http://www.varnish-cache.org/svn/trunk/varnish-cache@4750 d4fa192b-c00b-0410-8231-f00ffab90ce4

  • Property mode set to 100644
Line 
1# $Id$
2
3test "Ban a persistent object"
4
5shell "rm -f ${tmpdir}/_.per[12]"
6
7server s1 {
8        rxreq
9        txresp -hdr "Foo: foo"
10} -start
11
12varnish v1 \
13        -arg "-pdiag_bitmap=0x20000" \
14        -storage "-spersistent,${tmpdir}/_.per1,10m" \
15        -storage "-spersistent,${tmpdir}/_.per2,10m" \
16        -vcl+backend { } -start
17
18client c1 {
19        txreq -url "/"
20        rxresp
21        expect resp.status == 200
22        expect resp.http.X-Varnish == "1001"
23        expect resp.http.foo == "foo"
24} -run
25
26varnish v1 -cliok "purge req.url == / && req.http.jam != session"
27varnish v1 -stop
28server s1 -wait
29
30server s1 {
31        rxreq
32        txresp -hdr "Foo: bar"
33} -start
34
35varnish v1 -start
36
37varnish v1 -cliok purge.list
38
39# Count of 3 here, because two "magic" bans are also there"
40varnish v1 -expect n_purge == 3
Note: See TracBrowser for help on using the repository browser.