aldettinger commented on a change in pull request #3074: URL: https://github.com/apache/camel-quarkus/pull/3074#discussion_r704408741
########## 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: I'm not sure what's happening there. As far as I can see, [this camel test](https://github.com/apache/camel/blob/main/components/camel-aws/camel-aws2-sqs/src/test/java/org/apache/camel/component/aws2/sqs/integration/SqsComponentLocalstackIT.java) don't need to set operation. Would it be sensible to stick to the camel-aws2-sqs test patterns and maybe separate `autoCreateQueue` and `delayQueue` tests ? -- 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