tests: augment bgp bmp test wait time

Augment bgp bmp test wait time

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
This commit is contained in:
Louis Scalbert 2024-10-23 12:57:27 +02:00
parent 3f446ecb6b
commit a7fc9a27f0
2 changed files with 12 additions and 12 deletions

View 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 !."

View 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 !."