[master] db01d1a Add an initial coverage test of vcl.state

Poul-Henning Kamp phk at FreeBSD.org
Mon Mar 9 11:49:35 CET 2015


commit db01d1a202d4599c6b7d97be2c334850d37267d5
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Mar 9 09:34:02 2015 +0000

    Add an initial coverage test of vcl.state

diff --git a/bin/varnishtest/tests/v00043.vcl b/bin/varnishtest/tests/v00043.vcl
new file mode 100644
index 0000000..17e9798
--- /dev/null
+++ b/bin/varnishtest/tests/v00043.vcl
@@ -0,0 +1,23 @@
+varnishtest "vcl.state coverage tests"
+
+server s1 {
+	rxreq
+	txresp
+} -start
+
+varnish v1 -vcl+backend {} -start
+varnish v1 -vcl+backend {} 
+
+varnish v1 -cliok "param.set vcl_cooldown 5"
+
+varnish v1 -cliok "vcl.list"
+varnish v1 -cliok "vcl.use vcl2"
+varnish v1 -cliok "vcl.list"
+delay 5
+varnish v1 -cliok "vcl.list"
+varnish v1 -cliok "vcl.state vcl1 warm"
+varnish v1 -cliok "vcl.list"
+varnish v1 -cliok "vcl.use vcl1"
+varnish v1 -cliok "vcl.use vcl2"
+delay 5
+varnish v1 -cliok "vcl.list"



More information about the varnish-commit mailing list