use of org.jboss.tools.openshift.reddeer.view.resources.OpenShiftProject in project jbosstools-openshift by jbosstools.
the class ResourcesTest method testResourcesExistence.
@Test
public void testResourcesExistence() {
OpenShiftExplorerView explorer = new OpenShiftExplorerView();
explorer.open();
OpenShiftProject project = explorer.getOpenShift3Connection(connectionReq.getConnection()).getProject(DatastoreOS3.TEST_PROJECT);
project.expand();
TreeItem projectItem = project.getTreeItem();
verifyResourceExistence(projectItem, Resource.BUILD_CONFIG);
verifyResourceExistence(projectItem, Resource.BUILD);
verifyResourceExistence(projectItem, Resource.DEPLOYMENT_CONFIG);
verifyResourceExistence(projectItem, Resource.IMAGE_STREAM);
verifyResourceExistence(projectItem, Resource.POD);
verifyResourceExistence(projectItem, Resource.ROUTE);
verifyResourceExistence(projectItem, Resource.SERVICE);
}
use of org.jboss.tools.openshift.reddeer.view.resources.OpenShiftProject in project jbosstools-openshift by jbosstools.
the class OpenShiftUtils method getOpenShiftProject.
public static OpenShiftProject getOpenShiftProject(String projectName, Connection connection) {
OpenShiftExplorerView explorer = new OpenShiftExplorerView();
OpenShiftProject project = explorer.getOpenShift3Connection(connection).getProject(projectName);
assertThat("Could not find project " + projectName + " in OpenShift Explorer", project, notNullValue());
project.expand();
return project;
}
Aggregations