r3551 - branches/2.0/varnish-cache/bin/varnishtest/tests
tfheen at projects.linpro.no
tfheen at projects.linpro.no
Wed Jan 28 13:06:57 CET 2009
Author: tfheen
Date: 2009-01-28 13:06:57 +0100 (Wed, 28 Jan 2009)
New Revision: 3551
Added:
branches/2.0/varnish-cache/bin/varnishtest/tests/r00365.vtc
Log:
Merge r3387:
Regression test case for ticket 365: restart in hit.
Copied: branches/2.0/varnish-cache/bin/varnishtest/tests/r00365.vtc (from rev 3387, trunk/varnish-cache/bin/varnishtest/tests/r00365.vtc)
===================================================================
--- branches/2.0/varnish-cache/bin/varnishtest/tests/r00365.vtc (rev 0)
+++ branches/2.0/varnish-cache/bin/varnishtest/tests/r00365.vtc 2009-01-28 12:06:57 UTC (rev 3551)
@@ -0,0 +1,31 @@
+# $Id$
+
+test "Test restarts in vcl_hit"
+
+server s1 {
+ rxreq
+ expect req.url == "/foo"
+ txresp -status 200 -body "1"
+ rxreq
+ expect req.url == "/foo"
+ txresp -status 200 -body "22"
+} -start
+
+varnish v1 -vcl+backend {
+ sub vcl_hit {
+ set obj.cacheable = false;
+ restart;
+ }
+} -start
+
+client c1 {
+ txreq -url "/foo"
+ rxresp
+ expect resp.status == 200
+ expect resp.bodylen == 1
+
+ txreq -url "/foo"
+ rxresp
+ expect resp.status == 200
+ expect resp.bodylen == 2
+} -run
More information about the varnish-commit
mailing list