Skip to content

Commit

Permalink
Update a test and add @issue annotation for JENKINS-40594
Browse files Browse the repository at this point in the history
  • Loading branch information
tangkun75 committed Apr 24, 2017
1 parent db8641f commit c31b370
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Expand Up @@ -71,6 +71,7 @@ public boolean start() throws Exception {
node.addAction(new PauseAction("Input"));

String baseUrl = '/' + run.getUrl() + getPauseAction().getUrlName() + '/';
//JENKINS-40594 submitterParameter does not work without at least one actual parameter
if (input.getParameters().isEmpty() && (input.getSubmitterParameter() == null || input.getSubmitterParameter().isEmpty())) {
String thisUrl = baseUrl + Util.rawEncode(getId()) + '/';
listener.getLogger().printf("%s%n%s or %s%n", input.getMessage(),
Expand Down
Expand Up @@ -167,7 +167,7 @@ public void test_submitters() throws Exception {
}

@Test
@Issue("JENKINS-31396")
@Issue({"JENKINS-31396","JENKINS-40594"})
public void test_submitter_parameter() throws Exception {
//set up dummy security real
j.jenkins.setSecurityRealm(j.createDummySecurityRealm());
Expand All @@ -193,6 +193,8 @@ public void test_submitter_parameter() throws Exception {
// submit the input, and run workflow to the completion
JenkinsRule.WebClient wc = j.createWebClient();
wc.login("alice");
HtmlPage console_page = wc.getPage(b, "console");
assertFalse(console_page.asXml().contains("proceedEmpty"));
HtmlPage p = wc.getPage(b, a.getUrlName());
j.submit(p.getFormByName(is.getId()), "proceed");
assertEquals(0, a.getExecutions().size());
Expand Down

0 comments on commit c31b370

Please sign in to comment.