Search in sources :

Example 16 with PipelineStart

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);
}
Also used : PipelineConfiguration(com.epam.pipeline.entity.configuration.PipelineConfiguration) PipelineStart(com.epam.pipeline.entity.pipeline.run.PipelineStart) Test(org.junit.Test) AbstractManagerTest(com.epam.pipeline.manager.AbstractManagerTest)

Aggregations

PipelineStart (com.epam.pipeline.entity.pipeline.run.PipelineStart)16 PipelineConfiguration (com.epam.pipeline.entity.configuration.PipelineConfiguration)7 AbstractManagerTest (com.epam.pipeline.manager.AbstractManagerTest)7 Test (org.junit.Test)7 Tool (com.epam.pipeline.entity.pipeline.Tool)4 PipeConfValueVO (com.epam.pipeline.entity.configuration.PipeConfValueVO)3 Transactional (org.springframework.transaction.annotation.Transactional)3 ConfigurationEntry (com.epam.pipeline.entity.configuration.ConfigurationEntry)2 AbstractDataStorage (com.epam.pipeline.entity.datastorage.AbstractDataStorage)2 NFSDataStorage (com.epam.pipeline.entity.datastorage.nfs.NFSDataStorage)2 PipelineRun (com.epam.pipeline.entity.pipeline.PipelineRun)2 AclPermission (com.epam.pipeline.security.acl.AclPermission)2 ArrayList (java.util.ArrayList)2 Collections (java.util.Collections)2 List (java.util.List)2 Autowired (org.springframework.beans.factory.annotation.Autowired)2 WithMockUser (org.springframework.security.test.context.support.WithMockUser)2 TestApplicationWithAclSecurity (com.epam.pipeline.app.TestApplicationWithAclSecurity)1 MessageConstants (com.epam.pipeline.common.MessageConstants)1 MessageHelper (com.epam.pipeline.common.MessageHelper)1