Skip to content

Commit 6d04f0a

Browse files
authored
[JENKINS-68724] Show the test duration graph for individual tests (#389)
https://issues.jenkins.io/browse/JENKINS-68724 reports that the test method execution trend chart is no longer being displayed on the individual test pages. Applies the same fix that was used for JENKINS-67098. Allow GET requests for the graph and the graphMap endpoint.
1 parent f6c805a commit 6d04f0a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/main/java/hudson/plugins/testng/results/MethodResult.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import org.kohsuke.stapler.StaplerRequest2;
1414
import org.kohsuke.stapler.StaplerResponse2;
1515
import org.kohsuke.stapler.export.Exported;
16-
import org.kohsuke.stapler.verb.POST;
1716

1817
/** Handles result pertaining to a single test method */
1918
@SuppressWarnings("serial")
@@ -241,7 +240,8 @@ public boolean isConfig() {
241240
* @param rsp response
242241
* @throws IOException on IO error
243242
*/
244-
@POST
243+
// @POST
244+
// @POST blocks rendering in groovy defined web page
245245
public void doGraph(final StaplerRequest2 req, StaplerResponse2 rsp) throws IOException {
246246
// Test result graphs should be visible to any user
247247
// with READ permission. Declaring a checkPermission
@@ -260,7 +260,8 @@ public void doGraph(final StaplerRequest2 req, StaplerResponse2 rsp) throws IOEx
260260
* @param rsp response
261261
* @throws IOException on IO error
262262
*/
263-
@POST
263+
// @POST
264+
// @POST blocks rendering in groovy defined web page
264265
public void doGraphMap(final StaplerRequest2 req, StaplerResponse2 rsp) throws IOException {
265266
Graph g = getGraph(req, rsp);
266267
if (g != null) {

0 commit comments

Comments
 (0)