From: phk Date: Thu, 10 Jul 2008 21:51:19 +0000 (+0000) Subject: Check counters to make sure the right thing happens. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c906a70c2212e69701b2333066b94f4c5bc397e9;p=varnish Check counters to make sure the right thing happens. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2932 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/tests/v00004.vtc b/varnish-cache/bin/varnishtest/tests/v00004.vtc index 4e4f7bf8..04a05ec8 100644 --- a/varnish-cache/bin/varnishtest/tests/v00004.vtc +++ b/varnish-cache/bin/varnishtest/tests/v00004.vtc @@ -6,10 +6,11 @@ varnish v1 -vcl { backend b1 { .host = "127.0.0.1"; } -} -start +} varnish v1 -cli vcl.list -varnish v1 -cli debug.backend +varnish v1 -start +varnish v1 -expect n_backend == 1 varnish v1 -vcl { backend b1 { @@ -17,8 +18,9 @@ varnish v1 -vcl { } } -varnish v1 -cli vcl.list -varnish v1 -cli debug.backend +varnish v1 -expect n_backend == 1 +varnish v1 -expect n_vcl == 2 + varnish v1 -vcl { backend b2 { @@ -26,18 +28,20 @@ varnish v1 -vcl { } } -varnish v1 -cli vcl.list -varnish v1 -cli debug.backend +varnish v1 -expect n_backend == 2 +varnish v1 -expect n_vcl == 3 + varnish v1 -cli "vcl.discard vcl1" -varnish v1 -cli vcl.list -varnish v1 -cli debug.backend +varnish v1 -expect n_backend == 2 +varnish v1 -expect n_vcl == 2 varnish v1 -cli "vcl.discard vcl2" -varnish v1 -cli vcl.list -varnish v1 -cli debug.backend +varnish v1 -expect n_backend == 1 +varnish v1 -expect n_vcl == 1 + varnish v1 -vcl { backend b2 { @@ -52,16 +56,15 @@ varnish v1 -vcl { } } -varnish v1 -cli vcl.list -varnish v1 -cli debug.backend +varnish v1 -expect n_backend == 2 +varnish v1 -expect n_vcl == 2 varnish v1 -cli "vcl.use vcl3" -varnish v1 -cli vcl.list -varnish v1 -cli debug.backend +varnish v1 -expect n_backend == 2 +varnish v1 -expect n_vcl == 2 varnish v1 -cli "vcl.discard vcl4" -varnish v1 -cli vcl.list -varnish v1 -cli debug.backend - +varnish v1 -expect n_backend == 1 +varnish v1 -expect n_vcl == 1