From e7b08e1674c507db1fcf33a56b55ff9066bf07c1 Mon Sep 17 00:00:00 2001 From: tomer pasman Date: Tue, 11 Jun 2024 11:57:13 +0300 Subject: [PATCH] Fix test_dos_sec_logs_on --- 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