From: phk Date: Thu, 26 Jun 2008 10:29:07 +0000 (+0000) Subject: The first two incomplete ESI testcases X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ea45eb92914e18b631d0570105fbd5e4eb77b59;p=varnish The first two incomplete ESI testcases git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2822 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/tests/e00000.vtc b/varnish-cache/bin/varnishtest/tests/e00000.vtc new file mode 100644 index 00000000..4b7b1c91 --- /dev/null +++ b/varnish-cache/bin/varnishtest/tests/e00000.vtc @@ -0,0 +1,26 @@ +# $Id$ + +test "ESI test with no ESI content" + + +server s1 { + rxreq + txresp -body { + -This is a test: Hello world + } +} -start + +varnish v1 -vcl+backend { + sub vcl_fetch { + esi; + } +} -start + +client c1 { + txreq + rxresp + expect resp.status == 200 + expect resp.http.content-length == 33 +} + +client c1 -run diff --git a/varnish-cache/bin/varnishtest/tests/e00001.vtc b/varnish-cache/bin/varnishtest/tests/e00001.vtc new file mode 100644 index 00000000..517fb9a2 --- /dev/null +++ b/varnish-cache/bin/varnishtest/tests/e00001.vtc @@ -0,0 +1,28 @@ +# $Id$ + +test "ESI:remove" + + +server s1 { + rxreq + txresp -body { + + This is a test: Unseen University + + This is a test: Hello world + } +} -start + +varnish v1 -vcl+backend { + sub vcl_fetch { + esi; + } +} -start + +client c1 { + txreq + rxresp + expect resp.status == 200 +} + +client c1 -run