BIND_STRESS_TEST_OS: linux
BIND_STRESS_TEST_ARCH: amd64
+ HYPOTHESIS_PROFILE: "ci"
+
default:
# Allow all running CI jobs to be automatically canceled when a new
# version of a branch is pushed.
- special behavior of rdtypes like CNAME
"""
+import os
import pytest
pytest.importorskip("dns", minversion="2.0.0")
pytest.importorskip("hypothesis")
except ValueError:
pytest.importorskip("hypothesis", minversion="4.41.2")
-from hypothesis import assume, example, given
+from hypothesis import assume, example, given, settings
from strategies import dns_names, dns_rdatatypes_without_meta
import isctest.check
IP_ADDR = "10.53.0.1"
TIMEOUT = 5 # seconds, just a sanity check
+# Timing of hypothesis tests is flaky in the CI, so we disable deadlines.
+settings.register_profile("ci", deadline=None)
+settings.load_profile(os.getenv("HYPOTHESIS_PROFILE", "default"))
+
@given(name=dns_names(suffix=SUFFIX), rdtype=dns_rdatatypes_without_meta)
def test_wildcard_rdtype_mismatch(