Class TestPlanController
java.lang.Object
org.qubership.atp.dataset.service.rest.server.TestPlanController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<UUID> Creates new test plan with name provided.org.springframework.http.ResponseEntity<Void> Deletes test plan with provided name.getDataSetListsUnderTestPlan(UUID testPlanId) Returns dataSetLists with selected Test Plan.getTestPlans(UUID visibilityArea) Get all test plans under va.
-
Constructor Details
-
TestPlanController
test plan service.
-
-
Method Details
-
create
@PreAuthorize("@entityAccess.checkAccess(#vaId,\'CREATE\')") @PutMapping("/va/{vaId}") public org.springframework.http.ResponseEntity<UUID> create(@PathVariable("vaId") UUID vaId, @RequestParam("name") String name, javax.servlet.http.HttpServletRequest request) Creates new test plan with name provided. -
delete
@PreAuthorize("@entityAccess.checkAccess(#vaId,\'DELETE\')") @DeleteMapping("/va/{vaId}") public org.springframework.http.ResponseEntity<Void> delete(@PathVariable("vaId") UUID vaId, @RequestParam("name") String name) Deletes test plan with provided name. -
getTestPlans
@PreAuthorize("@entityAccess.checkAccess(#visibilityArea,\'READ\')") @GetMapping("/va/{vaId}") public List<TestPlan> getTestPlans(@PathVariable("vaId") UUID visibilityArea) Get all test plans under va. -
getDataSetListsUnderTestPlan
@PreAuthorize("@entityAccess.isAuthenticated()") @GetMapping("/{testPlanId}/dsl") public List<DataSetList> getDataSetListsUnderTestPlan(@PathVariable("testPlanId") UUID testPlanId) Returns dataSetLists with selected Test Plan.
-