use of org.jenkinsci.plugins.KeycloakSecurityRealm in project configuration-as-code-plugin by jenkinsci.
the class KeycloakTest method configure_artifact_manager.
@Test
@ConfiguredWithReadme("keycloak/README.md")
public void configure_artifact_manager() {
SecurityRealm realm = j.jenkins.get().getSecurityRealm();
assertThat(realm, instanceOf(KeycloakSecurityRealm.class));
KeycloakSecurityRealm securityRealm = (KeycloakSecurityRealm) realm;
assertThat(securityRealm.getKeycloakJson(), containsString("\"auth-server-url\": \"https://my-keycloak-url/auth\""));
}
Aggregations