use of org.jenkinsci.plugin.gitea.servers.GiteaServers in project configuration-as-code-plugin by jenkinsci.
the class GiteaServerTest method configure_gitea.
@Test
@ConfiguredWithReadme("gitea/README.md")
public void configure_gitea() {
final GiteaServers configuration = GlobalConfiguration.all().get(GiteaServers.class);
assertEquals(configuration.getServers().size(), 1);
GiteaServer config = configuration.getServers().get(0);
assertEquals("https://my-scm-url", config.getServerUrl());
assertEquals("<my-credential-id>", config.getCredentialsId());
assertEquals("scm", config.getDisplayName());
assertTrue(config.isManageHooks());
}
Aggregations