Repository: incubator-slider Updated Branches: refs/heads/develop 00542b8f1 -> ad33f069e
SLIDER-585 fix failing test Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/ad33f069 Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/ad33f069 Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/ad33f069 Branch: refs/heads/develop Commit: ad33f069e6d2574985183d5e8b8fbe0304ba64d0 Parents: 00542b8 Author: Jon Maron <jma...@hortonworks.com> Authored: Tue Feb 3 13:46:18 2015 -0500 Committer: Jon Maron <jma...@hortonworks.com> Committed: Tue Feb 3 13:46:18 2015 -0500 ---------------------------------------------------------------------- .../server/services/security/TestCertificateManager.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/ad33f069/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 39b6545..5416650 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 @@ -75,7 +75,8 @@ public class TestCertificateManager { String password = SecurityUtils.getKeystorePass(); keystore.load(is, password.toCharArray()); - Certificate certificate = keystore.getCertificate("1"); + Certificate certificate = keystore.getCertificate( + keystore.aliases().nextElement()); Assert.assertNotNull(certificate); if (certificate instanceof X509Certificate) { @@ -124,7 +125,8 @@ public class TestCertificateManager { String password = "password"; keystore.load(is, password.toCharArray()); - Certificate certificate = keystore.getCertificate("1"); + Certificate certificate = keystore.getCertificate( + keystore.aliases().nextElement()); Assert.assertNotNull(certificate); if (certificate instanceof X509Certificate) {