From b9a210f9514ae71d24c848f106a5d203841c5eb4 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 1 Mar 2021 09:17:53 -0500 Subject: [PATCH] tests: Add pytest.mark.snmp Add the ability to run snmp tests Signed-off-by: Donald Sharp --- tests/topotests/bgp-snmp-mplsl3vpn/test_bgp_snmp_mplsvpn.py | 2 +- tests/topotests/pytest.ini | 1 + tests/topotests/simple-snmp-test/test_simple_snmp.py | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) 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"