Skip to content

Commit

Permalink
add wait to dos test (#5656)
Browse files Browse the repository at this point in the history
  • Loading branch information
vepatel authored May 30, 2024
1 parent 98d9ff2 commit 02eb0ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/suite/test_dos.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,11 @@ def test_dos_sec_logs_on(
delete_items_from_yaml(kube_apis, src_ing_yaml, test_namespace)

print(log_contents)
retry = 0
while 'product="app-protect-dos"' not in log_contents and retry < 10:
wait_before_test()
retry += 1

assert 'product="app-protect-dos"' in log_contents
assert f'vs_name="{test_namespace}/dos-protected/name"' in log_contents
assert "bad_actor" in log_contents

Expand Down

0 comments on commit 02eb0ad

Please sign in to comment.