-
Notifications
You must be signed in to change notification settings - Fork 106
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
Fix mongodb test #396
Fix mongodb test #396
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@orpiske can you have a look? This will break the build I suppose
@oscerd sure thing, I will take a look :) |
@unsortedhashsets thanks for the PR. I understand the problem you are trying to solve. Unfortunately, this way it breaks the build. The build test is failing on local mode because on local mode the service only provides the host and port (so it is not form a valid connection URL when passed to the connection bean ref). You need to adjust the patch a little bit in order to achieve the results you need in both local and remote test mode. I would suggest replacing the Of course, this is just a suggestion and there may be other ways to solve this issue, but I think this would do the trick. If you have questions, feel free to ask. I can guide you.
|
@unsortedhashsets I've just tested the changes and they are working well for local mode. Thanks!!! c/c @oscerd |
04b0f63
to
ee394eb
Compare
Oh, sorry I have just finished remote test (success) and updated repo . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, @orpiske can you retake a look?
Sure thing! I have just run the test again, with the latest changes from @unsortedhashsets and it is working. IMHO, it's good to merge. |
Thanks! |
We need to pass variable to the mongodb.host in format mongodb://user:pass@domain otherway:
[ERROR] CamelSinkMongoDBITCase.setUp:63 » IllegalArgument The connection string is inv...
[ERROR] CamelSourceMongoDBITCase.setUp:66 » IllegalArgument The connection string is i...
But if we pass in that format we receive mongodb://mongodb://user:pass@domain:port and:
[ERROR] Failures:
[ERROR] CamelSinkMongoDBITCase.testBasicSendReceive:120->runTest:100 Condition not met within timeout 30000. The connector CamelMongoDBSinkConnector did not start within a reasonable time
[ERROR] Errors:
[ERROR] CamelSourceMongoDBITCase.testFindAll » Timeout testFindAll() timed out after 9...
With that fix - test will pass (tested with remote mongodb)