Skip to content

Commit 4350efa

Browse files
committed
removed more tests for clickhouse
1 parent fa6d20a commit 4350efa

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

integration_tests/deprecated_tests/run_e2e_tests.py

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,18 +105,26 @@ def filter_anomaly_tests_for_clickhouse(
105105
if target == "clickhouse":
106106
# Tests not supported on ClickHouse
107107
unsupported_test_types = {
108+
# Anomaly tests (not supported in ClickHouse)
108109
"seasonal_volume",
109110
"table",
110111
"column",
111112
"directional_anomalies",
112113
"backfill_days",
113114
"dimension",
114115
"no_timestamp",
115-
"schema", # Schema tests have different behavior in ClickHouse
116-
"error_test", # Contains function not supported
117-
"error_model", # Contains function not supported
118-
"error_snapshot", # Contains function not supported
116+
# Schema and error tests (function compatibility issues)
117+
"schema",
118+
"error_test",
119+
"error_model",
120+
"error_snapshot",
121+
# Models with compatibility issues
122+
"create_table",
123+
"non_dbt_models",
124+
# Tests requiring specific database setup
125+
"config_levels",
119126
}
127+
# Keep basic tests that should work with ClickHouse
120128
return [
121129
test_type
122130
for test_type in test_types
@@ -523,7 +531,18 @@ def main(target, e2e_type, generate_data, clear_tests):
523531
found_failures = False
524532
for e2e_target in e2e_targets:
525533
print(f"Starting {e2e_target} tests\n")
526-
e2e_test_results = e2e_tests(e2e_target, e2e_types, clear_tests, generate_data)
534+
# Filter tests for the current target
535+
filtered_test_types = filter_anomaly_tests_for_clickhouse(e2e_types, e2e_target)
536+
537+
if not filtered_test_types:
538+
print(
539+
f"ERROR: No supported tests found for {e2e_target}. This indicates that {e2e_target} is not properly supported."
540+
)
541+
sys.exit(1)
542+
543+
e2e_test_results = e2e_tests(
544+
e2e_target, filtered_test_types, clear_tests, generate_data
545+
)
527546
print(f"\n{e2e_target} results")
528547
all_results[e2e_target] = e2e_test_results
529548

0 commit comments

Comments
 (0)