use of pipelite.metrics.PipelineMetrics in project pipelite by enasequence.
the class PipelineRunnerAsyncTest method assertSubmitError.
private void assertSubmitError() {
TestPipeline f = submitError;
PipelineRunner pipelineRunner = pipeliteServices.runner().getPipelineRunner(f.pipelineName()).get();
assertThat(pipelineRunner.getActiveProcessRunners().size()).isEqualTo(0);
PipelineMetrics pipelineMetrics = metrics.pipeline(f.pipelineName());
assertThat(pipelineMetrics.process().getInternalErrorCount()).isEqualTo(0);
assertThat(pipelineMetrics.process().getCompletedCount()).isZero();
assertThat(pipelineMetrics.process().getFailedCount()).isEqualTo(PROCESS_CNT);
assertThat(pipelineMetrics.stage().getFailedCount()).isEqualTo(PROCESS_CNT);
assertThat(pipelineMetrics.stage().getSuccessCount()).isEqualTo(0);
assertThat(f.stageExecutor.firstExecuteCalledCount.get()).isEqualTo(PROCESS_CNT);
assertThat(f.stageExecutor.subsequentExecuteCalledCount.get()).isEqualTo(0);
}
use of pipelite.metrics.PipelineMetrics in project pipelite by enasequence.
the class PipelineRunnerAsyncTest method assertPollError.
private void assertPollError() {
TestPipeline f = pollError;
PipelineRunner pipelineRunner = pipeliteServices.runner().getPipelineRunner(f.pipelineName()).get();
assertThat(pipelineRunner.getActiveProcessRunners().size()).isEqualTo(0);
PipelineMetrics pipelineMetrics = metrics.pipeline(f.pipelineName());
assertThat(pipelineMetrics.process().getInternalErrorCount()).isEqualTo(0);
assertThat(pipelineMetrics.process().getCompletedCount()).isZero();
assertThat(pipelineMetrics.process().getFailedCount()).isEqualTo(PROCESS_CNT);
assertThat(pipelineMetrics.stage().getFailedCount()).isEqualTo(PROCESS_CNT);
assertThat(pipelineMetrics.stage().getSuccessCount()).isEqualTo(0);
assertThat(f.stageExecutor.firstExecuteCalledCount.get()).isEqualTo(PROCESS_CNT);
assertThat(f.stageExecutor.subsequentExecuteCalledCount.get()).isEqualTo(PROCESS_CNT);
}
use of pipelite.metrics.PipelineMetrics in project pipelite by enasequence.
the class PipelineRunnerAsyncTest method assertPollException.
private void assertPollException() {
TestPipeline f = pollException;
PipelineRunner pipelineRunner = pipeliteServices.runner().getPipelineRunner(f.pipelineName()).get();
assertThat(pipelineRunner.getActiveProcessRunners().size()).isEqualTo(0);
PipelineMetrics pipelineMetrics = metrics.pipeline(f.pipelineName());
assertThat(pipelineMetrics.process().getInternalErrorCount()).isEqualTo(PROCESS_CNT);
assertThat(pipelineMetrics.process().getCompletedCount()).isZero();
assertThat(pipelineMetrics.process().getFailedCount()).isEqualTo(PROCESS_CNT);
assertThat(pipelineMetrics.stage().getFailedCount()).isEqualTo(PROCESS_CNT);
assertThat(pipelineMetrics.stage().getSuccessCount()).isEqualTo(0);
assertThat(f.stageExecutor.firstExecuteCalledCount.get()).isEqualTo(PROCESS_CNT);
assertThat(f.stageExecutor.subsequentExecuteCalledCount.get()).isEqualTo(PROCESS_CNT);
}
Aggregations