Fixed typo in test_s3_delete_versioning case assertion
This commit is contained in:
parent
8d50407439
commit
e36e18dc57
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
|
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 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"
|
||||||
|
|
||||||
with allure.step("Delete second version of object"):
|
with allure.step("Delete second version of object"):
|
||||||
delete_obj = s3_client.delete_object(bucket, obj_key, version_id=version_id_2)
|
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
|
version.get("VersionId") for version in versions if version.get("Key") == obj_key
|
||||||
}
|
}
|
||||||
assert not obj_versions, "Expected object not found"
|
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"):
|
with allure.step("Put new object into bucket"):
|
||||||
file_name_simple = generate_file(complex_object_size)
|
file_name_simple = generate_file(complex_object_size)
|
||||||
|
|
Loading…
Reference in a new issue