Fix network accessor for port-forwarding feature#2551
Fix network accessor for port-forwarding feature#2551mdelapenya merged 2 commits intotestcontainers:mainfrom
Conversation
Signed-off-by: Julien Breux <[email protected]>
✅ Deploy Preview for testcontainers-go ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
@mdelapenya could you help me? |
|
Hey @JulienBreux, could you please elaborate in what kind of behavior this issue manifests? Or how it can be reproduced? Asking, because I want to align with our implementation in other languages. |
Sure! If you read this PR, you'll see that in the code there is a confusion between "name" and "id" of network. IDK if I'm clear.
Network not found! |
Signed-off-by: Julien Breux <[email protected]>
|
@mdelapenya in your own opinion, this feature is for a next patch, for example "v0.31.1" or for a new |
|
I'm usually doing a monthly minor release, so it will probably land into the next minor. |
* main: (48 commits) Fix race condition when looking up reaper (ryuk) container (testcontainers#2508) chore: bring golangci-lint back (testcontainers#2571) docs(compose): Fix typo docker compose docs (testcontainers#2565) Handle error properly during port forwarding initialization. (testcontainers#2550) chore: pin vearch version (testcontainers#2568) feat: add vearch module (testcontainers#2560) chore: run tests against latest Docker engine, nightly (testcontainers#2566) chore(deps): bump mkdocs-include-markdown-plugin from 6.0.4 to 6.0.7 (testcontainers#2562) Fix network accessor for port-forwarding feature (testcontainers#2551) --- (testcontainers#2549) fix: update search bar eval in mkdocs (testcontainers#2547) docs: improve contributing docs for code snippets (testcontainers#2546) chore: use a virtualenv for working with the docs site (testcontainers#2545) docs: document test session semantics (testcontainers#2544) feat(ryuk): allow to configure ryuk timeouts using env variables (testcontainers#2541) docs: fix CircleCI docs (testcontainers#2539) fix: add import to module generation (testcontainers#2537) chore: prepare for next minor development cycle (0.32.0) chore: use new version (v0.31.0) in modules and examples feat(mongodb): add replica set support via opts (testcontainers#2469) ...
What does this PR do?
This pull-request fixes a bug in the port-fowarding functionality.
There is confusion between the use of the network name and the network identifier.
In order to correct the problem, a new function for selecting the network by name has been added.