r3046 - trunk/varnish-cache/bin/varnishtest/tests
phk at projects.linpro.no
phk at projects.linpro.no
Thu Jul 31 16:59:06 CEST 2008
Author: phk
Date: 2008-07-31 16:59:06 +0200 (Thu, 31 Jul 2008)
New Revision: 3046
Added:
trunk/varnish-cache/bin/varnishtest/tests/c00017.vtc
Log:
Add a test-case for VCL purging
Added: trunk/varnish-cache/bin/varnishtest/tests/c00017.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/c00017.vtc (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/c00017.vtc 2008-07-31 14:59:06 UTC (rev 3046)
@@ -0,0 +1,30 @@
+# $Id: c00016.vtc 3012 2008-07-24 12:22:35Z des $
+
+test "Test vcl purging"
+
+server s1 {
+ rxreq
+ txresp -body "foo"
+
+ rxreq
+ txresp -body "foo"
+} -start
+
+varnish v1 -vcl+backend {
+
+ sub vcl_fetch {
+ purge_url("^/$");
+ }
+
+} -start
+
+client c1 {
+ txreq
+ rxresp
+ expect resp.http.X-Varnish == "1001"
+
+ txreq
+ rxresp
+ expect resp.http.X-Varnish == "1002"
+
+} -start
More information about the varnish-commit
mailing list