use of org.jboss.tools.openshift.reddeer.wizard.v3.BasicAuthenticationSection in project jbosstools-openshift by jbosstools.
the class CreateNewConnectionTest method testCreateNewV3BasicConnection.
@Test
@RunIf(conditionClass = ConnectionCredentialsExists.class)
public void testCreateNewV3BasicConnection() {
OpenShiftExplorerView explorer = new OpenShiftExplorerView();
explorer.open();
DatastoreOS3.AUTH_METHOD = AuthenticationMethod.BASIC;
explorer.openConnectionShell();
OpenShift3ConnectionWizard connectionWizard = new OpenShift3ConnectionWizard();
connectionWizard.setServer(DatastoreOS3.SERVER);
connectionWizard.switchAuthenticationSection(DatastoreOS3.AUTH_METHOD);
BasicAuthenticationSection authSection = (BasicAuthenticationSection) connectionWizard.getAuthSection();
authSection.setUsername(DatastoreOS3.USERNAME);
authSection.setPassword(DatastoreOS3.PASSWORD);
authSection.setSavePassword(false);
connectionWizard.finishAndHandleCertificate();
assertTrue("Connection does not exist in OpenShift Explorer view", explorer.connectionExists(DatastoreOS3.USERNAME));
}
Aggregations