]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tests: Add pytest.mark.snmp
authorDonald Sharp <sharpd@nvidia.com>
Mon, 1 Mar 2021 14:17:53 +0000 (09:17 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 1 Mar 2021 14:17:53 +0000 (09:17 -0500)
Add the ability to run snmp tests

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
tests/topotests/bgp-snmp-mplsl3vpn/test_bgp_snmp_mplsvpn.py
tests/topotests/pytest.ini
tests/topotests/simple-snmp-test/test_simple_snmp.py

index fa60c35679486cbcba94f338367afb523d391801..7c636d3da01d93c584edc010c7d2ab9b5b2c94af 100755 (executable)
@@ -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):
index 0c45a09445c321ba8523d743df87ceaf6c228682..562e754f21bc9e1bab2074277aa211d5bad708cf 100644 (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
index 88ff01bf0af09fb6478d61831d45f8fd6a877fc7..5647e2b663ea26d4fa48ced4e505cdeefdb7720a 100755 (executable)
@@ -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"