forked from TrueCloudLab/frostfs-testcases
[#201] Execute command object head --raw and check object deletion
Execute command object head --raw and check object deletion Signed-off-by: Mikhail Kadilov m.kadilov@yadro.com
parent
f3e1b5a66d
commit
d3a325ffd0
|
@ -134,9 +134,6 @@ def storage_objects(
|
|||
@pytest.mark.sanity
|
||||
@pytest.mark.grpc_api
|
||||
class TestObjectApi(ClusterTestBase):
|
||||
|
||||
PLACEMENT_RULE_1 = "REP 1 IN X CBF 1 SELECT 1 FROM * AS X"
|
||||
|
||||
@allure.title("Storage policy by native API (obj_size={object_size})")
|
||||
def test_object_storage_policies(
|
||||
self,
|
||||
|
@ -211,17 +208,13 @@ class TestObjectApi(ClusterTestBase):
|
|||
)
|
||||
self.check_header_is_presented(head_info, storage_object_2.attributes)
|
||||
|
||||
def test_object_head_raw(self, default_wallet: str, object_size: ObjectSize):
|
||||
def test_object_head_raw(self, default_wallet: str, object_size: ObjectSize, storage_objects: list[StorageObjectInfo]):
|
||||
"""
|
||||
Execute command object head --raw and check object deletion
|
||||
"""
|
||||
|
||||
wallet = default_wallet
|
||||
cid = create_container(wallet, self.shell, self.cluster.default_rpc_endpoint, self.PLACEMENT_RULE_1)
|
||||
|
||||
file_path = generate_file(object_size.value)
|
||||
oid = put_object_to_random_node(wallet, file_path, cid, self.shell, self.cluster)
|
||||
|
||||
cid = storage_objects[0].cid
|
||||
oid = storage_objects[0].oid
|
||||
delete_object(wallet, cid, oid, self.shell, self.cluster.default_rpc_endpoint)
|
||||
|
||||
result = head_object(wallet, cid, oid, self.shell, self.cluster.default_rpc_endpoint, is_raw=True)
|
||||
|
|
Loading…
Reference in New Issue