Skip to content

Commit

Permalink
Fix test_dos_sec_logs_on (#5725)
Browse files Browse the repository at this point in the history
  • Loading branch information
pasmant authored Jun 12, 2024
1 parent d2f0a19 commit b0d7dd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/suite/test_dos.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ def test_ap_nginx_config_entries(
for _ in conf_nginx_directive:
assert _ in nginx_config

@pytest.mark.skip(reason="Intermittent failures while sending dos logs to syslog")
def test_dos_sec_logs_on(
self,
kube_apis,
Expand Down Expand Up @@ -239,6 +238,7 @@ def test_dos_sec_logs_on(
get_ingress_nginx_template_conf(kube_apis.v1, test_namespace, "dos-ingress", pod_name, "nginx-ingress")

print("----------------------- Send request ----------------------")
wait_before_test(5)
response = requests.get(dos_setup.req_url, headers={"host": "dos.example.com"}, verify=False)
print(response.text)
wait_before_test(10)
Expand All @@ -250,7 +250,7 @@ def test_dos_sec_logs_on(

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

Expand Down

0 comments on commit b0d7dd4

Please sign in to comment.