Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 55d9304

Browse files
authored
chore: add dependency to kerberos MCP-89 (#474)
1 parent 46a93cc commit 55d9304

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

‎package-lock.json‎

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

‎package.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,5 +119,8 @@
119119
},
120120
"engines": {
121121
"node": "^20.19.0 || ^22.12.0 || >= 23.0.0"
122+
},
123+
"optionalDependencies": {
124+
"kerberos": "^2.2.2"
122125
}
123126
}

‎tests/integration/common/connectionManager.oidc.test.ts‎

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { TestContext } from "vitest";
2-
import { describe, beforeEach, afterAll, it, expect } from "vitest";
2+
import { describe, beforeEach, afterAll, it, expect,vi } from "vitest";
33
import semver from "semver";
44
import process from "process";
55
import type { MongoDBIntegrationTestCase } from "../tools/mongodb/mongodbHelpers.js";
@@ -168,11 +168,22 @@ describe.skipIf(process.platform !== "linux")("ConnectionManager OIDC Tests", as
168168
};
169169
};
170170

171-
const status: ConnectionStatus = (await state.serviceProvider.runCommand("admin", {
172-
connectionStatus: 1,
173-
})) as unknown as ConnectionStatus;
171+
const status: ConnectionStatus = await vi.waitFor(async () => {
172+
const result: ConnectionStatus = (await state.serviceProvider.runCommand("admin", {
173+
connectionStatus: 1,
174+
})) as unknown as ConnectionStatus;
174175

175-
expect(status.authInfo.authenticatedUsers[0]).toEqual({ user: "dev/testuser", db: "$external" });
176+
if (!result) {
177+
throw new Error("Status can not be undefined. Retrying.");
178+
}
179+
180+
return result;
181+
});
182+
183+
expect(status.authInfo.authenticatedUsers[0]).toEqual({
184+
user: "dev/testuser",
185+
db: "$external",
186+
});
176187
expect(status.authInfo.authenticatedUserRoles[0]).toEqual({
177188
role: "dev/mocktaTestServer-group",
178189
db: "admin",

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /