Invalid request submission: {json=[Ljava.lang.String;@2c46358e, .crumb=[Ljava.lang.String;@35661457}
Diagnostics added in 21bf5c4.
Failing I think because message.groovy uses f.submit rather than a plain <input type="submit">,
so JSON gets created and then StaplerRequest.getParameter cannot find it.
But if this is the problem then why would it ever work?
Perhaps a timing issue: JavaScript is used to massage the form just prior to submission,
and maybe this only happens sometimes?
Cannot reproduce test failure locally.
Fixing copyrights
Using @link in description
Hiding implementation in a private nested class
Fixing testing of runnables
Added testing of System, User, and Null contexts
This adds an extension point, TestNameTransformer, which is called to transform JUnit test case names.
This is useful for JVM languages like scala which are more flexible than java with identifier naming.
Scala, for example, allows you to write test names between back ticks, and then encodes the name using valid java identifiers.
This extension point would allow a plugin to transform those names back in to readable names when they are displayed on the test result page.
https://jenkins.ci.cloudbees.com/job/core/job/jenkins_main_trunk/850/testReport/jenkins.security/RekeySecretAdminMonitorTest/testBasicWorkflow/
com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException: 400 Bad Request for http://localhost:60027//administrativeMonitor/jenkins.security.RekeySecretAdminMonitor/scan
at com.gargoylesoftware.htmlunit.WebClient.throwFailingHttpStatusCodeExceptionIfNecessary(WebClient.java:549)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:333)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:357)
at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:196)
at org.jvnet.hudson.test.HudsonTestCase.submit(HudsonTestCase.java:1178)
at jenkins.security.RekeySecretAdminMonitorTest.testBasicWorkflow(RekeySecretAdminMonitorTest.java:112)
java.lang.Exception: Invalid request submission
at org.kohsuke.stapler.HttpResponses.error(HttpResponses.java:79)
at jenkins.security.RekeySecretAdminMonitor.doScan(RekeySecretAdminMonitor.java:117)