mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
Fix integration test
This commit is contained in:
parent
19d8256fa8
commit
38f41ee311
@ -3,10 +3,10 @@ from helpers.cluster import ClickHouseCluster
|
||||
from helpers.test_tools import TSV
|
||||
|
||||
disk_types = {
|
||||
"default": "local",
|
||||
"disk_s3": "s3",
|
||||
"disk_hdfs": "hdfs",
|
||||
"disk_encrypted": "s3",
|
||||
"default": "Local",
|
||||
"disk_s3": "S3",
|
||||
"disk_hdfs": "HDFS",
|
||||
"disk_encrypted": "S3",
|
||||
}
|
||||
|
||||
|
||||
@ -55,7 +55,7 @@ def test_different_types(cluster):
|
||||
def test_select_by_type(cluster):
|
||||
node = cluster.instances["node"]
|
||||
for name, disk_type in list(disk_types.items()):
|
||||
if disk_type != "s3":
|
||||
if disk_type != "S3":
|
||||
assert (
|
||||
node.query(
|
||||
"SELECT name FROM system.disks WHERE type='" + disk_type + "'"
|
||||
|
@ -4,10 +4,10 @@ from helpers.test_tools import TSV
|
||||
from pyhdfs import HdfsClient
|
||||
|
||||
disk_types = {
|
||||
"default": "local",
|
||||
"disk_s3": "s3",
|
||||
"disk_hdfs": "hdfs",
|
||||
"disk_encrypted": "s3",
|
||||
"default": "Local",
|
||||
"disk_s3": "S3",
|
||||
"disk_hdfs": "HDFS",
|
||||
"disk_encrypted": "S3",
|
||||
}
|
||||
|
||||
|
||||
@ -63,7 +63,7 @@ def test_select_by_type(cluster):
|
||||
fs = HdfsClient(hosts=cluster.hdfs_ip)
|
||||
|
||||
for name, disk_type in list(disk_types.items()):
|
||||
if disk_type != "s3":
|
||||
if disk_type != "S3":
|
||||
assert (
|
||||
node.query(
|
||||
"SELECT name FROM system.disks WHERE type='" + disk_type + "'"
|
||||
|
Loading…
Reference in New Issue
Block a user