mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
Fxi again
This commit is contained in:
parent
4ce5245157
commit
c947484fe0
@ -87,19 +87,28 @@ 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 == "Local":
|
||||
assert (
|
||||
node.query(
|
||||
"SELECT name FROM system.disks WHERE type='" + disk_type + "'"
|
||||
)
|
||||
== name + "\n"
|
||||
)
|
||||
else:
|
||||
elif disk_type == "S3":
|
||||
assert (
|
||||
node.query(
|
||||
"SELECT name FROM system.disks WHERE type='"
|
||||
"SELECT name FROM system.disks WHERE object_storage_type='"
|
||||
+ disk_type
|
||||
+ "' ORDER BY name"
|
||||
)
|
||||
== "disk_encrypted\ndisk_s3\n"
|
||||
)
|
||||
else:
|
||||
assert (
|
||||
node.query(
|
||||
"SELECT name FROM system.disks WHERE object_storage_type='"
|
||||
+ disk_type
|
||||
+ "'"
|
||||
)
|
||||
== name + "\n"
|
||||
)
|
||||
|
@ -67,22 +67,29 @@ def test_different_types(cluster):
|
||||
|
||||
def test_select_by_type(cluster):
|
||||
node = cluster.instances["node"]
|
||||
fs = HdfsClient(hosts=cluster.hdfs_ip)
|
||||
|
||||
for name, disk_type in list(disk_types.items()):
|
||||
if disk_type != "S3":
|
||||
if disk_type == "Local":
|
||||
assert (
|
||||
node.query(
|
||||
"SELECT name FROM system.disks WHERE type='" + disk_type + "'"
|
||||
)
|
||||
== name + "\n"
|
||||
)
|
||||
else:
|
||||
elif disk_type == "S3":
|
||||
assert (
|
||||
node.query(
|
||||
"SELECT name FROM system.disks WHERE type='"
|
||||
"SELECT name FROM system.disks WHERE object_storage_type='"
|
||||
+ disk_type
|
||||
+ "' ORDER BY name"
|
||||
)
|
||||
== "disk_encrypted\ndisk_s3\n"
|
||||
)
|
||||
else:
|
||||
assert (
|
||||
node.query(
|
||||
"SELECT name FROM system.disks WHERE object_storage_type='"
|
||||
+ disk_type
|
||||
+ "'"
|
||||
)
|
||||
== name + "\n"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user