From 71db24813e917372f4c525b14a0032402123906c Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Wed, 17 Jun 2026 22:59:22 +0800 Subject: [PATCH] fix(informix): add informix_server field to test helpers --- crates/dbx-core/src/cloud_sync.rs | 1 + crates/dbx-core/src/connection.rs | 1 + crates/dbx-core/src/connection_secrets.rs | 1 + crates/dbx-core/src/db/redis_driver.rs | 1 + crates/dbx-core/src/mq/config.rs | 1 + crates/dbx-core/src/mq/service.rs | 1 + crates/dbx-core/src/query.rs | 1 + crates/dbx-core/src/schema.rs | 1 + crates/dbx-core/src/schema/normalization.rs | 2 +- crates/dbx-core/src/storage.rs | 1 + crates/dbx-core/src/transfer.rs | 1 + crates/dbx-core/tests/live_postgres_transfer.rs | 1 + crates/dbx-web/src/routes/connection.rs | 1 + src-tauri/src/commands/connection.rs | 1 + 14 files changed, 14 insertions(+), 1 deletion(-) diff --git a/crates/dbx-core/src/cloud_sync.rs b/crates/dbx-core/src/cloud_sync.rs index 257d4bab19..a2ca0912e0 100644 --- a/crates/dbx-core/src/cloud_sync.rs +++ b/crates/dbx-core/src/cloud_sync.rs @@ -639,6 +639,7 @@ mod tests { redis_key_separator: default_redis_key_separator(), etcd_endpoints: String::new(), gbase_server: String::new(), + informix_server: String::new(), external_config: None, jdbc_driver_class: None, jdbc_driver_paths: Vec::new(), diff --git a/crates/dbx-core/src/connection.rs b/crates/dbx-core/src/connection.rs index 8085edf01e..b7e45d613e 100644 --- a/crates/dbx-core/src/connection.rs +++ b/crates/dbx-core/src/connection.rs @@ -1669,6 +1669,7 @@ mod tests { redis_key_separator: default_redis_key_separator(), etcd_endpoints: String::new(), gbase_server: String::new(), + informix_server: String::new(), external_config: None, jdbc_driver_class: None, jdbc_driver_paths: Vec::new(), diff --git a/crates/dbx-core/src/connection_secrets.rs b/crates/dbx-core/src/connection_secrets.rs index f0efbb5d5e..21305ecdcb 100644 --- a/crates/dbx-core/src/connection_secrets.rs +++ b/crates/dbx-core/src/connection_secrets.rs @@ -729,6 +729,7 @@ mod tests { redis_key_separator: crate::models::connection::default_redis_key_separator(), etcd_endpoints: String::new(), gbase_server: String::new(), + informix_server: String::new(), external_config: None, jdbc_driver_class: None, jdbc_driver_paths: Vec::new(), diff --git a/crates/dbx-core/src/db/redis_driver.rs b/crates/dbx-core/src/db/redis_driver.rs index 018d675fcb..de68f5833b 100644 --- a/crates/dbx-core/src/db/redis_driver.rs +++ b/crates/dbx-core/src/db/redis_driver.rs @@ -2153,6 +2153,7 @@ mod tests { redis_key_separator: crate::models::connection::default_redis_key_separator(), etcd_endpoints: String::new(), gbase_server: String::new(), + informix_server: String::new(), external_config: None, jdbc_driver_class: None, jdbc_driver_paths: Vec::new(), diff --git a/crates/dbx-core/src/mq/config.rs b/crates/dbx-core/src/mq/config.rs index ddf4d08039..05227e0f9b 100644 --- a/crates/dbx-core/src/mq/config.rs +++ b/crates/dbx-core/src/mq/config.rs @@ -133,6 +133,7 @@ mod tests { redis_key_separator: String::new(), etcd_endpoints: String::new(), gbase_server: String::new(), + informix_server: String::new(), external_config: Some(value), jdbc_driver_class: None, jdbc_driver_paths: Vec::new(), diff --git a/crates/dbx-core/src/mq/service.rs b/crates/dbx-core/src/mq/service.rs index ce1d0c5424..f88f671fbc 100644 --- a/crates/dbx-core/src/mq/service.rs +++ b/crates/dbx-core/src/mq/service.rs @@ -527,6 +527,7 @@ mod tests { redis_key_separator: ":".to_string(), etcd_endpoints: String::new(), gbase_server: String::new(), + informix_server: String::new(), external_config: Some(serde_json::json!({ "systemKind": "pulsar", "adminUrl": "http://127.0.0.1:8080", diff --git a/crates/dbx-core/src/query.rs b/crates/dbx-core/src/query.rs index c7f636170b..7f9bd5fc88 100644 --- a/crates/dbx-core/src/query.rs +++ b/crates/dbx-core/src/query.rs @@ -2196,6 +2196,7 @@ mod tests { redis_key_separator: default_redis_key_separator(), etcd_endpoints: String::new(), gbase_server: String::new(), + informix_server: String::new(), external_config: None, jdbc_driver_class: None, jdbc_driver_paths: Vec::new(), diff --git a/crates/dbx-core/src/schema.rs b/crates/dbx-core/src/schema.rs index 7c3314b863..d3ee2ee2ed 100644 --- a/crates/dbx-core/src/schema.rs +++ b/crates/dbx-core/src/schema.rs @@ -726,6 +726,7 @@ mod tests { redis_key_separator: crate::models::connection::default_redis_key_separator(), etcd_endpoints: String::new(), gbase_server: String::new(), + informix_server: String::new(), external_config: None, jdbc_driver_class: None, jdbc_driver_paths: Vec::new(), diff --git a/crates/dbx-core/src/schema/normalization.rs b/crates/dbx-core/src/schema/normalization.rs index 748d546227..2742be54dc 100644 --- a/crates/dbx-core/src/schema/normalization.rs +++ b/crates/dbx-core/src/schema/normalization.rs @@ -181,7 +181,7 @@ mod tests { redis_key_separator: default_redis_key_separator(), etcd_endpoints: String::new(), gbase_server: String::new(), - external_config: None, + informix_server: String::new(), external_config: None, jdbc_driver_class: None, jdbc_driver_paths: Vec::new(), one_time: false, diff --git a/crates/dbx-core/src/storage.rs b/crates/dbx-core/src/storage.rs index 9e001d2a8f..e79e864110 100644 --- a/crates/dbx-core/src/storage.rs +++ b/crates/dbx-core/src/storage.rs @@ -1888,6 +1888,7 @@ mod tests { redis_key_separator: ":".to_string(), etcd_endpoints: String::new(), gbase_server: String::new(), + informix_server: String::new(), external_config: Some(serde_json::json!({ "systemKind": "pulsar", "adminUrl": "http://127.0.0.1:8080", diff --git a/crates/dbx-core/src/transfer.rs b/crates/dbx-core/src/transfer.rs index 0d7a2930e7..fec4cd2fb5 100644 --- a/crates/dbx-core/src/transfer.rs +++ b/crates/dbx-core/src/transfer.rs @@ -3368,6 +3368,7 @@ mod tests { redis_key_separator: default_redis_key_separator(), etcd_endpoints: String::new(), gbase_server: String::new(), + informix_server: String::new(), external_config: None, jdbc_driver_class: None, jdbc_driver_paths: Vec::new(), diff --git a/crates/dbx-core/tests/live_postgres_transfer.rs b/crates/dbx-core/tests/live_postgres_transfer.rs index c0ce9692c9..3a7f90c3bd 100644 --- a/crates/dbx-core/tests/live_postgres_transfer.rs +++ b/crates/dbx-core/tests/live_postgres_transfer.rs @@ -46,6 +46,7 @@ fn postgres_test_config(id: &str, database: &str) -> ConnectionConfig { redis_key_separator: dbx_core::models::connection::default_redis_key_separator(), etcd_endpoints: String::new(), gbase_server: String::new(), + informix_server: String::new(), external_config: None, jdbc_driver_class: None, jdbc_driver_paths: Vec::new(), diff --git a/crates/dbx-web/src/routes/connection.rs b/crates/dbx-web/src/routes/connection.rs index 5cf89fe46a..34f0c62147 100644 --- a/crates/dbx-web/src/routes/connection.rs +++ b/crates/dbx-web/src/routes/connection.rs @@ -254,6 +254,7 @@ mod tests { redis_key_separator: dbx_core::models::connection::default_redis_key_separator(), etcd_endpoints: String::new(), gbase_server: String::new(), + informix_server: String::new(), external_config: None, jdbc_driver_class: None, jdbc_driver_paths: Vec::new(), diff --git a/src-tauri/src/commands/connection.rs b/src-tauri/src/commands/connection.rs index 13e326ff89..387e3d3b8b 100644 --- a/src-tauri/src/commands/connection.rs +++ b/src-tauri/src/commands/connection.rs @@ -213,6 +213,7 @@ mod tests { redis_key_separator: dbx_core::models::connection::default_redis_key_separator(), etcd_endpoints: String::new(), gbase_server: String::new(), + informix_server: String::new(), external_config: None, jdbc_driver_class: None, jdbc_driver_paths: Vec::new(),