Skip to content

PYTHON-2096 Validate that mongocryptd is not spawned if bypassAutoEncryption=true #668

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
Jul 9, 2021

Conversation

ShaneHarvey
Copy link
Member

@ShaneHarvey ShaneHarvey requested a review from prashantmital July 8, 2021 22:42
client_encrypted.db.coll.insert_one({"unencrypted": "test"})
# Validate that mongocryptd was not spawned:
mongocryptd_client = MongoClient(
'mongodb://localhost:27027/?serverSelectionTimeoutMS=500')
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor nit, feel free to ignore: suggest parameterizing the port number and using it here and in the mongocryptd_spawn_args definition to ensure they are always the same.

@ShaneHarvey ShaneHarvey merged commit 98b64ee into mongodb:master Jul 9, 2021
@ShaneHarvey ShaneHarvey deleted the PYTHON-2096 branch July 9, 2021 18:02
ShaneHarvey added a commit that referenced this pull request Jul 9, 2021
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