From: Otto Moerbeek Date: Wed, 28 Jan 2026 09:47:41 +0000 (+0100) Subject: Fix dnsdist regression test, spanid is now mandatory and flags was added as well X-Git-Tag: rec-5.5.0-alpha0~34^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2df2d8d57b26438e5defa8fcfb2f9858d80ff58a;p=thirdparty%2Fpdns.git Fix dnsdist regression test, spanid is now mandatory and flags was added as well Signed-off-by: Otto Moerbeek --- diff --git a/regression-tests.dnsdist/test_OpenTelemetryTracing.py b/regression-tests.dnsdist/test_OpenTelemetryTracing.py index 4f6a13285a..6eceee3a83 100644 --- a/regression-tests.dnsdist/test_OpenTelemetryTracing.py +++ b/regression-tests.dnsdist/test_OpenTelemetryTracing.py @@ -41,6 +41,7 @@ class DNSDistOpenTelemetryProtobufTest(test_Protobuf.DNSDistProtobufTest): ottrace.data += binascii.a2b_hex(traceID) if spanID != "": ottrace.data += binascii.a2b_hex(spanID) + ottrace.data += b"\x00" # flags query = dns.message.make_query( name, "A", "IN", use_edns=True, options=[ottrace] ) @@ -428,9 +429,6 @@ response_rules: def testNoTraceID(self): self.doTest() - def testOnlyTraceID(self): - self.doTest(traceID="0123456789ABCDEF0123456789ABCDEF") - def testTraceIDAndSpanID(self): self.doTest( traceID="0123456789ABCDEF0123456789ABCDEF", @@ -455,9 +453,6 @@ addResponseAction(AllRule(), RemoteLogResponseAction(rl, nil, false, {}, {}, fal def testNoTraceID(self): self.doTest() - def testOnlyTraceID(self): - self.doTest(traceID="0123456789ABCDEF0123456789ABCDEF") - def testTraceIDAndSpanID(self): self.doTest( traceID="0123456789ABCDEF0123456789ABCDEF",