r3583 - branches/2.0/varnish-cache/bin/varnishtest/tests

tfheen at projects.linpro.no tfheen at projects.linpro.no
Thu Feb 5 10:03:41 CET 2009


Author: tfheen
Date: 2009-02-05 10:03:40 +0100 (Thu, 05 Feb 2009)
New Revision: 3583

Modified:
   branches/2.0/varnish-cache/bin/varnishtest/tests/c00019.vtc
Log:
Merge r3332: Add a bit more coverage to this test.



Modified: branches/2.0/varnish-cache/bin/varnishtest/tests/c00019.vtc
===================================================================
--- branches/2.0/varnish-cache/bin/varnishtest/tests/c00019.vtc	2009-02-05 08:59:22 UTC (rev 3582)
+++ branches/2.0/varnish-cache/bin/varnishtest/tests/c00019.vtc	2009-02-05 09:03:40 UTC (rev 3583)
@@ -56,16 +56,17 @@
 } -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_re_test == 2
 varnish v1 -cliok "purge.list"
 
+# Test a bogus regexp
+
+varnish v1 -clierr 106 "purge.url [[["



More information about the varnish-commit mailing list