Search in sources :

Example 16 with DockerImageURI

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);
}
Also used : DockerImageURI(com.openshift.restclient.images.DockerImageURI) Test(org.junit.Test)

Example 17 with DockerImageURI

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);
}
Also used : DockerImageURI(com.openshift.restclient.images.DockerImageURI) Test(org.junit.Test)

Example 18 with DockerImageURI

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);
}
Also used : DockerImageURI(com.openshift.restclient.images.DockerImageURI) Test(org.junit.Test)

Example 19 with DockerImageURI

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);
}
Also used : DockerImageURI(com.openshift.restclient.images.DockerImageURI) Test(org.junit.Test)

Example 20 with DockerImageURI

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);
}
Also used : DockerImageURI(com.openshift.restclient.images.DockerImageURI) Test(org.junit.Test)

Aggregations

DockerImageURI (com.openshift.restclient.images.DockerImageURI)39 Test (org.junit.Test)23 IDeploymentImageChangeTrigger (com.openshift.restclient.model.deploy.IDeploymentImageChangeTrigger)9 IDeploymentConfig (com.openshift.restclient.model.IDeploymentConfig)6 IImageStream (com.openshift.restclient.model.IImageStream)5 ISourceBuildStrategy (com.openshift.restclient.model.build.ISourceBuildStrategy)5 IImageStreamImportCapability (com.openshift.restclient.capability.resources.IImageStreamImportCapability)4 IResource (com.openshift.restclient.model.IResource)4 IImageStreamImport (com.openshift.restclient.model.image.IImageStreamImport)4 HashMap (java.util.HashMap)4 IResourceFactory (com.openshift.restclient.IResourceFactory)3 IBuildConfig (com.openshift.restclient.model.IBuildConfig)3 IProject (com.openshift.restclient.model.IProject)3 IStatus (com.openshift.restclient.model.IStatus)3 ICustomBuildStrategy (com.openshift.restclient.model.build.ICustomBuildStrategy)3 IDockerBuildStrategy (com.openshift.restclient.model.build.IDockerBuildStrategy)3 Collection (java.util.Collection)3 EnvironmentVariable (org.jboss.tools.openshift.internal.ui.wizard.common.EnvironmentVariable)3 ResourceKind (com.openshift.restclient.ResourceKind)2 IBuildStrategy (com.openshift.restclient.model.build.IBuildStrategy)2