Skip to content
Snippets Groups Projects
Commit 3478100e authored by Nikolaos Kyriakoulis's avatar Nikolaos Kyriakoulis
Browse files

Identifying errors that caused a broken pipeline

parent 29d8c0cc
No related branches found
No related tags found
2 merge requests!36Merging 2024Q2_RC into main, creating 2024Q2 Release,!18Resolve "Increase test coverage in TMF638"
Pipeline #5277 passed
...@@ -121,86 +121,86 @@ public class ServiceRepoServiceTest { ...@@ -121,86 +121,86 @@ public class ServiceRepoServiceTest {
// } // }
// @WithMockUser(username="osadmin", roles = {"ADMIN","USER"}) @WithMockUser(username="osadmin", roles = {"ADMIN","USER"})
// @Test @Test
// public void testDeleteServiceActionQueueItemByUuid() throws Exception { public void testDeleteServiceActionQueueItemByUuid() throws Exception {
// ServiceActionQueueItem saqi = new ServiceActionQueueItem(); ServiceActionQueueItem saqi = new ServiceActionQueueItem();
// ServiceActionQueueItem saqiResponse = serviceRepoService.addServiceActionQueueItem(saqi); ServiceActionQueueItem saqiResponse = serviceRepoService.addServiceActionQueueItem(saqi);
// String uuid = saqiResponse.getUuid(); String uuid = saqiResponse.getUuid();
//
// serviceRepoService.deleteServiceActionQueueItemByUuid(uuid); serviceRepoService.deleteServiceActionQueueItemByUuid(uuid);
// List<ServiceActionQueueItem> saqiList = serviceRepoService.findAllServiceActionQueueItems(); List<ServiceActionQueueItem> saqiList = serviceRepoService.findAllServiceActionQueueItems();
//
// boolean idExists = false; boolean idExists = false;
// for (ServiceActionQueueItem s : saqiList) { for (ServiceActionQueueItem s : saqiList) {
// if ( s.getUuid().equals( uuid ) ) { if ( s.getUuid().equals( uuid ) ) {
// idExists= true; idExists= true;
// break; break;
// } }
// } }
// assertThat( idExists ).isFalse(); assertThat( idExists ).isFalse();
// } }
//
//
// @WithMockUser(username="osadmin", roles = {"ADMIN","USER"}) @WithMockUser(username="osadmin", roles = {"ADMIN","USER"})
// @Test @Test
// public void testFindAllActiveServicesToTerminate() throws Exception { public void testFindAllActiveServicesToTerminate() throws Exception {
// String response = createService(); String response = createService();
// Service responsesService = JsonUtils.toJsonObj(response, Service.class); Service responsesService = JsonUtils.toJsonObj(response, Service.class);
// String id = responsesService.getId(); String id = responsesService.getId();
//
// List<String> serviceList = serviceRepoService.findAllActiveServicesToTerminate(); List<String> serviceList = serviceRepoService.findAllActiveServicesToTerminate();
//
// boolean idExists = false; boolean idExists = false;
// for (String serviceId : serviceList) { for (String serviceId : serviceList) {
// if (serviceId.equals(id)) { if (serviceId.equals(id)) {
// idExists = true; idExists = true;
// break; break;
// } }
// } }
// assertThat( idExists ).isTrue(); assertThat( idExists ).isTrue();
// } }
//
//
// @WithMockUser(username="osadmin", roles = {"ADMIN","USER"}) @WithMockUser(username="osadmin", roles = {"ADMIN","USER"})
// @Test @Test
// public void testFindAllActiveAndReservedServicesOfPartners() throws Exception { public void testFindAllActiveAndReservedServicesOfPartners() throws Exception {
// String response = createService(); String response = createService();
// Service responsesService = JsonUtils.toJsonObj(response, Service.class); Service responsesService = JsonUtils.toJsonObj(response, Service.class);
// String id = responsesService.getId(); String id = responsesService.getId();
//
// List<String> serviceList = serviceRepoService.findAllActiveAndReservedServicesOfPartners(); List<String> serviceList = serviceRepoService.findAllActiveAndReservedServicesOfPartners();
//
// boolean idExists = false; boolean idExists = false;
// for (String serviceId : serviceList) { for (String serviceId : serviceList) {
// if (serviceId.equals(id)) { if (serviceId.equals(id)) {
// idExists = true; idExists = true;
// break; break;
// } }
// } }
// assertThat( idExists ).isTrue(); assertThat( idExists ).isTrue();
// } }
//
//
// @WithMockUser(username="osadmin", roles = {"ADMIN","USER"}) @WithMockUser(username="osadmin", roles = {"ADMIN","USER"})
// @Test @Test
// public void testFindDeploymentRequestID() throws Exception { public void testFindDeploymentRequestID() throws Exception {
// String response = createService(); String response = createService();
// Service responsesService = JsonUtils.toJsonObj(response, Service.class); Service responsesService = JsonUtils.toJsonObj(response, Service.class);
// String id = responsesService.getId(); String id = responsesService.getId();
//
// List<Service> serviceList = serviceRepoService.findDeploymentRequestID("1234567890"); List<Service> serviceList = serviceRepoService.findDeploymentRequestID("1234567890");
//
// boolean idExists = false; boolean idExists = false;
// for (Service s : serviceList) { for (Service s : serviceList) {
// if ( s.getId().equals( id ) ) { if ( s.getId().equals( id ) ) {
// idExists= true; idExists= true;
// } }
// } }
// assertThat( idExists ).isTrue(); assertThat( idExists ).isTrue();
// } }
//
//
// // org.hibernate.exception.JDBCConnectionException: Unable to acquire JDBC Connection [HikariPool-1 - Connection is not available, request timed out after 30000ms.] // // org.hibernate.exception.JDBCConnectionException: Unable to acquire JDBC Connection [HikariPool-1 - Connection is not available, request timed out after 30000ms.]
//// @WithMockUser(username="osadmin", roles = {"ADMIN","USER"}) //// @WithMockUser(username="osadmin", roles = {"ADMIN","USER"})
//// @Test //// @Test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment