import pytest
-import isctest.mark
-
pytestmark = pytest.mark.extra_artifacts(
[
"active.key",
)
-@isctest.mark.flaky(max_runs=2)
+@pytest.mark.flaky(max_runs=2)
def test_autosign(run_tests_sh):
run_tests_sh()
]
-@isctest.mark.flaky(max_runs=2, rerun_filter=isctest.mark.is_host_freebsd_13)
+@pytest.mark.flaky(max_runs=2, rerun_filter=isctest.mark.is_host_freebsd_13)
def test_dnstap(run_tests_sh):
run_tests_sh()
import pytest
-import isctest.mark
-
pytestmark = pytest.mark.extra_artifacts(
[
"dig.out.*",
)
-@isctest.mark.flaky(max_runs=5) # GL#4605
+@pytest.mark.flaky(max_runs=5) # GL#4605
def test_enginepkcs11(run_tests_sh):
run_tests_sh()
]
)
-import isctest.mark
-
-@isctest.mark.flaky(max_runs=3)
+@pytest.mark.flaky(max_runs=3)
def test_fetchlimit(run_tests_sh):
run_tests_sh()
),
reason="SOFTHSM2_CONF and SOFTHSM2_MODULE environmental variables must be set and pkcs11-tool and softhsm2-util tools present",
)
-
-try:
- import flaky as flaky_pkg # type: ignore
-except ModuleNotFoundError:
- # In case the flaky package is not installed, run the tests as usual
- # without any attempts to re-run them.
- # pylint: disable=unused-argument
- def flaky(*args, **kwargs):
- """Mock decorator that doesn't do anything special, just returns the function."""
-
- def wrapper(wrapped_obj):
- return wrapped_obj
-
- return wrapper
-
-else:
- flaky = flaky_pkg.flaky
import pytest
-import isctest.mark
-
pytestmark = [
pytest.mark.algorithm_set("ecc_default"),
pytest.mark.extra_artifacts(
]
-@isctest.mark.flaky(max_runs=2) # GL#3098
+@pytest.mark.flaky(max_runs=2) # GL#3098
def test_mkeys(run_tests_sh):
run_tests_sh()
import pytest
-import isctest.mark
-
pytestmark = pytest.mark.extra_artifacts(
[
"Kxxx*",
MAX_RUNS = 2 if platform.system() == "FreeBSD" else 1 # GL#3846
-@isctest.mark.flaky(max_runs=MAX_RUNS)
+@pytest.mark.flaky(max_runs=MAX_RUNS)
def test_nsupdate(run_tests_sh):
run_tests_sh()
import pytest
-import isctest.mark
-
pytestmark = pytest.mark.extra_artifacts(
[
"dig.out.*",
# The qmin test is inherently unstable, see GL #904 for details.
-@isctest.mark.flaky(max_runs=3)
+@pytest.mark.flaky(max_runs=3)
def test_qmin(run_tests_sh):
run_tests_sh()
import pytest
-import isctest.mark
-
pytestmark = pytest.mark.extra_artifacts(
[
"dig.out.*",
# The reclimit is known to be quite unstable. GL #1587
-@isctest.mark.flaky(max_runs=2)
+@pytest.mark.flaky(max_runs=2)
def test_reclimit(run_tests_sh):
run_tests_sh()
import pytest
-import isctest.mark
-
pytestmark = pytest.mark.extra_artifacts(
[
"*mdig.out*",
# The rrl is known to be quite unstable. GL #172
-@isctest.mark.flaky(max_runs=2)
+@pytest.mark.flaky(max_runs=2)
def test_rrl(run_tests_sh):
run_tests_sh()
import pytest
-import isctest.mark
-
pytestmark = pytest.mark.extra_artifacts(
[
"dig.out.*",
)
-@isctest.mark.flaky(max_runs=2)
+@pytest.mark.flaky(max_runs=2)
def test_serve_stale(run_tests_sh):
run_tests_sh()
)
-@isctest.mark.flaky(max_runs=2)
+@pytest.mark.flaky(max_runs=2)
def test_traffic_json(statsport):
generic.test_traffic(fetch_traffic_json, statsip="10.53.0.2", statsport=statsport)
)
-@isctest.mark.flaky(max_runs=2)
+@pytest.mark.flaky(max_runs=2)
def test_traffic_xml(statsport):
generic.test_traffic(fetch_traffic_xml, statsip="10.53.0.2", statsport=statsport)
raise EOFError from e
-@isctest.mark.flaky(max_runs=2, rerun_filter=isctest.mark.is_host_freebsd_13)
+@pytest.mark.flaky(max_runs=2, rerun_filter=isctest.mark.is_host_freebsd_13)
def test_idle_timeout(named_port):
#
# The idle timeout is 5 seconds, so the third message should fail
assert soa is not None
-@isctest.mark.flaky(max_runs=3)
+@pytest.mark.flaky(max_runs=3)
def test_send_timeout(named_port):
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
sock.connect(("10.53.0.1", named_port))