[#244] Fix test policies
DCO check / Commits Check (pull_request) Has been cancelled Details

pull/244/head
Dmitriy Zayakin 2024-06-04 19:22:59 +03:00
parent 04274fdfb4
commit 3412de0f74
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

@ -138,6 +138,13 @@ def storage_objects(
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.grpc_api
class TestObjectApi(ClusterTestBase):