use of com.openshift.restclient.images.DockerImageURI in project jbosstools-openshift by jbosstools.
the class DockerImage2OpenshiftResourceConverterTest method testDoubleLeadingUnderscore.
@Test
public void testDoubleLeadingUnderscore() {
String resourceName = converter.convert(new DockerImageURI("__image"));
assertEquals("image", resourceName);
}
use of com.openshift.restclient.images.DockerImageURI in project jbosstools-openshift by jbosstools.
the class DockerImage2OpenshiftResourceConverterTest method testDoubleUnderscore.
@Test
public void testDoubleUnderscore() {
String resourceName = converter.convert(new DockerImageURI("image__sub"));
assertEquals("image-sub", resourceName);
}
use of com.openshift.restclient.images.DockerImageURI in project jbosstools-openshift by jbosstools.
the class DockerImage2OpenshiftResourceConverterTest method testUnderscore.
@Test
public void testUnderscore() {
String resourceName = converter.convert(new DockerImageURI("image_sub"));
assertEquals("image-sub", resourceName);
}
use of com.openshift.restclient.images.DockerImageURI in project jbosstools-openshift by jbosstools.
the class DockerImage2OpenshiftResourceConverterTest method testUpperCase.
@Test
public void testUpperCase() {
String resourceName = converter.convert(new DockerImageURI("MYIMAGE"));
assertEquals("MYIMAGE", resourceName);
}
use of com.openshift.restclient.images.DockerImageURI in project jbosstools-openshift by jbosstools.
the class DockerImage2OpenshiftResourceConverterTest method testSingleNumeric.
@Test
public void testSingleNumeric() {
String resourceName = converter.convert(new DockerImageURI("1"));
assertEquals("a1", resourceName);
}
Aggregations