Class HttpTestEngine
java.lang.Object
fr.enedis.chutney.engine.api.execution.HttpTestEngine
- All Implemented Interfaces:
TestEngine,AutoCloseable
Exposes Scenario execution HTTP service.
Used by agents only for the moment
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()execute(@Valid ExecutionRequestDto request) executeAsync(ExecutionRequestDto request) voidpauseExecution(Long executionId) io.reactivex.rxjava3.core.Observable<StepExecutionReportDto> receiveNotification(Long executionId) voidresumeExecution(Long executionId) voidstopExecution(Long executionId)
-
Field Details
-
EXECUTION_URL
- See Also:
-
-
Constructor Details
-
HttpTestEngine
-
-
Method Details
-
execute
@PreAuthorize("hasAuthority(\'EXECUTION_WRITE\')") @PostMapping(path="/api/scenario/execution/v1", consumes="application/json", produces="application/json") public StepExecutionReportDto execute(@Valid @RequestBody @Valid ExecutionRequestDto request) - Specified by:
executein interfaceTestEngine
-
executeAsync
- Specified by:
executeAsyncin interfaceTestEngine
-
receiveNotification
public io.reactivex.rxjava3.core.Observable<StepExecutionReportDto> receiveNotification(Long executionId) - Specified by:
receiveNotificationin interfaceTestEngine
-
pauseExecution
- Specified by:
pauseExecutionin interfaceTestEngine
-
resumeExecution
- Specified by:
resumeExecutionin interfaceTestEngine
-
stopExecution
- Specified by:
stopExecutionin interfaceTestEngine
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-