[master] 19d5f76 This test depends on the specific hash-key, which again depends on the client-varnish connection happening over 127.0.0.1. Fake it for jails and IPv6-oid hosts.
Poul-Henning Kamp
phk at FreeBSD.org
Tue Mar 6 09:01:07 UTC 2018
commit 19d5f762f87d892a5072acf12dbc45d21ee5b92f
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Mar 6 08:59:41 2018 +0000
This test depends on the specific hash-key, which again
depends on the client-varnish connection happening over
127.0.0.1. Fake it for jails and IPv6-oid hosts.
diff --git a/bin/varnishtest/tests/d00020.vtc b/bin/varnishtest/tests/d00020.vtc
index 358a623..5e99f37 100644
--- a/bin/varnishtest/tests/d00020.vtc
+++ b/bin/varnishtest/tests/d00020.vtc
@@ -28,6 +28,12 @@ varnish v1 -vcl+backend {
key_blob=blob.decode(HEX, encoded="ffffffff00"));
}
+ sub vcl_hash {
+ hash_data(req.url);
+ hash_data("127.0.0.1");
+ return (lookup);
+ }
+
sub vcl_synth {
if (req.url == "/def") {
set resp.http.sha256 = shard.key(req.url);
More information about the varnish-commit
mailing list