Skip to content

Commit

Permalink
Fix test_dos_sec_logs_on (nginxinc#5725)
Browse files Browse the repository at this point in the history
  • Loading branch information
pasmant authored and ssrahul96 committed Jun 20, 2024
1 parent 4d9f680 commit 2a848c7
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 2a848c7

Please sign in to comment.