From: Charles-Henri Bruyand Date: Wed, 17 Jan 2024 12:05:18 +0000 (+0100) Subject: dnsdist: add a test for new protobuf field httpVersion X-Git-Tag: dnsdist-1.9.0-rc1~31^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=94fe1b327d5ee5288e14f691d14fb1641d0cc07f;p=thirdparty%2Fpdns.git dnsdist: add a test for new protobuf field httpVersion --- diff --git a/regression-tests.dnsdist/test_Protobuf.py b/regression-tests.dnsdist/test_Protobuf.py index 31f7b6c3f8..8cbdcef9ef 100644 --- a/regression-tests.dnsdist/test_Protobuf.py +++ b/regression-tests.dnsdist/test_Protobuf.py @@ -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()