]> err.no Git - varnish/commitdiff
Add a bit more coverage to this test.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 20 Oct 2008 18:01:48 +0000 (18:01 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 20 Oct 2008 18:01:48 +0000 (18:01 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3332 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/tests/c00019.vtc

index 87c2bd674aeed3059f59bd4dbdfe0cf1f41ce20c..4ec029f63930fc1cbe447cc9f1a3e8eb73a16fd8 100644 (file)
@@ -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 [[["