Commit dc2ab0b
fix(e2e): assert real prod metrics shape (object keyed by series, not array)
Batch A read run failed: /api/v1/resources/:id/metrics returns
{ok, data_source, metrics:{<name>:number[]}} (object keyed by metric name),
but the spec asserted Array.isArray(metrics). Assert the real shape: metrics
is a non-array object with >=1 named time-series array + a data_source.
Supersedes the conflicted #182.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 27b6005 commit dc2ab0b
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| 353 | + | |
| 354 | + | |
353 | 355 | | |
354 | | - | |
355 | | - | |
| 356 | + | |
| 357 | + | |
356 | 358 | | |
357 | | - | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
358 | 365 | | |
359 | 366 | | |
360 | 367 | | |
| |||
0 commit comments