]> err.no Git - varnish/commitdiff
Add chunked encoding from backend test.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 25 Jun 2008 21:57:56 +0000 (21:57 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 25 Jun 2008 21:57:56 +0000 (21:57 +0000)
Fix copy&paste mistake in test b00006

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2814 d4fa192b-c00b-0410-8231-f00ffab90ce4

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

index a51826f1a91ff57515255d6b65d14f6099833369..02ee741ddb982a4e430feff52f6c0ea752b58aae 100644 (file)
@@ -22,4 +22,3 @@ client c1 -run
 server s1 -wait
 
 varnish v1 -stop
-shell "rm ../varnishd/varnishtest_backing"
diff --git a/varnish-cache/bin/varnishtest/tests/b00007.vtc b/varnish-cache/bin/varnishtest/tests/b00007.vtc
new file mode 100644 (file)
index 0000000..5cc58d0
--- /dev/null
@@ -0,0 +1,43 @@
+# $Id$
+
+test "Check chunked encoding from backend works"
+
+varnish v1 -arg "-s malloc -b 127.0.0.1:9080" -start
+
+server s1 {
+       rxreq 
+       expect req.url == "/bar"
+       send "HTTP/1.1 200 Ok\r\n"
+       send "Transfer-encoding: chunked\r\n"
+       send "\r\n"
+       send "00000004\r\n1234\r\n"
+       send "00000000\r\n"
+
+       rxreq 
+       expect req.url == "/foo"
+       send "HTTP/1.1 200 Ok\r\n"
+       send "Transfer-encoding: chunked\r\n"
+       send "\r\n"
+       send "00000004\r\n1234\r\n"
+       send "00000004\r\n1234\r\n"
+       send "00000000\r\n"
+}
+
+server s1 -start 
+
+client c1 {
+       txreq -url "/bar"
+       rxresp
+       expect resp.status == 200
+       expect resp.http.content-length == "4"
+       txreq -url "/foo"
+       rxresp
+       expect resp.status == 200
+       expect resp.http.content-length == "8"
+}
+
+client c1 -run
+
+server s1 -wait
+
+varnish v1 -stop