You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by lm...@apache.org on 2018/07/20 20:55:39 UTC
knox git commit: KNOX-1395 - fix additional tests to align with
removal of InetAddress use
Repository: knox
Updated Branches:
refs/heads/v1.1.0 dd49dca59 -> 4bb416848
KNOX-1395 - fix additional tests to align with removal of InetAddress use
Project: http://git-wip-us.apache.org/repos/asf/knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/4bb41684
Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/4bb41684
Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/4bb41684
Branch: refs/heads/v1.1.0
Commit: 4bb416848010d2d34c64fe49ea53c4194ed1f4c8
Parents: dd49dca
Author: Larry McCay <lm...@apache.org>
Authored: Fri Jul 20 16:55:30 2018 -0400
Committer: Larry McCay <lm...@apache.org>
Committed: Fri Jul 20 16:55:30 2018 -0400
----------------------------------------------------------------------
.../knox/gateway/dispatch/GatewayDispatchFilterTest.java | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/knox/blob/4bb41684/gateway-spi/src/test/java/org/apache/knox/gateway/dispatch/GatewayDispatchFilterTest.java
----------------------------------------------------------------------
diff --git a/gateway-spi/src/test/java/org/apache/knox/gateway/dispatch/GatewayDispatchFilterTest.java b/gateway-spi/src/test/java/org/apache/knox/gateway/dispatch/GatewayDispatchFilterTest.java
index db08788..b5c3047 100644
--- a/gateway-spi/src/test/java/org/apache/knox/gateway/dispatch/GatewayDispatchFilterTest.java
+++ b/gateway-spi/src/test/java/org/apache/knox/gateway/dispatch/GatewayDispatchFilterTest.java
@@ -137,7 +137,7 @@ public class GatewayDispatchFilterTest {
null,
serviceRole,
"http://localhost:9999",
- shouldExpectLocalhost());
+ true);
}
/**
@@ -152,7 +152,7 @@ public class GatewayDispatchFilterTest {
null,
serviceRole,
URLEncoder.encode("http://localhost:9999", "UTF-8"),
- shouldExpectLocalhost());
+ true);
}
@@ -230,11 +230,6 @@ public class GatewayDispatchFilterTest {
}
- private static boolean shouldExpectLocalhost() throws Exception {
- return InetAddress.getLocalHost().getCanonicalHostName().equalsIgnoreCase("localhost");
- }
-
-
private void doTestServiceDispatchWhitelist(List<String> whitelistedServices,
String whitelist,
String serviceRole,