r2830 - trunk/varnish-cache/bin/varnishtest/tests
phk at projects.linpro.no
phk at projects.linpro.no
Thu Jun 26 13:36:46 CEST 2008
Author: phk
Date: 2008-06-26 13:36:46 +0200 (Thu, 26 Jun 2008)
New Revision: 2830
Added:
trunk/varnish-cache/bin/varnishtest/tests/c00007.vtc
Log:
Test banning a hash
Added: trunk/varnish-cache/bin/varnishtest/tests/c00007.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/c00007.vtc (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/c00007.vtc 2008-06-26 11:36:46 UTC (rev 2830)
@@ -0,0 +1,34 @@
+# $Id$
+
+test "Test banning a hash"
+
+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.hash 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