From 621b0e80b8298c527876bc07e2e1d8b983085fcb Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Sun, 16 Nov 2008 19:52:24 +0100 Subject: [PATCH] Add test case for vcl.reload --- varnish-cache/bin/varnishtest/tests/c00023.vtc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 varnish-cache/bin/varnishtest/tests/c00023.vtc diff --git a/varnish-cache/bin/varnishtest/tests/c00023.vtc b/varnish-cache/bin/varnishtest/tests/c00023.vtc new file mode 100644 index 00000000..058e4928 --- /dev/null +++ b/varnish-cache/bin/varnishtest/tests/c00023.vtc @@ -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 -- 2.39.5