Skip to content

Commit b0d7dd4

Browse files
authored
Fix test_dos_sec_logs_on (#5725)
1 parent d2f0a19 commit b0d7dd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/suite/test_dos.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ def test_ap_nginx_config_entries(
209209
for _ in conf_nginx_directive:
210210
assert _ in nginx_config
211211

212-
@pytest.mark.skip(reason="Intermittent failures while sending dos logs to syslog")
213212
def test_dos_sec_logs_on(
214213
self,
215214
kube_apis,
@@ -239,6 +238,7 @@ def test_dos_sec_logs_on(
239238
get_ingress_nginx_template_conf(kube_apis.v1, test_namespace, "dos-ingress", pod_name, "nginx-ingress")
240239

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

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

0 commit comments

Comments
 (0)