-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
ci(NODE-6
8000
919): Use mongodb-runner
in encryption cluster setup
#15366
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
ci(NODE-6919): Use mongodb-runner
in encryption cluster setup
#15366
Conversation
/** @type { string } */ | ||
let clusterUri; | ||
before(async function() { | ||
const expansionFile = join(__dirname, '../..', 'fle-cluster-config.json'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because we now use npm
packages to launch clusters, it would be straightforward to setup and teardown the clusters as a part of the test suite. I considered adding this and decided against it, just because the existing usage pattern works well and means you don't need to setup/teardown a cluster per test run locally, but I can add this functionality if it is desirable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! Can you please merge in the latest changes from csfle branch so we can confirm the tests run correctly? Right now the tests aren't running in this PR because GitHub Actions dropped support for Ubuntu 20.04.
9049eff
to
8a2c374
Compare
@vkarpov15 Done. I actually noticed the FLE tests weren't running, because they only run on PR to master, which I've fixed. But they pass now 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, thanks 👍
Summary
This PR re-writes the existing encryption test setup tooling to use https://www.npmjs.com/package/mongodb-runner and https://www.npmjs.com/package/@mongodb-js/mongodb-downloader.
These packages are tooling packages maintained by teams at MongoDB for use in testing. Use of
npm
packages integrates more seamlessly into Mongoose's existing tooling.