use of org.eclipse.linuxtools.docker.reddeer.ui.RunDockerImageLaunchConfiguration in project linuxtools by eclipse.
the class LaunchDockerImageTest method deleteIfExists.
private void deleteIfExists(String configurationName) {
RunDockerImageLaunchConfiguration runImageConf = new RunDockerImageLaunchConfiguration();
try {
runImageConf.open();
runImageConf.deleteRunConfiguration(configurationName);
runImageConf.close();
} catch (RedDeerException e) {
// catched intentionally
}
}
use of org.eclipse.linuxtools.docker.reddeer.ui.RunDockerImageLaunchConfiguration in project linuxtools by eclipse.
the class LaunchDockerImageTest method testLaunchConfiguration.
@Test
public void testLaunchConfiguration() {
String imageName = getCompleteImageName(IMAGE_HELLO_WORLD);
RunDockerImageLaunchConfiguration runImageConf = new RunDockerImageLaunchConfiguration();
try {
runDockerImageLaunchConfiguration(imageName + NAME_TAG_SEPARATOR + IMAGE_TAG_LATEST, CONTAINER_NAME, CONFIGURATION_NAME, runImageConf);
if (mockitoIsUsed()) {
MockUtils.runContainer(DEFAULT_CONNECTION_NAME, imageName, IMAGE_TAG_LATEST, CONTAINER_NAME);
getConnection().refresh();
new WaitUntil(new ContainerIsDeployedCondition(CONTAINER_NAME, getConnection()));
}
} catch (WaitTimeoutExpiredException ex) {
throw ex;
}
assertTrue("Container is not deployed!", containerIsDeployed(CONTAINER_NAME));
}
Aggregations