-
-
Notifications
You must be signed in to change notification settings - Fork 515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why doesn't url
function for wait.ForSQL()
have a host
parameter?
#490
Comments
Hi @frozenbonito, thanks for opening this question. Did you check the existing test cases that we have on that? Both https://github.com/testcontainers/testcontainers-go/blob/main/e2e/container_test.go and https://github.com/testcontainers/testcontainers-go/blob/main/wait/sql_test.go could help you, as they demonstrate its usage. Could you please elaborate a bit more your use case and why you need the host? If it's not supported at this moment, would you be willing to contribute it? |
@mdelapenya I think that the host of the container may not be testcontainers-go/wait/http.go Line 124 in a99f307
https://pkg.go.dev/github.com/testcontainers/testcontainers-go@v0.13.0#DockerContainer.Host
It is a breaking change, but if that is okay with you, I can contribute to this issue. |
Thanks for marking it as a breaking change, we do care about them, and we appreciate your effort looking for the usages. Because the library is not in v1 yet, which is something we plan in the short/medium term, a well-documented breaking change would be something to accept, so feel free to send a contribution, we'll be more than happy for reviewing it! |
I think
host
parameter is required for building a DSN string.e.g.
The text was updated successfully, but these errors were encountered: