From: phk Date: Mon, 20 Oct 2008 18:01:48 +0000 (+0000) Subject: Add a bit more coverage to this test. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d1a359b095f16fc0b899cb8cc155402c695ca6a;p=varnish Add a bit more coverage to this test. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3332 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/tests/c00019.vtc b/varnish-cache/bin/varnishtest/tests/c00019.vtc index 87c2bd67..4ec029f6 100644 --- a/varnish-cache/bin/varnishtest/tests/c00019.vtc +++ b/varnish-cache/bin/varnishtest/tests/c00019.vtc @@ -56,16 +56,17 @@ client c1 { } -run -# Now add another purge +# Now add another two purge, the hash should not be hit. +varnish v1 -cliok "purge.hash FOO" varnish v1 -cliok "purge.url FOO" -varnish v1 -expect n_purge_add == 4 +varnish v1 -expect n_purge_add == 5 # Enable dup removal of purges varnish v1 -cliok "param.set purge_dups on" # This should incapacitate the to previous FOO purges. varnish v1 -cliok "purge.url FOO" -varnish v1 -expect n_purge_add == 5 +varnish v1 -expect n_purge_add == 6 varnish v1 -expect n_purge_dups == 3 varnish v1 -cliok "purge.list" @@ -81,3 +82,6 @@ varnish v1 -expect n_purge_obj_test == 2 varnish v1 -expect n_purge_re_test == 2 varnish v1 -cliok "purge.list" +# Test a bogus regexp + +varnish v1 -clierr 106 "purge.url [[["