提交 af0bb5bd 编写于 作者: A alesapin

One more time

上级 ada193e7
import logging
import os
import time
import pytest
from helpers.cluster import ClickHouseCluster
......@@ -37,10 +38,15 @@ def cluster():
def check_proxy_logs(cluster, proxy_instance, http_methods={"POST", "PUT", "GET", "DELETE"}):
logs = cluster.get_container_logs(proxy_instance)
# Check that all possible interactions with Minio are present
for http_method in http_methods:
assert logs.find(http_method + " http://minio1") >= 0
for i in range(10):
logs = cluster.get_container_logs(proxy_instance)
# Check that all possible interactions with Minio are present
for http_method in http_methods:
if logs.find(http_method + " http://minio1") >= 0:
return
time.sleep(1)
else:
assert False, "http method not found in logs"
@pytest.mark.parametrize(
......
......@@ -8,7 +8,6 @@ import pytest
from helpers.client import QueryRuntimeException
from helpers.cluster import ClickHouseCluster
# test
cluster = ClickHouseCluster(__file__)
node1 = cluster.add_instance('node1',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册