]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
skip test on class level
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 11 Feb 2026 11:40:39 +0000 (12:40 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 12 Feb 2026 09:41:02 +0000 (10:41 +0100)
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
regression-tests.recursor-dnssec/test_Prometheus.py

index 9ddf62cc9302efdba626a4377b84bdf4ebcd92e6..c2947f06487759f6673ca4ff5076e2478700c584 100644 (file)
@@ -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'