[#244] Fix test policies

This commit is contained in:
Dmitriy Zayakin 2024-06-04 19:22:59 +03:00 committed by Dmitriy Zayakin
parent 236be159db
commit bc88e8eb9e
2 changed files with 7 additions and 9 deletions

View file

@ -1,9 +0,0 @@
import pytest
from frostfs_testlib.storage.dataclasses.policy import PlacementPolicy
@pytest.fixture()
def expected_object_copies(placement_policy: PlacementPolicy) -> int:
if placement_policy.name == "rep":
return 2
return 4

View file

@ -139,6 +139,13 @@ def storage_objects(
delete_objects(storage_objects, client_shell, cluster) delete_objects(storage_objects, client_shell, cluster)
@pytest.fixture()
def expected_object_copies(placement_policy: PlacementPolicy) -> int:
if placement_policy.name == "rep":
return 2
return 4
@pytest.mark.sanity @pytest.mark.sanity
@pytest.mark.grpc_api @pytest.mark.grpc_api
class TestObjectApi(ClusterTestBase): class TestObjectApi(ClusterTestBase):