From: Otto Moerbeek Date: Wed, 11 Feb 2026 11:40:39 +0000 (+0100) Subject: skip test on class level X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc4d14ff4ffddb7f2d65f8bdec9f26d0b7a7e209;p=thirdparty%2Fpdns.git skip test on class level Signed-off-by: Otto Moerbeek --- diff --git a/regression-tests.recursor-dnssec/test_Prometheus.py b/regression-tests.recursor-dnssec/test_Prometheus.py index 9ddf62cc93..c2947f0648 100644 --- a/regression-tests.recursor-dnssec/test_Prometheus.py +++ b/regression-tests.recursor-dnssec/test_Prometheus.py @@ -102,6 +102,7 @@ webservice: self.checkPrometheusContentBasic(r.text) self.checkPrometheusContentPromtool(r.content) +@pytest.mark.skipif('pkcs12' not in RecursorTest.recFeatures(), reason='pkcs12 feature not available') class HttpsPKCS12PrometheusTest(RecPrometheusTest): _confdir = 'HttpsPKCS12Prometheus' _wsPort = 8042 @@ -126,7 +127,6 @@ webservice: def generateRecursorConfig(cls, confdir): super(HttpsPKCS12PrometheusTest, cls).generateRecursorYamlConfig(confdir) - @pytest.mark.skipif('pkcs12' not in RecursorTest.recFeatures(), reason='pkcs12 feature not available') def testPrometheus(self): self.waitForTCPSocket("127.0.0.1", self._wsPort) url = 'https://user:' + self._wsPassword + '@127.0.0.1:' + str(self._wsPort) + '/metrics'