Skip to content

Commit

Permalink
working?
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson committed Feb 13, 2025
1 parent c919fcc commit 26a85b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
10 changes: 1 addition & 9 deletions test/tools/runner/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,6 @@ export class TestConfiguration {
throw new Error(`Cannot use options to specify host/port, must be in ${urlOrQueryOptions}`);
}

if (serverOptions.autoEncryption) {
serverOptions.autoEncryption.extraOptions = {
mongocryptdBypassSpawn: true,
mongocryptdURI: 'mongodb://localhost:3000'
}
}

return new MongoClient(urlOrQueryOptions, serverOptions);
}

Expand Down Expand Up @@ -469,8 +462,7 @@ export class AlpineTestConfiguration extends TestConfiguration {
const extraOptions: MongoClientOptions['autoEncryption']['extraOptions'] = {
...options.autoEncryption.extraOptions,
mongocryptdBypassSpawn: true,
mongocryptdURI: 'mongodb://localhost:3000'
// mongocryptdURI: process.env.MONGOCRYPTD_URI
mongocryptdURI: process.env.MONGOCRYPTD_URI
}
options.autoEncryption.extraOptions = extraOptions;
}
Expand Down
15 changes: 5 additions & 10 deletions test/tools/spec-runner/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,11 @@ function translateClientOptions(options) {
};
}

// if (process.env.CRYPT_SHARED_LIB_PATH) {
// options.autoEncryption.extraOptions = {
// cryptSharedLibPath: process.env.CRYPT_SHARED_LIB_PATH
// };
// }

// options.autoEncryption.extraOptions = {
// mongocryptdBypassSpawn: true,
// mongocryptdURI: 'mongodb://localhost:3000'
// }
if (process.env.CRYPT_SHARED_LIB_PATH) {
options.autoEncryption.extraOptions = {
cryptSharedLibPath: process.env.CRYPT_SHARED_LIB_PATH
};
}

options.autoEncryption.kmsProviders = kmsProviders;
}
Expand Down

0 comments on commit 26a85b7

Please sign in to comment.