mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-26 23:04:57 +00:00
168 lines
4.4 KiB
JSON
168 lines
4.4 KiB
JSON
{
|
|
"render": [
|
|
{
|
|
"desc": "Renders completed run",
|
|
"input": {
|
|
"workflow_name": "Deploy Production",
|
|
"run_number": 42,
|
|
"started_at": "2025-01-15 14:30:00",
|
|
"duration": "5m 32s",
|
|
"status": "success"
|
|
},
|
|
"expected_title": "Deploy Production",
|
|
"expected_subtitle": "Run #42",
|
|
"expected_duration": "5m 32s",
|
|
"expected_status": "success"
|
|
},
|
|
{
|
|
"desc": "Renders failed run",
|
|
"input": {
|
|
"workflow_name": "CI Pipeline",
|
|
"run_number": 128,
|
|
"started_at": "2025-01-15 15:45:00",
|
|
"duration": "2m 15s",
|
|
"status": "failure"
|
|
},
|
|
"expected_title": "CI Pipeline",
|
|
"expected_subtitle": "Run #128",
|
|
"expected_duration": "2m 15s",
|
|
"expected_status": "failure"
|
|
},
|
|
{
|
|
"desc": "Renders running workflow",
|
|
"input": {
|
|
"workflow_name": "Build & Test",
|
|
"run_number": 99,
|
|
"started_at": "2025-01-15 16:00:00",
|
|
"status": "running"
|
|
},
|
|
"expected_title": "Build & Test",
|
|
"expected_subtitle": "Run #99",
|
|
"expected_duration": "running",
|
|
"expected_status": "running"
|
|
},
|
|
{
|
|
"desc": "Renders cancelled run",
|
|
"input": {
|
|
"workflow_name": "Nightly Build",
|
|
"run_number": 7,
|
|
"started_at": "2025-01-15 02:00:00",
|
|
"duration": "1m 05s",
|
|
"status": "cancelled"
|
|
},
|
|
"expected_title": "Nightly Build",
|
|
"expected_subtitle": "Run #7",
|
|
"expected_duration": "1m 05s",
|
|
"expected_status": "cancelled"
|
|
},
|
|
{
|
|
"desc": "Renders queued run",
|
|
"input": {
|
|
"workflow_name": "Integration Tests",
|
|
"run_number": 200,
|
|
"started_at": "2025-01-15 17:00:00",
|
|
"status": "queued"
|
|
},
|
|
"expected_title": "Integration Tests",
|
|
"expected_subtitle": "Run #200",
|
|
"expected_duration": "running",
|
|
"expected_status": "queued"
|
|
},
|
|
{
|
|
"desc": "Renders run with very long duration",
|
|
"input": {
|
|
"workflow_name": "Performance Tests",
|
|
"run_number": 1,
|
|
"started_at": "2025-01-15 10:00:00",
|
|
"duration": "1h 45m 30s",
|
|
"status": "success"
|
|
},
|
|
"expected_title": "Performance Tests",
|
|
"expected_subtitle": "Run #1",
|
|
"expected_duration": "1h 45m 30s",
|
|
"expected_status": "success"
|
|
}
|
|
],
|
|
"render_list": [
|
|
{
|
|
"desc": "Renders single run",
|
|
"input": [
|
|
{
|
|
"workflow_name": "Deploy",
|
|
"run_number": 1,
|
|
"started_at": "2025-01-15 14:00:00",
|
|
"duration": "3m",
|
|
"status": "success"
|
|
}
|
|
],
|
|
"expected_count": 1
|
|
},
|
|
{
|
|
"desc": "Renders multiple runs",
|
|
"input": [
|
|
{
|
|
"workflow_name": "Build",
|
|
"run_number": 1,
|
|
"started_at": "2025-01-15 10:00:00",
|
|
"duration": "2m",
|
|
"status": "success"
|
|
},
|
|
{
|
|
"workflow_name": "Test",
|
|
"run_number": 2,
|
|
"started_at": "2025-01-15 11:00:00",
|
|
"duration": "5m",
|
|
"status": "success"
|
|
},
|
|
{
|
|
"workflow_name": "Deploy",
|
|
"run_number": 3,
|
|
"started_at": "2025-01-15 12:00:00",
|
|
"status": "running"
|
|
}
|
|
],
|
|
"expected_count": 3
|
|
},
|
|
{
|
|
"desc": "Renders many runs in grid",
|
|
"input": [
|
|
{
|
|
"workflow_name": "Run 1",
|
|
"run_number": 1,
|
|
"started_at": "2025-01-15 08:00:00",
|
|
"duration": "1m",
|
|
"status": "success"
|
|
},
|
|
{
|
|
"workflow_name": "Run 2",
|
|
"run_number": 2,
|
|
"started_at": "2025-01-15 09:00:00",
|
|
"duration": "2m",
|
|
"status": "success"
|
|
},
|
|
{
|
|
"workflow_name": "Run 3",
|
|
"run_number": 3,
|
|
"started_at": "2025-01-15 10:00:00",
|
|
"duration": "1m",
|
|
"status": "failure"
|
|
},
|
|
{
|
|
"workflow_name": "Run 4",
|
|
"run_number": 4,
|
|
"started_at": "2025-01-15 11:00:00",
|
|
"status": "running"
|
|
},
|
|
{
|
|
"workflow_name": "Run 5",
|
|
"run_number": 5,
|
|
"started_at": "2025-01-15 12:00:00",
|
|
"duration": "3m",
|
|
"status": "success"
|
|
}
|
|
],
|
|
"expected_count": 5
|
|
}
|
|
]
|
|
}
|