]> git.puffer.fish Git - mirror/frr.git/commit
tests: JSON comparison command for LabN topotests
authorDavid Schweizer <dschweizer@opensourcerouting.org>
Mon, 22 Feb 2021 09:31:57 +0000 (10:31 +0100)
committerDavid Schweizer <dschweizer@opensourcerouting.org>
Mon, 22 Feb 2021 09:31:57 +0000 (10:31 +0100)
commit4e3828b7710f48c49597a70cef860d544c90348d
tree236df8eaf4a43ad6132246005ee81b2ad1153118
parent2031dbf31cfbe7e6fb0028b34054db5d92de05d2
tests: JSON comparison command for LabN topotests

The changes add the "jsoncmp_pass" and the "jsoncmp_fail" commands to
compare VTY shell's JSON output to an expected JSON object during
topotests using the LabN testing framework. This helps to eliminate
false negative test results (i.e. due to routes beeing out of order
after convergence or cosmetic changes in VTY shell's text output).

Signed-off-by: David Schweizer <dschweizer@opensourcerouting.org>
tests/topotests/lib/lutil.py