Skip to content
Permalink
Browse files
Update a test and add @issue annotation for JENKINS-40594
  • Loading branch information
tangkun75 committed Apr 24, 2017
1 parent db8641f commit c31b370008145e91e8900db7264d3c6087f79ef7
@@ -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(),
@@ -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());
@@ -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());

0 comments on commit c31b370

Please sign in to comment.