Fix host_regexp hosts file tst

This commit is contained in:
Arthur Passos 2022-08-29 15:58:18 -03:00
parent 961365c7a4
commit dd49b44abb

View File

@ -35,9 +35,10 @@ def started_cluster():
def test_host_regexp_multiple_ptr_hosts_file_v4(started_cluster):
server_ip = cluster.get_instance_ip("clickhouse-server")
client_ip = cluster.get_instance_ip("clickhouse-client")
ch_server.exec_in_container(
(["bash", "-c", f"echo '{server_ip} test1.example.com' > /etc/hosts"])
(["bash", "-c", f"echo '{client_ip} test1.example.com' > /etc/hosts"])
)
endpoint = build_endpoint_v4(server_ip)