Files
sausage/actors/chat/tests/basic.json
T
2026-10-16 14:37:16 +00:00

11 lines
807 B
JSON

{
"description": "chat index, agent page, history paging and input validation",
"steps": [
{"send":{"type":"ping"},"expect":{"type":"pong"}},
{"send":{"type":"http_request","method":"GET","path":"/"},"expect":{"type":"http_response","status":200,"headers":{"Content-Type":"text/html; charset=utf-8"}}},
{"send":{"type":"http_request","method":"GET","path":"/agent-test"},"expect":{"type":"http_response","status":200,"headers":{"Content-Type":"text/html; charset=utf-8"}}},
{"send":{"type":"http_request","method":"GET","path":"/agent-test/api/history"},"expect":{"type":"http_response","status":200,"body":{"agent":"agent-test"}}},
{"send":{"type":"http_request","method":"POST","path":"/agent-test/send","body":{"text":" "}},"expect":{"type":"http_response","status":400}}
]
}