shard: test alt parameter limiting

parent cab53eb3
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment