]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix dnsdist regression test, spanid is now mandatory and flags was added as well 16786/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 28 Jan 2026 09:47:41 +0000 (10:47 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 28 Jan 2026 10:18:27 +0000 (11:18 +0100)
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
regression-tests.dnsdist/test_OpenTelemetryTracing.py

index 4f6a13285a838a73bd32b0d4bd8c93ec6e0760f5..6eceee3a8355809327c54157a722c8bad7daab85 100644 (file)
@@ -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",