mirror of
https://github.com/langgenius/dify.git
synced 2026-09-03 23:47:16 +08:00
fix(knowledge_fs): update tests for createSourceCrawlImportWorkflow operation
This commit is contained in:
parent
e91b96f0bf
commit
347cd11771
@ -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"))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user