[4.0] 234c2ef Resurrect another test-case
Lasse Karstensen
lkarsten at varnish-software.com
Mon Sep 22 16:38:25 CEST 2014
commit 234c2ef5946319a54ee21bff895301b5384065d1
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Sep 1 09:30:30 2014 +0000
Resurrect another test-case
diff --git a/bin/varnishtest/tests.disabled/r00979.vtc b/bin/varnishtest/tests.disabled/r00979.vtc
deleted file mode 100644
index 432aea5..0000000
--- a/bin/varnishtest/tests.disabled/r00979.vtc
+++ /dev/null
@@ -1,29 +0,0 @@
-varnishtest "r00979.vtc Test restart when do_stream in vcl_deliver"
-
-server s1 {
- rxreq
- txresp -status 200 -gzipbody "1"
- expect_close
-
- accept
- rxreq
- txresp -status 200 -body "11"
-} -start
-
-varnish v1 -vcl+backend {
- sub vcl_backend_response {
- set beresp.do_stream = true;
- }
- sub vcl_deliver {
- if (req.restarts == 0) {
- return (restart);
- }
- }
-} -start
-
-client c1 {
- txreq
- rxresp
- expect resp.status == 200
- expect resp.bodylen == 2
-} -run
diff --git a/bin/varnishtest/tests.disabled/r00980.vtc b/bin/varnishtest/tests.disabled/r00980.vtc
deleted file mode 100644
index 006de3e..0000000
--- a/bin/varnishtest/tests.disabled/r00980.vtc
+++ /dev/null
@@ -1,29 +0,0 @@
-varnishtest "r00980 test gzip on fetch with content_length and do_stream"
-
-server s1 {
- rxreq
- expect req.url == "/foobar"
- expect req.http.accept-encoding == "gzip"
- txresp -bodylen 43
-} -start
-
-varnish v1 -cliok "param.set http_gzip_support true" -vcl+backend {
-
- sub vcl_backend_response {
- set beresp.do_gzip = true;
- set beresp.do_stream = true;
- }
-} -start
-
-client c1 {
- txreq -url /foobar -hdr "Accept-Encoding: gzip"
- rxresp
- expect resp.http.content-encoding == "gzip"
- gunzip
- expect resp.bodylen == 43
-
- txreq -url /foobar
- rxresp
- expect resp.http.content-encoding == <undef>
- expect resp.bodylen == 43
-} -run
diff --git a/bin/varnishtest/tests/r00980.vtc b/bin/varnishtest/tests/r00980.vtc
new file mode 100644
index 0000000..006de3e
--- /dev/null
+++ b/bin/varnishtest/tests/r00980.vtc
@@ -0,0 +1,29 @@
+varnishtest "r00980 test gzip on fetch with content_length and do_stream"
+
+server s1 {
+ rxreq
+ expect req.url == "/foobar"
+ expect req.http.accept-encoding == "gzip"
+ txresp -bodylen 43
+} -start
+
+varnish v1 -cliok "param.set http_gzip_support true" -vcl+backend {
+
+ sub vcl_backend_response {
+ set beresp.do_gzip = true;
+ set beresp.do_stream = true;
+ }
+} -start
+
+client c1 {
+ txreq -url /foobar -hdr "Accept-Encoding: gzip"
+ rxresp
+ expect resp.http.content-encoding == "gzip"
+ gunzip
+ expect resp.bodylen == 43
+
+ txreq -url /foobar
+ rxresp
+ expect resp.http.content-encoding == <undef>
+ expect resp.bodylen == 43
+} -run
More information about the varnish-commit
mailing list