aldettinger commented on code in PR #6912: URL: https://github.com/apache/camel-quarkus/pull/6912#discussion_r1918588146
########## integration-tests/ssh/src/main/java/org/apache/camel/quarkus/component/ssh/it/SshResource.java: ########## @@ -69,13 +87,60 @@ public Response writeToFile(@PathParam("fileName") String fileName, String conte public Response readFile(@PathParam("fileName") String fileName) throws URISyntaxException { String sshReadFileCommand = String.format("cat %s", fileName); - String content = producerTemplate.requestBody( - String.format("ssh:%s:%s?username=%s&password=%s", host, port, user, password), - sshReadFileCommand, + String content = consumerTemplate.receiveBody( + String.format("ssh:%s:%s?username=%s&password=%s&pollCommand=%s", host, port, username, password, + sshReadFileCommand), String.class); return Response .ok(content) .build(); } + + @POST + @Path("/send") + @Consumes(MediaType.APPLICATION_JSON) + public Map<String, String> send(@QueryParam("command") String command, + @QueryParam("component") @DefaultValue("ssh") String component, + @QueryParam("serverType") @DefaultValue("userPassword") String serverType, + @QueryParam("pathSuffix") String pathSuffix, + Map<String, Object> headers) + throws URISyntaxException { + + var p = switch (ServerType.valueOf(serverType)) { Review Comment: Maybe this one could rename p -> port ? -- 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