r2829 - trunk/varnish-cache/bin/varnishtest/tests
phk at projects.linpro.no
phk at projects.linpro.no
Thu Jun 26 13:36:07 CEST 2008
Author: phk
Date: 2008-06-26 13:36:07 +0200 (Thu, 26 Jun 2008)
New Revision: 2829
Added:
trunk/varnish-cache/bin/varnishtest/tests/c00006.vtc
Log:
Test banning a URL
Added: trunk/varnish-cache/bin/varnishtest/tests/c00006.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/c00006.vtc (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/c00006.vtc 2008-06-26 11:36:07 UTC (rev 2829)
@@ -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
More information about the varnish-commit
mailing list