[master] c4183dc improve m19.vtc: Set arguments to values differing from the defaults

Nils Goroll nils.goroll at uplex.de
Mon Jun 13 13:09:07 CEST 2016


commit c4183dc57f2e86d883efd6da131ba5d9986639be
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Thu Jun 9 17:10:11 2016 +0200

    improve m19.vtc: Set arguments to values differing from the defaults

diff --git a/bin/varnishtest/tests/m00019.vtc b/bin/varnishtest/tests/m00019.vtc
index 98ea822..1b32afe 100644
--- a/bin/varnishtest/tests/m00019.vtc
+++ b/bin/varnishtest/tests/m00019.vtc
@@ -9,12 +9,12 @@ varnish v1 -vcl+backend {
 	import debug;
 
 	sub vcl_deliver {
-		set resp.http.foo1 = debug.argtest("1", 2.0, "3");
-		set resp.http.foo2 = debug.argtest("1", two=2.0, three="3");
-		set resp.http.foo3 = debug.argtest("1", three="3", two=2.0);
-		set resp.http.foo4 = debug.argtest("1", 2.0, three="3");
-		set resp.http.foo5 = debug.argtest("1", 2.0);
-		set resp.http.foo6 = debug.argtest("1");
+		set resp.http.foo1 = debug.argtest("1", 2.1, "3a");
+		set resp.http.foo2 = debug.argtest("1", two=2.2, three="3b");
+		set resp.http.foo3 = debug.argtest("1", three="3c", two=2.3);
+		set resp.http.foo4 = debug.argtest("1", 2.4, three="3d");
+		set resp.http.foo5 = debug.argtest("1", 2.5);
+		set resp.http.foo6 = debug.argtest("1", four=6);
 	}
 } -start
 
@@ -22,12 +22,12 @@ client c1 {
 	txreq
 	rxresp
 	expect resp.bodylen == "6"
-	expect resp.http.foo1 == "1 2 3 , 4"
-	expect resp.http.foo2 == "1 2 3 , 4"
-	expect resp.http.foo3 == "1 2 3 , 4"
-	expect resp.http.foo4 == "1 2 3 , 4"
-	expect resp.http.foo5 == "1 2 3 , 4"
-	expect resp.http.foo6 == "1 2 3 , 4"
+	expect resp.http.foo1 == "1 2.1 3a , 4"
+	expect resp.http.foo2 == "1 2.2 3b , 4"
+	expect resp.http.foo3 == "1 2.3 3c , 4"
+	expect resp.http.foo4 == "1 2.4 3d , 4"
+	expect resp.http.foo5 == "1 2.5 3 , 4"
+	expect resp.http.foo6 == "1 2 3 , 6"
 } -run
 
 delay .1



More information about the varnish-commit mailing list