[master] b62cc4a Better coverage of VCL related cli

Poul-Henning Kamp phk at FreeBSD.org
Fri Nov 14 13:44:31 CET 2014


commit b62cc4a14847bfe20bea48d12cb3c87c348f5fee
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Fri Nov 14 07:49:49 2014 +0000

    Better coverage of VCL related cli

diff --git a/bin/varnishtest/tests/b00032.vtc b/bin/varnishtest/tests/b00032.vtc
index ced05bb..2ed7183 100644
--- a/bin/varnishtest/tests/b00032.vtc
+++ b/bin/varnishtest/tests/b00032.vtc
@@ -7,6 +7,24 @@ server s1 {
 	txresp
 } -start
 
-varnish v1 -vcl+backend {} -start
+varnish v1 -vcl+backend {} 
+varnish v1 -vcl+backend {} 
+
+varnish v1 -cliok vcl.list
+
+varnish v1 -cliok start
 
 varnish v1 -cliok debug.sizeof
+
+varnish v1 -cliok "vcl.use vcl1"
+
+varnish v1 -clierr 106 "vcl.discard vcl1"
+
+varnish v1 -clierr 106 "vcl.discard vcl0"
+
+varnish v1 -clierr 106 {vcl.inline vcl2 "vcl 4.0; backend foo {.host = \"127.0.0.1\";} "}
+
+varnish v1 -clierr 106 {vcl.load vcl3 ./nonexistent.vcl}
+
+varnish v1 -cliok "vcl.discard vcl2"
+



More information about the varnish-commit mailing list