use of org.jenkinsci.test.acceptance.plugins.subversion.SubversionScm in project acceptance-test-harness by jenkinsci.
the class SubversionPluginTest method build_has_no_changes.
@Test
public void build_has_no_changes() throws SubversionPluginTestException {
final SvnContainer svnContainer = svn.get();
final FreeStyleJob f = jenkins.jobs.create();
final SubversionScm subversionScm = f.useScm(SubversionScm.class);
subversionScm.url.set(svnContainer.getUrlUnauthenticatedRepo());
f.save();
f.startBuild();
final Changes changes = f.getLastBuild().getChanges();
assertFalse("Build has changes.", changes.hasChanges());
}
use of org.jenkinsci.test.acceptance.plugins.subversion.SubversionScm in project acceptance-test-harness by jenkinsci.
the class SubversionPluginTest method build_has_changes.
@Test
public void build_has_changes() throws SubversionPluginTestException {
final SvnContainer svnContainer = svn.get();
final FreeStyleJob f = jenkins.jobs.create();
final SubversionScm subversionScm = f.useScm(SubversionScm.class);
subversionScm.url.set(svnContainer.getUrlUnauthenticatedRepoAtRevision(1));
f.save();
f.startBuild().shouldSucceed();
f.configure();
subversionScm.url.set(svnContainer.getUrlUnauthenticatedRepoAtRevision(2));
f.save();
f.startBuild().shouldSucceed();
final Changes changes = f.getLastBuild().getChanges();
assertTrue("Build has no changes.", changes.hasChanges());
}
use of org.jenkinsci.test.acceptance.plugins.subversion.SubversionScm 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