Skip to content

feat(testing): support mongo 4.4.29 and improve recycling speed#33

Open
hpidcock wants to merge 14 commits intojuju:masterfrom
hpidcock:improve-mgo-testing
Open

feat(testing): support mongo 4.4.29 and improve recycling speed#33
hpidcock wants to merge 14 commits intojuju:masterfrom
hpidcock:improve-mgo-testing

Conversation

@hpidcock
Copy link
Member

MongoDB 4.4.29 requires a CA certificate bundle and requires clients to have
certificates by default. This changes the test arguments that are passed to the
mongod process to use the new tls prefixed arguments, and also relaxes the
requirement for testing clients to need a client certificate.

This also fixes some strange behaviour in tests that manipulate the environment,
by saving the environment at process start and using that later on when starting
mongod processes.

Finally this change implements an asynchronous recycling of mongod, such that
multiple instances can be pooled to allow a test to finish and the next test to
start immediately. In doing this test optimisation, it was required for the mgo
driver to gather statistics independently. Rather than breaking the current API,
the simplest implementation was to collect statistics by listening port, only
giving usefulness to local testing.

@hpidcock hpidcock changed the title feat: support mongo 4.4.29 and improve recycling speed feat(testing): support mongo 4.4.29 and improve recycling speed Dec 10, 2025
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