[master] cd5eb5506 Make this test do a little bit more work than just not panic

Poul-Henning Kamp phk at FreeBSD.org
Wed Feb 19 08:47:07 UTC 2020


commit cd5eb55061ca288910e5c4be1b723fcb5b8ee4df
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Feb 19 08:32:14 2020 +0000

    Make this test do a little bit more work than just not panic

diff --git a/bin/varnishtest/tests/r01768.vtc b/bin/varnishtest/tests/r01768.vtc
index 716701ae8..2d04f0d60 100644
--- a/bin/varnishtest/tests/r01768.vtc
+++ b/bin/varnishtest/tests/r01768.vtc
@@ -6,14 +6,17 @@ server s1 {
 } -start
 
 varnish v1 -vcl+backend {
-	sub vcl_recv {
+	sub vcl_deliver {
 		if (req.http.foo_bar == req.http.foo-bar) {
-			set req.http.foo_bar = "xxx";
+			set resp.http.foo = "xxx";
+		} else {
+			set resp.http.foo = "yyy";
 		}
 	}
 } -start
 
 client c1 {
-	txreq
+	txreq -hdr "foo_bar: 1" -hdr "foo-bar: 2"
 	rxresp
+	expect resp.http.foo == yyy
 } -run


More information about the varnish-commit mailing list