use of org.jboss.tools.openshift.reddeer.view.resources.OpenShift3Connection in project jbosstools-openshift by jbosstools.
the class CreateNewProjectTest method testCreateNewProjectViaContextMenu.
@Test
public void testCreateNewProjectViaContextMenu() {
OpenShiftExplorerView explorer = new OpenShiftExplorerView();
explorer.reopen();
OpenShift3Connection connection = explorer.getOpenShift3Connection(connectionReq.getConnection());
try {
connection.createNewProject2();
} catch (RedDeerException ex) {
fail("OpenShift project created for a connection has not been shown in OpenShift explorer.\n" + ex.getMessage());
}
}
use of org.jboss.tools.openshift.reddeer.view.resources.OpenShift3Connection in project jbosstools-openshift by jbosstools.
the class DeleteProjectTest method testDeleteProjectViaContextMenu.
@Test
public void testDeleteProjectViaContextMenu() {
projectExists = true;
OpenShiftExplorerView explorer = new OpenShiftExplorerView();
explorer.open();
OpenShift3Connection connection = explorer.getOpenShift3Connection(connectionReq.getConnection());
connection.getProject(PROJECT_NAME).delete();
projectExists = false;
assertFalse("Project is still presented in OpenShift explorer under a connection.", connection.projectExists(PROJECT_NAME));
}
use of org.jboss.tools.openshift.reddeer.view.resources.OpenShift3Connection in project jbosstools-openshift by jbosstools.
the class ProjectNameValidationTest method openNewProjectShell.
private void openNewProjectShell() {
OpenShiftExplorerView explorer = new OpenShiftExplorerView();
explorer.reopen();
OpenShift3Connection connection = explorer.getOpenShift3Connection(connectionReq.getConnection());
connection.select();
new ContextMenuItem(OpenShiftLabel.ContextMenu.NEW_OS_PROJECT).select();
new DefaultShell(OpenShiftLabel.Shell.CREATE_OS_PROJECT);
}
use of org.jboss.tools.openshift.reddeer.view.resources.OpenShift3Connection in project jbosstools-openshift by jbosstools.
the class DeployDockerImageTest method createProjects.
private static void createProjects() {
OpenShiftExplorerView explorer = new OpenShiftExplorerView();
explorer.open();
OpenShift3Connection connection = explorer.getOpenShift3Connection(openshiftConnectionRequirement.getConnection());
connection.createNewProject(PROJECT1);
connection.createNewProject(PROJECT2);
}
use of org.jboss.tools.openshift.reddeer.view.resources.OpenShift3Connection in project jbosstools-openshift by jbosstools.
the class ProjectPropertiesTest method setUp.
@Before
public void setUp() {
OpenShiftExplorerView explorer = new OpenShiftExplorerView();
explorer.open();
OpenShift3Connection connection = explorer.getOpenShift3Connection(connectionReq.getConnection());
project = connection.getProject(DatastoreOS3.TEST_PROJECT);
project.select();
project.openProperties();
propertiesView = new PropertySheet();
}
Aggregations