Skip to content
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

rebased PR#308 to allow other databases in the format 'role@db' for mongodb_user #432

Merged
merged 1 commit into from
Feb 10, 2020

Conversation

pecharmin
Copy link
Contributor

Rebased an squashed @sharon-tickell changes to allow the mongodb_user provider to accept roles for other databases in the format 'role@db' from pull request #308.
I was able to grant roles using the old () and the new format (@).

@pecharmin
Copy link
Contributor Author

@bastelfreak The Travis jobs seem broken caused by ruby errors during bundle. Can you please have a look at them?

@bastelfreak
Copy link
Member

@pecharmin I merged #434, can you please rebase?

@bastelfreak bastelfreak requested review from HAIL9000 and removed request for HAIL9000 March 27, 2018 12:05
@bastelfreak
Copy link
Member

@pecharmin can you take a look at the failing spec tests?

@pecharmin
Copy link
Contributor Author

I'll review the spec tests and provide an update.

@achevalet
Copy link

hey, any news on this?

@bastelfreak
Copy link
Member

@achevalet we cannot merge this because the tests fail. If you want you can check the code and provides fixes for it.

@achevalet
Copy link

ok, I will try to find spare time to fix it.

@ekohl
Copy link
Member

ekohl commented Nov 2, 2018

Recently I spent time on getting some of the acceptance tests working again. It'd be great if you could write an acceptance tests for this. That'd give me a lot more confidence to merge it.

@ekohl
Copy link
Member

ekohl commented Nov 29, 2018

Could you rebase this on master? looks like you included some changes from master as well.

@pecharmin
Copy link
Contributor Author

@bastelfreak @ekohl rebased/squashed to master; CI tests succeeded; please review

@alexjfisher
Copy link
Member

@pecharmin Any chance of acceptance tests as well as the unit tests?

@ekohl
Copy link
Member

ekohl commented Dec 15, 2018

I'll second the request for acceptance tests.

@craig
Copy link

craig commented Jul 24, 2019

Hi, can this get merged?

@bastelfreak
Copy link
Member

@craig it would be aweseome to get acceptance tests for this. Are you able to provide them?

@pecharmin
Copy link
Contributor Author

Thanks to @thde who added acceptance tests for the new user management in #547

I would like to extend the acceptance tests by checking the assigned databases and permissions.

Adopt PR voxpupuli#308 by @sharon-tickell
to support assigning user roles to other database using syntax role@database.

With support of @thde in voxpupuli#547

mongodb_spec:
Supply explicit JSON document incl. db name to mongodb command when changing roles;
see syntax https://docs.mongodb.com/manual/reference/method/db.grantRolesToUser/
Compatibility level is mongodb >= 2.6
@bastelfreak bastelfreak added the enhancement New feature or request label Nov 26, 2019
@pecharmin
Copy link
Contributor Author

Ready for review; closes #308 and #547 when merged.

@pecharmin
Copy link
Contributor Author

@ekohl Could you please have a review on this PR to get it upstream? Thanks :)

@iheartski
Copy link

Any news on this? Would highly appreciate it :)

@bastelfreak bastelfreak merged commit 68480fb into voxpupuli:master Feb 10, 2020
@pecharmin pecharmin deleted the grant_other_db_role branch February 10, 2020 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants