diff options
| author | Kit Langton <[email protected]> | 2026-04-30 23:01:11 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-30 23:01:11 -0400 |
| commit | dd3aa9673058bc79a7bf6f10d476345dbd75a78c (patch) | |
| tree | 122fd6147efaa8d946ebc130c23a343c1c8f99bc | |
| parent | 8b56d1712f26901b109db300a84002f8d71b3ea5 (diff) | |
| download | opencode-dd3aa9673058bc79a7bf6f10d476345dbd75a78c.tar.gz opencode-dd3aa9673058bc79a7bf6f10d476345dbd75a78c.zip | |
test(httpapi): cover more safe GET parity (#25217)
| -rw-r--r-- | packages/opencode/test/server/httpapi-json-parity.test.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/opencode/test/server/httpapi-json-parity.test.ts b/packages/opencode/test/server/httpapi-json-parity.test.ts index 645e924c6..0465b1cf6 100644 --- a/packages/opencode/test/server/httpapi-json-parity.test.ts +++ b/packages/opencode/test/server/httpapi-json-parity.test.ts @@ -9,6 +9,7 @@ import { FilePaths } from "../../src/server/routes/instance/httpapi/groups/file" import { GlobalPaths } from "../../src/server/routes/instance/httpapi/groups/global" import { InstancePaths } from "../../src/server/routes/instance/httpapi/groups/instance" import { McpPaths } from "../../src/server/routes/instance/httpapi/groups/mcp" +import { PtyPaths } from "../../src/server/routes/instance/httpapi/groups/pty" import { SessionPaths } from "../../src/server/routes/instance/httpapi/groups/session" import { MessageID, PartID } from "../../src/session/schema" import { Session } from "@/session/session" @@ -121,6 +122,7 @@ describe("HttpApi JSON parity", () => { yield* Effect.forEach( [ { label: "global.health", path: GlobalPaths.health, headers: {} }, + { label: "global.config", path: GlobalPaths.config, headers: {} }, { label: "instance.path", path: InstancePaths.path, headers }, { label: "instance.vcs", path: InstancePaths.vcs, headers }, { label: "instance.vcsDiff", path: `${InstancePaths.vcsDiff}?mode=git`, headers }, @@ -135,7 +137,11 @@ describe("HttpApi JSON parity", () => { { label: "project.current", path: "/project/current", headers }, { label: "provider.list", path: "/provider", headers }, { label: "provider.auth", path: "/provider/auth", headers }, + { label: "permission.list", path: "/permission", headers }, + { label: "question.list", path: "/question", headers }, { label: "mcp.status", path: McpPaths.status, headers }, + { label: "pty.shells", path: PtyPaths.shells, headers }, + { label: "pty.list", path: PtyPaths.list, headers }, { label: "file.list", path: `${FilePaths.list}?${new URLSearchParams({ path: "." })}`, headers }, { label: "file.content", @@ -162,6 +168,7 @@ describe("HttpApi JSON parity", () => { { label: "experimental.consoleOrgs", path: ExperimentalPaths.consoleOrgs, headers }, { label: "experimental.toolIDs", path: ExperimentalPaths.toolIDs, headers }, { label: "experimental.worktree", path: ExperimentalPaths.worktree, headers }, + { label: "experimental.resource", path: ExperimentalPaths.resource, headers }, ], (input) => expectJsonParity({ ...input, legacy, httpapi }), { concurrency: 1 }, |
