]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: add a test for new protobuf field httpVersion
authorCharles-Henri Bruyand <charles-henri.bruyand@open-xchange.com>
Wed, 17 Jan 2024 12:05:18 +0000 (13:05 +0100)
committerCharles-Henri Bruyand <charles-henri.bruyand@open-xchange.com>
Wed, 17 Jan 2024 15:47:35 +0000 (16:47 +0100)
regression-tests.dnsdist/test_Protobuf.py

index 31f7b6c3f814bdf32efa2fdaf4d05b8ec5bf2bde..8cbdcef9ef3e7b0264dea006115d32ca76b0dddf 100644 (file)
@@ -634,6 +634,7 @@ class TestProtobufMetaDOH(DNSDistProtobufTest):
                 self.assertIn('?dns=', tags['query-string'])
                 self.assertIn('scheme', tags)
                 self.assertEqual(tags['scheme'], 'https')
+                self.assertEqual(msg.httpVersion, dnsmessage_pb2.PBDNSMessage.HTTPVersion.HTTP2)
 
             # check the protobuf message corresponding to the response
             msg = self.getFirstProtobufMessage()