mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-11-03 17:52:44 +00:00
tests: Add pytest.mark.ospfd to tests
Add pytest marking for ospfd. This commit also has some other test markings because I do not want to have to go through the same test multiple times. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
6907ac7e2c
commit
3dedee4fe1
@ -90,6 +90,7 @@ from lib.topolog import logger
|
||||
# Required to instantiate the topology builder class.
|
||||
from mininet.topo import Topo
|
||||
|
||||
pytestmark = [pytest.mark.bfdd, pytest.mark.ospfd]
|
||||
|
||||
class TemplateTopo(Topo):
|
||||
"Test topology builder"
|
||||
|
||||
@ -45,7 +45,7 @@ from lib.topolog import logger
|
||||
# Required to instantiate the topology builder class.
|
||||
from mininet.topo import Topo
|
||||
|
||||
pytestmark = [pytest.mark.bfdd, pytest.mark.isisd]
|
||||
pytestmark = [pytest.mark.bfdd, pytest.mark.isisd, pytest.mark.ospfd]
|
||||
|
||||
class BFDProfTopo(Topo):
|
||||
"Test topology builder"
|
||||
|
||||
@ -46,7 +46,7 @@ from lib.topolog import logger
|
||||
# Required to instantiate the topology builder class.
|
||||
from mininet.topo import Topo
|
||||
|
||||
pytestmark = [pytest.mark.bfdd]
|
||||
pytestmark = [pytest.mark.bfdd, pytest.mark.ospfd]
|
||||
|
||||
class BFDTopo(Topo):
|
||||
"Test topology builder"
|
||||
|
||||
@ -69,6 +69,8 @@ from lib.common_config import apply_raw_config
|
||||
|
||||
ERROR_LIST = ["Malformed", "Failure", "Unknown", "Incomplete"]
|
||||
|
||||
pytestmark = [pytest.mark.bgpd, pytest.mark.ospfd]
|
||||
|
||||
|
||||
class InvalidCLIError(Exception):
|
||||
"""Raise when the CLI command is wrong"""
|
||||
|
||||
@ -45,6 +45,7 @@ from lib.topolog import logger
|
||||
# Required to instantiate the topology builder class.
|
||||
from mininet.topo import Topo
|
||||
|
||||
pytestmark = [pytest.mark.bgpd, pytest.mark.ospfd]
|
||||
|
||||
class TemplateTopo(Topo):
|
||||
"Test topology builder"
|
||||
|
||||
@ -48,6 +48,8 @@ from lib.topolog import logger
|
||||
# Required to instantiate the topology builder class.
|
||||
from mininet.topo import Topo
|
||||
|
||||
pytestmark = [pytest.mark.bgpd, pytest.mark.ospfd]
|
||||
|
||||
#####################################################
|
||||
#
|
||||
# Network Topology Definition
|
||||
|
||||
@ -29,6 +29,7 @@ sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), ".."))
|
||||
|
||||
from lib.ltemplate import *
|
||||
|
||||
pytestmark = [pytest.mark.bgpd, pytest.mark.ospfd]
|
||||
|
||||
def test_adjacencies():
|
||||
CliOnFail = None
|
||||
|
||||
@ -29,6 +29,7 @@ sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), "../")
|
||||
|
||||
from lib.ltemplate import *
|
||||
|
||||
pytestmark = [pytest.mark.bgpd, pytest.mark.ospfd]
|
||||
|
||||
def test_check_linux_vrf():
|
||||
CliOnFail = None
|
||||
|
||||
@ -29,6 +29,7 @@ sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), ".."))
|
||||
|
||||
from lib.ltemplate import *
|
||||
|
||||
pytestmark = [pytest.mark.bgpd, pytest.mark.ospfd]
|
||||
|
||||
def test_add_routes():
|
||||
CliOnFail = None
|
||||
|
||||
@ -78,6 +78,7 @@ from lib.topolog import logger
|
||||
# Required to instantiate the topology builder class.
|
||||
from mininet.topo import Topo
|
||||
|
||||
pytestmark = [pytest.mark.ldpd, pytest.mark.ospfd]
|
||||
|
||||
class TemplateTopo(Topo):
|
||||
"Test topology builder"
|
||||
|
||||
@ -78,6 +78,7 @@ from lib.topolog import logger
|
||||
# Required to instantiate the topology builder class.
|
||||
from mininet.topo import Topo
|
||||
|
||||
pytestmark = [pytest.mark.ldpd, pytest.mark.ospfd]
|
||||
|
||||
class TemplateTopo(Topo):
|
||||
"Test topology builder"
|
||||
|
||||
@ -79,6 +79,7 @@ from lib.topolog import logger
|
||||
# Required to instantiate the topology builder class.
|
||||
from mininet.topo import Topo
|
||||
|
||||
pytestmark = [pytest.mark.ldpd, pytest.mark.ospfd]
|
||||
|
||||
class TemplateTopo(Topo):
|
||||
"Test topology builder"
|
||||
|
||||
@ -77,7 +77,7 @@ from lib import topotest
|
||||
|
||||
fatal_error = ""
|
||||
|
||||
pytestmark = [pytest.mark.ldpd]
|
||||
pytestmark = [pytest.mark.ldpd, pytest.mark.ospfd]
|
||||
|
||||
#####################################################
|
||||
##
|
||||
|
||||
@ -48,6 +48,7 @@ from lib.topolog import logger
|
||||
# and Finally pytest
|
||||
import pytest
|
||||
|
||||
pytestmark = [pytest.mark.ospfd]
|
||||
|
||||
class OspfSrTopo(Topo):
|
||||
"Test topology builder"
|
||||
|
||||
@ -45,6 +45,7 @@ from lib.topolog import logger
|
||||
# Required to instantiate the topology builder class.
|
||||
from mininet.topo import Topo
|
||||
|
||||
pytestmark = [pytest.mark.ospfd]
|
||||
|
||||
class OSPFTopo(Topo):
|
||||
"Test topology builder"
|
||||
|
||||
@ -45,6 +45,7 @@ from lib.topolog import logger
|
||||
# Required to instantiate the topology builder class.
|
||||
from mininet.topo import Topo
|
||||
|
||||
pytestmark = [pytest.mark.ospfd]
|
||||
|
||||
class OSPFTopo(Topo):
|
||||
"Test topology builder"
|
||||
|
||||
@ -63,7 +63,7 @@ from lib.topolog import logger
|
||||
from lib.topojson import build_topo_from_json, build_config_from_json
|
||||
from ipaddress import IPv4Address
|
||||
|
||||
|
||||
pytestmark = [pytest.mark.ospfd]
|
||||
|
||||
# Global variables
|
||||
topo = None
|
||||
|
||||
Loading…
Reference in New Issue
Block a user