From e36e18dc57c6a34282a2fa8eeddf1f8774c959ef Mon Sep 17 00:00:00 2001 From: Yaroslava Lukoyanova Date: Wed, 24 May 2023 17:20:25 +0300 Subject: [PATCH] Fixed typo in test_s3_delete_versioning case assertion --- pytest_tests/testsuites/services/s3_gate/test_s3_object.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytest_tests/testsuites/services/s3_gate/test_s3_object.py b/pytest_tests/testsuites/services/s3_gate/test_s3_object.py index 65e24c6..4c7b831 100644 --- a/pytest_tests/testsuites/services/s3_gate/test_s3_object.py +++ b/pytest_tests/testsuites/services/s3_gate/test_s3_object.py @@ -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" 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)