Skip to content

DRIVERS-2624 Improve prose tests checking that neither mongocryptd nor its client are created when they are not supposed to be #1415

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 2 commits into from
May 22, 2023

Conversation

stIncMale
Copy link
Member

@stIncMale stIncMale commented May 5, 2023

DRIVERS-2624

Please complete the following before merging:

  • Update changelog.
  • Make sure there are generated JSON files from the YAML test files.
  • Test changes in at least one language driver.
  • Test these changes against all server versions and topologies (including standalone, replica set, sharded clusters, and serverless).

…are created when they are not supposed to be

DRIVERS-2624
@stIncMale stIncMale self-assigned this May 5, 2023
@stIncMale stIncMale requested a review from a team as a code owner May 5, 2023 23:37
@stIncMale stIncMale requested review from katcharov and removed request for a team May 5, 2023 23:37
@@ -2490,7 +2506,7 @@ The following tests that a mongocryptd client is not created when shared library
.. code:: javascript

{
"mongocryptdURI": "mongodb://localhost:27021"
"mongocryptdURI": "mongodb://localhost:27021/db?serverSelectionTimeoutMS=1000"
Copy link
Member Author

Choose a reason for hiding this comment

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

This change speeds up the test in a situation when the test fails. Tests in https://github.com/mongodb/specifications/tree/master/source/client-side-encryption/tests#bypass-spawning-mongocryptd already do this.

Copy link
Contributor

@katcharov katcharov left a comment

Choose a reason for hiding this comment

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

LGTM

Co-authored-by: Jeremy Mikola <jmikola@gmail.com>
@stIncMale stIncMale requested a review from jmikola May 16, 2023 17:12
stIncMale added a commit to stIncMale/mongo-java-driver that referenced this pull request May 16, 2023
Copy link
Member

@jmikola jmikola left a comment

Choose a reason for hiding this comment

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

In the interest of consistency, please add "DRIVERS-2624" to the PR title and ensure it's in the first line of the squashed merge commit.

I realize the issue is mentioned in the body of one of the commits, but the above is more useful when doing git-blame or searching the repo.

@stIncMale stIncMale changed the title Improve prose tests checking that neither mongocryptd nor its client are created when they are not supposed to be DRIVERS-2624 Improve prose tests checking that neither mongocryptd nor its client are created when they are not supposed to be May 22, 2023
@stIncMale stIncMale merged commit 9c3114b into mongodb:master May 22, 2023
@stIncMale stIncMale deleted the DRIVERS-2624 branch May 22, 2023 02:51
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.

3 participants