Skip to content

Commit

Permalink
Aws SQS: Remove unnecessary headers from the test because of CAMEL-18…
Browse files Browse the repository at this point in the history
…123 #3803
  • Loading branch information
JiriOndrusek authored and github-actions[bot] committed Jun 1, 2022
1 parent c9cd841 commit 22d192c
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,8 @@ public Response sqsSendToSpecificQueue(@PathParam("queueName") String queueName,
@DELETE
@Produces(MediaType.TEXT_PLAIN)
public Response purgeQueue(@PathParam("queueName") String queueName) throws Exception {
producerTemplate.sendBodyAndHeader(componentUri(queueName) + "?operation=purgeQueue",
null,
Sqs2Constants.SQS_QUEUE_PREFIX,
queueName);
producerTemplate.sendBody(componentUri(queueName) + "?operation=purgeQueue",
null);
return Response.ok().build();
}

Expand Down Expand Up @@ -148,10 +146,8 @@ public Response deleteMessage(@PathParam("queueName") String queueName, @PathPar
@DELETE
@Produces(MediaType.TEXT_PLAIN)
public Response deleteQueue(@PathParam("queueName") String queueName) throws Exception {
producerTemplate.sendBodyAndHeader(componentUri(queueName) + "?operation=deleteQueue",
null,
Sqs2Constants.SQS_QUEUE_PREFIX,
queueName);
producerTemplate.sendBody(componentUri(queueName) + "?operation=deleteQueue",
null);
return Response.ok().build();
}

Expand Down

0 comments on commit 22d192c

Please sign in to comment.