77import pytest
88
99from helpers .cluster import ClickHouseCluster
10+ from helpers .config_cluster import minio_secret_key
11+
1012
1113logging .getLogger ().setLevel (logging .INFO )
1214logging .getLogger ().addHandler (logging .StreamHandler ())
@@ -81,7 +83,7 @@ def check_s3_gets(cluster, node, expected_result, cluster_first, cluster_second,
8183 result_first = node .query (
8284 f"""
8385 SELECT count(*)
84- FROM s3Cluster('{ cluster_first } ', 'http://minio1:9001/root/data/generated/*', 'minio', 'minio123 ', 'CSV', 'a String, b UInt64')
86+ FROM s3Cluster('{ cluster_first } ', 'http://minio1:9001/root/data/generated/*', 'minio', '{ minio_secret_key } ', 'CSV', 'a String, b UInt64')
8587 WHERE b=42
8688 SETTINGS
8789 enable_filesystem_cache={ enable_filesystem_cache } ,
@@ -95,7 +97,7 @@ def check_s3_gets(cluster, node, expected_result, cluster_first, cluster_second,
9597 result_second = node .query (
9698 f"""
9799 SELECT count(*)
98- FROM s3Cluster('{ cluster_second } ', 'http://minio1:9001/root/data/generated/*', 'minio', 'minio123 ', 'CSV', 'a String, b UInt64')
100+ FROM s3Cluster('{ cluster_second } ', 'http://minio1:9001/root/data/generated/*', 'minio', '{ minio_secret_key } ', 'CSV', 'a String, b UInt64')
99101 WHERE b=42
100102 SETTINGS
101103 enable_filesystem_cache={ enable_filesystem_cache } ,
@@ -148,9 +150,9 @@ def test_cache_locality(started_cluster):
148150 node = started_cluster .instances ["clickhouse0" ]
149151
150152 expected_result = node .query (
151- """
153+ f """
152154 SELECT count(*)
153- FROM s3('http://minio1:9001/root/data/generated/*', 'minio', 'minio123 ', 'CSV', 'a String, b UInt64')
155+ FROM s3('http://minio1:9001/root/data/generated/*', 'minio', '{ minio_secret_key } ', 'CSV', 'a String, b UInt64')
154156 WHERE b=42
155157 """
156158 )
0 commit comments