Skip to content

Commit 79dd2f9

Browse files
chore(tests): add forensics ops to run-sdk harness
The Forensics resource (design 046) was added to the SDK in v0.6.0 but the test harness was never updated to dispatch the 5 ops, which caused the mono parity check (TestHarnessCompleteness) to fail after the release. Adds dispatch branches for: - forensics.incident-timeline → client.forensics.incident_timeline - forensics.check-trace → client.forensics.check_trace - forensics.policy-snapshot → client.forensics.policy_snapshot - forensics.monitor-rule-evaluations → client.forensics.monitor_rule_evaluations - forensics.monitor-transitions → client.forensics.monitor_transitions The two paginated ops use the existing `**opts` pattern (same as monitors.results / monitors.versions) — callers pass keyword-only args via JSON, mirroring the SDK signature. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent dd1b2bf commit 79dd2f9

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

tests/run_sdk.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,20 @@ def run(client: Devhelm, resource: str, action: str, rest: list[str]) -> Any: #
393393
client.status_pages.subscribers.remove(rest[0], rest[1])
394394
return None
395395

396+
# -- Forensics --
397+
if op == "forensics.incident-timeline":
398+
return client.forensics.incident_timeline(rest[0])
399+
if op == "forensics.check-trace":
400+
return client.forensics.check_trace(rest[0])
401+
if op == "forensics.policy-snapshot":
402+
return client.forensics.policy_snapshot(rest[0])
403+
if op == "forensics.monitor-rule-evaluations":
404+
opts = json.loads(rest[1]) if len(rest) > 1 and rest[1] else {}
405+
return client.forensics.monitor_rule_evaluations(rest[0], **opts)
406+
if op == "forensics.monitor-transitions":
407+
opts = json.loads(rest[1]) if len(rest) > 1 and rest[1] else {}
408+
return client.forensics.monitor_transitions(rest[0], **opts)
409+
396410
# -- Status Page Domains --
397411
if op == "status-pages.domains.list":
398412
return client.status_pages.domains.list(rest[0])

0 commit comments

Comments
 (0)