use of com.epam.pipeline.entity.pipeline.run.PipelineStart in project cloud-pipeline by epam.
the class PipelineConfigurationForRunnerTest method shouldGetConfigurationForPipelineRun.
@Test
public void shouldGetConfigurationForPipelineRun() {
PipelineStart vo = getPipelineStartVO();
vo.setPipelineId(1L);
vo.setVersion("draft");
PipelineConfiguration config = pipelineConfigurationManager.getPipelineConfiguration(vo);
commonPipelineConfigurationAssertions(config);
assertThat(config).hasFieldOrPropertyWithValue(INSTANCE_DISK_FIELD, TEST_HDD_SIZE).hasFieldOrPropertyWithValue(WORKED_CMD_FIELD, // from default configuration
TEST_WORKED_CMD);
assertThat(config.getParameters()).isNotEmpty().hasSize(2).containsKeys(TEST_PARAM_1, // from default configuration
TEST_PARAM_2);
}
Aggregations