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:
Donald Sharp 2021-01-23 15:42:21 -05:00
parent 6907ac7e2c
commit 3dedee4fe1
17 changed files with 19 additions and 4 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"""

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -77,7 +77,7 @@ from lib import topotest
fatal_error = ""
pytestmark = [pytest.mark.ldpd]
pytestmark = [pytest.mark.ldpd, pytest.mark.ospfd]
#####################################################
##

View File

@ -48,6 +48,7 @@ from lib.topolog import logger
# and Finally pytest
import pytest
pytestmark = [pytest.mark.ospfd]
class OspfSrTopo(Topo):
"Test topology builder"

View File

@ -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"

View File

@ -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"

View File

@ -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