Equivalent to TestContainers.exposeHostPorts?
I'm working on a test which must expose a service running on the host to a service running in a container.
In Java, this can be done with Testcontainers.exposeHostPorts(localServerPort); as per https://java.testcontainers.org/features/networking/.
I am unable to find an equivalent to this functionality in the Rust crate. How can one do this?
I recommend linking to the actual section which you're referring to so other people don't get confused like me.
I am unable to find an equivalent to this functionality in the Rust crate. How can one do this?
It is not supported at the moment. I am not familiar with the Java implementation in how they achieve this.
I think this would indeed be very useful. I'll have a look at it when I find the time.