Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add wait to dos test (nginx#5656)
Browse files Browse the repository at this point in the history
vepatel authored and ssrahul96 committed Jun 20, 2024

Verified

This commit was signed with the committer’s verified signature.
ssrahul96 Rahul Somasundaram
1 parent cb6612a commit e6f2cc9
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
@@ -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

0 comments on commit e6f2cc9

Please sign in to comment.