From 3387f88ea223c1ad2154385a0838c8651c508e71 Mon Sep 17 00:00:00 2001 From: Andrey Berezin Date: Thu, 14 Mar 2024 20:52:39 +0300 Subject: [PATCH] [#207] Fix containers fixtures Signed-off-by: Andrey Berezin --- .../testsuites/failovers/test_failover_server.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/pytest_tests/testsuites/failovers/test_failover_server.py b/pytest_tests/testsuites/failovers/test_failover_server.py index f67ebb4..42470ed 100644 --- a/pytest_tests/testsuites/failovers/test_failover_server.py +++ b/pytest_tests/testsuites/failovers/test_failover_server.py @@ -56,11 +56,8 @@ class TestFailoverServer(ClusterTestBase): rule=placement_rule, basic_acl=PUBLIC_ACL, ) - wallet = WalletInfo(path=default_wallet) - storage_cont_info = StorageContainerInfo(id=cont_id, wallet_file=wallet) - containers.append( - StorageContainer(storage_container_info=storage_cont_info, shell=self.shell, cluster=self.cluster) - ) + storage_cont_info = StorageContainerInfo(cont_id, default_wallet) + containers.append(StorageContainer(storage_cont_info, self.shell, self.cluster)) return containers @@ -76,9 +73,8 @@ class TestFailoverServer(ClusterTestBase): rule=placement_rule, basic_acl=PUBLIC_ACL, ) - wallet = WalletInfo(path=default_wallet) - storage_cont_info = StorageContainerInfo(id=cont_id, wallet_file=wallet) - return StorageContainer(storage_container_info=storage_cont_info, shell=self.shell, cluster=self.cluster) + storage_cont_info = StorageContainerInfo(cont_id, default_wallet) + return StorageContainer(storage_cont_info, self.shell, self.cluster) @reporter.step("Create object and delete after test") @pytest.fixture(scope="class")