Skip to content

Commit

Permalink
tests: add test_lock_object_can_be_dropped, closes #550
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeniy Zayats committed Sep 4, 2023
1 parent f2de2ec commit 3287fe8
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pytest_tests/testsuites/object/test_object_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,28 @@ def test_locked_object_can_be_dropped(
with expect_not_raises():
drop_object(node, new_locked_storage_object.cid, new_locked_storage_object.oid)

@allure.title("Lock object of a simple object can be dropped via control")
@pytest.mark.parametrize(
"locked_storage_object", [pytest.lazy_fixture("simple_object_size")], indirect=True
)
def test_lock_object_can_be_dropped(
self,
locked_storage_object: StorageObjectInfo,
):

lock_object_info = locked_storage_object.locks[0]

nodes_with_object = get_nodes_with_object(
lock_object_info.cid,
lock_object_info.oid,
shell=self.shell,
nodes=self.cluster.storage_nodes,
)

for node in nodes_with_object:
with expect_not_raises():
drop_object(node, lock_object_info.cid, lock_object_info.oid)

@allure.title("Link object of complex object should also be protected from deletion")
@pytest.mark.parametrize(
# Only complex objects are required for this test
Expand Down

0 comments on commit 3287fe8

Please sign in to comment.