feat(036): fixtures T001-T003 — UIContext, events, snapshots
This commit is contained in:
80
agent/tests/fixtures/agent-test-stabilization/stream-metadata.json
vendored
Normal file
80
agent/tests/fixtures/agent-test-stabilization/stream-metadata.json
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
{
|
||||
"agent_run_started": {
|
||||
"type": "agent_run_started",
|
||||
"agent_run_id": "run-7F2A91",
|
||||
"sequence": 1
|
||||
},
|
||||
"scenario_progress_inspect": {
|
||||
"type": "scenario_progress",
|
||||
"agent_run_id": "run-7F2A91",
|
||||
"sequence": 2,
|
||||
"stage": "inspect",
|
||||
"stage_status": "completed"
|
||||
},
|
||||
"scenario_progress_scenario": {
|
||||
"type": "scenario_progress",
|
||||
"agent_run_id": "run-7F2A91",
|
||||
"sequence": 3,
|
||||
"stage": "scenario",
|
||||
"stage_status": "completed"
|
||||
},
|
||||
"draft_artifacts": {
|
||||
"type": "draft_artifacts",
|
||||
"agent_run_id": "run-7F2A91",
|
||||
"sequence": 4,
|
||||
"drafts": [
|
||||
{
|
||||
"id": "draft-1",
|
||||
"kind": "scenario",
|
||||
"name": "scenario.yaml",
|
||||
"intended_path": "dashboard-tests/FI-0080/scenario.yaml",
|
||||
"sha256": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2",
|
||||
"validation_status": "valid"
|
||||
},
|
||||
{
|
||||
"id": "draft-2",
|
||||
"kind": "runner_plan",
|
||||
"name": "runner.plan.json",
|
||||
"intended_path": "dashboard-tests/FI-0080/runner.plan.json",
|
||||
"sha256": "b1c2d3e4f5a6b1c2d3e4f5a6b1c2d3e4f5a6b1c2d3e4f5a6b1c2d3e4f5a6b1c2",
|
||||
"validation_status": "valid"
|
||||
}
|
||||
]
|
||||
},
|
||||
"agent_run_terminal_completed": {
|
||||
"type": "agent_run_terminal",
|
||||
"agent_run_id": "run-7F2A91",
|
||||
"sequence": 5,
|
||||
"terminal_status": "COMPLETED"
|
||||
},
|
||||
"agent_run_terminal_waiting_approval": {
|
||||
"type": "agent_run_terminal",
|
||||
"agent_run_id": "run-7F2A91",
|
||||
"sequence": 5,
|
||||
"terminal_status": "WAITING_APPROVAL"
|
||||
},
|
||||
"agent_run_terminal_failed": {
|
||||
"type": "agent_run_terminal",
|
||||
"agent_run_id": "run-7F2A91",
|
||||
"sequence": 5,
|
||||
"terminal_status": "FAILED",
|
||||
"error_code": "TOOL_ERROR",
|
||||
"detail": "Superset API returned 403"
|
||||
},
|
||||
"evidence_captured": {
|
||||
"type": "evidence_captured",
|
||||
"agent_run_id": "run-7F2A91",
|
||||
"sequence": 6,
|
||||
"evidence": {
|
||||
"id": "ev-1",
|
||||
"kind": "screenshot_evidence",
|
||||
"name": "screenshot_001.png",
|
||||
"sha256": "e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6",
|
||||
"capture_meta": {
|
||||
"viewport": {"width": 1920, "height": 1200},
|
||||
"capture_method": "cdp",
|
||||
"mask_selectors": [".user-info"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
61
agent/tests/fixtures/agent-test-stabilization/uicontext.json
vendored
Normal file
61
agent/tests/fixtures/agent-test-stabilization/uicontext.json
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"v1_dashboard": {
|
||||
"contextVersion": 1,
|
||||
"objectType": "dashboard",
|
||||
"objectId": "42",
|
||||
"objectName": "FI-0080 Finance Overview",
|
||||
"envId": "ss-preprod",
|
||||
"route": "/dashboards/42"
|
||||
},
|
||||
"v1_dataset": {
|
||||
"contextVersion": 1,
|
||||
"objectType": "dataset",
|
||||
"objectId": "1",
|
||||
"envId": "dev",
|
||||
"route": "/datasets/1"
|
||||
},
|
||||
"v2_scenario_valid": {
|
||||
"contextVersion": 2,
|
||||
"objectType": "dashboard",
|
||||
"objectId": "42",
|
||||
"objectName": "FI-0080 Finance Overview",
|
||||
"envId": "ss-preprod",
|
||||
"route": "/dashboards/42",
|
||||
"intent": "build_dashboard_test_scenario"
|
||||
},
|
||||
"v2_no_intent": {
|
||||
"contextVersion": 2,
|
||||
"objectType": "dashboard",
|
||||
"objectId": "42",
|
||||
"envId": "dev",
|
||||
"route": "/dashboards/42"
|
||||
},
|
||||
"invalid_v2_dataset": {
|
||||
"contextVersion": 2,
|
||||
"objectType": "dataset",
|
||||
"objectId": "1",
|
||||
"envId": "dev",
|
||||
"route": "/datasets/1"
|
||||
},
|
||||
"invalid_v2_unknown_intent": {
|
||||
"contextVersion": 2,
|
||||
"objectType": "dashboard",
|
||||
"objectId": "42",
|
||||
"envId": "dev",
|
||||
"route": "/dashboards/42",
|
||||
"intent": "run_arbitrary_sql"
|
||||
},
|
||||
"invalid_v3": {
|
||||
"contextVersion": 3,
|
||||
"objectType": "dashboard",
|
||||
"objectId": "42",
|
||||
"envId": "dev",
|
||||
"route": "/dashboards/42"
|
||||
},
|
||||
"invalid_missing_version": {
|
||||
"objectType": "dashboard",
|
||||
"objectId": "42",
|
||||
"envId": "dev",
|
||||
"route": "/dashboards/42"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user