mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
Adds `tests/integration/test_webterminal/` covering the enabled WebSocket endpoint, as requested in unresolved review feedback. The existing stateless test `04141_webterminal_disabled.sh` only exercised the disabled gate; the new integration test enables `allow_experimental_webterminal` and validates the security-sensitive auth/handshake paths. Cases covered: - `GET /webterminal` serves the HTML page when the gate is open. - A valid auth frame establishes a session and the embedded `clickhouse-client` forwards PTY data as binary WebSocket frames. - A bad-credentials auth frame does not establish a session - the client observes either an EOF or a close frame, never PTY data. - A first frame that is valid JSON but not an `auth` message triggers a `1008` close (`Invalid auth message`).
0 lines
0 B
Python
0 lines
0 B
Python
The file is empty.