From: Tollef Fog Heen Date: Sun, 16 Nov 2008 18:52:24 +0000 (+0100) Subject: Add test case for vcl.reload X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=621b0e80b8298c527876bc07e2e1d8b983085fcb;p=varnish Add test case for vcl.reload --- 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