Search in sources :

Example 1 with JenkinsDatabaseSecurityRealm

use of org.jenkinsci.test.acceptance.po.JenkinsDatabaseSecurityRealm in project acceptance-test-harness by jenkinsci.

the class KerberosSsoTest method setupRealmUser.

/**
 * Create KDC user in backend realm.
 *
 * It is necessary the backend realm recognises all the users kerberos let in. The user is logged in when this method completes.
 */
private User setupRealmUser() {
    // Populate realm with users
    GlobalSecurityConfig sc = new GlobalSecurityConfig(jenkins);
    sc.configure();
    JenkinsDatabaseSecurityRealm realm = sc.useRealm(JenkinsDatabaseSecurityRealm.class);
    sc.save();
    // The password needs to be the same as in kerberos
    return realm.signup().password("ATH").fullname("Full Name").email("ath@ath.com").signup("user");
}
Also used : GlobalSecurityConfig(org.jenkinsci.test.acceptance.po.GlobalSecurityConfig) JenkinsDatabaseSecurityRealm(org.jenkinsci.test.acceptance.po.JenkinsDatabaseSecurityRealm)

Aggregations

GlobalSecurityConfig (org.jenkinsci.test.acceptance.po.GlobalSecurityConfig)1 JenkinsDatabaseSecurityRealm (org.jenkinsci.test.acceptance.po.JenkinsDatabaseSecurityRealm)1