From bcc0a9a6b828d64f3b01afa956f0013da6b638e7 Mon Sep 17 00:00:00 2001 From: tfheen Date: Wed, 28 Jan 2009 12:06:57 +0000 Subject: [PATCH] Merge r3387: Regression test case for ticket 365: restart in hit. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3551 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- .../bin/varnishtest/tests/r00365.vtc | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 varnish-cache/bin/varnishtest/tests/r00365.vtc diff --git a/varnish-cache/bin/varnishtest/tests/r00365.vtc b/varnish-cache/bin/varnishtest/tests/r00365.vtc new file mode 100644 index 00000000..fed9a471 --- /dev/null +++ b/varnish-cache/bin/varnishtest/tests/r00365.vtc @@ -0,0 +1,31 @@ +# $Id$ + +test "Test restarts in vcl_hit" + +server s1 { + rxreq + expect req.url == "/foo" + txresp -status 200 -body "1" + rxreq + expect req.url == "/foo" + txresp -status 200 -body "22" +} -start + +varnish v1 -vcl+backend { + sub vcl_hit { + set obj.cacheable = false; + restart; + } +} -start + +client c1 { + txreq -url "/foo" + rxresp + expect resp.status == 200 + expect resp.bodylen == 1 + + txreq -url "/foo" + rxresp + expect resp.status == 200 + expect resp.bodylen == 2 +} -run -- 2.39.5