]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: Adopt bgp_shutdown_message test to a proper encoding 10289/head
authorDonatas Abraitis <donatas.abraitis@gmail.com>
Thu, 6 Jan 2022 09:08:17 +0000 (11:08 +0200)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Fri, 7 Jan 2022 20:35:38 +0000 (22:35 +0200)
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
tests/topotests/bgp_features/test_bgp_features.py

index 9a06aaa090ee0ad76e03115a2c3a4580e02ef438..ab44ba3c8355a1bfa47e2dbde2f4f8f4c4cabc76 100644 (file)
@@ -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()