VratislavHais commented on a change in pull request #3074:
URL: https://github.com/apache/camel-quarkus/pull/3074#discussion_r706085416



##########
File path: 
integration-test-groups/aws2/aws2-sqs-sns/src/main/java/org/apache/camel/quarkus/component/aws2/sqs/it/Aws2SqsSnsResource.java
##########
@@ -94,10 +135,67 @@ public String sqsReceive() throws Exception {
                 .queueUrls();
     }
 
+    @Path("/sqs/batch")
+    @POST
+    @Consumes(MediaType.APPLICATION_JSON)
+    @Produces(MediaType.TEXT_PLAIN)
+    public Response sendBatchMessage(List<String> messages) throws Exception {
+        final SendMessageBatchResponse response = producerTemplate.requestBody(
+                componentUri() + "?operation=sendBatchMessage",
+                messages,
+                SendMessageBatchResponse.class);
+        return Response
+                .created(new URI("https://camel.apache.org/";))
+                .entity("" + response.successful().size())
+                .build();
+    }
+
+    @Path("/sqs/delete/message/{queueName}/{receipt}")
+    @DELETE
+    @Produces(MediaType.TEXT_PLAIN)
+    public Response deleteMessage(@PathParam("queueName") String queueName, 
@PathParam("receipt") String receipt)
+            throws Exception {
+        producerTemplate.sendBodyAndHeader(componentUri(queueName) + 
"?operation=deleteMessage",
+                null,
+                Sqs2Constants.RECEIPT_HANDLE,
+                receipt);
+        return Response.ok().build();
+    }
+
+    @Path("/sqs/delete/queue/{queueName}")
+    @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);
+        return Response.ok().build();
+    }
+
+    @Path("/sqs/queue/autocreate/delayed/{queueName}/{delay}")
+    @GET
+    @Produces(MediaType.APPLICATION_JSON)
+    public List<String> autoCreateDelayedQueue(@PathParam("queueName") String 
queueName, @PathParam("delay") String delay)
+            throws Exception {
+        // queue creation without any operation resulted in 405 status code

Review comment:
       Definitely. It was supposed to be as you mention but I must've 
accidentally drop forgot it




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to