r2695 - trunk/varnish-cache/bin/varnishtest/tests
phk at projects.linpro.no
phk at projects.linpro.no
Sun Jun 15 22:50:24 CEST 2008
Author: phk
Date: 2008-06-15 22:50:24 +0200 (Sun, 15 Jun 2008)
New Revision: 2695
Added:
trunk/varnish-cache/bin/varnishtest/tests/a00002.vtc
Modified:
trunk/varnish-cache/bin/varnishtest/tests/a00000.vtc
trunk/varnish-cache/bin/varnishtest/tests/a00001.vtc
Log:
Describe tests with test keyword
Modified: trunk/varnish-cache/bin/varnishtest/tests/a00000.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/a00000.vtc 2008-06-15 20:49:27 UTC (rev 2694)
+++ trunk/varnish-cache/bin/varnishtest/tests/a00000.vtc 2008-06-15 20:50:24 UTC (rev 2695)
@@ -1,7 +1,7 @@
-# Quis custodiet ipsos custodes?
-#
# $Id$
+test "basic default HTTP transactions"
+
server s1 -listen :9080 {
rxreq
txresp
Modified: trunk/varnish-cache/bin/varnishtest/tests/a00001.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/a00001.vtc 2008-06-15 20:49:27 UTC (rev 2694)
+++ trunk/varnish-cache/bin/varnishtest/tests/a00001.vtc 2008-06-15 20:50:24 UTC (rev 2695)
@@ -1,13 +1,13 @@
-# Quis custodiet ipsos custodes?
-#
# $Id$
+test "basic default HTTP transactions with expect"
+
server s1 -listen :9080 {
rxreq
expect req.request == GET
expect req.proto == HTTP/1.1
expect req.url == "/"
- txresp -body "0123456789"
+ txresp
}
server s1 -start
Added: trunk/varnish-cache/bin/varnishtest/tests/a00002.vtc
===================================================================
--- trunk/varnish-cache/bin/varnishtest/tests/a00002.vtc (rev 0)
+++ trunk/varnish-cache/bin/varnishtest/tests/a00002.vtc 2008-06-15 20:50:24 UTC (rev 2695)
@@ -0,0 +1,25 @@
+# $Id$
+
+test "basic default HTTP transactions with expect and options"
+
+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 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 c1 -run
+
+server s1 -wait
Property changes on: trunk/varnish-cache/bin/varnishtest/tests/a00002.vtc
___________________________________________________________________
Name: svn:keywords
+
More information about the varnish-commit
mailing list