use of org.jboss.tools.openshift.reddeer.wizard.importapp.ImportApplicationWizard in project jbosstools-openshift by jbosstools.
the class ImportApplicationWizardTest method testImportOpenShift3AppViaOpenshiftView.
@Test
public void testImportOpenShift3AppViaOpenshiftView() {
ImportApplicationWizard importWizard = OpenShiftUtils.openImportApplicationWizardFromOpenshiftView(project);
importWizard.finish();
assertProjectExistsInProjectView(OpenShiftResources.NODEJS_GIT_NAME);
}
use of org.jboss.tools.openshift.reddeer.wizard.importapp.ImportApplicationWizard in project jbosstools-openshift by jbosstools.
the class ImportApplicationWizardTest method testImportOpenShift3AppWizardGitAPI.
@Test
public void testImportOpenShift3AppWizardGitAPI() {
ImportApplicationWizard importWizard = OpenShiftUtils.openImportApplicationWizardFromOpenshiftView(project);
String gitUrl = getGitUrlFromWizard();
importWizard.cancel();
assertTrue("Git URL error. Retrieved git URL: '" + gitUrl + "'", gitUrl != null && gitUrl.startsWith("https://github.com"));
}
use of org.jboss.tools.openshift.reddeer.wizard.importapp.ImportApplicationWizard in project jbosstools-openshift by jbosstools.
the class OpenShiftUtils method openImportApplicationWizardFromOpenshiftView.
public static ImportApplicationWizard openImportApplicationWizardFromOpenshiftView(OpenShiftProject openshiftProject) {
openshiftProject.select();
new ContextMenuItem(OpenShiftLabel.ContextMenu.IMPORT_APPLICATION).select();
new WaitUntil(new ShellIsAvailable(OpenShiftLabel.Shell.IMPORT_APPLICATION));
return new ImportApplicationWizard();
}
use of org.jboss.tools.openshift.reddeer.wizard.importapp.ImportApplicationWizard in project jbosstools-openshift by jbosstools.
the class ImportApplicationWizardGitTest method testNotGitRepo.
@Test
public void testNotGitRepo() {
assertTrue("Failed to create test project non git folder!", projectFolder.mkdir());
service.select();
new ContextMenuItem(OpenShiftLabel.ContextMenu.IMPORT_APPLICATION).select();
new WaitUntil(new ShellIsAvailable(OpenShiftLabel.Shell.IMPORT_APPLICATION));
ImportApplicationWizard importWizard = new ImportApplicationWizard();
assertProjectExistsErrorInWizard(importWizard);
CheckBox useExistingRepositoryCheckBox = new CheckBox(new DefaultGroup("Clone destination"), "Do not clone - use existing repository");
assertFalse("Empty non git folder should not be able to choose!", useExistingRepositoryCheckBox.isEnabled());
importWizard.cancel();
}
use of org.jboss.tools.openshift.reddeer.wizard.importapp.ImportApplicationWizard in project jbosstools-openshift by jbosstools.
the class ImportApplicationWizardGitTest method testNotExistingBranch.
@Test(expected = OpenshiftTestInFailureException.class)
public void testNotExistingBranch() {
Git repo = createRepo();
setRemote(repo, getOriginURL());
performCommit(repo);
renameMaster(repo);
service.select();
new ContextMenuItem(OpenShiftLabel.ContextMenu.IMPORT_APPLICATION).select();
new WaitUntil(new ShellIsAvailable(OpenShiftLabel.Shell.IMPORT_APPLICATION));
ImportApplicationWizard importWizard = new ImportApplicationWizard();
assertProjectExistsErrorInWizard(importWizard);
GitCloningWizardPage gitCloningWizardPage = new GitCloningWizardPage();
gitCloningWizardPage.useExistingRepository(true);
try {
assertGitRemoteErrorInWizzard(importWizard);
} catch (AssertionError err) {
importWizard.cancel();
throw new OpenshiftTestInFailureException("https://issues.jboss.org/browse/JBIDE-24646", err);
}
importWizard.cancel();
}
Aggregations