forked from Mirror/frr
![]() This python fixture was way too complex for what is needed. Eliminate gratuitous options/over-engineering: - Change from non-deterministic `wait` and `attempts` to a single `retry_timeout` value. This is both more deterministic, as well as what the user should actually be thinking about. - Use a fixed 2 second pause between executing the wrapped function rather than a bunch of arbitrary choices of 2, 3 and 4 seconds spread all over the test code. - Get rid of the multiple variables for determining what "Positive" and "Negative" results are. Instead just implement what all the user code already wants, i.e., boolean False or a str (errormsg) means "Negative" result otherwise it's a "Positive" result. - As part of the above the inversion logic is much more comprehensible in the fixture code (and more correct to boot). Signed-off-by: Christian Hopps <chopps@labn.net> |
||
---|---|---|
.. | ||
ospf_asbr_summary_topo1.json | ||
ospf_asbr_summary_type7_lsa.json | ||
ospf_authentication.json | ||
ospf_chaos.json | ||
ospf_ecmp.json | ||
ospf_ecmp_lan.json | ||
ospf_lan.json | ||
ospf_nssa.json | ||
ospf_p2mp.json | ||
ospf_routemaps.json | ||
ospf_rte_calc.json | ||
ospf_single_area.json | ||
test_ospf_asbr_summary_topo1.py | ||
test_ospf_asbr_summary_type7_lsa.py | ||
test_ospf_authentication.py | ||
test_ospf_chaos.py | ||
test_ospf_ecmp.py | ||
test_ospf_ecmp_lan.py | ||
test_ospf_lan.py | ||
test_ospf_nssa.py | ||
test_ospf_p2mp.py | ||
test_ospf_routemaps.py | ||
test_ospf_rte_calc.py | ||
test_ospf_single_area.py |