From 26b066731b9952272f2aa409a01217e0986cb7de Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 3 Feb 2009 21:49:47 +0000 Subject: [PATCH] Regression testcase for #433 git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3576 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- .../bin/varnishtest/tests/r00433.vcl | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 varnish-cache/bin/varnishtest/tests/r00433.vcl diff --git a/varnish-cache/bin/varnishtest/tests/r00433.vcl b/varnish-cache/bin/varnishtest/tests/r00433.vcl new file mode 100644 index 00000000..63e76d97 --- /dev/null +++ b/varnish-cache/bin/varnishtest/tests/r00433.vcl @@ -0,0 +1,48 @@ +# $Id$ + +test "noidx" + +server s1 { + rxreq + expect req.url == "/foo" + txresp -hdr "Connection: close" + send { + +FOO{ + +}FOO + +The end. +} + +} -start + +server s2 -listen 127.0.0.1:9082 { + rxreq + expect req.url == "/bar" + txresp -body "bar" +} -start + +varnish v1 -vcl+backend { + sub vcl_recv { + if (req.url == "/foo") { + set req.backend = s1; + } else { + set req.backend = s2; + } + } + + sub vcl_fetch { + esi; + } +} -start + +varnish v1 -cliok "param.set esi_syntax 4" +varnish v1 -cliok "param.set diag_bitmap 0x10000" +varnish v1 -cliok "debug.fragfetch 32" + +client c1 { + txreq -url /foo + rxresp +} -run -- 2.39.5