forked from TrueCloudLab/frostfs-testcases
[#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:
parent
251a7881c9
commit
76ac5cacf3
1 changed files with 2 additions and 1 deletions
|
@ -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.failover_utils import wait_object_replication
|
||||||
from frostfs_testlib.utils.file_utils import get_file_hash
|
from frostfs_testlib.utils.file_utils import get_file_hash
|
||||||
from pytest import FixtureRequest
|
from pytest import FixtureRequest
|
||||||
|
from typing import Generator, Any
|
||||||
|
|
||||||
logger = logging.getLogger("NeoLogger")
|
logger = logging.getLogger("NeoLogger")
|
||||||
|
|
||||||
|
@ -105,7 +106,7 @@ class TestFailoverServer(ClusterTestBase):
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def node_to_stop(
|
def node_to_stop(
|
||||||
self, node_under_test: ClusterNode, cluster_state_controller: ClusterStateController
|
self, node_under_test: ClusterNode, cluster_state_controller: ClusterStateController
|
||||||
) -> ClusterNode:
|
) -> Generator[ClusterNode, None, None]:
|
||||||
yield node_under_test
|
yield node_under_test
|
||||||
with reporter.step(f"start {node_under_test.storage_node}"):
|
with reporter.step(f"start {node_under_test.storage_node}"):
|
||||||
cluster_state_controller.start_stopped_hosts()
|
cluster_state_controller.start_stopped_hosts()
|
||||||
|
|
Loading…
Reference in a new issue