-
Notifications
You must be signed in to change notification settings - Fork 2
Handle and get dynamically enum filter #544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This reverts commit b0f841c.
…filter' into handle-and-get-dynamically-enum-filter
Why not have an endpoint for each calculation, passing it the type (limit-types, branch-sides...) and having it return a list of strings? This would merge the methods in the service layer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't compile : missing
import java.util.ArrayList;
in SecurityAnalysisService.java
@Mathieu-Deharbe |
…filter' into handle-and-get-dynamically-enum-filter
src/main/java/org/gridsuite/study/server/service/LoadFlowService.java
Outdated
Show resolved
Hide resolved
// get computing status | ||
mockMvc.perform(get("/v1/studies/{studyUuid}/nodes/{nodeUuid}/computation/result/enum-values?computingType={computingType}&enumName={enumName}", | ||
studyNameUserIdUuid, modificationNode1Uuid, LOAD_FLOW, "computation-status")) | ||
.andExpectAll(status().isOk(), | ||
content().string(COMPUTING_STATUS_JSON)); | ||
|
||
assertTrue(TestUtils.getRequestsDone(1, server).stream().anyMatch(r -> r.matches("/v1/results/" + LOADFLOW_RESULT_UUID + "/computation-status"))); | ||
|
||
mockMvc.perform(get("/v1/studies/{studyUuid}/nodes/{nodeUuid}/computation/result/enum-values?computingType={computingType}&enumName={enumName}", | ||
studyNameUserIdUuid, modificationNode1Uuid, LOAD_FLOW, "computation")).andReturn(); | ||
|
||
assertTrue(TestUtils.getRequestsDone(1, server).stream().anyMatch(r -> r.matches("/v1/results/" + LOADFLOW_RESULT_UUID + "/computation"))); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These tests are not about limit violations. They shouldn't be in a testGetLimitViolations
function.
src/test/java/org/gridsuite/study/server/SecurityAnalysisTest.java
Outdated
Show resolved
Hide resolved
|
No description provided.