From 8cc5ee9742b9897946a391bc85e77bf31768d6ed Mon Sep 17 00:00:00 2001 From: Steffen Pingel Date: Sat, 4 Feb 2012 22:25:28 +0100 Subject: REOPENED - bug 369697: skip certificate authentication test in broken environments https://bugs.eclipse.org/bugs/show_bug.cgi?id=369697 Change-Id: Ia61c2c58d5d933f633771c213279077d1eb475f3 --- .../src/org/eclipse/mylyn/commons/sdk/util/CommonTestUtil.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'org.eclipse.mylyn.commons.sdk.util') diff --git a/org.eclipse.mylyn.commons.sdk.util/src/org/eclipse/mylyn/commons/sdk/util/CommonTestUtil.java b/org.eclipse.mylyn.commons.sdk.util/src/org/eclipse/mylyn/commons/sdk/util/CommonTestUtil.java index 58485576..41e10861 100644 --- a/org.eclipse.mylyn.commons.sdk.util/src/org/eclipse/mylyn/commons/sdk/util/CommonTestUtil.java +++ b/org.eclipse.mylyn.commons.sdk.util/src/org/eclipse/mylyn/commons/sdk/util/CommonTestUtil.java @@ -34,9 +34,11 @@ import org.eclipse.core.runtime.FileLocator; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.Platform; import org.eclipse.core.runtime.Plugin; +import org.eclipse.mylyn.commons.core.CoreUtil; import org.eclipse.mylyn.commons.repositories.core.auth.CertificateCredentials; import org.eclipse.mylyn.commons.repositories.core.auth.UserCredentials; import org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader; +import org.eclipse.osgi.service.resolver.VersionRange; import org.eclipse.osgi.util.NLS; /** @@ -420,4 +422,9 @@ public class CommonTestUtil { } } + public static boolean isCertificateAuthBroken() { + // not entirely correct since 1.6.0_3 would also satisfy this check but it should be sufficient in reality + return new VersionRange("[0.0.0,1.6.0.25]").isIncluded(CoreUtil.getRuntimeVersion()); + } + } -- cgit v1.2.3