Skip to content

Commit e92815b

Browse files
committed
fix(deps): bump mongodb-client-encryption
1 parent 4ac72e9 commit e92815b

File tree

3 files changed

+27
-23
lines changed

3 files changed

+27
-23
lines changed

package-lock.json

Lines changed: 6 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,7 @@
12891289
"mocha": "^10.7.3",
12901290
"mocha-junit-reporter": "^2.2.1",
12911291
"mocha-multi": "^1.1.7",
1292-
"mongodb-client-encryption": "^6.1.0",
1292+
"mongodb-client-encryption": "^6.1.1",
12931293
"mongodb-rag-core": "^0.4.1",
12941294
"mongodb-runner": "^5.7.1",
12951295
"node-fetch": "^2.7.0",

src/test/suite/oidc.test.ts

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -119,21 +119,26 @@ suite('OIDC Tests', function () {
119119
authNamePrefix: 'dev',
120120
};
121121

122-
cluster = await MongoCluster.start({
123-
...defaultClusterOptions,
124-
version: '7.0.x',
125-
downloadOptions: { enterprise: true },
126-
args: [
127-
'--setParameter',
128-
'--debug',
129-
'authenticationMechanisms=SCRAM-SHA-256,MONGODB-OIDC',
130-
// enableTestCommands allows using http:// issuers such as http://localhost
131-
'--setParameter',
132-
'enableTestCommands=true',
133-
'--setParameter',
134-
`oidcIdentityProviders=${JSON.stringify([serverOidcConfig])}`,
135-
],
136-
});
122+
try {
123+
cluster = await MongoCluster.start({
124+
...defaultClusterOptions,
125+
version: '7.0.x',
126+
downloadOptions: { enterprise: true },
127+
args: [
128+
'--setParameter',
129+
'--debug',
130+
'authenticationMechanisms=SCRAM-SHA-256,MONGODB-OIDC',
131+
// enableTestCommands allows using http:// issuers such as http://localhost
132+
'--setParameter',
133+
'enableTestCommands=true',
134+
'--setParameter',
135+
`oidcIdentityProviders=${JSON.stringify([serverOidcConfig])}`,
136+
],
137+
});
138+
} catch (error) {
139+
console.error(JSON.stringify((error as any).errorLogEntries, null, 2));
140+
throw error;
141+
}
137142

138143
const cs = new ConnectionString(cluster.connectionString);
139144
cs.searchParams.set('authMechanism', 'MONGODB-OIDC');

0 commit comments

Comments
 (0)