Commit Graph

3 Commits

Author SHA1 Message Date
Mikhail f. Shiryaev
e6f5a3f98b
Apply black formatter to all *.py files in the repo 2022-03-22 17:39:58 +01:00
Alexey Milovidov
e513a5db32 Change <yandex> to <clickhouse> in configs 2021-09-20 01:38:53 +03:00
Braulio Valdivielso
3fdc2aae19 test that the tcp handler returns correct http responses
I have added two tests. One checks the usual scenario where the
instance's config specifies a `http_port`. In that case, we expect the
`http_port` to be part of the response. The other scenario checks what
happens when the config doesn't specify a `http_port`. It's hard to
nail down the expectation there without hardcoding the error
response (which is not what we generally want) but I'm mainly checking
that no HTTP port is mentioned. This particular test would have failed
before my previous fix, because the TCP handler wouldn't have managed
to send back an HTTP response and `requests.post` would have thrown an
exception.
2021-08-07 11:56:05 +01:00