From 7b4f0160d9fc083f174fb17fd897d68561cca7e7 Mon Sep 17 00:00:00 2001 From: Sean O'Neill Date: Fri, 17 Dec 2021 10:25:18 +0000 Subject: [PATCH] disabling dos attack tests --- tests/suite/test_dos.py | 4 +++- tests/suite/test_virtual_server_dos.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/suite/test_dos.py b/tests/suite/test_dos.py index 52e4172007..8e485264cf 100644 --- a/tests/suite/test_dos.py +++ b/tests/suite/test_dos.py @@ -230,6 +230,7 @@ def test_dos_sec_logs_on( assert f'vs_name="{test_namespace}/dos-protected/name"' in log_contents assert 'bad_actor' in log_contents + @pytest.mark.skip def test_dos_under_attack_no_learning( self, kube_apis, ingress_controller_prerequisites, crd_ingress_controller_with_dos, dos_setup, test_namespace ): @@ -295,6 +296,7 @@ def test_dos_under_attack_no_learning( and attack_ended ) + @pytest.mark.skip def test_dos_under_attack_with_learning( self, kube_apis, ingress_controller_prerequisites, crd_ingress_controller_with_dos, dos_setup, test_namespace ): @@ -391,7 +393,7 @@ def test_dos_under_attack_with_learning( and len(bad_ip) == 0 ) - @pytest.mark.xfail + @pytest.mark.skip def test_dos_arbitrator( self, kube_apis, ingress_controller_prerequisites, crd_ingress_controller_with_dos, dos_setup, test_namespace diff --git a/tests/suite/test_virtual_server_dos.py b/tests/suite/test_virtual_server_dos.py index 57ac151afb..cb749148f9 100644 --- a/tests/suite/test_virtual_server_dos.py +++ b/tests/suite/test_virtual_server_dos.py @@ -241,6 +241,7 @@ def test_vs_with_dos_config(self, kube_apis, ingress_controller_prerequisites, c for _ in conf_directives: assert _ in result_conf + @pytest.mark.skip def test_vs_dos_under_attack_no_learning( self, kube_apis, ingress_controller_prerequisites, crd_ingress_controller_with_dos, virtual_server_setup_dos, dos_setup, test_namespace ): @@ -297,6 +298,7 @@ def test_vs_dos_under_attack_no_learning( and attack_ended ) + @pytest.mark.skip def test_dos_under_attack_with_learning( self, kube_apis, ingress_controller_prerequisites, crd_ingress_controller_with_dos, virtual_server_setup_dos, dos_setup, test_namespace ): @@ -385,7 +387,7 @@ def test_dos_under_attack_with_learning( and len(bad_ip) == 0 ) - @pytest.mark.xfail + @pytest.mark.skip def test_dos_arbitrator( self, kube_apis, ingress_controller_prerequisites, crd_ingress_controller_with_dos, virtual_server_setup_dos, dos_setup, test_namespace