source: bin/varnishtest/tests/p00002.vtc @ 8244c4

Revision 8244c4, 763 bytes checked in by Poul-Henning Kamp <phk@…>, 4 years ago (diff)

Another ban-lurker-hater.

git-svn-id:  http://www.varnish-cache.org/svn/trunk/varnish-cache@4752 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        -arg "-pban_lurker_sleep=0" \
15        -storage "-spersistent,${tmpdir}/_.per1,10m" \
16        -storage "-spersistent,${tmpdir}/_.per2,10m" \
17        -vcl+backend { } -start
18
19client c1 {
20        txreq -url "/"
21        rxresp
22        expect resp.status == 200
23        expect resp.http.X-Varnish == "1001"
24        expect resp.http.foo == "foo"
25} -run
26
27varnish v1 -cliok "purge req.url == / && req.http.jam != session"
28varnish v1 -stop
29server s1 -wait
30
31server s1 {
32        rxreq
33        txresp -hdr "Foo: bar"
34} -start
35
36varnish v1 -start
37
38varnish v1 -cliok purge.list
39
40# Count of 3 here, because two "magic" bans are also there"
41varnish v1 -expect n_purge == 3
Note: See TracBrowser for help on using the repository browser.