use of org.jboss.tools.cdk.reddeer.server.ui.editor.CDK3ServerEditor in project jbosstools-openshift by jbosstools.
the class CDK3ServerEditorTest method setServerEditor.
public void setServerEditor() {
serversView = new CDKServersView();
serversView.open();
serversView.getServer(getServerAdapter()).open();
editor = new CDK3ServerEditor(getServerAdapter());
editor.activate();
new WaitUntil(new JobIsRunning(), TimePeriod.getCustom(1), false);
}
use of org.jboss.tools.cdk.reddeer.server.ui.editor.CDK3ServerEditor 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