Search in sources :

Example 16 with SvnContainer

use of org.jenkinsci.test.acceptance.docker.fixtures.SvnContainer in project acceptance-test-harness by jenkinsci.

the class Subversion_Version154_PluginTest method run_basic_subversion_build.

@Test
public void run_basic_subversion_build() throws SubversionPluginTestException {
    final SvnContainer svnContainer = svn.get();
    final FreeStyleJob f = jenkins.jobs.create();
    f.useScm(SubversionScm.class).url.set(svnContainer.getUrlUnsaveRepo());
    f.addShellStep("test -d .svn");
    f.save();
    f.startBuild().shouldSucceed().shouldContainsConsoleOutput("test -d .svn");
}
Also used : SvnContainer(org.jenkinsci.test.acceptance.docker.fixtures.SvnContainer) FreeStyleJob(org.jenkinsci.test.acceptance.po.FreeStyleJob) AbstractJUnitTest(org.jenkinsci.test.acceptance.junit.AbstractJUnitTest) Test(org.junit.Test) DockerTest(org.jenkinsci.test.acceptance.junit.DockerTest)

Example 17 with SvnContainer

use of org.jenkinsci.test.acceptance.docker.fixtures.SvnContainer in project acceptance-test-harness by jenkinsci.

the class Subversion_Version154_PluginTest method run_basic_subversion_build_userPwd.

@Test
public void run_basic_subversion_build_userPwd() throws SubversionPluginTestException, InterruptedException {
    final SvnContainer svnContainer = svn.get();
    final FreeStyleJob f = jenkins.jobs.create();
    f.addShellStep("test -d .svn");
    final SubversionScm subversionScm = f.useScm(SubversionScm.class);
    subversionScm.url.set(svnContainer.getUrlUserPwdSaveRepo());
    final SubversionCredentialUserPwd credentialPage = subversionScm.getCredentialPage(SubversionCredentialUserPwd.class);
    credentialPage.setUsername(SvnContainer.USER);
    credentialPage.setPassword(SvnContainer.PWD);
    credentialPage.confirmDialog();
    f.save();
    f.startBuild().shouldSucceed().shouldContainsConsoleOutput("test -d .svn");
}
Also used : SvnContainer(org.jenkinsci.test.acceptance.docker.fixtures.SvnContainer) SubversionScm(org.jenkinsci.test.acceptance.plugins.subversion.SubversionScm) SubversionCredentialUserPwd(org.jenkinsci.test.acceptance.plugins.subversion.SubversionCredentialUserPwd) FreeStyleJob(org.jenkinsci.test.acceptance.po.FreeStyleJob) AbstractJUnitTest(org.jenkinsci.test.acceptance.junit.AbstractJUnitTest) Test(org.junit.Test) DockerTest(org.jenkinsci.test.acceptance.junit.DockerTest)

Aggregations

SvnContainer (org.jenkinsci.test.acceptance.docker.fixtures.SvnContainer)17 AbstractJUnitTest (org.jenkinsci.test.acceptance.junit.AbstractJUnitTest)17 DockerTest (org.jenkinsci.test.acceptance.junit.DockerTest)17 Test (org.junit.Test)17 FreeStyleJob (org.jenkinsci.test.acceptance.po.FreeStyleJob)16 SubversionScm (org.jenkinsci.test.acceptance.plugins.subversion.SubversionScm)12 Build (org.jenkinsci.test.acceptance.po.Build)6 Changes (org.jenkinsci.test.acceptance.po.Changes)3 WithCredentials (org.jenkinsci.test.acceptance.junit.WithCredentials)2 SubversionCredentialUserPwd (org.jenkinsci.test.acceptance.plugins.subversion.SubversionCredentialUserPwd)2 WithDocker (org.jenkinsci.test.acceptance.junit.WithDocker)1 WithPlugins (org.jenkinsci.test.acceptance.junit.WithPlugins)1 SubversionSvmAdvanced (org.jenkinsci.test.acceptance.plugins.subversion.SubversionSvmAdvanced)1 SvnRepositoryBrowserWebSvn (org.jenkinsci.test.acceptance.plugins.subversion.SvnRepositoryBrowserWebSvn)1 JenkinsConfig (org.jenkinsci.test.acceptance.po.JenkinsConfig)1 WorkflowJob (org.jenkinsci.test.acceptance.po.WorkflowJob)1 Category (org.junit.experimental.categories.Category)1