From f4a267fe811f649cac40098853442305ea461bb7 Mon Sep 17 00:00:00 2001 From: Dmitriy Zayakin Date: Wed, 12 Jul 2023 12:05:36 +0300 Subject: [PATCH] Changed fixture restore network Signed-off-by: Dmitriy Zayakin --- .../testsuites/failovers/test_failover_network.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pytest_tests/testsuites/failovers/test_failover_network.py b/pytest_tests/testsuites/failovers/test_failover_network.py index 5d0b67e..82a5199 100644 --- a/pytest_tests/testsuites/failovers/test_failover_network.py +++ b/pytest_tests/testsuites/failovers/test_failover_network.py @@ -28,11 +28,11 @@ blocked_nodes: list[StorageNode] = [] @pytest.mark.failover_network class TestFailoverNetwork(ClusterTestBase): @pytest.fixture(autouse=True) - @allure.step("Restore network") + @allure.title("Restore network") def restore_network(self): yield - - not_empty = len(blocked_nodes) != 0 + with allure.step(f"Count blocked nodes {len(blocked_nodes)}"): + not_empty = len(blocked_nodes) != 0 for node in list(blocked_nodes): with allure.step(f"Restore network at host for {node.label}"): IpTablesHelper.restore_input_traffic_to_port(node.host.get_shell(), PORTS_TO_BLOCK) @@ -42,7 +42,10 @@ class TestFailoverNetwork(ClusterTestBase): @allure.title("Block Storage node traffic") def test_block_storage_node_traffic( - self, default_wallet: str, require_multiple_hosts, simple_object_size: int + self, + default_wallet: str, + require_multiple_hosts, + simple_object_size: int, ): """ Block storage nodes traffic using iptables and wait for replication for objects.