use of org.jboss.tools.cdk.reddeer.core.condition.SystemJobIsRunning in project jbosstools-openshift by jbosstools.
the class MinishiftServerEditorTest method setupServerWizardPage.
@Override
protected void setupServerWizardPage(NewMenuWizard dialog) {
NewServerWizardPage page = new NewServerWizardPage(dialog);
page.selectType(SERVER_TYPE_GROUP, MINISHIFT_SERVER_NAME);
page.setName(SERVER_ADAPTER_MINISHIFT);
dialog.next();
NewMinishiftServerWizardPage containerPage = new NewMinishiftServerWizardPage();
log.info("Setting hypervisor to: " + hypervisor);
containerPage.setHypervisor(hypervisor);
log.info("Setting binary to " + MINISHIFT_PATH);
containerPage.setMinishiftBinary(MINISHIFT_PATH);
new WaitWhile(new SystemJobIsRunning(getJobMatcher(MINISHIFT_VALIDATION_JOB)), TimePeriod.MEDIUM, false);
}
use of org.jboss.tools.cdk.reddeer.core.condition.SystemJobIsRunning in project jbosstools-openshift by jbosstools.
the class CDK3ServerEditorTest method setupServerWizardPage.
@Override
protected void setupServerWizardPage(NewMenuWizard dialog) {
NewServerWizardPage page = new NewServerWizardPage(dialog);
page.selectType(SERVER_TYPE_GROUP, CDK3_SERVER_NAME);
page.setName(SERVER_ADAPTER_3);
dialog.next();
NewCDK3ServerWizardPage containerPage = new NewCDK3ServerWizardPage();
containerPage.setCredentials(USERNAME, PASSWORD);
if (StringUtils.isEmptyOrNull(hypervisor)) {
log.info("Hypervisor parameter has no value or is null, default value will be kept: " + containerPage.getHypervisorCombo().getText());
} else {
log.info("Setting hypervisor to: " + hypervisor);
containerPage.setHypervisor(hypervisor);
}
log.info("Setting binary to " + MINISHIFT_PATH);
containerPage.setMinishiftBinary(MINISHIFT_PATH);
new WaitWhile(new SystemJobIsRunning(getJobMatcher(MINISHIFT_VALIDATION_JOB)), TimePeriod.MEDIUM, false);
}
use of org.jboss.tools.cdk.reddeer.core.condition.SystemJobIsRunning in project jbosstools-openshift by jbosstools.
the class CDK32ServerEditorTest method setupServerWizardPage.
@Override
protected void setupServerWizardPage(NewMenuWizard dialog) {
NewServerWizardPage page = new NewServerWizardPage(dialog);
page.selectType(SERVER_TYPE_GROUP, CDK32_SERVER_NAME);
page.setName(getServerAdapter());
dialog.next();
NewCDK32ServerWizardPage containerPage = new NewCDK32ServerWizardPage();
containerPage.setCredentials(USERNAME, PASSWORD);
log.info("Setting hypervisor to: " + hypervisor);
containerPage.setHypervisor(hypervisor);
log.info("Setting binary to " + CDK32_MINISHIFT);
containerPage.setMinishiftBinary(CDK32_MINISHIFT);
// here comes possibility to set profile while creating server adapter
log.info("Setting profile to: ");
containerPage.setMinishiftProfile("");
new WaitWhile(new SystemJobIsRunning(getJobMatcher(MINISHIFT_VALIDATION_JOB)), TimePeriod.MEDIUM, false);
}
use of org.jboss.tools.cdk.reddeer.core.condition.SystemJobIsRunning in project jbosstools-openshift by jbosstools.
the class CDKServerAdapterAbstractTest method passCredentialsIntoEnvironment.
protected void passCredentialsIntoEnvironment(boolean pass) {
getCDKServer().open();
CDK3ServerEditor editor = new CDK3ServerEditor(getCDKServer().getLabel().getName());
editor.getPassCredentialsCheckBox().toggle(pass);
new WaitUntil(new EditorIsDirty(editor), TimePeriod.MEDIUM, false);
new WaitWhile(new SystemJobIsRunning(getJobMatcher(MINISHIFT_VALIDATION_JOB)), TimePeriod.MEDIUM);
try {
editor.save();
} catch (WorkbenchLayerException exc) {
String message = exc.getMessage().toLowerCase();
if (message.contains("save") && message.contains("not enabled")) {
log.info("There was nothing to save");
} else {
throw exc;
}
}
}
Aggregations