From: Donald Sharp Date: Mon, 1 Mar 2021 14:17:53 +0000 (-0500) Subject: tests: Add pytest.mark.snmp X-Git-Tag: base_8.0~334^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=b9a210f9514ae71d24c848f106a5d203841c5eb4;p=matthieu%2Ffrr.git tests: Add pytest.mark.snmp Add the ability to run snmp tests Signed-off-by: Donald Sharp --- diff --git a/tests/topotests/bgp-snmp-mplsl3vpn/test_bgp_snmp_mplsvpn.py b/tests/topotests/bgp-snmp-mplsl3vpn/test_bgp_snmp_mplsvpn.py index fa60c35679..7c636d3da0 100755 --- a/tests/topotests/bgp-snmp-mplsl3vpn/test_bgp_snmp_mplsvpn.py +++ b/tests/topotests/bgp-snmp-mplsl3vpn/test_bgp_snmp_mplsvpn.py @@ -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): diff --git a/tests/topotests/pytest.ini b/tests/topotests/pytest.ini index 0c45a09445..562e754f21 100644 --- a/tests/topotests/pytest.ini +++ b/tests/topotests/pytest.ini @@ -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 diff --git a/tests/topotests/simple-snmp-test/test_simple_snmp.py b/tests/topotests/simple-snmp-test/test_simple_snmp.py index 88ff01bf0a..5647e2b663 100755 --- a/tests/topotests/simple-snmp-test/test_simple_snmp.py +++ b/tests/topotests/simple-snmp-test/test_simple_snmp.py @@ -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"