From 0d37cdb515e1dd3fae1f16385a9a6611c1fd8e6f Mon Sep 17 00:00:00 2001 From: Itamar Hartstein Date: Mon, 12 Aug 2024 21:15:48 +0300 Subject: [PATCH] validate_unique_metric_names - bugfix --- macros/edr/tests/test_utils/validate_unique_metric_names.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/edr/tests/test_utils/validate_unique_metric_names.sql b/macros/edr/tests/test_utils/validate_unique_metric_names.sql index c4ba8681c..135e1fc06 100644 --- a/macros/edr/tests/test_utils/validate_unique_metric_names.sql +++ b/macros/edr/tests/test_utils/validate_unique_metric_names.sql @@ -15,7 +15,7 @@ {% for graph_node in graph.nodes.values() %} {% if test_node.unique_id != graph_node.unique_id and graph_node.resource_type == "test" %} - {% set test_metadata = graph_node.test_metadata %} + {% set test_metadata = elementary.safe_get_with_default(graph_node, 'test_metadata', {}) %} {% if test_metadata.namespace == "elementary" and test_metadata.name == "collect_metrics" %} {% set test_parent_model_unique_ids = elementary.get_parent_model_unique_ids_from_test_node(graph_node) %} {% if parent_model_unique_ids == test_parent_model_unique_ids %}