os.getenv("FEATURE_GEOIP2") != "1", reason="GeoIP2 support disabled in the build"
)
+with_gssapi = pytest.mark.skipif(
+ os.getenv("FEATURE_GSSAPI") != "1", reason="GSS-API support disabled in the build"
+)
+
without_tsan = pytest.mark.skipif(
os.getenv("FEATURE_TSAN") == "1", reason="incompatible with ThreadSanitizer (TSAN)"
)
+++ /dev/null
-#!/bin/sh
-
-# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
-#
-# SPDX-License-Identifier: MPL-2.0
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, you can obtain one at https://mozilla.org/MPL/2.0/.
-#
-# See the COPYRIGHT file distributed with this work for additional
-# information regarding copyright ownership.
-
-. ../conf.sh
-
-$FEATURETEST --gssapi || {
- echo_i "gssapi not supported - skipping tkeyleak test"
- exit 255
-}
-
-exit 0
import pytest
import isctest
+import isctest.mark
-pytestmark = pytest.mark.extra_artifacts(
+EXTRA_ARTIFACTS = pytest.mark.extra_artifacts(
[
"*/*.db",
]
)
+pytestmark = [
+ isctest.mark.with_gssapi,
+ EXTRA_ARTIFACTS,
+]
+
TKEY_NAME = dns.name.from_text("test.key.")
GSSAPI_ALGORITHM = dns.name.from_text("gss-tsig.")
TKEY_MODE_GSSAPI = 3
. ../conf.sh
-# enable the tsiggss test only if gssapi was enabled
-$FEATURETEST --gssapi || {
- echo_i "gssapi and krb5 not supported - skipping tsiggss test"
- exit 255
-}
-
$FEATURETEST --have-fips-dh || {
echo_i "FIPS mode Diffie-Hellman not working - skipping tsiggss test"
exit 255
import pytest
import isctest
+import isctest.mark
-pytestmark = pytest.mark.extra_artifacts(
+EXTRA_ARTIFACTS = pytest.mark.extra_artifacts(
[
"ns1/K*",
"ns1/example.nil.db",
]
)
+pytestmark = [
+ isctest.mark.with_gssapi,
+ EXTRA_ARTIFACTS,
+]
+
class CraftedTKEYQuery:
"""
import pytest
-pytestmark = pytest.mark.extra_artifacts(
+import isctest.mark
+
+EXTRA_ARTIFACTS = pytest.mark.extra_artifacts(
[
"authsock.pid",
"nsupdate.out*",
]
)
+pytestmark = [
+ isctest.mark.with_gssapi,
+ EXTRA_ARTIFACTS,
+]
+
def test_tsiggss(run_tests_sh):
run_tests_sh()
import pytest
import isctest
+import isctest.mark
-pytestmark = pytest.mark.extra_artifacts(
+EXTRA_ARTIFACTS = pytest.mark.extra_artifacts(
[
"nsupdate.out*",
"ns1/K*",
]
)
+pytestmark = [
+ isctest.mark.with_gssapi,
+ EXTRA_ARTIFACTS,
+]
+
TKEY_NAME = "duptest.sig-example.nil."