This is an automated email from the ASF dual-hosted git repository.
bschuchardt pushed a commit to branch feature/GEODE-8144
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/feature/GEODE-8144 by this
push:
new 342ab9a modified a test to use LocalHostUtil to get localhost
342ab9a is described below
commit 342ab9a06be9bac3da5bf71d05a2b9750d7ac3d8
Author: Bruce Schuchardt <[email protected]>
AuthorDate: Tue May 26 14:40:55 2020 -0700
modified a test to use LocalHostUtil to get localhost
---
.../internal/cli/commands/GfshHostNameVerificationDistributedTest.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/geode-gfsh/src/distributedTest/java/org/apache/geode/management/internal/cli/commands/GfshHostNameVerificationDistributedTest.java
b/geode-gfsh/src/distributedTest/java/org/apache/geode/management/internal/cli/commands/GfshHostNameVerificationDistributedTest.java
index f232748..5e509b9 100644
---
a/geode-gfsh/src/distributedTest/java/org/apache/geode/management/internal/cli/commands/GfshHostNameVerificationDistributedTest.java
+++
b/geode-gfsh/src/distributedTest/java/org/apache/geode/management/internal/cli/commands/GfshHostNameVerificationDistributedTest.java
@@ -32,6 +32,7 @@ import org.junit.experimental.categories.Category;
import org.apache.geode.cache.ssl.CertStores;
import org.apache.geode.cache.ssl.CertificateBuilder;
import org.apache.geode.cache.ssl.CertificateMaterial;
+import org.apache.geode.internal.inet.LocalHostUtil;
import org.apache.geode.test.dunit.IgnoredException;
import org.apache.geode.test.dunit.VM;
import org.apache.geode.test.dunit.rules.ClusterStartupRule;
@@ -65,6 +66,8 @@ public class GfshHostNameVerificationDistributedTest {
.issuedBy(ca)
.sanDnsName(InetAddress.getLoopbackAddress().getHostName())
.sanDnsName(InetAddress.getLocalHost().getHostName())
+ .sanDnsName(LocalHostUtil.getCanonicalLocalHostName())
+ .sanIpAddress(LocalHostUtil.getLocalHost())
.sanIpAddress(InetAddress.getLocalHost())
.sanIpAddress(InetAddress.getByName("0.0.0.0")) // to pass on windows
.generate();