Skip to content

Clear existing users before running /scram tests #1215

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

Merged
merged 1 commit into from
Mar 9, 2023

Conversation

eramongodb
Copy link
Contributor

If a /scram test happens to fail before the test users are dropped, a subsequent run of the /scram tests will error on attempt to (re)create the test users because they already exist. This PR adds a _clear_(saslprep|scram)_users function that is invoked before required test users are created to prevent test failure due to existing test users.

@eramongodb eramongodb requested a review from kevinAlbs March 9, 2023 19:32
@eramongodb eramongodb self-assigned this Mar 9, 2023
@eramongodb eramongodb merged commit 4b1c775 into mongodb:master Mar 9, 2023
@eramongodb eramongodb deleted the cdriver-scram branch March 9, 2023 21:25
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.

2 participants