r2822 - trunk/varnish-cache/bin/varnishtest/tests
phk at projects.linpro.no
phk at projects.linpro.no
Thu Jun 26 12:29:07 CEST 2008
Author: phk
Date: 2008-06-26 12:29:07 +0200 (Thu, 26 Jun 2008)
New Revision: 2822
Added:
trunk/varnish-cache/bin/varnishtest/tests/e00000.vtc
trunk/varnish-cache/bin/varnishtest/tests/e00001.vtc
Log:
The first two incomplete ESI testcases
Added: trunk/varnish-cache/bin/varnishtest/tests/e00000.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/e00000.vtc (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/e00000.vtc 2008-06-26 10:29:07 UTC (rev 2822)
@@ -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
Added: trunk/varnish-cache/bin/varnishtest/tests/e00001.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/e00001.vtc (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/e00001.vtc 2008-06-26 10:29:07 UTC (rev 2822)
@@ -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
More information about the varnish-commit
mailing list