forked from TrueCloudLab/frostfs-testcases
Compare commits
2 Commits
df95596672
...
11dd0140f1
Author | SHA1 | Date |
---|---|---|
|
11dd0140f1 | |
|
f01b886a7e |
|
@ -222,8 +222,19 @@ class TestObjectApi(ClusterTestBase):
|
||||||
delete_object(wallet, cid, oid, shell, self.cluster.default_rpc_endpoint)
|
delete_object(wallet, cid, oid, shell, self.cluster.default_rpc_endpoint)
|
||||||
|
|
||||||
with reporter.step("Execute command object head --raw"):
|
with reporter.step("Execute command object head --raw"):
|
||||||
result = head_object(wallet, cid, oid, shell, self.cluster.default_rpc_endpoint, is_raw=True)
|
try:
|
||||||
assert result.return_code != 0
|
result = head_object(wallet, cid, oid, shell, self.cluster.default_rpc_endpoint, is_raw=True)
|
||||||
|
if result.return_code != 0:
|
||||||
|
print("Expected error occurred while executing head_object, continuing test execution.")
|
||||||
|
else:
|
||||||
|
raise AssertionError("Unexpected successful execution of head_object.")
|
||||||
|
except Exception as e:
|
||||||
|
if "object already removed" in str(e):
|
||||||
|
print("Expected error occurred: object already removed")
|
||||||
|
else:
|
||||||
|
print(f"An unexpected error occurred: {e}")
|
||||||
|
raise
|
||||||
|
|
||||||
|
|
||||||
@allure.title("Search objects by native API (obj_size={object_size})")
|
@allure.title("Search objects by native API (obj_size={object_size})")
|
||||||
def test_search_object_api(self, storage_objects: list[StorageObjectInfo]):
|
def test_search_object_api(self, storage_objects: list[StorageObjectInfo]):
|
||||||
|
|
Loading…
Reference in New Issue