Fixed typo in test_s3_delete_versioning case assertion #47
1 changed files with 2 additions and 2 deletions
|
@ -315,7 +315,7 @@ class TestS3GateObject:
|
|||
version.get("VersionId") for version in versions if version.get("Key") == obj_key
|
||||
}
|
||||
assert obj_versions == {version_id_2}, f"Object should have versions: {version_id_2}"
|
||||
assert "DeleteMarkers" not in delete_obj.keys(), "Delete markers not found"
|
||||
assert "DeleteMarker" not in delete_obj.keys(), "Delete markers should not be created"
|
||||
abereziny marked this conversation as resolved
|
||||
|
||||
with allure.step("Delete second version of object"):
|
||||
delete_obj = s3_client.delete_object(bucket, obj_key, version_id=version_id_2)
|
||||
|
@ -324,7 +324,7 @@ class TestS3GateObject:
|
|||
version.get("VersionId") for version in versions if version.get("Key") == obj_key
|
||||
}
|
||||
assert not obj_versions, "Expected object not found"
|
||||
assert "DeleteMarkers" not in delete_obj.keys(), "Delete markers not found"
|
||||
assert "DeleteMarker" not in delete_obj.keys(), "Delete markers should not be created"
|
||||
|
||||
with allure.step("Put new object into bucket"):
|
||||
file_name_simple = generate_file(complex_object_size)
|
||||
|
|
Loading…
Reference in a new issue
There is no
DeleteMarker
field in DeleteObject response, Delete Marker is returned asVersionId
field.https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObject.html
According to https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectVersions.html
DeleteMarkers
may be returned in List_Object_Version call.And it is in the test results:
Could you please clarify?
Clarified in DM