From 03500489b521e5c153cc01679535ff2bc95cdb32 Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 27 Jun 2008 12:58:46 +0000 Subject: [PATCH] test miss from pass git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2856 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- .../bin/varnishtest/tests/c00012.vtc | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 varnish-cache/bin/varnishtest/tests/c00012.vtc diff --git a/varnish-cache/bin/varnishtest/tests/c00012.vtc b/varnish-cache/bin/varnishtest/tests/c00012.vtc new file mode 100644 index 00000000..43e17b29 --- /dev/null +++ b/varnish-cache/bin/varnishtest/tests/c00012.vtc @@ -0,0 +1,33 @@ +# $Id$ + +test "Test pass from miss" + +server s1 { + rxreq + expect req.url == "/foo" + txresp -body foobar + rxreq + expect req.url == "/foo" + txresp -body foobar1 +} -start + +varnish v1 -vcl+backend { + sub vcl_miss { + pass; + } +} -start + +client c1 { + txreq -url "/foo" + rxresp + expect resp.status == 200 + expect resp.http.content-length == 6 + expect resp.http.x-varnish == "1001" + txreq -url "/foo" + rxresp + expect resp.status == 200 + expect resp.http.content-length == 7 + expect resp.http.x-varnish == "1002" +} + +client c1 -run -- 2.39.5