r3901 - trunk/varnish-cache/bin/varnishtest/tests

phk at projects.linpro.no phk at projects.linpro.no
Mon Mar 9 13:12:13 CET 2009


Author: phk
Date: 2009-03-09 13:12:13 +0100 (Mon, 09 Mar 2009)
New Revision: 3901

Added:
   trunk/varnish-cache/bin/varnishtest/tests/p0000.vtc
Log:
Add first, incomplete, test for persistence



Added: trunk/varnish-cache/bin/varnishtest/tests/p0000.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/p0000.vtc	                        (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/p0000.vtc	2009-03-09 12:12:13 UTC (rev 3901)
@@ -0,0 +1,33 @@
+# $Id$
+
+test "Test Basic persistence"
+
+server s1 {
+	rxreq 
+	txresp 
+} -start
+
+shell "rm -f /tmp/__v1/_.per"
+
+varnish v1 \
+	-arg "-spersistent,/tmp/__v1/_.per,10m" -vcl+backend { } -start 
+
+client c1 {
+	txreq -url "/"
+	rxresp
+	expect resp.status == 200
+	expect resp.http.X-Varnish == "1001"
+} -run
+
+varnish v1 -cliok stop
+
+server s1 stop
+
+varnish v1 -cliok start
+
+#client c1 {
+#	txreq -url "/"
+#	rxresp
+#	expect resp.status == 200
+#	expect resp.http.X-Varnish == "1001"
+#} -run



More information about the varnish-commit mailing list