Skip to content

Commit

Permalink
gbif#48 Remove consumes from run methods in PipelinesHistoryResource
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-podolskiy90 committed Feb 27, 2020
1 parent adb33fe commit c386d9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ public void runPipelineAttempt(
mvc.perform(
post("/pipelines/history/run/{datasetKey}/{attempt}", datasetKey, attempt)
.params(new LinkedMultiValueMap<>(params))
.contentType(MediaType.APPLICATION_JSON)
.with(httpBasic(username, TEST_PASSWORD)))
.andDo(print());
}
Expand All @@ -263,7 +262,6 @@ public void runPipelineAttempt(
mvc.perform(
post("/pipelines/history/run/{datasetKey}", datasetKey)
.params(new LinkedMultiValueMap<>(params))
.contentType(MediaType.APPLICATION_JSON)
.with(httpBasic(username, TEST_PASSWORD)))
.andDo(print());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public ResponseEntity<RunPipelineResponse> runAll(
* but they will be validated in PipelinesHistoryResource#checkRunInputParams so here they are
* specified as optional fields.
*/
@PostMapping(value = "run/{datasetKey}", consumes = MediaType.APPLICATION_JSON_VALUE)
@PostMapping(value = "run/{datasetKey}")
@Secured({ADMIN_ROLE, EDITOR_ROLE})
public ResponseEntity<RunPipelineResponse> runPipelineAttempt(
@PathVariable("datasetKey") UUID datasetKey,
Expand All @@ -199,7 +199,7 @@ public ResponseEntity<RunPipelineResponse> runPipelineAttempt(
* validated in PipelinesHistoryResource#checkRunInputParams so here they are specified as
* optional fields.
*/
@PostMapping(value = "run/{datasetKey}/{attempt}", consumes = MediaType.APPLICATION_JSON_VALUE)
@PostMapping(value = "run/{datasetKey}/{attempt}")
@Secured({ADMIN_ROLE, EDITOR_ROLE})
public ResponseEntity<RunPipelineResponse> runPipelineAttempt(
@PathVariable("datasetKey") UUID datasetKey,
Expand Down

0 comments on commit c386d9e

Please sign in to comment.