You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because username and password are randomly generated, it's impossible to reuse the container when we don't specify them. In my case, i want to use unsafe parameter POSTGRES_HOST_AUTH_METHOD=trust, removing the needs of password. But when i tried to reuse it, testcontainers refused.
Hi @yukha-dw, the username/password are hardcoded to test, not randomly generated.
Is there a reason you cannot use container.getUsername() / container.getPassword() and have to use POSTGRES_HOST_AUTH_METHOD=trust? If yes then this isn't supported without adding something like:
Because
username
andpassword
are randomly generated, it's impossible to reuse the container when we don't specify them. In my case, i want to use unsafe parameterPOSTGRES_HOST_AUTH_METHOD=trust
, removing the needs of password. But when i tried to reuse it,testcontainers
refused.The text was updated successfully, but these errors were encountered: