diff --git a/tests/test_config_consistency.py b/tests/test_config_consistency.py index b72c1ca778..a8cf6b5ac9 100644 --- a/tests/test_config_consistency.py +++ b/tests/test_config_consistency.py @@ -476,6 +476,7 @@ def test_log_injection_128bit_traceid_default(self): trace_id = dd.get("trace_id") assert re.match(r"^[0-9a-f]{32}$", trace_id), f"Invalid 128-bit trace_id: {trace_id}" + @rfc("https://docs.google.com/document/d/1kI-gTAKghfcwI7YzKhqRv2ExUstcHqADIWA4-TZ387o/edit#heading=h.8v16cioi7qxp") @scenarios.tracing_config_nondefault_3 @features.tracing_configuration_consistency @@ -518,6 +519,7 @@ def test_config_runtimemetrics_default(self): data = list(interfaces.library.get_data("/dogstatsd/v2/proxy")) assert len(data) == 0 + def parse_log_injection_message(log_message): for data in stdout.get_data(): json_string = json.dumps(data) @@ -527,9 +529,6 @@ def parse_log_injection_message(log_message): message = json.loads(parsed_data.get("message")) except json.JSONDecodeError: continue - if ( - message.get("dd") - and message.get(log_injection_fields[context.library.library]["message"]) == log_message - ): + if message.get("dd") and message.get(log_injection_fields[context.library.library]["message"]) == log_message: dd = message.get("dd") - return dd \ No newline at end of file + return dd