test(qa): keep image generation fixture on mock lane · openclaw/openclaw@43f2b61
vincentkoc
·
2026-06-23
·
via Recent Commits to openclaw:main
File tree
qa/scenarios/runtime/tools
| Original file line number | Diff line number | Diff line change |
|---|
@@ -248,6 +248,7 @@ describe("qa scenario catalog", () => {
|
248 | 248 | }); |
249 | 249 | expect(readQaScenarioExecutionConfig(webSearch.id)).not.toHaveProperty("knownHarnessGap"); |
250 | 250 | expect(readQaScenarioExecutionConfig(imageGenerate.id)).toMatchObject({ |
| 251 | +requiredProviderMode: "mock-openai", |
251 | 252 | toolName: "image_generate", |
252 | 253 | toolCoverage: { |
253 | 254 | bucket: "openclaw-dynamic-integration", |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -9,6 +9,7 @@ scenario:
|
9 | 9 | - tools.image-generate |
10 | 10 | objective: Verify image_generate preserves arguments and result shape across OpenClaw and Codex. |
11 | 11 | successCriteria: |
| 12 | + - Scenario is mock-openai only because live image generation uses async task lifecycle proof outside this direct failure-path fixture. |
12 | 13 | - Effective tools expose image_generate after QA image-generation config is applied. |
13 | 14 | - The mock provider plans exactly one happy-path image_generate call. |
14 | 15 | - The mock provider plans one denied-input failure-path image_generate call. |
@@ -22,6 +23,7 @@ scenario:
|
22 | 23 | kind: flow |
23 | 24 | summary: Exercise the image_generate runtime tool family. |
24 | 25 | config: |
| 26 | +requiredProviderMode: mock-openai |
25 | 27 | toolName: image_generate |
26 | 28 | ensureImageGeneration: true |
27 | 29 | toolCoverage: |
@@ -42,6 +44,9 @@ flow:
|
42 | 44 | steps: |
43 | 45 | - name: exercises image_generate happy and failure paths |
44 | 46 | actions: |
| 47 | + - assert: |
| 48 | +expr: "env.providerMode === config.requiredProviderMode" |
| 49 | +message: this seeded scenario is mock-openai only |
45 | 50 | - call: runRuntimeToolFixture |
46 | 51 | saveAs: result |
47 | 52 | args: |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。