mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-15 20:17:22 +00:00
42 lines
1.1 KiB
TypeScript
42 lines
1.1 KiB
TypeScript
import { describe, it, expect, beforeAll } from "bun:test";
|
|
import { type App, createApp } from "core/test/utils";
|
|
import { getSystemMcp } from "modules/mcp/system-mcp";
|
|
|
|
/**
|
|
* - [ ] auth_me
|
|
* - [ ] auth_strategies
|
|
* - [ ] auth_user_create
|
|
* - [ ] auth_user_token
|
|
* - [ ] auth_user_password_change
|
|
* - [ ] auth_user_password_test
|
|
* - [ ] config_auth_update
|
|
* - [ ] config_auth_strategies_get
|
|
* - [ ] config_auth_strategies_add
|
|
* - [ ] config_auth_strategies_update
|
|
* - [ ] config_auth_strategies_remove
|
|
* - [ ] config_auth_roles_get
|
|
* - [ ] config_auth_roles_add
|
|
* - [ ] config_auth_roles_update
|
|
* - [ ] config_auth_roles_remove
|
|
*/
|
|
describe("mcp auth", async () => {
|
|
let app: App;
|
|
let server: ReturnType<typeof getSystemMcp>;
|
|
beforeAll(async () => {
|
|
app = createApp({
|
|
initialConfig: {
|
|
auth: {
|
|
enabled: true,
|
|
},
|
|
server: {
|
|
mcp: {
|
|
enabled: true,
|
|
},
|
|
},
|
|
},
|
|
});
|
|
await app.build();
|
|
server = getSystemMcp(app);
|
|
});
|
|
});
|