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 mongo password authentication #309
Conversation
@jaberg Could we include this simple fix in milestone https://github.com/hyperopt/hyperopt/milestone/3 ? |
I don't recall this is tested, how should it be tested? Does anyone have an idea how to set up Travis to do this? cc @maxpumperla @michaelmior |
I imagine this breaks compatibility with some old versions of Mongo, could you provide info on when Mongo started working this new way? |
AFAICT, it's pymongo which has changed, not MongoDB. If that's the case, I don't think we need to worry about backwards compatibility. People who want to use a new release of hyperopt will just need to install a new pymongo. |
Someone reported recently that they tried running all tests, including
mongo tests, and they all passed.
Is it the case that no test performs authentication? Or maybe those tests
were run with an old version of pymongo?
How might we test authentication, see that this change works, and catch
similar future API regressions?
…On Wed, Feb 7, 2018 at 4:18 PM, Michael Mior ***@***.***> wrote:
AFAICT, it's pymongo which has changed, not MongoDB. If that's the case, I
don't think we need to worry about backwards compatibility. People who want
to use a new release of hyperopt will just need to install a new pymongo.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#309 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKdDH-ZYJScTk4wQ3gMt75zgwt4kn_Uks5tShM8gaJpZM4NwIQU>
.
|
I haven't looked at the tests currently configured, but if we have a test that uses authentication on Travis, this shouldn't be a problem. |
I don't think the current tests use any authentication. Actually, I think they do not use the MongoDB service as it is configured in As it is now, the Travis build succeeds after rebasing this merge request on the current Personally, I feel like this is OK for the current release, as it adds authentication support while not breaking anything. Ideally, writing specific tests for MongoDB authentication would require a significant refactoring of |
Thanks for thinking about this @abiteboul I agree with you. If Travis passes this, let's merge it. |
This should probably be rebased on top of master. Tests are failing because the Travis config isn't in this branch. |
…thSource mongo URI query param
24154fb
to
79715d7
Compare
The branch has been rebased on top of master. |
Thanks @csanquer! Merging. |
Hi,
With this PR, I fixed the mongo DB user/password authentication and authentication database parameter.