From c5aef655d80b87e3b49b8b509fd175501db4b6db Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Thu, 6 Jan 2022 11:08:17 +0200 Subject: [PATCH] tests: Adopt bgp_shutdown_message test to a proper encoding Signed-off-by: Donatas Abraitis --- tests/topotests/bgp_features/test_bgp_features.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/topotests/bgp_features/test_bgp_features.py b/tests/topotests/bgp_features/test_bgp_features.py index 9a06aaa090..ab44ba3c83 100644 --- a/tests/topotests/bgp_features/test_bgp_features.py +++ b/tests/topotests/bgp_features/test_bgp_features.py @@ -240,15 +240,10 @@ def test_bgp_shutdown_message(): assertmsg = "BGP shutdown message not received on router R{}".format(rtrNum) assert shut_message != "", assertmsg - m = re.search(".*([0-9]+ bytes[ 0-9a-fA-F]+)", shut_message) - if m: - found = m.group(1) - else: - found = "" assertmsg = "Incorrect BGP shutdown message received on router R{}".format( rtrNum ) - assert found == "8 bytes 41 42 43 44 61 62 63 64", assertmsg + assert "ABCDabcd" in shut_message, assertmsg # tgen.mininet_cli() -- 2.39.5