use of pipelite.entity.StageEntity in project pipelite by enasequence.
the class StageEntityAsserter method assertCompletedKubernetesStageEntity.
public static void assertCompletedKubernetesStageEntity(StageService stageService, TestType testType, KubernetesTestConfiguration kubernetesTestConfiguration, String pipelineName, String processId, String stageName) {
String exitCode = testType.lastExitCode(pipelineName, processId, stageName);
StageEntity stageEntity = assertCompletedStageEntity(stageService, testType, pipelineName, processId, stageName);
assertKubernetesStageEntity(testType, kubernetesTestConfiguration, stageEntity);
assertThat(stageEntity.getResultParams()).contains("\"exit code\" : \"" + exitCode + "\"");
assertThat(stageEntity.getResultParams()).contains("\"job id\" :");
assertThat(String.valueOf(stageEntity.getExitCode())).isEqualTo(exitCode);
}
use of pipelite.entity.StageEntity in project pipelite by enasequence.
the class StageEntityAsserter method assertSubmittedKubernetesStageEntity.
public static void assertSubmittedKubernetesStageEntity(StageService stageService, TestType testType, KubernetesTestConfiguration kubernetesTestConfiguration, String pipelineName, String processId, String stageName) {
StageEntity stageEntity = assertSubmittedStageEntity(stageService, testType, pipelineName, processId, stageName);
assertKubernetesStageEntity(testType, kubernetesTestConfiguration, stageEntity);
}
Aggregations