xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/conftest.py (revision a45db23f655e22f0c2354600d3b3c2cb98abf2dc)
1#!/usr/bin/python3
2
3# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
4#
5# SPDX-License-Identifier: MPL-2.0
6#
7# This Source Code Form is subject to the terms of the Mozilla Public
8# License, v. 2.0.  If a copy of the MPL was not distributed with this
9# file, you can obtain one at https://mozilla.org/MPL/2.0/.
10#
11# See the COPYRIGHT file distributed with this work for additional
12# information regarding copyright ownership.
13
14import os
15
16import pytest
17
18
19@pytest.fixture(scope="session")
20def named_port():
21    return int(os.environ.get("PORT", default=5300))
22
23
24@pytest.fixture(scope="session")
25def named_tlsport():
26    return int(os.environ.get("TLSPORT", default=8853))
27
28
29@pytest.fixture(scope="session")
30def control_port():
31    return int(os.environ.get("CONTROLPORT", default=9953))
32