vukzeka commented on PR #222:
URL: https://github.com/apache/mina-sshd/pull/222#issuecomment-1124402694

   > As I noted on https://issues.apache.org/jira/browse/SSHD-1266
   > 
   > The original PR's for the OpenSSH certificate support brought in support 
for Testcontainers based Docker unit testing
   > 
   > Perhaps this PR should include a new unit test which uses 
Testcontainers/Docker to use the real OpenSSH _ssh-keygen_ binary to parse the 
OpenSSH Certificate output from MINA?
   > 
   > It could minimally use _ssh-keygen_ to parse the MINA generated OpenSSH 
Certificate and check for a zero exit code
   
   Hi @alex-sherwin 
   It was not in the "scope" but I was thinking same. Not only for this use 
case but in general something like that would be useful. 
   I just saw test you were referring and I'm thinking that probably easiest 
would be to have image with **ssh-keygen**, something like
   
   ```
   FROM alpine:3.15.4
   
   RUN apk update && \
       apk add --no-cache openssh-keygen bash && \
       rm -rf /var/cache/apk/* 
   
   CMD ["ssh-keygen"]
   ```
   
   and then run same as **OneShotStartupCheckStrategy** supplying different 
commands
   `ssh-keygen COMMAND`
   
   But question if you know, is there easy way to capture different outputs of 
interest (generated files, exit code, stdout, stderror, etc.) with such 
approach?
   
   


-- 
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: dev-unsubscr...@mina.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to