use of org.jboss.tools.openshift.reddeer.condition.ApplicationPodIsRunning in project jbosstools-openshift by jbosstools.
the class PublishChangesTest method waitForRunningApplication.
@BeforeClass
public static void waitForRunningApplication() {
new ProjectExplorer().deleteAllProjects(true);
new WaitUntil(new OpenShiftResourceExists(Resource.BUILD, "eap-app-1", ResourceState.COMPLETE, projectReq.getProjectName(), connectionReq.getConnection()), TimePeriod.getCustom(1000));
OpenShiftExplorerView openShiftExplorerView = new OpenShiftExplorerView();
OpenShiftProject project = openShiftExplorerView.getOpenShift3Connection(connectionReq.getConnection()).getProject(projectReq.getProjectName());
new WaitUntil(new ApplicationPodIsRunning(project), TimePeriod.LONG);
cloneGitRepoAndImportProject();
}
use of org.jboss.tools.openshift.reddeer.condition.ApplicationPodIsRunning in project jbosstools-openshift by jbosstools.
the class PortForwardingTest method openPortForwardingDialog.
private void openPortForwardingDialog() {
OpenShift3Connection openShift3Connection = new OpenShiftExplorerView().getOpenShift3Connection(connectionReq.getConnection());
ApplicationPodIsRunning applicationPodIsRunning = new ApplicationPodIsRunning(openShift3Connection.getProject(projectReq.getProjectName()));
new WaitUntil(applicationPodIsRunning, TimePeriod.LONG);
openShift3Connection.getProject(projectReq.getProjectName()).getOpenShiftResource(Resource.POD, applicationPodIsRunning.getApplicationPodName()).select();
new ContextMenuItem(OpenShiftLabel.ContextMenu.PORT_FORWARD).select();
new DefaultShell(OpenShiftLabel.Shell.APPLICATION_PORT_FORWARDING);
}
Aggregations