use of de.theit.jenkins.crowd.CrowdSecurityRealm in project configuration-as-code-plugin by jenkinsci.
the class Crowd2Test method configure_artifact_manager.
@Test
@ConfiguredWithReadme("crowd2/README.md")
public void configure_artifact_manager() {
SecurityRealm realm = Jenkins.get().getSecurityRealm();
assertThat(realm, instanceOf(CrowdSecurityRealm.class));
CrowdSecurityRealm securityRealm = (CrowdSecurityRealm) realm;
assertThat(securityRealm.applicationName, is("jenkins"));
assertThat(securityRealm.group, is("jenkins-users"));
assertThat(securityRealm.url, is("http://crowd.company.io"));
assertThat(securityRealm.password, hasPlainText(PASSWORD_123));
}
Aggregations