Deactivating remote connect tests because of SSL incompatibilities

This commit is contained in:
Martin Stockhammer 2020-06-14 21:27:51 +02:00
parent 63d950f8ca
commit efac20c1a3
1 changed files with 39 additions and 34 deletions

View File

@ -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()
{