feat: 完整游戏运维功能
This commit is contained in:
@@ -57,7 +57,7 @@ async function main() {
|
||||
const plugin = findRequired(plugins.items, (item) => item.id === "game.example", "game.example plugin");
|
||||
const marketplacePlugin = findRequired(marketplace.items, (item) => item.id === "game.example", "game.example marketplace plugin");
|
||||
const operator = findRequired(users.items, (item) => item.email === "operator.local@example.test", "operator local user");
|
||||
const aiProvider = findRequired(providers.items, (item) => item.id === "ai.openai" || item.apiKeyRef?.startsWith("secret://"), "redacted AI provider");
|
||||
const aiProvider = findRequired(providers.items, (item) => item.id === "ai.openai" || item.apiKeyConfigured === true, "redacted AI provider");
|
||||
|
||||
assertEqual(server.pluginId, "game.example", "server is backed by game.example");
|
||||
assertEqual(server.runEndpointId, "run-local-debug", "server is assigned to run-local-debug");
|
||||
@@ -203,7 +203,7 @@ async function loginApi() {
|
||||
const response = await postJson("/auth/login", {
|
||||
account: "operator.local@example.test",
|
||||
password: "operator-local"
|
||||
});
|
||||
}, { "X-Auth-Token-Response": "bearer" });
|
||||
if (!response.sessionId || response.status !== "authenticated") {
|
||||
throw new Error("local debug API login did not return an active session");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user