From 09ebed422ede23b50c7470a39454f2f978c9095f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?El=C3=A9onore=20Bommart?= Date: Thu, 13 Nov 2025 15:36:00 +0100 Subject: [PATCH] add sanitization for enrichment tables in config tests --- src/config/unit_test/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/config/unit_test/mod.rs b/src/config/unit_test/mod.rs index 485f8b59e75eb..da84448a9d074 100644 --- a/src/config/unit_test/mod.rs +++ b/src/config/unit_test/mod.rs @@ -448,6 +448,13 @@ async fn build_unit_test( .filter(|(key, _)| valid_components.contains(&key.to_string())) .collect(); + // Remove all enrichment tables that are not relevant to the current test + config_builder.enrichment_tables = config_builder + .enrichment_tables + .into_iter() + .filter(|(key, _)| valid_components.contains(&key.to_string())) + .collect(); + // Sanitize the inputs of all relevant transforms let graph = Graph::new_unchecked( &config_builder.sources,