File tree Expand file tree Collapse file tree 2 files changed +6
-19
lines changed Expand file tree Collapse file tree 2 files changed +6
-19
lines changed Original file line number Diff line number Diff line change @@ -204,13 +204,6 @@ export class TestConfiguration {
204
204
throw new Error ( `Cannot use options to specify host/port, must be in ${ urlOrQueryOptions } ` ) ;
205
205
}
206
206
207
- if ( serverOptions . autoEncryption ) {
208
- serverOptions . autoEncryption . extraOptions = {
209
- mongocryptdBypassSpawn : true ,
210
- mongocryptdURI : 'mongodb://localhost:3000'
211
- }
212
- }
213
-
214
207
return new MongoClient ( urlOrQueryOptions , serverOptions ) ;
215
208
}
216
209
@@ -469,8 +462,7 @@ export class AlpineTestConfiguration extends TestConfiguration {
469
462
const extraOptions : MongoClientOptions [ 'autoEncryption' ] [ 'extraOptions' ] = {
470
463
...options . autoEncryption . extraOptions ,
471
464
mongocryptdBypassSpawn : true ,
472
- mongocryptdURI : 'mongodb://localhost:3000'
473
- // mongocryptdURI: process.env.MONGOCRYPTD_URI
465
+ mongocryptdURI : process . env . MONGOCRYPTD_URI
474
466
}
475
467
options . autoEncryption . extraOptions = extraOptions ;
476
468
}
Original file line number Diff line number Diff line change @@ -100,16 +100,11 @@ function translateClientOptions(options) {
100
100
} ;
101
101
}
102
102
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
+ }
113
108
114
109
options . autoEncryption . kmsProviders = kmsProviders ;
115
110
}
You can’t perform that action at this time.
0 commit comments