]> err.no Git - varnish/commitdiff
Add test case for vcl.reload
authorTollef Fog Heen <tfheen@err.no>
Sun, 16 Nov 2008 18:52:24 +0000 (19:52 +0100)
committerTollef Fog Heen <tfheen@err.no>
Fri, 30 Jan 2009 12:04:37 +0000 (13:04 +0100)
varnish-cache/bin/varnishtest/tests/c00023.vtc [new file with mode: 0644]

diff --git a/varnish-cache/bin/varnishtest/tests/c00023.vtc b/varnish-cache/bin/varnishtest/tests/c00023.vtc
new file mode 100644 (file)
index 0000000..058e492
--- /dev/null
@@ -0,0 +1,14 @@
+# $Id$
+
+test "Check vcl.reload"
+
+shell "echo 'backend b1 { .host = \"localhost\"; }' >/tmp/_varnishtest_c00020.vcl"
+varnish v1 -vcl {
+        backend b { .host = "127.0.0.1"; }
+}
+
+varnish v1 -cli "vcl.reload vcl1 /tmp/_varnishtest_c00020.vcl"
+varnish v1 -start
+varnish v1 -expect n_vcl_avail == 1
+varnish v1 -cli "vcl.reload vcl1 /tmp/_varnishtest_c00020.vcl"
+varnish v1 -expect n_vcl_avail == 1