-
I'm trying to start and connect to an FTP server in my tests, I have a reproducible sample and all the data here: https://stackoverflow.com/q/70274689/2924784 Any help would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
In the Docker command, you did open a lot of ports. You need to add all of those exposed ports to Testcontainers and get the mapped ports accordingly. This image does not seem to be container-friendly and might not work well with randomized ports, especially with regards to the ports used in passive mode in this case. |
Beta Was this translation helpful? Give feedback.
-
I've received an answer there using the deprecated |
Beta Was this translation helpful? Give feedback.
-
We strongly discourage usage of I currently don't have a better idea for testing against an FTP container in passive mode. |
Beta Was this translation helpful? Give feedback.
We strongly discourage usage of
FixedHostPortGenericContainer
, however, the answer on SO is still correct:https://stackoverflow.com/a/70371790/1396362
I currently don't have a better idea for testing against an FTP container in passive mode.