194 lines
6.4 KiB
Plaintext
194 lines
6.4 KiB
Plaintext
$ uv run tools/flow.py test cases/lab03.json -v
|
||||
|
|
✔ before: POST http://localhost:8800/tickets-reset · HTTP 200 · 0.0s · {"cleared": 5}
|
|||
|
|
→ request POST http://localhost:8800/tickets-reset
|
|||
|
|
{}
|
|||
|
|
← response HTTP 200
|
|||
|
|
{
|
|||
|
|
"cleared": 5
|
|||
|
|
}
|
|||
|
|
✔ before: POST http://localhost:8800/dlq-clear · HTTP 200 · 0.0s · {"cleared": 0}
|
|||
|
|
→ request POST http://localhost:8800/dlq-clear
|
|||
|
|
{}
|
|||
|
|
← response HTTP 200
|
|||
|
|
{
|
|||
|
|
"cleared": 0
|
|||
|
|
}
|
|||
|
|
✔ before: POST http://localhost:8800/alerts-clear · HTTP 200 · 0.0s · {"cleared": 0}
|
|||
|
|
→ request POST http://localhost:8800/alerts-clear
|
|||
|
|
{}
|
|||
|
|
← response HTTP 200
|
|||
|
|
{
|
|||
|
|
"cleared": 0
|
|||
|
|
}
|
|||
|
|
✔ before: POST http://localhost:8800/admin/fault · HTTP 200 · 0.0s · {"faq": "ok", "tickets": "ok", "prompts": "ok", "usage": "ok", "dlq": "ok", "slow_seconds": 8}
|
|||
|
|
→ request POST http://localhost:8800/admin/fault
|
|||
|
|
{
|
|||
|
|
"faq": "ok",
|
|||
|
|
"tickets": "ok",
|
|||
|
|
"prompts": "ok",
|
|||
|
|
"usage": "ok",
|
|||
|
|
"dlq": "ok"
|
|||
|
|
}
|
|||
|
|
← response HTTP 200
|
|||
|
|
{
|
|||
|
|
"faq": "ok",
|
|||
|
|
"tickets": "ok",
|
|||
|
|
"prompts": "ok",
|
|||
|
|
"usage": "ok",
|
|||
|
|
"dlq": "ok",
|
|||
|
|
"slow_seconds": 8
|
|||
|
|
}
|
|||
|
|
POST http://localhost:5678/webhook/my-intake · 5 case(s) × 1
|
|||
|
|
✔ before: POST http://localhost:8800/admin/fault · HTTP 200 · 0.0s · {"faq": "ok", "tickets": "error", "prompts": "ok", "usage": "ok", "dlq": "ok", "slow_seconds": 8}
|
|||
|
|
→ request POST http://localhost:8800/admin/fault
|
|||
|
|
{
|
|||
|
|
"tickets": "error"
|
|||
|
|
}
|
|||
|
|
← response HTTP 200
|
|||
|
|
{
|
|||
|
|
"faq": "ok",
|
|||
|
|
"tickets": "error",
|
|||
|
|
"prompts": "ok",
|
|||
|
|
"usage": "ok",
|
|||
|
|
"dlq": "ok",
|
|||
|
|
"slow_seconds": 8
|
|||
|
|
}
|
|||
|
|
✔ API가 멈춘 동안 2건 → DLQ · 2.9s
|
|||
|
|
→ request POST /webhook/my-intake
|
|||
|
|
{
|
|||
|
|
"requests": [
|
|||
|
|
{
|
|||
|
|
"id": "R-301",
|
|||
|
|
"user": "정우성",
|
|||
|
|
"text": "사내 위키 로그인이 안 돼요"
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "R-302",
|
|||
|
|
"user": "이준호",
|
|||
|
|
"text": "노트북 배터리가 금방 닳아요"
|
|||
|
|
}
|
|||
|
|
]
|
|||
|
|
}
|
|||
|
|
← response HTTP 200
|
|||
|
|
{
|
|||
|
|
"total": 2,
|
|||
|
|
"created": 0,
|
|||
|
|
"failed": 2,
|
|||
|
|
"rejected": 0,
|
|||
|
|
"duplicates": 0,
|
|||
|
|
"unclassified": 0,
|
|||
|
|
"results": [
|
|||
|
|
{
|
|||
|
|
"id": "R-301",
|
|||
|
|
"status": "failed",
|
|||
|
|
"reason": "500 - \"{\\\"error\\\": \\\"tickets service is failing (fault switch)\\\"}\""
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"id": "R-302",
|
|||
|
|
"status": "failed",
|
|||
|
|
"reason": "500 - \"{\\\"error\\\": \\\"tickets service is failing (fault switch)\\\"}\""
|
|||
|
|
}
|
|||
|
|
],
|
|||
|
|
"dlq_saved": true,
|
|||
|
|
"alert": "sent"
|
|||
|
|
}
|
|||
|
|
✔ before: POST http://localhost:8800/admin/fault · HTTP 200 · 0.0s · {"faq": "ok", "tickets": "ok", "prompts": "ok", "usage": "ok", "dlq": "ok", "slow_seconds": 8}
|
|||
|
|
→ request POST http://localhost:8800/admin/fault
|
|||
|
|
{
|
|||
|
|
"faq": "ok",
|
|||
|
|
"tickets": "ok",
|
|||
|
|
"prompts": "ok",
|
|||
|
|
"usage": "ok",
|
|||
|
|
"dlq": "ok"
|
|||
|
|
}
|
|||
|
|
← response HTTP 200
|
|||
|
|
{
|
|||
|
|
"faq": "ok",
|
|||
|
|
"tickets": "ok",
|
|||
|
|
"prompts": "ok",
|
|||
|
|
"usage": "ok",
|
|||
|
|
"dlq": "ok",
|
|||
|
|
"slow_seconds": 8
|
|||
|
|
}
|
|||
|
|
✘ 고친 뒤 다시 돌리기 · 0.0s · status 404 (expected 200); replayed = null (expected 2); ok = null (expected 2); still_failed = null (expected 0)
|
|||
|
|
→ request POST /webhook/my-replay
|
|||
|
|
{}
|
|||
|
|
← response HTTP 404
|
|||
|
|
{
|
|||
|
|
"code": 404,
|
|||
|
|
"message": "The requested webhook \"POST my-replay\" is not registered.",
|
|||
|
|
"hint": "The workflow must be active for a production URL to run successfully. You can activate the workflow using the toggle in the top-right of the editor. Note that unlike test URL calls, production URL calls aren't shown on the canvas (only in the executions list)"
|
|||
|
|
}
|
|||
|
|
✘ DLQ가 비었음 · 0.0s · size = 2 (expected 0)
|
|||
|
|
→ request POST http://localhost:8800/dlq/list
|
|||
|
|
{}
|
|||
|
|
← response HTTP 200
|
|||
|
|
{
|
|||
|
|
"size": 2,
|
|||
|
|
"parked": 0,
|
|||
|
|
"items": [
|
|||
|
|
{
|
|||
|
|
"dlq_id": "D-1",
|
|||
|
|
"attempts": 1,
|
|||
|
|
"parked": false,
|
|||
|
|
"item": {
|
|||
|
|
"id": "R-301",
|
|||
|
|
"user": "정우성",
|
|||
|
|
"text": "사내 위키 로그인이 안 돼요"
|
|||
|
|
},
|
|||
|
|
"reason": "500 - \"{\\\"error\\\": \\\"tickets service is failing (fault switch)\\\"}\"",
|
|||
|
|
"workflow": "intake",
|
|||
|
|
"at": 1793251042.6309726
|
|||
|
|
},
|
|||
|
|
{
|
|||
|
|
"dlq_id": "D-2",
|
|||
|
|
"attempts": 1,
|
|||
|
|
"parked": false,
|
|||
|
|
"item": {
|
|||
|
|
"id": "R-302",
|
|||
|
|
"user": "이준호",
|
|||
|
|
"text": "노트북 배터리가 금방 닳아요"
|
|||
|
|
},
|
|||
|
|
"reason": "500 - \"{\\\"error\\\": \\\"tickets service is failing (fault switch)\\\"}\"",
|
|||
|
|
"workflow": "intake",
|
|||
|
|
"at": 1793251042.630976
|
|||
|
|
}
|
|||
|
|
]
|
|||
|
|
}
|
|||
|
|
✘ 접수 건은 2개 (중복 없음) · 0.0s · count = 0 (expected 2)
|
|||
|
|
→ request POST http://localhost:8800/tickets-created/list
|
|||
|
|
{}
|
|||
|
|
← response HTTP 200
|
|||
|
|
{
|
|||
|
|
"count": 0,
|
|||
|
|
"tickets": []
|
|||
|
|
}
|
|||
|
|
✘ 한 번 더 돌려도 할 일 없음 · 0.0s · status 404 (expected 200); replayed = null (expected 0)
|
|||
|
|
→ request POST /webhook/my-replay
|
|||
|
|
{}
|
|||
|
|
← response HTTP 404
|
|||
|
|
{
|
|||
|
|
"code": 404,
|
|||
|
|
"message": "The requested webhook \"POST my-replay\" is not registered.",
|
|||
|
|
"hint": "The workflow must be active for a production URL to run successfully. You can activate the workflow using the toggle in the top-right of the editor. Note that unlike test URL calls, production URL calls aren't shown on the canvas (only in the executions list)"
|
|||
|
|
}
|
|||
|
|
Passed 1/5
|
|||
|
|
report: runs/lab03-20261029-141722.json
|
|||
|
|
✔ after: POST http://localhost:8800/admin/fault · HTTP 200 · 0.0s · {"faq": "ok", "tickets": "ok", "prompts": "ok", "usage": "ok", "dlq": "ok", "slow_seconds": 8}
|
|||
|
|
→ request POST http://localhost:8800/admin/fault
|
|||
|
|
{
|
|||
|
|
"faq": "ok",
|
|||
|
|
"tickets": "ok",
|
|||
|
|
"prompts": "ok",
|
|||
|
|
"usage": "ok",
|
|||
|
|
"dlq": "ok"
|
|||
|
|
}
|
|||
|
|
← response HTTP 200
|
|||
|
|
{
|
|||
|
|
"faq": "ok",
|
|||
|
|
"tickets": "ok",
|
|||
|
|
"prompts": "ok",
|
|||
|
|
"usage": "ok",
|
|||
|
|
"dlq": "ok",
|
|||
|
|
"slow_seconds": 8
|
|||
|
|
}
|