r2696 - trunk/varnish-cache/bin/varnishtest/tests

phk at projects.linpro.no phk at projects.linpro.no
Sun Jun 15 22:57:08 CEST 2008


Author: phk
Date: 2008-06-15 22:57:08 +0200 (Sun, 15 Jun 2008)
New Revision: 2696

Added:
   trunk/varnish-cache/bin/varnishtest/tests/a00003.vtc
   trunk/varnish-cache/bin/varnishtest/tests/a00004.vtc
   trunk/varnish-cache/bin/varnishtest/tests/a00005.vtc
Log:
More test-cases



Added: trunk/varnish-cache/bin/varnishtest/tests/a00003.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/a00003.vtc	                        (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/a00003.vtc	2008-06-15 20:57:08 UTC (rev 2696)
@@ -0,0 +1,47 @@
+# $Id$
+
+test "dual independent HTTP transactions"
+
+server s1 -listen :9080 {
+	rxreq
+	expect req.request == PUT
+	expect req.proto == HTTP/1.0
+	expect req.url == "/foo"
+	txresp -proto HTTP/1.2 -status 201 -msg Foo
+}
+
+server s2 -listen :9081 {
+	rxreq
+	expect req.request == GET
+	expect req.proto == HTTP/1.1
+	expect req.url == "/"
+	txresp 
+}
+
+server s1 -start 
+server s2 -start 
+
+client c1 -connect localhost:9080 {
+	txreq -req PUT -proto HTTP/1.0 -url /foo
+	rxresp
+	expect resp.proto == HTTP/1.2
+	expect resp.status == 201
+	expect resp.msg == Foo
+}
+
+client c2 -connect localhost:9081 {
+	txreq 
+	rxresp
+	expect resp.proto == HTTP/1.1
+	expect resp.status == 200
+	expect resp.msg == Ok
+}
+
+client c1 -start
+client c2 -start
+
+client c1 -wait
+client c2 -wait
+
+server s1 -wait
+server s2 -wait


Property changes on: trunk/varnish-cache/bin/varnishtest/tests/a00003.vtc
___________________________________________________________________
Name: svn:keywords
   + 

Added: trunk/varnish-cache/bin/varnishtest/tests/a00004.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/a00004.vtc	                        (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/a00004.vtc	2008-06-15 20:57:08 UTC (rev 2696)
@@ -0,0 +1,37 @@
+# $Id$
+
+test "dual shared server HTTP transactions"
+
+server s1 -listen :9080 -repeat 2 {
+	rxreq
+	expect req.request == PUT
+	expect req.proto == HTTP/1.0
+	expect req.url == "/foo"
+	txresp -proto HTTP/1.2 -status 201 -msg Foo
+}
+
+server s1 -start 
+
+client c1 -connect localhost:9080 {
+	txreq -req PUT -proto HTTP/1.0 -url /foo
+	rxresp
+	expect resp.proto == HTTP/1.2
+	expect resp.status == 201
+	expect resp.msg == Foo
+}
+
+client c2 -connect localhost:9080 {
+	txreq -req PUT -proto HTTP/1.0 -url /foo
+	rxresp
+	expect resp.proto == HTTP/1.2
+	expect resp.status == 201
+	expect resp.msg == Foo
+}
+
+client c1 -start
+client c2 -start
+
+client c1 -wait
+client c2 -wait
+
+server s1 -wait


Property changes on: trunk/varnish-cache/bin/varnishtest/tests/a00004.vtc
___________________________________________________________________
Name: svn:keywords
   + 

Added: trunk/varnish-cache/bin/varnishtest/tests/a00005.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/a00005.vtc	                        (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/a00005.vtc	2008-06-15 20:57:08 UTC (rev 2696)
@@ -0,0 +1,45 @@
+# $Id$
+
+test "dual shared client HTTP transactions"
+
+server s1 -listen :9080 {
+	rxreq
+	expect req.request == PUT
+	expect req.proto == HTTP/1.0
+	expect req.url == "/foo"
+	txresp -proto HTTP/1.2 -status 201 -msg Foo
+}
+
+server s2 -listen :9081 {
+	rxreq
+	expect req.request == GET
+	expect req.proto == HTTP/1.1
+	expect req.url == "/"
+	txresp 
+}
+
+server s1 -start 
+server s2 -start 
+
+client c1 -connect localhost:9080 {
+	txreq -req PUT -proto HTTP/1.0 -url /foo
+	rxresp
+	expect resp.proto == HTTP/1.2
+	expect resp.status == 201
+	expect resp.msg == Foo
+}
+
+client c1 -run
+
+client c1 -connect localhost:9081 {
+	txreq 
+	rxresp
+	expect resp.proto == HTTP/1.1
+	expect resp.status == 200
+	expect resp.msg == Ok
+}
+
+client c1 -run
+
+server s1 -wait
+server s2 -wait


Property changes on: trunk/varnish-cache/bin/varnishtest/tests/a00005.vtc
___________________________________________________________________
Name: svn:keywords
   + 




More information about the varnish-commit mailing list