--- a/test/jdk/java/net/httpclient/whitebox/java.net.http/jdk/internal/net/http/AuthenticationFilterTest.java Thu Mar 08 17:41:52 2018 +0000
+++ b/test/jdk/java/net/httpclient/whitebox/java.net.http/jdk/internal/net/http/AuthenticationFilterTest.java Thu Mar 08 17:42:16 2018 +0000
@@ -73,14 +73,14 @@
{ "http://foo.com:80", HTTP_2, null },
{ "http://foo.com:80#blah", HTTP_1_1, null },
{ "http://foo.com:80#blah", HTTP_2, null },
- { "http://foo.com", HTTP_1_1, "127.0.0.1:8080" },
- { "http://foo.com", HTTP_2, "127.0.0.1:8080" },
- { "http://foo.com#blah", HTTP_1_1, "127.0.0.1:8080" },
- { "http://foo.com#blah", HTTP_2, "127.0.0.1:8080" },
- { "http://foo.com:8080", HTTP_1_1, "127.0.0.1:8080" },
- { "http://foo.com:8080", HTTP_2, "127.0.0.1:8080" },
- { "http://foo.com:8080#blah", HTTP_1_1, "127.0.0.1:8080" },
- { "http://foo.com:8080#blah", HTTP_2, "127.0.0.1:8080" },
+ { "http://foo.com", HTTP_1_1, "localhost:8080" },
+ { "http://foo.com", HTTP_2, "localhost:8080" },
+ { "http://foo.com#blah", HTTP_1_1, "localhost:8080" },
+ { "http://foo.com#blah", HTTP_2, "localhost:8080" },
+ { "http://foo.com:8080", HTTP_1_1, "localhost:8080" },
+ { "http://foo.com:8080", HTTP_2, "localhost:8080" },
+ { "http://foo.com:8080#blah", HTTP_1_1, "localhost:8080" },
+ { "http://foo.com:8080#blah", HTTP_2, "localhost:8080" },
{ "https://foo.com", HTTP_1_1, null },
{ "https://foo.com", HTTP_2, null },
{ "https://foo.com#blah", HTTP_1_1, null },
@@ -89,26 +89,26 @@
{ "https://foo.com:443", HTTP_2, null },
{ "https://foo.com:443#blah", HTTP_1_1, null },
{ "https://foo.com:443#blah", HTTP_2, null },
- { "https://foo.com", HTTP_1_1, "127.0.0.1:8080" },
- { "https://foo.com", HTTP_2, "127.0.0.1:8080" },
- { "https://foo.com#blah", HTTP_1_1, "127.0.0.1:8080" },
- { "https://foo.com#blah", HTTP_2, "127.0.0.1:8080" },
- { "https://foo.com:8080", HTTP_1_1, "127.0.0.1:8080" },
- { "https://foo.com:8080", HTTP_2, "127.0.0.1:8080" },
- { "https://foo.com:8080#blah", HTTP_1_1, "127.0.0.1:8080" },
- { "https://foo.com:8080#blah", HTTP_2, "127.0.0.1:8080" },
+ { "https://foo.com", HTTP_1_1, "localhost:8080" },
+ { "https://foo.com", HTTP_2, "localhost:8080" },
+ { "https://foo.com#blah", HTTP_1_1, "localhost:8080" },
+ { "https://foo.com#blah", HTTP_2, "localhost:8080" },
+ { "https://foo.com:8080", HTTP_1_1, "localhost:8080" },
+ { "https://foo.com:8080", HTTP_2, "localhost:8080" },
+ { "https://foo.com:8080#blah", HTTP_1_1, "localhost:8080" },
+ { "https://foo.com:8080#blah", HTTP_2, "localhost:8080" },
{ "http://foo.com:80/x/y/z", HTTP_1_1, null },
{ "http://foo.com:80/x/y/z", HTTP_2, null },
{ "http://foo.com:80/x/y/z#blah", HTTP_1_1, null },
{ "http://foo.com:80/x/y/z#blah", HTTP_2, null },
- { "http://foo.com/x/y/z", HTTP_1_1, "127.0.0.1:8080" },
- { "http://foo.com/x/y/z", HTTP_2, "127.0.0.1:8080" },
- { "http://foo.com/x/y/z#blah", HTTP_1_1, "127.0.0.1:8080" },
- { "http://foo.com/x/y/z#blah", HTTP_2, "127.0.0.1:8080" },
- { "http://foo.com:8080/x/y/z", HTTP_1_1, "127.0.0.1:8080" },
- { "http://foo.com:8080/x/y/z", HTTP_2, "127.0.0.1:8080" },
- { "http://foo.com:8080/x/y/z#blah", HTTP_1_1, "127.0.0.1:8080" },
- { "http://foo.com:8080/x/y/z#blah", HTTP_2, "127.0.0.1:8080" },
+ { "http://foo.com/x/y/z", HTTP_1_1, "localhost:8080" },
+ { "http://foo.com/x/y/z", HTTP_2, "localhost:8080" },
+ { "http://foo.com/x/y/z#blah", HTTP_1_1, "localhost:8080" },
+ { "http://foo.com/x/y/z#blah", HTTP_2, "localhost:8080" },
+ { "http://foo.com:8080/x/y/z", HTTP_1_1, "localhost:8080" },
+ { "http://foo.com:8080/x/y/z", HTTP_2, "localhost:8080" },
+ { "http://foo.com:8080/x/y/z#blah", HTTP_1_1, "localhost:8080" },
+ { "http://foo.com:8080/x/y/z#blah", HTTP_2, "localhost:8080" },
{ "https://foo.com/x/y/z", HTTP_1_1, null },
{ "https://foo.com/x/y/z", HTTP_2, null },
{ "https://foo.com/x/y/z#blah", HTTP_1_1, null },
@@ -117,14 +117,14 @@
{ "https://foo.com:443/x/y/z", HTTP_2, null },
{ "https://foo.com:443/x/y/z#blah", HTTP_1_1, null },
{ "https://foo.com:443/x/y/z#blah", HTTP_2, null },
- { "https://foo.com/x/y/z", HTTP_1_1, "127.0.0.1:8080" },
- { "https://foo.com/x/y/z", HTTP_2, "127.0.0.1:8080" },
- { "https://foo.com/x/y/z#blah", HTTP_1_1, "127.0.0.1:8080" },
- { "https://foo.com/x/y/z#blah", HTTP_2, "127.0.0.1:8080" },
- { "https://foo.com:8080/x/y/z", HTTP_1_1, "127.0.0.1:8080" },
- { "https://foo.com:8080/x/y/z", HTTP_2, "127.0.0.1:8080" },
- { "https://foo.com:8080/x/y/z#blah", HTTP_1_1, "127.0.0.1:8080" },
- { "https://foo.com:8080/x/y/z#blah", HTTP_2, "127.0.0.1:8080" },
+ { "https://foo.com/x/y/z", HTTP_1_1, "localhost:8080" },
+ { "https://foo.com/x/y/z", HTTP_2, "localhost:8080" },
+ { "https://foo.com/x/y/z#blah", HTTP_1_1, "localhost:8080" },
+ { "https://foo.com/x/y/z#blah", HTTP_2, "localhost:8080" },
+ { "https://foo.com:8080/x/y/z", HTTP_1_1, "localhost:8080" },
+ { "https://foo.com:8080/x/y/z", HTTP_2, "localhost:8080" },
+ { "https://foo.com:8080/x/y/z#blah", HTTP_1_1, "localhost:8080" },
+ { "https://foo.com:8080/x/y/z#blah", HTTP_2, "localhost:8080" },
};
}