]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Mark selected statschannel tests as xfail
authorTom Krizek <tkrizek@isc.org>
Tue, 4 Apr 2023 08:34:37 +0000 (10:34 +0200)
committerTom Krizek <tkrizek@isc.org>
Mon, 22 May 2023 12:11:40 +0000 (14:11 +0200)
The test_zone_timers_secondary_json() and
test_zone_timers_secondary_xml() tests are affected by issue #3983. Due
to the way tests are run, they are only affected when executing them
with the pytest runner.

Strict mode is set for pytest runner, as it always fails there. The
strict mode ensures we'll catch the change when the it starts passing
once the underlying issue is fixed. It can't be set for the legacy
runner, since the test (incorrectly) passes there.

Related #3983

bin/tests/system/statschannel/tests_json.py
bin/tests/system/statschannel/tests_xml.py

index c4599258ea4365a56ff2ede78286ad280172c4ec..6be264f49a4c6267d81af63208f56f09424cbce1 100755 (executable)
@@ -12,6 +12,7 @@
 # information regarding copyright ownership.
 
 from datetime import datetime
+import os
 
 import pytest
 
@@ -82,6 +83,7 @@ def test_zone_timers_primary_json(statsport):
     )
 
 
+@pytest.mark.xfail(reason="GL #3983", strict="LEGACY_TEST_RUNNER" not in os.environ)
 def test_zone_timers_secondary_json(statsport):
     generic.test_zone_timers_secondary(
         fetch_zones_json,
index 7f0b37e846368bedf6959eb9807824010f8b23b8..6375d8a2433fd8d637bc13f6347cc5e3afb91330 100755 (executable)
@@ -12,6 +12,7 @@
 # information regarding copyright ownership.
 
 from datetime import datetime
+import os
 import xml.etree.ElementTree as ET
 
 import pytest
@@ -112,6 +113,7 @@ def test_zone_timers_primary_xml(statsport):
     )
 
 
+@pytest.mark.xfail(reason="GL #3983", strict="LEGACY_TEST_RUNNER" not in os.environ)
 def test_zone_timers_secondary_xml(statsport):
     generic.test_zone_timers_secondary(
         fetch_zones_xml,