use of org.jboss.tools.openshift.reddeer.wizard.importapp.GitCloningWizardPage 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();
}
use of org.jboss.tools.openshift.reddeer.wizard.importapp.GitCloningWizardPage in project jbosstools-openshift by jbosstools.
the class ImportApplicationWizardGitTest method testNoRepoRemote.
@Test
public void testNoRepoRemote() {
createRepo();
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);
assertGitRemoteErrorInWizzard(importWizard);
importWizard.cancel();
}
use of org.jboss.tools.openshift.reddeer.wizard.importapp.GitCloningWizardPage in project jbosstools-openshift by jbosstools.
the class ImportApplicationWizardGitTest method testNotMatchingRepoRemote.
@Test
public void testNotMatchingRepoRemote() {
Git repo = createRepo();
setRemote(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);
assertGitRemoteErrorInWizzard(importWizard);
importWizard.cancel();
}
use of org.jboss.tools.openshift.reddeer.wizard.importapp.GitCloningWizardPage in project jbosstools-openshift by jbosstools.
the class ImportApplicationWizardTest method testImportOpenShift3AppViaOpenshiftViewTwice.
@Test
public void testImportOpenShift3AppViaOpenshiftViewTwice() {
testImportOpenShift3AppViaOpenshiftView();
ImportApplicationWizard importWizard = OpenShiftUtils.openImportApplicationWizardFromOpenshiftView(project);
GitCloningWizardPage gitWizardPage = new GitCloningWizardPage();
assertTrue("There should be an error in the wizard (There already is a project with specified name)", gitWizardPage.projectExists());
gitWizardPage.useExistingRepository(true);
importWizard.finishAndOverrideExisting();
assertProjectExistsInProjectView(OpenShiftResources.NODEJS_GIT_NAME);
}
Aggregations