Skip to content

Commit 26a85b7

Browse files
working?
1 parent c919fcc commit 26a85b7

File tree

2 files changed

+6
-19
lines changed

2 files changed

+6
-19
lines changed

test/tools/runner/config.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,6 @@ export class TestConfiguration {
204204
throw new Error(`Cannot use options to specify host/port, must be in ${urlOrQueryOptions}`);
205205
}
206206

207-
if (serverOptions.autoEncryption) {
208-
serverOptions.autoEncryption.extraOptions = {
209-
mongocryptdBypassSpawn: true,
210-
mongocryptdURI: 'mongodb://localhost:3000'
211-
}
212-
}
213-
214207
return new MongoClient(urlOrQueryOptions, serverOptions);
215208
}
216209

@@ -469,8 +462,7 @@ export class AlpineTestConfiguration extends TestConfiguration {
469462
const extraOptions: MongoClientOptions['autoEncryption']['extraOptions'] = {
470463
...options.autoEncryption.extraOptions,
471464
mongocryptdBypassSpawn: true,
472-
mongocryptdURI: 'mongodb://localhost:3000'
473-
// mongocryptdURI: process.env.MONGOCRYPTD_URI
465+
mongocryptdURI: process.env.MONGOCRYPTD_URI
474466
}
475467
options.autoEncryption.extraOptions = extraOptions;
476468
}

test/tools/spec-runner/index.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,11 @@ function translateClientOptions(options) {
100100
};
101101
}
102102

103-
// if (process.env.CRYPT_SHARED_LIB_PATH) {
104-
// options.autoEncryption.extraOptions = {
105-
// cryptSharedLibPath: process.env.CRYPT_SHARED_LIB_PATH
106-
// };
107-
// }
108-
109-
// options.autoEncryption.extraOptions = {
110-
// mongocryptdBypassSpawn: true,
111-
// mongocryptdURI: 'mongodb://localhost:3000'
112-
// }
103+
if (process.env.CRYPT_SHARED_LIB_PATH) {
104+
options.autoEncryption.extraOptions = {
105+
cryptSharedLibPath: process.env.CRYPT_SHARED_LIB_PATH
106+
};
107+
}
113108

114109
options.autoEncryption.kmsProviders = kmsProviders;
115110
}

0 commit comments

Comments
 (0)