CI: skip hdfs tests for arm

#do_not_test
 #batch_0
 #no_merge_commit

 #ci_set_arm
This commit is contained in:
Max Kainov 2024-03-14 20:01:12 +00:00
parent 740b7ec4b7
commit e8b3cc2851

View File

@ -1,3 +1,4 @@
import platform
import pytest
from helpers.cluster import ClickHouseCluster
@ -16,9 +17,11 @@ node5 = cluster.add_instance(
"node5", main_configs=["configs/config_without_allowed_hosts.xml"]
)
node6 = cluster.add_instance("node6", main_configs=["configs/config_for_remote.xml"])
node7 = cluster.add_instance(
"node7", main_configs=["configs/config_for_redirect.xml"], with_hdfs=True
)
if platform.processor() != "arm":
node7 = cluster.add_instance(
"node7", main_configs=["configs/config_for_redirect.xml"], with_hdfs=True
)
@pytest.fixture(scope="module")
@ -270,6 +273,7 @@ def test_table_function_remote(start_cluster):
)
@pytest.mark.skipif(platform.processor() == "arm", reason="skip for ARM")
def test_redirect(start_cluster):
hdfs_api = start_cluster.hdfs_api
@ -284,6 +288,7 @@ def test_redirect(start_cluster):
node7.query("DROP TABLE table_test_7_1")
@pytest.mark.skipif(platform.processor() == "arm", reason="skip for ARM")
def test_HDFS(start_cluster):
assert "not allowed" in node7.query_and_get_error(
"CREATE TABLE table_test_7_2 (word String) ENGINE=HDFS('http://hdfs1:50075/webhdfs/v1/simple_storage?op=OPEN&namenoderpcaddress=hdfs1:9000&offset=0', 'CSV')"
@ -293,6 +298,7 @@ def test_HDFS(start_cluster):
)
@pytest.mark.skipif(platform.processor() == "arm", reason="skip for ARM")
def test_schema_inference(start_cluster):
error = node7.query_and_get_error("desc url('http://test.com`, 'TSVRaw'')")
assert error.find("ReadWriteBufferFromHTTPBase") == -1