2022-03-14 08:59:32 +01:00
|
|
|
#!/usr/bin/python3
|
|
|
|
|
2021-06-21 14:51:43 +02:00
|
|
|
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
|
|
|
#
|
2021-06-03 08:37:05 +02:00
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
#
|
2021-06-21 14:51:43 +02:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
2021-06-03 08:37:05 +02:00
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
2021-06-21 14:51:43 +02:00
|
|
|
# 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.
|
|
|
|
|
|
|
|
import os
|
2022-03-14 08:59:32 +01:00
|
|
|
|
2021-06-21 14:51:43 +02:00
|
|
|
import pytest
|
|
|
|
|
|
|
|
|
2022-03-14 08:59:32 +01:00
|
|
|
@pytest.fixture(scope='session')
|
2021-06-21 14:51:43 +02:00
|
|
|
def named_port():
|
2022-03-14 08:59:32 +01:00
|
|
|
return int(os.environ.get('PORT', default=5300))
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture(scope='session')
|
|
|
|
def named_tlsport():
|
|
|
|
return int(os.environ.get('TLSPORT', default=8853))
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture(scope='session')
|
|
|
|
def control_port():
|
|
|
|
return int(os.environ.get('CONTROLPORT', default=9953))
|