tests: Add pytest.mark.snmp

Add the ability to run snmp tests

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2021-03-01 09:17:53 -05:00
parent 5ad1fd54a8
commit b9a210f951
3 changed files with 4 additions and 1 deletions

View File

@ -47,7 +47,7 @@ from lib.snmptest import SnmpTester
# Required to instantiate the topology builder class.
from mininet.topo import Topo
pytestmark = [pytest.mark.bgpd, pytest.mark.isisd]
pytestmark = [pytest.mark.bgpd, pytest.mark.isisd, pytest.mark.snmp]
class TemplateTopo(Topo):

View File

@ -24,6 +24,7 @@ markers =
sharpd: Tests that run against SHARPD
staticd: Tests that run against STATICD
vrrpd: Tests that run against VRRPD
snmp: Tests that run against snmp changes
[topogen]
# Default configuration values

View File

@ -46,6 +46,8 @@ from lib.snmptest import SnmpTester
# Required to instantiate the topology builder class.
from mininet.topo import Topo
pytestmark = [pytest.mark.bgpd, pytest.mark.isisd, pytest.mark.snmp]
class TemplateTopo(Topo):
"Test topology builder"