]> git.puffer.fish Git - mirror/frr.git/commit
tests: rework bgp_bmp
authorLouis Scalbert <louis.scalbert@6wind.com>
Wed, 23 Oct 2024 13:17:00 +0000 (15:17 +0200)
committerLouis Scalbert <louis.scalbert@6wind.com>
Fri, 25 Oct 2024 12:16:55 +0000 (14:16 +0200)
commit44c6f579c34d65dfc9c2041753c1dc7494af63f4
treefaff1b99095c74d1f4c60a11f51c240a04caae57
parenta7fc9a27f0dfd809382664ae8e3f9a706a03b998
tests: rework bgp_bmp

The BGP BMP topotest is difficult to debug. It does not say which prefix
is not received by BGP or BMP when it fails.

Rework the test to convert the actual BMP logs to JSON and compare the
BGP table and BMP server logs output to expected reference JSON files.

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
21 files changed:
tests/topotests/bgp_bmp/bmp1/bmp-update-loc-rib-step1.json [new file with mode: 0644]
tests/topotests/bgp_bmp/bmp1/bmp-update-loc-rib-step2.json [new file with mode: 0644]
tests/topotests/bgp_bmp/bmp1/bmp-update-post-policy-step1.json [new file with mode: 0644]
tests/topotests/bgp_bmp/bmp1/bmp-update-post-policy-step2.json [new file with mode: 0644]
tests/topotests/bgp_bmp/bmp1/bmp-update-pre-policy-step1.json [new file with mode: 0644]
tests/topotests/bgp_bmp/bmp1/bmp-update-pre-policy-step2.json [new file with mode: 0644]
tests/topotests/bgp_bmp/bmp1/bmp-withdraw-loc-rib-step1.json [new file with mode: 0644]
tests/topotests/bgp_bmp/bmp1/bmp-withdraw-loc-rib-step2.json [new file with mode: 0644]
tests/topotests/bgp_bmp/bmp1/bmp-withdraw-post-policy-step1.json [new file with mode: 0644]
tests/topotests/bgp_bmp/bmp1/bmp-withdraw-post-policy-step2.json [new file with mode: 0644]
tests/topotests/bgp_bmp/bmp1/bmp-withdraw-pre-policy-step1.json [new file with mode: 0644]
tests/topotests/bgp_bmp/bmp1/bmp-withdraw-pre-policy-step2.json [new file with mode: 0644]
tests/topotests/bgp_bmp/r1/show-bgp-ipv4-update-step1.json [new file with mode: 0644]
tests/topotests/bgp_bmp/r1/show-bgp-ipv4-update-step2.json [new file with mode: 0644]
tests/topotests/bgp_bmp/r1/show-bgp-ipv4-withdraw-step1.json [new file with mode: 0644]
tests/topotests/bgp_bmp/r1/show-bgp-ipv4-withdraw-step2.json [new file with mode: 0644]
tests/topotests/bgp_bmp/r1/show-bgp-ipv6-update-step1.json [new file with mode: 0644]
tests/topotests/bgp_bmp/r1/show-bgp-ipv6-update-step2.json [new file with mode: 0644]
tests/topotests/bgp_bmp/r1/show-bgp-ipv6-withdraw-step1.json [new file with mode: 0644]
tests/topotests/bgp_bmp/r1/show-bgp-ipv6-withdraw-step2.json [new file with mode: 0644]
tests/topotests/bgp_bmp/test_bgp_bmp.py