test: lib: rest_client: use 'http' scheme even when connecting via a unix socket

aiohttp 3.10.5 complains when 'unix+http' is used for a unix-domain
socket. USe 'http', which work with 3.10.5 and the toolchain's 3.9.5.

Closes scylladb/scylladb#21080
This commit is contained in:
Avi Kivity
2024-10-12 19:55:02 +03:00
committed by Kamil Braun
parent 48d75818fd
commit c286ddab38

View File

@@ -128,7 +128,7 @@ class UnixRESTClient(RESTClient):
def __init__(self, sock_path: str):
# NOTE: using Python requests style URI for Unix domain sockets to avoid using "localhost"
# host parameter is ignored but set to socket name as convention
self.uri_scheme: str = "http+unix"
self.uri_scheme: str = "http"
self.default_host: str = f"{os.path.basename(sock_path)}"
self.connector = UnixConnector(path=sock_path)