From 63e9ed7687770b8e739f8d1a7f4369a233396ba8 Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 28 Feb 2009 22:06:39 +0000 Subject: [PATCH] Update this test to not rely of a known dynamic of varnishd git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3846 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- .../bin/varnishtest/tests/v00011.vtc | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/varnish-cache/bin/varnishtest/tests/v00011.vtc b/varnish-cache/bin/varnishtest/tests/v00011.vtc index b58e73e5..ee649c50 100644 --- a/varnish-cache/bin/varnishtest/tests/v00011.vtc +++ b/varnish-cache/bin/varnishtest/tests/v00011.vtc @@ -11,9 +11,11 @@ server s1 { } -start varnish v1 -vcl+backend { - - sub vcl_fetch { - purge_url("^/$"); + sub vcl_recv { + if (req.request == "PURGE") { + purge_url("^/$"); + error 209 "foo"; + } } } -start @@ -22,9 +24,18 @@ client c1 { txreq rxresp expect resp.http.X-Varnish == "1001" +} -run - txreq +client c1 { + txreq -req "PURGE" rxresp expect resp.http.X-Varnish == "1002" + expect resp.status == 209 +} -run -} -start +client c1 { + txreq + rxresp + expect resp.http.X-Varnish == "1003" + +} -run -- 2.39.5