forked from TrueCloudLab/frostfs-testcases
[#244] Fix test policies
This commit is contained in:
parent
236be159db
commit
bc88e8eb9e
2 changed files with 7 additions and 9 deletions
|
@ -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
|
|
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue