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");
}
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");
}
Aggregations