Search in sources :

Example 1 with GlobalConfig

use of org.jenkinsci.plugins.docker.workflow.declarative.GlobalConfig in project configuration-as-code-plugin by jenkinsci.

the class DockerWorkflowTest method configure_global_definition.

@Test
@ConfiguredWithReadme("docker-workflow/README.md")
public void configure_global_definition() {
    GlobalConfig config = GlobalConfig.get();
    assertNotNull(config);
    assertEquals("label-casc", config.getDockerLabel());
    assertEquals("my.docker.endpoint", config.getRegistry().getUrl());
    assertEquals("credId", config.getRegistry().getCredentialsId());
}
Also used : GlobalConfig(org.jenkinsci.plugins.docker.workflow.declarative.GlobalConfig) Test(org.junit.Test) ConfiguredWithReadme(io.jenkins.plugins.casc.misc.ConfiguredWithReadme)

Example 2 with GlobalConfig

use of org.jenkinsci.plugins.docker.workflow.declarative.GlobalConfig in project configuration-as-code-plugin by jenkinsci.

the class DockerWorkflowSymbolTest method configure_global_definition.

@Test
@Issue("1260")
public void configure_global_definition() {
    GlobalConfig config = GlobalConfig.get();
    assertNotNull(config);
    assertEquals("label-casc", config.getDockerLabel());
    assertEquals("my.docker.endpoint", config.getRegistry().getUrl());
    assertEquals("credId", config.getRegistry().getCredentialsId());
}
Also used : GlobalConfig(org.jenkinsci.plugins.docker.workflow.declarative.GlobalConfig) Issue(org.jvnet.hudson.test.Issue) Test(org.junit.Test)

Aggregations

GlobalConfig (org.jenkinsci.plugins.docker.workflow.declarative.GlobalConfig)2 Test (org.junit.Test)2 ConfiguredWithReadme (io.jenkins.plugins.casc.misc.ConfiguredWithReadme)1 Issue (org.jvnet.hudson.test.Issue)1