Package fr.enedis.chutney.scenario.api
Class AggregatedTestCaseController
java.lang.Object
fr.enedis.chutney.scenario.api.AggregatedTestCaseController
@RestController
@RequestMapping("/api/scenario/v2")
public class AggregatedTestCaseController
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionAggregatedTestCaseController(fr.enedis.chutney.server.core.domain.scenario.TestCaseRepository testCaseRepository, fr.enedis.chutney.server.core.domain.execution.history.ExecutionHistoryRepository executionHistoryRepository) -
Method Summary
Modifier and TypeMethodDescriptionvoidremoveScenarioById(String testCaseId) testCaseMetaData(String testCaseId)
-
Constructor Details
-
AggregatedTestCaseController
public AggregatedTestCaseController(fr.enedis.chutney.server.core.domain.scenario.TestCaseRepository testCaseRepository, fr.enedis.chutney.server.core.domain.execution.history.ExecutionHistoryRepository executionHistoryRepository)
-
-
Method Details
-
testCaseMetaData
@PreAuthorize("hasAuthority(\'SCENARIO_READ\') or hasAuthority(\'EXECUTION_READ\')") @GetMapping(path="/{testCaseId}/metadata", produces="application/json") public TestCaseIndexDto testCaseMetaData(@PathVariable("testCaseId") String testCaseId) -
getTestCases
@PreAuthorize("hasAuthority(\'SCENARIO_READ\') or hasAuthority(\'CAMPAIGN_READ\') or hasAuthority(\'EXECUTION_READ\')") @GetMapping(path="", produces="application/json") public List<TestCaseIndexDto> getTestCases() -
removeScenarioById
@PreAuthorize("hasAuthority(\'SCENARIO_WRITE\')") @DeleteMapping(path="/{testCaseId}") public void removeScenarioById(@PathVariable("testCaseId") String testCaseId)
-