From 0ea45eb92914e18b631d0570105fbd5e4eb77b59 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 26 Jun 2008 10:29:07 +0000 Subject: [PATCH] The first two incomplete ESI testcases git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2822 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- .../bin/varnishtest/tests/e00000.vtc | 26 +++++++++++++++++ .../bin/varnishtest/tests/e00001.vtc | 28 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 varnish-cache/bin/varnishtest/tests/e00000.vtc create mode 100644 varnish-cache/bin/varnishtest/tests/e00001.vtc 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 -- 2.39.5