From b0d7dd4e50f0b32ee1ec2fec700db7a490f2e63c Mon Sep 17 00:00:00 2001 From: pasmant <78279234+pasmant@users.noreply.github.com> Date: Wed, 12 Jun 2024 15:00:54 +0300 Subject: [PATCH] Fix test_dos_sec_logs_on (#5725) --- tests/suite/test_dos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/suite/test_dos.py b/tests/suite/test_dos.py index beffdff497..3dfc93e995 100644 --- a/tests/suite/test_dos.py +++ b/tests/suite/test_dos.py @@ -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, @@ -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) @@ -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