Skip to content

Commit

Permalink
gbif#48 Fix failing PipelinesIT
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-podolskiy90 committed Feb 27, 2020
1 parent 5da61ab commit adb33fe
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public void createPipelineProcess(

result =
mvc.perform(
post("/pipelines/history/process/")
post("/pipelines/history/process")
.with(httpBasic(username, TEST_PASSWORD))
.content(content)
.contentType(MediaType.APPLICATION_JSON));
Expand Down Expand Up @@ -250,6 +250,7 @@ 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 @@ -262,6 +263,7 @@ 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 All @@ -282,9 +284,9 @@ public void runAll(String userType, String username, Map<String, List<String>> p

result =
mvc.perform(
post("/pipelines/history/run/")
post("/pipelines/history/run")
.content(content)
.contentType(MediaType.APPLICATION_JSON_UTF8)
.contentType(MediaType.APPLICATION_JSON)
.params(new LinkedMultiValueMap<>(modifiedParams))
.with(httpBasic(username, TEST_PASSWORD)))
.andDo(print());
Expand Down

0 comments on commit adb33fe

Please sign in to comment.