Search in sources :

Example 11 with PipeConfValueVO

use of com.epam.pipeline.entity.configuration.PipeConfValueVO in project cloud-pipeline by epam.

the class PipelineRunTest method shouldReturnValidStringWithoutType.

@Test
public void shouldReturnValidStringWithoutType() {
    PipelineRun pipelineRun = new PipelineRun();
    Map<String, PipeConfValueVO> params = new HashMap<>();
    params.put(PARAM1_NAME, new PipeConfValueVO(PARAM1_VALUE, null));
    params.put(PARAM2_NAME, new PipeConfValueVO(PARAM2_VALUE, null));
    pipelineRun.convertParamsToString(params);
    assertThat(pipelineRun.getParams(), is(glueParams(glueParam(PARAM1_NAME, PARAM1_VALUE), glueParam(PARAM2_NAME, PARAM2_VALUE))));
}
Also used : PipeConfValueVO(com.epam.pipeline.entity.configuration.PipeConfValueVO) HashMap(java.util.HashMap) Test(org.junit.Test)

Aggregations

PipeConfValueVO (com.epam.pipeline.entity.configuration.PipeConfValueVO)11 PipelineConfiguration (com.epam.pipeline.entity.configuration.PipelineConfiguration)4 HashMap (java.util.HashMap)4 Test (org.junit.Test)4 ConfigurationEntry (com.epam.pipeline.entity.configuration.ConfigurationEntry)2 ToolVersion (com.epam.pipeline.entity.docker.ToolVersion)2 PipelineStart (com.epam.pipeline.entity.pipeline.run.PipelineStart)2 AbstractSpringTest (com.epam.pipeline.AbstractSpringTest)1 MessageConstants (com.epam.pipeline.common.MessageConstants)1 MessageHelper (com.epam.pipeline.common.MessageHelper)1 AbstractDataStorage (com.epam.pipeline.entity.datastorage.AbstractDataStorage)1 NFSDataStorage (com.epam.pipeline.entity.datastorage.nfs.NFSDataStorage)1 MetadataEntity (com.epam.pipeline.entity.metadata.MetadataEntity)1 PipeConfValue (com.epam.pipeline.entity.metadata.PipeConfValue)1 PipelineRun (com.epam.pipeline.entity.pipeline.PipelineRun)1 RunInstance (com.epam.pipeline.entity.pipeline.RunInstance)1 Tool (com.epam.pipeline.entity.pipeline.Tool)1 GitClientException (com.epam.pipeline.exception.git.GitClientException)1 AbstractManagerTest (com.epam.pipeline.manager.AbstractManagerTest)1 DataStorageApiService (com.epam.pipeline.manager.datastorage.DataStorageApiService)1