From: phk Date: Thu, 26 Jun 2008 11:36:07 +0000 (+0000) Subject: Test banning a URL X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edbb4bb1e239412f0921ae795d87a7a1a473bbdf;p=varnish Test banning a URL git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2829 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/tests/c00006.vtc b/varnish-cache/bin/varnishtest/tests/c00006.vtc new file mode 100644 index 00000000..97d7a27f --- /dev/null +++ b/varnish-cache/bin/varnishtest/tests/c00006.vtc @@ -0,0 +1,34 @@ +# $Id$ + +test "Test banning a url" + +server s1 { + rxreq + expect req.url == "/foo" + txresp -body "1111\n" + rxreq + expect req.url == "/foo" + txresp -body "11111\n" +} -start + +varnish v1 -vcl+backend { } -start + +client c1 { + txreq -url "/foo" + rxresp + expect resp.status == 200 + expect resp.http.content-length == 5 +} + +client c1 -run + +varnish v1 -cli "purge.url foo" + +client c1 { + txreq -url "/foo" + rxresp + expect resp.status == 200 + expect resp.http.content-length == 6 +} + +client c1 -run