fix(knowledge_fs): update tests for createSourceCrawlImportWorkflow operation

This commit is contained in:
FFXN 2026-08-07 16:46:15 +08:00
parent e91b96f0bf
commit 347cd11771

View File

@ -20,7 +20,22 @@ test("Capability v2 operation export is deterministic and includes internal life
);
const document = JSON.parse(readFileSync(output, "utf8"));
assert.equal(document.schemaVersion, 1);
assert.equal(new Set(document.operations.map((operation) => operation.operationId)).size, 104);
assert.equal(new Set(document.operations.map((operation) => operation.operationId)).size, 105);
assert.deepEqual(
document.operations.find(
(operation) => operation.operationId === "createSourceCrawlImportWorkflow",
),
{
action: "source_workflows.crawl_import.create",
allowedCallerKinds: ["interactive", "service", "agent", "workflow"],
method: "POST",
operationId: "createSourceCrawlImportWorkflow",
parentResourceBinding: { pathParameter: "id" },
path: "/knowledge-spaces/{id}/sources/{sourceId}/crawl-import",
resourceBinding: { pathParameter: "sourceId" },
resourceType: "source",
},
);
assert.deepEqual(
document.operations
.filter((operation) => operation.operationId.endsWith("KnowledgeFs"))