From c906a70c2212e69701b2333066b94f4c5bc397e9 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 10 Jul 2008 21:51:19 +0000 Subject: [PATCH] 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 --- .../bin/varnishtest/tests/v00004.vtc | 37 ++++++++++--------- 1 file changed, 20 insertions(+), 17 deletions(-) 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 -- 2.39.5