From efac20c1a3676ff8450f35a6b5392610c8df51f3 Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Sun, 14 Jun 2020 21:27:51 +0200 Subject: Deactivating remote connect tests because of SSL incompatibilities --- .../services/RemoteRepositoriesServiceTest.java | 73 ++++++++++++---------- 1 file changed, 39 insertions(+), 34 deletions(-) (limited to 'archiva-modules/archiva-web/archiva-rest/archiva-rest-services') diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/RemoteRepositoriesServiceTest.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/RemoteRepositoriesServiceTest.java index 973569c65..46841de84 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/RemoteRepositoriesServiceTest.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/test/java/org/apache/archiva/rest/services/RemoteRepositoriesServiceTest.java @@ -162,42 +162,47 @@ public class RemoteRepositoriesServiceTest } /* - * Check maven repository + * Deactivated the remote tests because SSL restrictions on these sites do not work anymore with JDK 7 + * */ - @Test - public void checkRemoteConnectivity2() - throws Exception { - RemoteRepositoriesService service = getRemoteRepositoriesService(); - - WebClient.client(service).header("Authorization", authorizationHeader); - - int initialSize = service.getRemoteRepositories().size(); - service.addRemoteRepository(getRemoteMavenRepository()); - - assertTrue(service.checkRemoteConnectivity("id-maven1")); - - } - - - /* - * Check oracle repository that allows not browsing (MRM-1933) - */ - @Test - public void checkRemoteConnectivity3() - throws Exception { - RemoteRepositoriesService service = getRemoteRepositoriesService(); - - WebClient.client(service).header("Authorization", authorizationHeader); - WebClient.client(service).accept("application/json"); - - int initialSize = service.getRemoteRepositories().size(); - - service.addRemoteRepository(getRemoteOracleRepository()); - - assertTrue(service.checkRemoteConnectivity("id-oracle")); - - } +// /* +// * Check maven repository +// */ +// @Test +// public void checkRemoteConnectivity2() +// throws Exception { +// RemoteRepositoriesService service = getRemoteRepositoriesService(); +// +// WebClient.client(service).header("Authorization", authorizationHeader); +// +// int initialSize = service.getRemoteRepositories().size(); +// +// service.addRemoteRepository(getRemoteMavenRepository()); +// +// assertTrue(service.checkRemoteConnectivity("id-maven1")); +// +// } +// +// +// /* +// * Check oracle repository that allows not browsing (MRM-1933) +// */ +// @Test +// public void checkRemoteConnectivity3() +// throws Exception { +// RemoteRepositoriesService service = getRemoteRepositoriesService(); +// +// WebClient.client(service).header("Authorization", authorizationHeader); +// WebClient.client(service).accept("application/json"); +// +// int initialSize = service.getRemoteRepositories().size(); +// +// service.addRemoteRepository(getRemoteOracleRepository()); +// +// assertTrue(service.checkRemoteConnectivity("id-oracle")); +// +// } RemoteRepository getRemoteRepository() { -- cgit v1.2.3