From 22d192cf51e4d6c86de55e15424b0de837be73a5 Mon Sep 17 00:00:00 2001 From: JiriOndrusek Date: Mon, 23 May 2022 13:51:36 +0200 Subject: [PATCH] Aws SQS: Remove unnecessary headers from the test because of CAMEL-18123 #3803 --- .../component/aws2/sqs/it/Aws2SqsResource.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/integration-test-groups/aws2/aws2-sqs/src/main/java/org/apache/camel/quarkus/component/aws2/sqs/it/Aws2SqsResource.java b/integration-test-groups/aws2/aws2-sqs/src/main/java/org/apache/camel/quarkus/component/aws2/sqs/it/Aws2SqsResource.java index 44ad89506c1d..65ea892b2a37 100644 --- a/integration-test-groups/aws2/aws2-sqs/src/main/java/org/apache/camel/quarkus/component/aws2/sqs/it/Aws2SqsResource.java +++ b/integration-test-groups/aws2/aws2-sqs/src/main/java/org/apache/camel/quarkus/component/aws2/sqs/it/Aws2SqsResource.java @@ -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(); } @@ -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(); }