-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
CouchbaseContainer does not correctly support .withReuse(true) #2794
Comments
Any comments on the proposed solution/approach? I could open a PR for this.. Note: I wouldn't actually suggest pushing the changes to the configure() method upstream. |
@aaronjwhiteside one thing we can try is just sending the credentials along with every http request - I haven't tried it for sure, but maybe the server ignores it if it's not needed and then it will "just work"? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe this is a mistake, please reply to this comment to keep it open. If there isn't one already, a PR to fix or at least reproduce the problem in a test case will always help us get back on track to tackle this. |
Keep alive! |
Any news? I have the same problem |
Did the workaround by @aaronjwhiteside work for you @jorgerod? |
@kiview I think we still should try sending the credentials with every request - that could work in all cases which would make the workaround not needed. But I did not try it yet, so we'd have to check that first. |
Added PR with fix. A workaround would be to extend CouchbaseContainer and override the two methods See 63dea7a |
After the container has been started the second time around the health checks fail ,because now certain apis require authentication.
The culprit lies in
containerIsStarting()
:https://github.com/testcontainers/testcontainers-java/blob/master/modules/couchbase/src/main/java/org/testcontainers/couchbase/CouchbaseContainer.java#L188-L199
waitUntilNodeIsOnline()
fails the second time around becauseconfigureAdminUser()
has already been called which now protects the api used inwaitUntilNodeIsOnline()
.Our current work around looks something like this:
It would be good if the correct fix was applied upstream, so that others may take advantage of
CouchbaseContainer
and.withReuse(true)
.The text was updated successfully, but these errors were encountered: