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

Mongodb_user.present aplying changes on existing mongodb user even if Test=true #53965

Conversation

dbuenor
Copy link

@dbuenor dbuenor commented Jul 23, 2019

What does this PR do?

Fixes bug at mongodb_user.present modifying state to avoid apply changes when Test=true on an existing MongoDb user.
Add a new mongodb_user.present test for an existing MongoDb user

What issues does this PR fix or reference?

Fixes #53962

Previous Behavior

Apply changes to mongodb user when Test=true

New Behavior

Doesn't apply changes to mongodb user when Test=true, and shows a new debug message to notify that user is already present and it's going to be modified.

Tests written?

Yes

Commits signed with GPG?

No

@dbuenor dbuenor changed the title Mongodb_user.present aplying changes on existing mongodb user even if Test=true #53962 Mongodb_user.present aplying changes on existing mongodb user even if Test=true Jul 23, 2019
@dbuenor dbuenor force-pushed the dbueno/bug-mongodb-user-present-aplying-changes-on-existing-user-even-if-testing-rebased branch from c468f70 to 0eb5c93 Compare July 23, 2019 14:42
@dbuenor dbuenor requested a review from a team as a code owner July 23, 2019 14:42
@ghost ghost requested a review from dwoz July 23, 2019 14:42
@dbuenor dbuenor force-pushed the dbueno/bug-mongodb-user-present-aplying-changes-on-existing-user-even-if-testing-rebased branch from 0eb5c93 to 889cc14 Compare July 24, 2019 12:04
… when no changes has been made to user.

Now shows changes when roles has been changed for user so its easier to see if roles going to changed in test mode.
Changed tests to adapt to new behaviour.
Copy link
Contributor

@waynew waynew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

From what I can see this looks good - I kicked off the lint job again, looked like an issue with the build environment.

Copy link
Contributor

@dwoz dwoz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dbuenor Can you please address the linter failure?

@dbuenor
Copy link
Author

dbuenor commented Jul 30, 2019

@dbuenor Can you please address the linter failure?

@dwoz fixed with my latest commit. Can u check it? Thx.

@dbuenor
Copy link
Author

dbuenor commented Aug 8, 2019

@dwoz have u been able to check if everything is fine now? Thx

@dbuenor
Copy link
Author

dbuenor commented Aug 22, 2019

@dwoz ping?!

@cmcmarrow
Copy link
Contributor

Thanks @dbuenor! Sorry for the delay

@dwoz dwoz merged commit abb8b4d into saltstack:develop Aug 23, 2019
@dbuenor dbuenor deleted the dbueno/bug-mongodb-user-present-aplying-changes-on-existing-user-even-if-testing-rebased branch August 24, 2019 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

State mongodb_user.present applies changes when modifying roles for an existing user while Test=true
5 participants