From 0e5cf6cfe2add6a8e8a377136f1d49b8eac1dba4 Mon Sep 17 00:00:00 2001 From: tomer pasman Date: Wed, 21 Sep 2022 15:29:47 +0300 Subject: [PATCH 1/2] Change timeout for attack ended --- tests/suite/test_dos.py | 4 ++-- tests/suite/test_virtual_server_dos.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/suite/test_dos.py b/tests/suite/test_dos.py index 5d04f8a3f8..55ffd21c04 100644 --- a/tests/suite/test_dos.py +++ b/tests/suite/test_dos.py @@ -303,13 +303,13 @@ def test_dos_under_attack_with_learning( print("Stop Attack") p_attack.terminate() - print("wait max 140 seconds after attack stop, to get attack ended") + print("wait max 200 seconds after attack stop, to get attack ended") find_in_log( kube_apis, log_loc, syslog_pod, ingress_controller_prerequisites.namespace, - 140, + 200, 'attack_event="Attack ended"', ) diff --git a/tests/suite/test_virtual_server_dos.py b/tests/suite/test_virtual_server_dos.py index f18eeaa1bc..ee0f4b5679 100644 --- a/tests/suite/test_virtual_server_dos.py +++ b/tests/suite/test_virtual_server_dos.py @@ -316,13 +316,13 @@ def test_vs_dos_under_attack_no_learning( print("Stop Attack") p_attack.terminate() - print("wait max 140 seconds after attack stop, to get attack ended") + print("wait max 200 seconds after attack stop, to get attack ended") find_in_log( kube_apis, log_loc, syslog_pod, ingress_controller_prerequisites.namespace, - 140, + 200, 'attack_event="Attack ended"', ) From 104810751be661f5d0d2941080a313967b3b55f3 Mon Sep 17 00:00:00 2001 From: tomer pasman Date: Wed, 21 Sep 2022 16:07:48 +0300 Subject: [PATCH 2/2] Change timeout for attack ended --- tests/suite/test_virtual_server_dos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/suite/test_virtual_server_dos.py b/tests/suite/test_virtual_server_dos.py index ee0f4b5679..9abfc78482 100644 --- a/tests/suite/test_virtual_server_dos.py +++ b/tests/suite/test_virtual_server_dos.py @@ -413,13 +413,13 @@ def test_dos_under_attack_with_learning( print("Stop Attack") p_attack.terminate() - print("wait max 140 seconds after attack stop, to get attack ended") + print("wait max 200 seconds after attack stop, to get attack ended") find_in_log( kube_apis, log_loc, syslog_pod, ingress_controller_prerequisites.namespace, - 140, + 200, 'attack_event="Attack ended"', )