Search in sources :

Example 6 with DockerContainersTab

use of org.eclipse.linuxtools.docker.reddeer.ui.DockerContainersTab in project linuxtools by eclipse.

the class PropertiesViewTest method testContainerPropertiesTab.

@Test
public void testContainerPropertiesTab() {
    DockerImagesTab imagesTab = openDockerImagesTab();
    imagesTab.runImage(IMAGE_NAME);
    ImageRunSelectionPage firstPage = new ImageRunSelectionPage(imagesTab);
    firstPage.setContainerName(CONTAINER_NAME);
    firstPage.finish();
    // new WaitWhile(new ContainerIsDeployedCondition(CONTAINER_NAME,
    // getConnection()));
    DockerContainersTab containerTab = new DockerContainersTab();
    containerTab.activate();
    containerTab.refresh();
    new WaitWhile(new JobIsRunning());
    if (mockitoIsUsed()) {
        MockUtils.runContainer(DEFAULT_CONNECTION_NAME, IMAGE_NAME, IMAGE_TAG_LATEST, CONTAINER_NAME);
    }
    getConnection();
    // open Properties view
    PropertySheet propertiesView = new PropertySheet();
    propertiesView.open();
    containerTab.select(CONTAINER_NAME);
    propertiesView.selectTab("Info");
}
Also used : ImageRunSelectionPage(org.eclipse.linuxtools.docker.reddeer.core.ui.wizards.ImageRunSelectionPage) WaitWhile(org.eclipse.reddeer.common.wait.WaitWhile) PropertySheet(org.eclipse.reddeer.eclipse.ui.views.properties.PropertySheet) DockerImagesTab(org.eclipse.linuxtools.docker.reddeer.ui.DockerImagesTab) DockerContainersTab(org.eclipse.linuxtools.docker.reddeer.ui.DockerContainersTab) JobIsRunning(org.eclipse.reddeer.workbench.core.condition.JobIsRunning) Test(org.junit.Test) AbstractImageBotTest(org.eclipse.linuxtools.docker.integration.tests.image.AbstractImageBotTest)

Aggregations

DockerContainersTab (org.eclipse.linuxtools.docker.reddeer.ui.DockerContainersTab)6 Test (org.junit.Test)5 AbstractImageBotTest (org.eclipse.linuxtools.docker.integration.tests.image.AbstractImageBotTest)4 DockerImagesTab (org.eclipse.linuxtools.docker.reddeer.ui.DockerImagesTab)3 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)3 PropertySheet (org.eclipse.reddeer.eclipse.ui.views.properties.PropertySheet)3 JobIsRunning (org.eclipse.reddeer.workbench.core.condition.JobIsRunning)3 ImageRunSelectionPage (org.eclipse.linuxtools.docker.reddeer.core.ui.wizards.ImageRunSelectionPage)2 ContainerIsDeployedCondition (org.eclipse.linuxtools.docker.reddeer.condition.ContainerIsDeployedCondition)1 ImageRunResourceVolumesVariablesPage (org.eclipse.linuxtools.docker.reddeer.core.ui.wizards.ImageRunResourceVolumesVariablesPage)1 DockerExplorerView (org.eclipse.linuxtools.docker.reddeer.ui.DockerExplorerView)1 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)1 TableItem (org.eclipse.reddeer.swt.api.TableItem)1