aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/java/com/googlesource/gerrit/plugins/qtcodereview/QtCodeReviewIT.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/com/googlesource/gerrit/plugins/qtcodereview/QtCodeReviewIT.java')
-rw-r--r--src/test/java/com/googlesource/gerrit/plugins/qtcodereview/QtCodeReviewIT.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/java/com/googlesource/gerrit/plugins/qtcodereview/QtCodeReviewIT.java b/src/test/java/com/googlesource/gerrit/plugins/qtcodereview/QtCodeReviewIT.java
index 28a9d73..5fbb78d 100644
--- a/src/test/java/com/googlesource/gerrit/plugins/qtcodereview/QtCodeReviewIT.java
+++ b/src/test/java/com/googlesource/gerrit/plugins/qtcodereview/QtCodeReviewIT.java
@@ -45,6 +45,7 @@ public class QtCodeReviewIT extends LightweightPluginDaemonTest {
protected static final String R_HEADS = "refs/heads/";
protected static final String R_STAGING = "refs/staging/";
+ protected static final String R_BUILDS = "refs/builds/";
protected static final String R_PUSH = "refs/for/";
protected static final String CONTENT_DATA = "hereisjustsomecontentforthecommits";
@@ -116,6 +117,17 @@ public class QtCodeReviewIT extends LightweightPluginDaemonTest {
return response;
}
+ protected void QtNewBuild(String branch, String buildId) throws Exception {
+ String commandStr;
+ commandStr ="gerrit-plugin-qt-workflow staging-new-build";
+ commandStr += " --project " + project.get();
+ commandStr += " --staging-branch " + branch;
+ commandStr += " --build-id " + buildId;
+ String resultStr = adminSshSession.exec(commandStr);
+ assertThat(adminSshSession.getError()).isNull();
+ resetEvents();
+ }
+
protected PushOneCommit.Result pushCommit(String branch,
String message,
String file,