Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,6 @@ public ResponseEntity<List<String>> getProviders() {
.body(service.getProviders());
}

@GetMapping(value = "/default-provider", produces = TEXT_PLAIN_VALUE)
@Operation(summary = "Get sensitivity analysis default provider")
@ApiResponses(@ApiResponse(responseCode = "200", description = "The sensitivity analysis default provider has been found"))
public ResponseEntity<String> getDefaultProvider() {
return ResponseEntity.ok().body(service.getDefaultProvider());
}

@PostMapping(value = "/results/{resultUuid}/csv")
@Operation(summary = "export sensitivity results as csv file")
@ApiResponses(@ApiResponse(responseCode = "200", description = "Sensitivity results successfully exported as csv file"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
import static org.gridsuite.computation.service.NotificationService.HEADER_USER_ID;
import static org.gridsuite.computation.service.NotificationService.getCancelFailedMessage;
import static org.gridsuite.sensitivityanalysis.server.service.SensitivityAnalysisWorkerService.COMPUTATION_TYPE;
import static org.gridsuite.sensitivityanalysis.server.util.TestUtils.DEFAULT_PROVIDER;
import static org.gridsuite.sensitivityanalysis.server.util.TestUtils.unzip;
import static org.junit.jupiter.api.Assertions.*;
import static org.mockito.ArgumentMatchers.any;
Expand Down Expand Up @@ -587,15 +586,6 @@ void getProvidersTest() throws Exception {
.andReturn();
}

@Test
void getDefaultProviderTest() throws Exception {
mockMvc.perform(get("/" + VERSION + "/default-provider"))
.andExpect(status().isOk())
.andExpect(content().contentType(new MediaType(MediaType.TEXT_PLAIN, StandardCharsets.UTF_8)))
.andExpect(content().string(DEFAULT_PROVIDER))
.andReturn();
}

private SensitivityAnalysisResult runInMemory() throws Exception {
MockHttpServletRequestBuilder req = post("/" + VERSION + "/networks/{networkUuid}/run", NETWORK_UUID)
.param("reportType", "SensitivityAnalysis")
Expand Down