Skip to content

Commit 731bbb7

Browse files
authored
Merge pull request #20 from devhelmhq/chore/parity-forensics-harness
chore(tests): add forensics ops to run-sdk harness
2 parents dd1b2bf + 79dd2f9 commit 731bbb7

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)