]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tests: augment bgp bmp test wait time
authorLouis Scalbert <louis.scalbert@6wind.com>
Wed, 23 Oct 2024 10:57:27 +0000 (12:57 +0200)
committerLouis Scalbert <louis.scalbert@6wind.com>
Fri, 25 Oct 2024 08:00:56 +0000 (10:00 +0200)
Augment bgp bmp test wait time

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
tests/topotests/bgp_bmp/test_bgp_bmp.py
tests/topotests/bgp_bmp_vrf/test_bgp_bmp_vrf.py

index 1cf6a0e7f8264835ab6d0bac1d59a093c658a6f8..e02221c2ebfa912e9cfb2497e100ad19898eb371 100644 (file)
@@ -239,7 +239,7 @@ def unicast_prefixes(policy):
     logger.info("checking for updated prefixes")
     # check
     test_func = partial(check_for_prefixes, prefixes, "update", policy)
-    success, _ = topotest.run_and_expect(test_func, True, wait=0.5)
+    success, _ = topotest.run_and_expect(test_func, True, count=30, wait=1)
     assert success, "Checking the updated prefixes has been failed !."
 
     # withdraw prefixes
@@ -247,7 +247,7 @@ def unicast_prefixes(policy):
     logger.info("checking for withdrawed prefxies")
     # check
     test_func = partial(check_for_prefixes, prefixes, "withdraw", policy)
-    success, _ = topotest.run_and_expect(test_func, True, wait=0.5)
+    success, _ = topotest.run_and_expect(test_func, True, count=30, wait=1)
     assert success, "Checking the withdrawed prefixes has been failed !."
 
 
@@ -274,7 +274,7 @@ def vpn_prefixes(policy):
     logger.info("checking for updated prefixes")
     # check
     test_func = partial(check_for_prefixes, prefixes, "update", policy, labels=labels)
-    success, _ = topotest.run_and_expect(test_func, True, wait=0.5)
+    success, _ = topotest.run_and_expect(test_func, True, count=30, wait=1)
     assert success, "Checking the updated prefixes has been failed !."
 
     # withdraw prefixes
@@ -282,7 +282,7 @@ def vpn_prefixes(policy):
     logger.info("checking for withdrawed prefixes")
     # check
     test_func = partial(check_for_prefixes, prefixes, "withdraw", policy)
-    success, _ = topotest.run_and_expect(test_func, True, wait=0.5)
+    success, _ = topotest.run_and_expect(test_func, True, count=30, wait=1)
     assert success, "Checking the withdrawed prefixes has been failed !."
 
 
@@ -300,7 +300,7 @@ def test_bmp_server_logging():
             return False
         return True
 
-    success, _ = topotest.run_and_expect(check_for_log_file, True, wait=0.5)
+    success, _ = topotest.run_and_expect(check_for_log_file, True, count=30, wait=1)
     assert success, "The BMP server is not logging"
 
 
@@ -314,7 +314,7 @@ def test_peer_up():
     logger.info("checking for BMP peers up messages")
 
     test_func = partial(check_for_peer_message, peers, "peer up")
-    success, _ = topotest.run_and_expect(test_func, True, wait=0.5)
+    success, _ = topotest.run_and_expect(test_func, True, count=30, wait=1)
     assert success, "Checking the updated prefixes has been failed !."
 
 
@@ -353,7 +353,7 @@ def test_peer_down():
     logger.info("checking for BMP peers down messages")
 
     test_func = partial(check_for_peer_message, peers, "peer down")
-    success, _ = topotest.run_and_expect(test_func, True, wait=0.5)
+    success, _ = topotest.run_and_expect(test_func, True, count=30, wait=1)
     assert success, "Checking the updated prefixes has been failed !."
 
 
index b683920d2e70de17f4959e4a24b6c36ade8bd0dc..b95d3f4a5790a2922cd9eed6ad98b68b62a0abab 100644 (file)
@@ -248,7 +248,7 @@ def unicast_prefixes(policy):
     logger.info("checking for updated prefixes")
     # check
     test_func = partial(check_for_prefixes, prefixes, "update", policy)
-    success, _ = topotest.run_and_expect(test_func, True, wait=0.5)
+    success, _ = topotest.run_and_expect(test_func, True, count=30, wait=1)
     assert success, "Checking the updated prefixes has been failed !."
 
     # withdraw prefixes
@@ -256,7 +256,7 @@ def unicast_prefixes(policy):
     logger.info("checking for withdrawed prefxies")
     # check
     test_func = partial(check_for_prefixes, prefixes, "withdraw", policy)
-    success, _ = topotest.run_and_expect(test_func, True, wait=0.5)
+    success, _ = topotest.run_and_expect(test_func, True, count=30, wait=1)
     assert success, "Checking the withdrawed prefixes has been failed !."
 
 
@@ -274,7 +274,7 @@ def test_bmp_server_logging():
             return False
         return True
 
-    success, _ = topotest.run_and_expect(check_for_log_file, True, wait=0.5)
+    success, _ = topotest.run_and_expect(check_for_log_file, True, count=30, wait=1)
     assert success, "The BMP server is not logging"
 
 
@@ -288,7 +288,7 @@ def test_peer_up():
     logger.info("checking for BMP peers up messages")
 
     test_func = partial(check_for_peer_message, peers, "peer up")
-    success, _ = topotest.run_and_expect(test_func, True, wait=0.5)
+    success, _ = topotest.run_and_expect(test_func, True, count=30, wait=1)
     assert success, "Checking the updated prefixes has been failed !."
 
 
@@ -317,7 +317,7 @@ def test_peer_down():
     logger.info("checking for BMP peers down messages")
 
     test_func = partial(check_for_peer_message, peers, "peer down")
-    success, _ = topotest.run_and_expect(test_func, True, wait=0.5)
+    success, _ = topotest.run_and_expect(test_func, True, count=30, wait=1)
     assert success, "Checking the updated prefixes has been failed !."