From 347cd11771d9e6df2d44cfdb53c2fd4941f68fbd Mon Sep 17 00:00:00 2001 From: FFXN Date: Fri, 7 Aug 2026 16:46:15 +0800 Subject: [PATCH] fix(knowledge_fs): update tests for createSourceCrawlImportWorkflow operation --- .../export-capability-v2-operations.test.mjs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/knowledge-fs/scripts/export-capability-v2-operations.test.mjs b/knowledge-fs/scripts/export-capability-v2-operations.test.mjs index ba1062cb1f7..dc56931ce71 100644 --- a/knowledge-fs/scripts/export-capability-v2-operations.test.mjs +++ b/knowledge-fs/scripts/export-capability-v2-operations.test.mjs @@ -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"))