use of hudson.tasks.Mailer.UserProperty in project configuration-as-code-plugin by jenkinsci.
the class HudsonPrivateSecurityRealmConfiguratorTest method configure_all_attributes.
@Test
@ConfiguredWithReadme("embedded-userdatabase/README.md#1")
public void configure_all_attributes() {
final User admin = User.getById("admin", false);
assertNotNull(admin);
assertThat(admin.getFullName(), is("Admin"));
assertThat(admin.getDescription(), is("Superwoman"));
SlackUserProperty slackUserProperty = admin.getProperty(SlackUserProperty.class);
assertThat(slackUserProperty.getUserId(), is("ABCDEFGH"));
UserProperty mailerProperty = admin.getProperty(UserProperty.class);
assertThat(mailerProperty.getEmailAddress(), is("admin3@example.com"));
// Pending https://github.com/jenkinsci/ssh-cli-auth-module/pull/16
// UserPropertyImpl authorizedKeysProperty = admin.getProperty(UserPropertyImpl.class);
// assertThat(authorizedKeysProperty.authorizedKeys, is("ssh-rsa some-key\n"));
}
Aggregations