. ../conf.sh
-$FEATURETEST --with-libnghttp2 || {
- echo_i "This test requires libnghttp2 support." >&2
- exit 255
-}
-
$FEATURETEST --have-fips-dh || {
echo_i "FIPS mode Diffie-Hellman not working - skipping doth test"
exit 255
import pytest
import isctest
+import isctest.mark
-pytestmark = pytest.mark.extra_artifacts(
+EXTRA_ARTIFACTS = pytest.mark.extra_artifacts(
[
"gnutls-cli.*",
"ns*/example*.db",
]
)
+pytestmark = [
+ isctest.mark.with_libnghttp2,
+ EXTRA_ARTIFACTS,
+]
+
def test_gnutls_cli_query(gnutls_cli_executable, named_tlsport):
# Prepare the example/SOA query which will be sent over TLS.
import dns.message
+import isctest.mark
+
+pytestmark = [
+ isctest.mark.with_libnghttp2,
+]
+
def test_settings_frame_flood(ns1, named_httpsport):
msg = dns.message.make_query(".", "SOA")
import pytest
-pytestmark = pytest.mark.extra_artifacts(
+import isctest.mark
+
+EXTRA_ARTIFACTS = pytest.mark.extra_artifacts(
[
"dig.out.*",
"headers.*",
]
)
+pytestmark = [
+ isctest.mark.with_libnghttp2,
+ EXTRA_ARTIFACTS,
+]
+
def test_doth(run_tests_sh):
run_tests_sh()
import pytest
import isctest
+import isctest.mark
-pytestmark = pytest.mark.extra_artifacts(
+EXTRA_ARTIFACTS = pytest.mark.extra_artifacts(
[
"sslyze.log.*",
"ns*/example*.db",
]
)
+pytestmark = [
+ isctest.mark.with_libnghttp2,
+ EXTRA_ARTIFACTS,
+]
+
def is_pid_alive(pid):
try:
os.getenv("FEATURE_JSON_C") != "1", reason="json-c support disabled in the build"
)
+with_libnghttp2 = pytest.mark.skipif(
+ os.getenv("FEATURE_LIBNGHTTP2") != "1",
+ reason="libnghttp2 support disabled in the build",
+)
+
softhsm2_environment = pytest.mark.skipif(
not (
os.getenv("SOFTHSM2_CONF")
+++ /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 --with-libnghttp2 || {
- echo_i "This test requires libnghttp2 support." >&2
- exit 255
-}
-
-exit 0
import pytest
-pytestmark = pytest.mark.extra_artifacts(
+import isctest.mark
+
+EXTRA_ARTIFACTS = pytest.mark.extra_artifacts(
[
"dig.out.*",
"ns*/example.db",
]
)
+pytestmark = [
+ isctest.mark.with_libnghttp2,
+ EXTRA_ARTIFACTS,
+]
+
def test_proxy(run_tests_sh):
run_tests_sh()
+++ /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.
-
-# shellcheck disable=SC1091
-. ../conf.sh
-
-$FEATURETEST --with-libnghttp2 || {
- echo_i "This test requires libnghttp2 support." >&2
- exit 255
-}
-
-exit 0
import pytest
-pytestmark = pytest.mark.extra_artifacts(
+import isctest.mark
+
+EXTRA_ARTIFACTS = pytest.mark.extra_artifacts(
[
"dig.out.*",
"ns1/example.db",
]
)
+pytestmark = [
+ isctest.mark.with_libnghttp2,
+ EXTRA_ARTIFACTS,
+]
+
def test_transport_change(run_tests_sh):
run_tests_sh()