Repository: incubator-slider Updated Branches: refs/heads/feature/SLIDER-779_Move_to_Groovy_2.4.0 3ec294421 -> 3e646c77e (forced update)
SLIDER-784 attempt to fix issuer DN host name for keystore validation tests Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/29b4f5a0 Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/29b4f5a0 Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/29b4f5a0 Branch: refs/heads/feature/SLIDER-779_Move_to_Groovy_2.4.0 Commit: 29b4f5a0aef133bbf4887354caa1d6c93d3d26b3 Parents: 8d774ea Author: Jon Maron <jma...@hortonworks.com> Authored: Wed Feb 25 12:55:28 2015 -0500 Committer: Jon Maron <jma...@hortonworks.com> Committed: Wed Feb 25 12:55:28 2015 -0500 ---------------------------------------------------------------------- .../slider/server/services/security/TestCertificateManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/29b4f5a0/slider-core/src/test/java/org/apache/slider/server/services/security/TestCertificateManager.java ---------------------------------------------------------------------- diff --git a/slider-core/src/test/java/org/apache/slider/server/services/security/TestCertificateManager.java b/slider-core/src/test/java/org/apache/slider/server/services/security/TestCertificateManager.java index 8f5c5db..3eb8c2c 100644 --- a/slider-core/src/test/java/org/apache/slider/server/services/security/TestCertificateManager.java +++ b/slider-core/src/test/java/org/apache/slider/server/services/security/TestCertificateManager.java @@ -40,6 +40,7 @@ import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; +import java.net.InetAddress; import java.security.KeyStore; import java.security.KeyStoreException; import java.security.NoSuchAlgorithmException; @@ -110,7 +111,7 @@ public class TestCertificateManager { principal = x509cert.getIssuerDN(); String issuerDn = principal.getName(); Assert.assertEquals("wrong Issuer DN", - "CN=localhost", + "CN=" + InetAddress.getLocalHost().getHostName(), issuerDn); } } finally { @@ -166,7 +167,7 @@ public class TestCertificateManager { principal = x509cert.getIssuerDN(); String issuerDn = principal.getName(); Assert.assertEquals("wrong Issuer DN", - "CN=localhost", + "CN=" + InetAddress.getLocalHost().getHostName(), issuerDn); } } finally {