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

phk at projects.linpro.no phk at projects.linpro.no
Thu Jul 10 21:59:56 CEST 2008


Author: phk
Date: 2008-07-10 21:59:56 +0200 (Thu, 10 Jul 2008)
New Revision: 2921

Modified:
   trunk/varnish-cache/bin/varnishtest/tests/b00014.vtc
Log:
Test the vcl.load CLI command while we are at it.



Modified: trunk/varnish-cache/bin/varnishtest/tests/b00014.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/b00014.vtc	2008-07-10 19:40:17 UTC (rev 2920)
+++ trunk/varnish-cache/bin/varnishtest/tests/b00014.vtc	2008-07-10 19:59:56 UTC (rev 2921)
@@ -4,17 +4,26 @@
 
 shell "echo 'backend foo { .host = \"127.0.0.1\"; .port = \"9080\"; }' > /tmp/_b00013.vcl" 
 varnish v1 -arg "-h simple_list -f /tmp/_b00013.vcl" -start
-shell "rm -f /tmp/_b00013.vcl" 
 
 server s1 {
 	rxreq 
 	expect req.url == "/foo"
 	txresp -body "foo"
+	rxreq 
+	expect req.url == "/bar"
+	txresp -body "bar"
 } -start
 
 client c1 {
 	txreq -url /foo
 	rxresp
-}
+} -run
 
-client c1 -run
+varnish v1 -cli "vcl.load foo /tmp/_b00013.vcl" -cli "vcl.use foo"
+
+client c1 {
+	txreq -url /bar
+	rxresp
+} -run
+
+shell "rm -f /tmp/_b00013.vcl" 




More information about the varnish-commit mailing list