Closed dasniko closed 8 months ago
Hi @martinleim, thanks for coming up with this! 👍 Do you see any chance to provide an automated test for this? I didn't have an idea, yet, but also haven't thought about it that much.
Hi @dasniko ,
I think the "proper" test would be to somehow open a connection using the Java Debug Wire Protocol (JDWP). I have no experience in this, but this article from Baeldung might give some hints. If this works, it could also be used to test the suspend feature - although I fear that might become complicated.
A poor man's solution would be to check if we can open a plain TCP connection to the exposed port without checking for the procotol in any way. However, this would not allow testing for the suspend mode.
I'll give it a try and see what I can come up with.
Hi @dasniko ,
I decided to go for the simple TCP connection and created a PR with the changes and the tests.
Thanks, @martinleim Opening a TCP connection should work for me. I'll have a look at it during next week.
Hi @dasniko, did you have the chance to look at my PR yet?
Unfortunately not in depth, I'm pretty busy atm. But generally it seems to look good, from a high perspective.
Thanks for your work, @martinleim ! 👍 It's really appreciated! 🙏
Happy to help :-) And thank you for creating this project! Do you plan for a release in the near future?
Hopefully yes. There's still another issue which needs to be solved in some way. Let's give it one more week, then we'll see.
@martinleim Thank you for this. I needed this and didn't know it was possible :)
Discussed in https://github.com/dasniko/testcontainers-keycloak/discussions/116