[master] 8372154d5 shard: test alt parameter limiting
Nils Goroll
nils.goroll at uplex.de
Thu Nov 12 16:31:11 UTC 2020
commit 8372154d50406da3645deda94fcff381d5f4ccd2
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Thu Nov 12 17:01:53 2020 +0100
shard: test alt parameter limiting
diff --git a/bin/varnishtest/tests/d00022.vtc b/bin/varnishtest/tests/d00022.vtc
index e8cf95a5c..c11cdaa0d 100644
--- a/bin/varnishtest/tests/d00022.vtc
+++ b/bin/varnishtest/tests/d00022.vtc
@@ -71,6 +71,7 @@ varnish v1 -vcl+backend {
set resp.http.all-alt-0 = vd.backend(by=KEY, key=1756955383, alt=0, healthy=ALL);
set resp.http.all-alt-1 = vd.backend(by=KEY, key=1756955383, alt=1, healthy=ALL);
set resp.http.all-alt-2 = vd.backend(by=KEY, key=1756955383, alt=2, healthy=ALL);
+ set resp.http.all-alt-3 = vd.backend(by=KEY, key=1756955383, alt=3, healthy=ALL);
set resp.http.chosen-alt-0 = vd.backend(by=KEY, key=1756955383, alt=0, healthy=CHOSEN);
set resp.http.chosen-alt-1 = vd.backend(by=KEY, key=1756955383, alt=1, healthy=CHOSEN);
set resp.http.chosen-alt-2 = vd.backend(by=KEY, key=1756955383, alt=2, healthy=CHOSEN);
@@ -86,6 +87,7 @@ client c1 {
expect resp.http.all-alt-0 == "s1"
expect resp.http.all-alt-1 == "s2"
expect resp.http.all-alt-2 == "s3"
+ expect resp.http.all-alt-3 == resp.http.all-alt-2
expect resp.http.chosen-alt-0 == "s1"
expect resp.http.chosen-alt-1 == "s2"
expect resp.http.chosen-alt-2 == "s3"
@@ -96,6 +98,7 @@ client c1 {
expect resp.http.all-alt-0 == "s1"
expect resp.http.all-alt-1 == "s2"
expect resp.http.all-alt-2 == "s3"
+ expect resp.http.all-alt-3 == resp.http.all-alt-2
expect resp.http.chosen-alt-0 == "s1"
expect resp.http.chosen-alt-1 == "s2"
expect resp.http.chosen-alt-2 == "s3"
@@ -106,6 +109,7 @@ client c1 {
expect resp.http.all-alt-0 == "s1"
expect resp.http.all-alt-1 == "s2"
expect resp.http.all-alt-2 == "s3"
+ expect resp.http.all-alt-3 == resp.http.all-alt-2
expect resp.http.chosen-alt-0 == "s1"
expect resp.http.chosen-alt-1 == "s2"
expect resp.http.chosen-alt-2 == "s3"
More information about the varnish-commit
mailing list