[master] 9a8e69f Add some tests using std.ip() with IPv6
Federico G. Schwindt
fgsch at lodoss.net
Wed Oct 14 23:44:44 CEST 2015
commit 9a8e69f26b9981493c8c699bad63a34e7d0570d3
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Wed Oct 14 22:41:50 2015 +0100
Add some tests using std.ip() with IPv6
diff --git a/bin/varnishtest/tests/m00011.vtc b/bin/varnishtest/tests/m00011.vtc
index 29c4261..bf96dd5 100644
--- a/bin/varnishtest/tests/m00011.vtc
+++ b/bin/varnishtest/tests/m00011.vtc
@@ -16,6 +16,8 @@ varnish v1 -arg "-Wpoll" -vcl+backend {
set resp.http.foo1 = std.ip("9.9.9.*", server.ip);
set resp.http.foo2 = std.ip("1.2.3.*", "127.0.0.2");
set resp.http.foo3 = std.ip("1.2.3.5", "127.0.0.3");
+ set resp.http.foo4 = std.ip("2001:db8::", "[::1]");
+ set resp.http.foo5 = std.ip("2001::db8::", "[::1]");
}
} -start
@@ -27,6 +29,8 @@ client c1 {
expect resp.http.foo1 == "127.0.0.1"
expect resp.http.foo2 == "127.0.0.2"
expect resp.http.foo3 == "1.2.3.5"
+ expect resp.http.foo4 == "2001:db8::"
+ expect resp.http.foo5 == "::1"
txreq -url "/foo2"
rxresp
expect resp.bodylen == 2
More information about the varnish-commit
mailing list