use of org.jenkinsci.test.acceptance.po.JenkinsConfig in project acceptance-test-harness by jenkinsci.
the class OpenstackCloudPluginTest method testConnection.
@Test
public void testConnection() {
JenkinsConfig config = jenkins.getConfigPage();
config.configure();
OpenstackCloud cloud = addCloud(config);
FormValidation val = cloud.testConnection();
assertThat(val, FormValidation.reports(OK, "Connection succeeded!"));
}
use of org.jenkinsci.test.acceptance.po.JenkinsConfig in project acceptance-test-harness by jenkinsci.
the class KerberosSsoTest method configureSso.
/**
* Turn the SSO on in Jenkins.
*
* @param allowAnonymous Require authentication on all URLs.
* @param allowBasic Allow basic authentication.
*/
private void configureSso(KerberosContainer kdc, boolean allowAnonymous, boolean allowBasic) {
// Turn Jenkins side debugging on
jenkins.runScript("System.setProperty('sun.security.krb5.debug', 'true'); System.setProperty('sun.security.spnego.debug', 'true');");
JenkinsConfig config = jenkins.getConfigPage();
config.configure();
KerberosGlobalConfig kgc = new KerberosGlobalConfig(config);
kgc.enable();
kgc.krb5Conf(kdc.getKrb5ConfPath());
kgc.loginConf(kdc.getLoginConfPath());
kgc.allowLocalhost(false);
kgc.allowBasic(allowBasic);
kgc.allowAnonymous(allowAnonymous);
config.save();
}
Aggregations