From: Pieter Lexis Date: Wed, 14 Jan 2026 09:56:18 +0000 (+0100) Subject: chore(dnsdist): Skip DoH Protobuf test when DoH is not requested X-Git-Tag: rec-5.4.0-beta1~41^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4621b1f6b678950ac2ea5c35bf0bd5b7c7ef194d;p=thirdparty%2Fpdns.git chore(dnsdist): Skip DoH Protobuf test when DoH is not requested --- diff --git a/regression-tests.dnsdist/test_Protobuf.py b/regression-tests.dnsdist/test_Protobuf.py index e158cc7a7a..f97eaaaf6c 100644 --- a/regression-tests.dnsdist/test_Protobuf.py +++ b/regression-tests.dnsdist/test_Protobuf.py @@ -1,4 +1,6 @@ #!/usr/bin/env python +import unittest +import os import base64 import threading import socket @@ -683,6 +685,7 @@ class TestProtobufCacheHit(DNSDistProtobufTest): self.assertTrue(msg.HasField('outgoingQueries')) self.assertEqual(msg.outgoingQueries, 0) +@unittest.skipIf('SKIP_DOH_TESTS' in os.environ, 'DNS over HTTPS tests are disabled') class TestProtobufMetaDOH(DNSDistProtobufTest): _serverKey = 'server.key'