[#193] Refactoring old functions for FrostfsCli

Refactoring old functions for FrostfsCli

Signed-off-by: Mikhail Kadilov m.kadilov@yadro.com
This commit is contained in:
Mikhail Kadilov 2024-02-17 16:37:51 +03:00
parent 251a7881c9
commit 76ac5cacf3

View file

@ -21,6 +21,7 @@ from frostfs_testlib.utils import datetime_utils
from frostfs_testlib.utils.failover_utils import wait_object_replication
from frostfs_testlib.utils.file_utils import get_file_hash
from pytest import FixtureRequest
from typing import Generator, Any
logger = logging.getLogger("NeoLogger")
@ -105,7 +106,7 @@ class TestFailoverServer(ClusterTestBase):
@pytest.fixture
def node_to_stop(
self, node_under_test: ClusterNode, cluster_state_controller: ClusterStateController
) -> ClusterNode:
) -> Generator[ClusterNode, None, None]:
yield node_under_test
with reporter.step(f"start {node_under_test.storage_node}"):
cluster_state_controller.start_stopped_hosts()