From 94fe1b327d5ee5288e14f691d14fb1641d0cc07f Mon Sep 17 00:00:00 2001 From: Charles-Henri Bruyand Date: Wed, 17 Jan 2024 13:05:18 +0100 Subject: [PATCH] dnsdist: add a test for new protobuf field httpVersion --- regression-tests.dnsdist/test_Protobuf.py | 1 + 1 file changed, 1 insertion(+) 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() -- 2.47.2