You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gi...@apache.org on 2022/06/01 04:41:01 UTC

[camel-quarkus] 01/02: Aws SQS: Remove unnecessary headers from the test because of CAMEL-18123 #3803

This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a commit to branch camel-main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git

commit 22d192cf51e4d6c86de55e15424b0de837be73a5
Author: JiriOndrusek <on...@gmail.com>
AuthorDate: Mon May 23 13:51:36 2022 +0200

    Aws SQS: Remove unnecessary headers from the test because of CAMEL-18123 #3803
---
 .../camel/quarkus/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 44ad89506c..65ea892b2a 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 class Aws2SqsResource {
     @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 class Aws2SqsResource {
     @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();
     }