From 66a82dc292e0c74b36f9de8e59af473ad66850f9 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 31 Jul 2008 14:59:06 +0000 Subject: [PATCH] Add a test-case for VCL purging git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3046 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- .../bin/varnishtest/tests/c00017.vtc | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 varnish-cache/bin/varnishtest/tests/c00017.vtc diff --git a/varnish-cache/bin/varnishtest/tests/c00017.vtc b/varnish-cache/bin/varnishtest/tests/c00017.vtc new file mode 100644 index 00000000..03b03a4f --- /dev/null +++ b/varnish-cache/bin/varnishtest/tests/c00017.vtc @@ -0,0 +1,30 @@ +# $Id: c00016.vtc 3012 2008-07-24 12:22:35Z des $ + +test "Test vcl purging" + +server s1 { + rxreq + txresp -body "foo" + + rxreq + txresp -body "foo" +} -start + +varnish v1 -vcl+backend { + + sub vcl_fetch { + purge_url("^/$"); + } + +} -start + +client c1 { + txreq + rxresp + expect resp.http.X-Varnish == "1001" + + txreq + rxresp + expect resp.http.X-Varnish == "1002" + +} -start -- 2.39.5