Merge pull request #15119 from donaldsharp/pytest_mgmtd

tests: Add mgmtd to the official pytest.mark list
This commit is contained in:
Donatas Abraitis 2024-01-08 20:48:30 +02:00 committed by GitHub
commit 87a92274f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 16 additions and 21 deletions

View File

@ -30,7 +30,7 @@ GRPCP_OSPFD = 50055
GRPCP_PIMD = 50056
pytestmark = [
# pytest.mark.mgmtd -- Need a new non-protocol marker
pytest.mark.mgmtd,
# pytest.mark.bfdd,
# pytest.mark.isisd,
# pytest.mark.ospfd,

View File

@ -61,8 +61,7 @@ import pytest
from lib.common_config import retry, step
from lib.topogen import Topogen, TopoRouter
# pytestmark = [pytest.mark.staticd, pytest.mark.mgmtd]
pytestmark = [pytest.mark.staticd]
pytestmark = [pytest.mark.staticd, pytest.mark.mgmtd]
@retry(retry_timeout=1, initial_wait=0.1)

View File

@ -12,7 +12,7 @@ Test mgmtd regressions
import pytest
from lib.topogen import Topogen
pytestmark = [pytest.mark.staticd]
pytestmark = [pytest.mark.staticd, pytest.mark.mgmtd]
@pytest.fixture(scope="module")

View File

@ -16,7 +16,7 @@ from lib.common_config import step
from lib.topogen import Topogen
from munet.watchlog import WatchLog
pytestmark = [pytest.mark.staticd]
pytestmark = [pytest.mark.staticd, pytest.mark.mgmtd]
@pytest.fixture(scope="module")

View File

@ -15,7 +15,7 @@ import pytest
from lib.topogen import Topogen
from oper import check_kernel_32
pytestmark = [pytest.mark.staticd]
pytestmark = [pytest.mark.staticd, pytest.mark.mgmtd]
@pytest.fixture(scope="module")

View File

@ -23,7 +23,7 @@ try:
except ImportError:
dd_json_cmp = None
pytestmark = [pytest.mark.staticd]
pytestmark = [pytest.mark.staticd, pytest.mark.mgmtd]
@pytest.fixture(scope="module")

View File

@ -19,7 +19,7 @@ from lib.common_config import step
from lib.topogen import Topogen
from oper import check_kernel_32
pytestmark = [pytest.mark.staticd]
pytestmark = [pytest.mark.staticd, pytest.mark.mgmtd]
@pytest.fixture(scope="module")

View File

@ -19,7 +19,7 @@ from lib.common_config import step
from lib.topogen import Topogen, TopoRouter
from oper import check_kernel_32
pytestmark = [pytest.mark.staticd]
pytestmark = [pytest.mark.staticd, pytest.mark.mgmtd]
@pytest.fixture(scope="module")

View File

@ -15,7 +15,7 @@ import pytest
from lib.topogen import Topogen
from oper import check_kernel_32, do_oper_test
pytestmark = [pytest.mark.staticd]
pytestmark = [pytest.mark.staticd, pytest.mark.mgmtd]
@pytest.fixture(scope="module")

View File

@ -21,8 +21,7 @@ from util import check_kernel, check_vtysh_up, write_big_route_conf
CWD = os.path.dirname(os.path.realpath(__file__))
# pytestmark = [pytest.mark.staticd, pytest.mark.mgmtd]
pytestmark = [pytest.mark.staticd]
pytestmark = [pytest.mark.staticd, pytest.mark.mgmtd]
track = Timeout(0)

View File

@ -31,8 +31,7 @@ from lib.common_config import step
from lib.topogen import Topogen, TopoRouter
from util import check_kernel
# pytestmark = [pytest.mark.staticd, pytest.mark.mgmtd]
pytestmark = [pytest.mark.staticd]
pytestmark = [pytest.mark.staticd, pytest.mark.mgmtd]
@pytest.fixture(scope="module")

View File

@ -22,8 +22,7 @@ from util import check_kernel, check_vtysh_up, write_big_route_conf
CWD = os.path.dirname(os.path.realpath(__file__))
# pytestmark = [pytest.mark.staticd, pytest.mark.mgmtd]
pytestmark = [pytest.mark.staticd]
pytestmark = [pytest.mark.staticd, pytest.mark.mgmtd]
track = Timeout(0)
ROUTE_COUNT = 2500

View File

@ -14,8 +14,7 @@ import pytest
from lib.topogen import Topogen
from util import _test_staticd_late_start
# pytestmark = [pytest.mark.staticd, pytest.mark.mgmtd]
pytestmark = [pytest.mark.staticd]
pytestmark = [pytest.mark.staticd, pytest.mark.mgmtd]
@pytest.fixture(scope="module")

View File

@ -14,8 +14,7 @@ import pytest
from lib.topogen import Topogen, TopoRouter
from util import _test_staticd_late_start
# pytestmark = [pytest.mark.staticd, pytest.mark.mgmtd]
pytestmark = [pytest.mark.staticd]
pytestmark = [pytest.mark.staticd, pytest.mark.mgmtd]
@pytest.fixture(scope="module")

View File

@ -68,7 +68,7 @@ from lib.topolog import logger
from lib.bgp import verify_bgp_convergence, create_router_bgp, verify_bgp_rib
from lib.topojson import build_config_from_json
pytestmark = [pytest.mark.bgpd, pytest.mark.staticd]
pytestmark = [pytest.mark.bgpd, pytest.mark.staticd, pytest.mark.mgmtd]
# Global variables
ADDR_TYPES = check_address_types()

View File

@ -45,6 +45,7 @@ markers =
eigrpd: Tests that run against EIGRPD
isisd: Tests that run against ISISD
ldpd: Tests that run against LDPD
mgmtd: Tests that run against MGMTD
nhrpd: Tests that run against NHRPD
ospf6d: Tests that run against OSPF6D
ospfd: Tests that run against OSPFD