-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Support pausing and resuming a container #433
Comments
Are you (probably) looking for adding docker's |
I have never heard of |
Stupid question: wouldn't it make more sense to just use I think it feels "more natural" when having both ecosystems (Rust + Java) using the same method language. |
Hi @FibreFoX, I'll try to answer
While Just a different behavior and could be useful for testing purposes. Anyway, it's official docker API for suspending processes. And I don't think we should avoid this for aligning APIs. |
@DDtKey Thanks for clarification, I wasn't aware that If I understand correct, the testcontainers-java should have an open issue to feature-request this too, right? |
You could also use toxiproxy for this. I used this in some JVM project a while ago for testing (I used the java module there) and IMO it was pretty neat. |
I think you can call a |
That doesn't work for me. The container is stopped and started. |
On a related note: ATM
Which is quite confusing without |
Hi!
In my integration test I like to test my apps behavior in case the database becomes unavailable. Currently I am stopping the db but of course I also want to test the recover of the database with its former state. Even if don't mind loosing the former db state I still have to create a new db pool because port changes on every container spawn and the already injected one can never recover.
Two options come to my mind to solve the issue:
Thanks
The text was updated successfully, but these errors were encountered: