]> err.no Git - varnish/commitdiff
The first two incomplete ESI testcases
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 26 Jun 2008 10:29:07 +0000 (10:29 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 26 Jun 2008 10:29:07 +0000 (10:29 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2822 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/tests/e00000.vtc [new file with mode: 0644]
varnish-cache/bin/varnishtest/tests/e00001.vtc [new file with mode: 0644]

diff --git a/varnish-cache/bin/varnishtest/tests/e00000.vtc b/varnish-cache/bin/varnishtest/tests/e00000.vtc
new file mode 100644 (file)
index 0000000..4b7b1c9
--- /dev/null
@@ -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 (file)
index 0000000..517fb9a
--- /dev/null
@@ -0,0 +1,28 @@
+# $Id$
+
+test "ESI:remove"
+
+
+server s1 {
+       rxreq 
+       txresp -body {
+               <esi:remove>
+               This is a test: Unseen University
+               </esi:remove>
+               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