Files
greptimedb/tests-integration/Cargo.toml
T
dennis zhuangandWenyXu 69623e000b refactor(tests-integration): drop duplicated harness code and tests (#10856)
* refactor(tests-integration): extract datanode RPC transport

Signed-off-by: WenyXu <wenymedia@gmail.com>

* refactor(tests-integration): share cluster startup orchestration

Signed-off-by: WenyXu <wenymedia@gmail.com>

* refactor(tests-integration): share migration and repartition scenarios

Signed-off-by: WenyXu <wenymedia@gmail.com>

* refactor(tests-integration): clarify shared cluster helper APIs

Signed-off-by: WenyXu <wenymedia@gmail.com>

* test(repartition): check partition metadata as soon as ALTER returns

The synchronous ALTER waits for its procedure and invalidates the local frontend cache before returning. Query the same frontend immediately to exercise that guarantee.

Signed-off-by: WenyXu <wenymedia@gmail.com>

* fix(tests-integration): bound datanode registration by a configurable timeout

Signed-off-by: WenyXu <wenymedia@gmail.com>

* refactor(tests-integration): build slow-query and histogram PG/MySQL servers through the shared helpers

Signed-off-by: Dennis Zhuang <killme2008@gmail.com>

* refactor(tests-integration): drop instance tests covered by sqlness and table-drive COPY and external table cases

test_execute_insert_by_select and test_execute_query are covered by insert_select.sql and sum.sql, which assert the same rows and error messages in both modes; test_execute_insert and test_execute_create only checked affected rows. The four cloud COPY tests share one body, and the parquet and CSV external table fixtures hold the same rows.

Signed-off-by: Dennis Zhuang <killme2008@gmail.com>

* refactor(tests-integration): share the Kafka cluster setup of region migration tests

Signed-off-by: Dennis Zhuang <killme2008@gmail.com>

* refactor(tests-integration): fold the OTel Arrow exemplar tests into one and share the metrics payload

test_otel_arrow_exemplars_without_metric_engine and test_exemplar_otel_arrow_skips_non_metric_source checked the same skip; the surviving test now also verifies decoding and a following histogram batch in both deployments.

Signed-off-by: Dennis Zhuang <killme2008@gmail.com>

* refactor(tests-integration): share the GC garbage setup and checks across GC trigger tests

Signed-off-by: Dennis Zhuang <killme2008@gmail.com>

* refactor(tests-integration): share submitted procedure lookup across event tests

Signed-off-by: Dennis Zhuang <killme2008@gmail.com>

* fix(tests-integration): box the metasrv startup future to fit the default test stack

Signed-off-by: Dennis Zhuang <killme2008@gmail.com>

* refactor(tests-integration): require a boxed metasrv future and tidy cluster docs

Signed-off-by: Dennis Zhuang <killme2008@gmail.com>

---------

Signed-off-by: WenyXu <wenymedia@gmail.com>
Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
Co-authored-by: WenyXu <wenymedia@gmail.com>
2026-12-03 05:18:08 +00:00

140 lines
3.8 KiB
TOML

[package]
name = "tests-integration"
version.workspace = true
edition.workspace = true
license.workspace = true
autotests = false
[[test]]
name = "main"
path = "tests/main.rs"
[features]
dashboard = ["servers/dashboard"]
enterprise = ["frontend/enterprise", "meta-srv/enterprise", "common-meta/enterprise"]
[lints]
workspace = true
[dependencies]
api.workspace = true
arrow-flight.workspace = true
async-trait.workspace = true
auth.workspace = true
axum.workspace = true
cache.workspace = true
catalog.workspace = true
client.workspace = true
cmd.workspace = true
common-base.workspace = true
common-catalog.workspace = true
common-config.workspace = true
common-datasource.workspace = true
common-error.workspace = true
common-event-recorder.workspace = true
common-grpc.workspace = true
common-memory-manager.workspace = true
common-meta.workspace = true
common-procedure.workspace = true
common-query.workspace = true
common-recordbatch.workspace = true
common-runtime.workspace = true
common-telemetry.workspace = true
common-test-util.workspace = true
common-time.workspace = true
common-wal.workspace = true
datanode = { workspace = true }
datatypes.workspace = true
dotenv.workspace = true
flow.workspace = true
frontend.workspace = true
futures.workspace = true
futures-util.workspace = true
http.workspace = true
hyper-util = { workspace = true, features = ["tokio"] }
meta-client.workspace = true
meta-srv = { workspace = true, features = ["mock"] }
mito2.workspace = true
object-store.workspace = true
operator.workspace = true
pipeline.workspace = true
prost.workspace = true
query.workspace = true
rand.workspace = true
serde_json.workspace = true
servers.workspace = true
session.workspace = true
sql.workspace = true
standalone.workspace = true
store-api.workspace = true
substrait.workspace = true
table.workspace = true
tempfile.workspace = true
tokio.workspace = true
tokio-stream = { workspace = true, features = ["net"] }
tonic.workspace = true
tower.workspace = true
uuid.workspace = true
[dev-dependencies]
base64.workspace = true
bytes.workspace = true
catalog = { workspace = true, features = ["testing"] }
chrono.workspace = true
clap.workspace = true
cli.workspace = true
client = { workspace = true, features = ["testing"] }
common-frontend.workspace = true
common-memory-manager.workspace = true
common-meta = { workspace = true, features = ["testing"] }
common-options.workspace = true
common-procedure-test.workspace = true
common-wal = { workspace = true, features = ["testing"] }
datafusion.workspace = true
datafusion-expr.workspace = true
either.workspace = true
flate2 = "1.0"
frontend = { workspace = true, features = ["testing"] }
hex.workspace = true
http.workspace = true
itertools.workspace = true
jsonb.workspace = true
log-query.workspace = true
loki-proto.workspace = true
mito2 = { workspace = true, features = ["test", "test-shared-fs-region-migration"] }
mysql_async = { version = "0.37", default-features = false, features = [
"time",
"default-rustls-ring",
] }
opentelemetry-proto.workspace = true
operator = { workspace = true, features = ["testing"] }
otel-arrow-rust.workspace = true
partition.workspace = true
paste.workspace = true
plugins.workspace = true
promql = { workspace = true, features = ["test-utils"] }
prost.workspace = true
rand.workspace = true
rskafka.workspace = true
rstest.workspace = true
rstest_reuse.workspace = true
sea-query.workspace = true
servers = { workspace = true, features = ["testing"] }
similar-asserts.workspace = true
sqlx = { workspace = true, features = [
"mysql",
"mysql-rsa",
"postgres",
"chrono",
] }
store-api.workspace = true
temp-env.workspace = true
time = "0.3"
tokio = { workspace = true, features = ["test-util"] }
tokio-postgres = { workspace = true }
tokio-util.workspace = true
url = "2.3"
urlencoding = "2.1"
yaml-rust = "0.4"
zstd.workspace = true