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 #53963

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 force-pushed the dbueno/bug-mongodb-user-present-aplying-changes-on-existing-user-even-if-testing branch from 7ddbe95 to ef5be1b Compare July 23, 2019 12:51
@dbuenor
Copy link
Author

dbuenor commented Jul 23, 2019

Rejected due to new PR opened (#53965).

@dbuenor dbuenor closed this Jul 23, 2019
dbuenor added a commit to dbuenor/salt that referenced this pull request Jul 24, 2019
gitebra pushed a commit to gitebra/salt that referenced this pull request Aug 30, 2019
* upstream/develop:
  add new saltconf ads
  Fix grains.core pylint error
  Adding Unit Tests and Fixing debian_eth.jinja
  Adding accept_ra 2 option to modules.debian_ip
  fix names to various package modules so links work
  adds webconfig tests
  Commit to fix lint problems to allow successful pr-lint build
  auth: use log formatting for message
  Refactorized mongodb_user.present to avoid showing successful changes 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.
  Changed returned result when using test=true for mongodb_user.present to avoid false positives.
  Fixed whitespaces at mongodb_user.present test saltstack#53963
  Added new test for mongodb_user.present that verifies the proper functioning when aplying state for an existing user
  Fixes bug in MongoDb User State causing changes to be applied in case of an existing user even in test mode.
  auth: log details in case of user auth issue
  Fix typo in vault docs
waynew pushed a commit to waynew/salt that referenced this pull request Jan 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant