Search in sources :

Example 1 with GlobalDockerConfig

use of org.jenkinsci.test.acceptance.plugins.docker_build_step.GlobalDockerConfig in project acceptance-test-harness by jenkinsci.

the class DockerBuildStepTest method configureTcpEndpoint.

@Before
public void configureTcpEndpoint() {
    assumeNotNull(DOCKER_DAEMON_TCP);
    final JenkinsConfig global = jenkins.getConfigPage();
    global.configure();
    GlobalDockerConfig pluginConfig = new GlobalDockerConfig(global);
    pluginConfig.restApiUrl(DOCKER_DAEMON_TCP);
    pluginConfig.testConnection();
    global.save();
}
Also used : JenkinsConfig(org.jenkinsci.test.acceptance.po.JenkinsConfig) GlobalDockerConfig(org.jenkinsci.test.acceptance.plugins.docker_build_step.GlobalDockerConfig) Before(org.junit.Before)

Aggregations

GlobalDockerConfig (org.jenkinsci.test.acceptance.plugins.docker_build_step.GlobalDockerConfig)1 JenkinsConfig (org.jenkinsci.test.acceptance.po.JenkinsConfig)1 Before (org.junit.Before)1