Closed Chromico closed 1 year ago
Test output:
➜ basetato4 git:(bgp-max-med-on-startup) ✗ ./run_userns.sh --frr-builddir=/root/buildfrr/ --log-cli-level=DEBUG -v -v -x test_bgp_max_med_on_startup.py ==================================================================================== topotato initialization ==================================================================================== ------------------------------------------------------------------------------------- live log sessionstart ------------------------------------------------------------------------------------- DEBUG topotato:pretty.py:145 executable dot found: /usr/bin/dot DEBUG topotato:core.py:160 FRR build directory: '/root/buildfrr/' DEBUG topotato:core.py:182 FRR source directory: '/root/buildfrr' INFO topotato:core.py:226 FRR daemons: zebra, staticd, babeld, bfdd, bgpd, eigrpd, fabricd, isisd, ldpd, nhrpd, ospf6d, ospfd, pathd, pbrd, pim6d, pimd, ripd, ripngd, vrrpd DEBUG topotato:core.py:238 zebra => zebra/zebra DEBUG topotato:core.py:236 ignoring target 'watchfrr/watchfrr' DEBUG topotato:core.py:236 ignoring target 'tools/ssd' DEBUG topotato:core.py:238 bgpd => bgpd/bgpd DEBUG topotato:core.py:238 ripd => ripd/ripd DEBUG topotato:core.py:238 ripngd => ripngd/ripngd DEBUG topotato:core.py:238 ospfd => ospfd/ospfd DEBUG topotato:core.py:238 ospf6d => ospf6d/ospf6d DEBUG topotato:core.py:238 isisd => isisd/isisd DEBUG topotato:core.py:238 fabricd => isisd/fabricd DEBUG topotato:core.py:238 nhrpd => nhrpd/nhrpd DEBUG topotato:core.py:238 ldpd => ldpd/ldpd DEBUG topotato:core.py:238 babeld => babeld/babeld DEBUG topotato:core.py:238 eigrpd => eigrpd/eigrpd DEBUG topotato:core.py:238 pimd => pimd/pimd DEBUG topotato:core.py:238 pbrd => pbrd/pbrd DEBUG topotato:core.py:238 staticd => staticd/staticd DEBUG topotato:core.py:238 bfdd => bfdd/bfdd DEBUG topotato:core.py:238 vrrpd => vrrpd/vrrpd DEBUG topotato:core.py:238 pathd => pathd/pathd DEBUG topotato:core.py:236 ignoring target 'lib/grammar_sandbox' DEBUG topotato:core.py:236 ignoring target 'lib/clippy' DEBUG topotato:core.py:236 ignoring target 'tools/permutations' DEBUG topotato:core.py:236 ignoring target 'tools/gen_northbound_callbacks' DEBUG topotato:core.py:236 ignoring target 'tools/gen_yang_deviations' DEBUG topotato:core.py:236 ignoring target 'bgpd/bgp_btoa' DEBUG topotato:core.py:236 ignoring target 'bgpd/rfp-example/rfptest/rfptest' DEBUG topotato:core.py:236 ignoring target 'ospfclient/ospfclient' DEBUG topotato:core.py:236 ignoring target 'pimd/test_igmpv3_join' DEBUG topotato:core.py:236 ignoring target 'pceplib/pcep_pcc' DEBUG topotato:topolinux.py:92 executable unshare found: /usr/bin/unshare DEBUG topotato:topolinux.py:92 executable nsenter found: /usr/bin/nsenter DEBUG topotato:topolinux.py:92 executable tini found: /usr/bin/tini DEBUG topotato:topolinux.py:92 executable ip found: /usr/sbin/ip Warning: daemon 'pim6d' not enabled in configure, skipping ====================================================================================== test session starts ====================================================================================== platform linux -- Python 3.11.3, pytest-7.3.1, pluggy-0.13.0 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /root/basetato4 configfile: pytest.ini collecting ... -------------------------------------------------------------------------------------- live log collection -------------------------------------------------------------------------------------- DEBUG topotato:base.py:277 _topotato_makeitem(<Module test_bgp_max_med_on_startup.py>, 'TestBase', <class 'topotato.base.TestBase'>) DEBUG topotato:base.py:277 _topotato_makeitem(<Module test_bgp_max_med_on_startup.py>, 'BGPMaxMedOnStartup', <class 'test_bgp_max_med_on_startup.BGPMaxMedOnStartup'>) DEBUG topotato:base.py:277 _topotato_makeitem(<TopotatoClass BGPMaxMedOnStartup>, 'bgp_converge', <topotato.base.TopotatoWrapped object at 0x7f13e1fcc3d0>) DEBUG topotato:base.py:277 _topotato_makeitem(<TopotatoClass BGPMaxMedOnStartup>, 'bgp_has_routes', <topotato.base.TopotatoWrapped object at 0x7f13e1c9fb90>) DEBUG topotato:base.py:676 collect on: <TopotatoFunction bgp_converge> test: <AssertVtysh #72:r2/bgpd/vtysh[show ip bgp neighbor 10.101.0.1 json]> DEBUG topotato:base.py:676 collect on: <TopotatoFunction bgp_has_routes> test: <AssertVtysh #83:r2/bgpd/vtysh[show ip bgp neighbor 10.101.0.1 routes json]> collected 4 items test_bgp_max_med_on_startup.py::BGPMaxMedOnStartup::startup ---------------------------------------------------------------------------------------- live log setup ----------------------------------------------------------------------------------------- DEBUG topotato.topolinux:topolinux.py:326 <topotato.network.TopotatoNetwork object at 0x7f13e1dd9790> tempdir created: /tmp/tmpa57vtyhe DEBUG topotato.topolinux:topolinux.py:114 <topotato.network.TopotatoNetwork object at 0x7f13e1dd9790> temp-subdir for <SwitchyNS: 'switch-ns'> created: /tmp/tmpa57vtyhe/switch-ns DEBUG topotato.topolinux:topolinux.py:114 <topotato.network.TopotatoNetwork object at 0x7f13e1dd9790> temp-subdir for <FRRRouterNS: 'r1'> created: /tmp/tmpa57vtyhe/r1 DEBUG topotato.topolinux:topolinux.py:114 <topotato.network.TopotatoNetwork object at 0x7f13e1dd9790> temp-subdir for <FRRRouterNS: 'r2'> created: /tmp/tmpa57vtyhe/r2 PASSED (3.37) [ 25%] test_bgp_max_med_on_startup.py::BGPMaxMedOnStartup::bgp_converge:#72:r2/bgpd/vtysh[show ip bgp neighbor 10.101.0.1 json] PASSED (0.74) [ 50%] test_bgp_max_med_on_startup.py::BGPMaxMedOnStartup::bgp_has_routes:#83:r2/bgpd/vtysh[show ip bgp neighbor 10.101.0.1 routes json] PASSED (1.10) [ 75%] test_bgp_max_med_on_startup.py::BGPMaxMedOnStartup::shutdown Running as user "root" and group "root". This could be dangerous. tshark: The file "/tmp/topotatofcbv0hkx.pcapng" appears to be damaged or corrupt. (pcapng_read_systemd_journal_export_block: total block length 204 is too small (< 212)) PASSED (1.38) [100%] ======================================================================================= warnings summary ======================================================================================== ../../usr/local/lib/python3.11/dist-packages/pkg_resources/__init__.py:121 /usr/local/lib/python3.11/dist-packages/pkg_resources/__init__.py:121: DeprecationWarning: pkg_resources is deprecated as an API warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning) ../../usr/local/lib/python3.11/dist-packages/pkg_resources/__init__.py:2870 /usr/local/lib/python3.11/dist-packages/pkg_resources/__init__.py:2870: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('zope')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(pkg) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ================================================================================ 4 passed, 2 warnings in 11.02s =================================================================================
Test output: