use of org.jboss.tools.openshift.internal.ui.property.KeyValuePropertySource in project jbosstools-openshift by jbosstools.
the class BuildConfigPropertySourceTest method getCustomPropertyValues.
@Test
public void getCustomPropertyValues() {
ICustomBuildStrategy strategy = givenCustomBuildStrategy();
assertEquals(BuildStrategyType.CUSTOM, source.getPropertyValue(BuildConfigPropertySource.Ids.Type));
assertEquals(strategy.getImage(), source.getPropertyValue(BuildConfigPropertySource.Ids.CUSTOM_IMAGE));
assertEquals(strategy.exposeDockerSocket(), source.getPropertyValue(BuildConfigPropertySource.Ids.CUSTOM_EXPOSE_DOCKER_SOCKET));
assertEquals(new KeyValuePropertySource(strategy.getEnvironmentVariables()), source.getPropertyValue(BuildConfigPropertySource.Ids.CUSTOM_ENV));
}
use of org.jboss.tools.openshift.internal.ui.property.KeyValuePropertySource in project jbosstools-openshift by jbosstools.
the class BuildConfigPropertySourceTest method getSTIPropertyValues.
@Test
public void getSTIPropertyValues() {
ISourceBuildStrategy strategy = givenSTIBuildStrategy();
assertEquals(BuildStrategyType.SOURCE, source.getPropertyValue(BuildConfigPropertySource.Ids.Type));
assertEquals(strategy.getScriptsLocation(), source.getPropertyValue(BuildConfigPropertySource.Ids.STI_SCRIPT_LOCATION));
assertEquals(strategy.getImage(), source.getPropertyValue(BuildConfigPropertySource.Ids.STI_IMAGE));
assertEquals(new KeyValuePropertySource(strategy.getEnvironmentVariables()), source.getPropertyValue(BuildConfigPropertySource.Ids.STI_ENV));
}
Aggregations