r2748 - trunk/varnish-cache/bin/varnishtest/tests
phk at projects.linpro.no
phk at projects.linpro.no
Fri Jun 20 17:34:15 CEST 2008
Author: phk
Date: 2008-06-20 17:34:14 +0200 (Fri, 20 Jun 2008)
New Revision: 2748
Added:
trunk/varnish-cache/bin/varnishtest/tests/a00007.vtc
Modified:
trunk/varnish-cache/bin/varnishtest/tests/a00006.vtc
Log:
Add a TCP reuse testcase, and polish the a00006 case a bit
Modified: trunk/varnish-cache/bin/varnishtest/tests/a00006.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/a00006.vtc 2008-06-20 15:26:02 UTC (rev 2747)
+++ trunk/varnish-cache/bin/varnishtest/tests/a00006.vtc 2008-06-20 15:34:14 UTC (rev 2748)
@@ -1,6 +1,6 @@
# $Id$
-test "dual shared client HTTP transactions"
+test "bidirectional message bodies"
server s1 -listen :9080 {
rxreq
@@ -26,12 +26,4 @@
client c1 -run
-client c1 -connect localhost:9081 {
- txreq
- rxresp
- expect resp.proto == HTTP/1.1
- expect resp.status == 200
- expect resp.msg == Ok
-}
-
server s1 -wait
Added: trunk/varnish-cache/bin/varnishtest/tests/a00007.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/a00007.vtc (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/a00007.vtc 2008-06-20 15:34:14 UTC (rev 2748)
@@ -0,0 +1,25 @@
+# $Id$
+
+test "TCP reuse"
+
+server s1 -listen :9080 {
+ rxreq
+ expect req.url == "/1"
+ txresp -hdr "Length: 10" -body "123456789\n"
+ rxreq
+ expect req.url == "/2"
+ txresp -hdr "Length: 10" -body "987654321\n"
+}
+
+server s1 -start
+
+client c1 -connect localhost:9080 {
+ txreq -url "/1" -req "POST" -hdr "Length: 10" -body "abcdefghi\n"
+ rxresp
+ txreq -url "/2" -req "POST" -hdr "Length: 10" -body "ihgfedcba\n"
+ rxresp
+}
+
+client c1 -run
+
+server s1 -wait
More information about the varnish-commit
mailing list