Fix test policies #244

Merged
d.zayakin merged 2 commits from d.zayakin/frostfs-testcases:fix-object-policy-test into master 2024-06-05 06:52:02 +00:00
2 changed files with 7 additions and 9 deletions
Showing only changes of commit 3412de0f74 - Show all commits

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):