fix AttributeError in set_bucket_versioning

Signed-off-by: Yulia Kovshova <y.kovshova@yadro.com>
This commit is contained in:
Aleksey Lipay 2022-09-15 12:46:45 +03:00 committed by Julia Kovshova
parent 30703bf701
commit 38bb0c35a6

View file

@ -558,9 +558,7 @@ class TestS3GateObject(TestS3GateBase):
tag_value_2 = uuid.uuid4() tag_value_2 = uuid.uuid4()
tag_2 = f"{tag_key_2}={tag_value_2}" tag_2 = f"{tag_key_2}={tag_value_2}"
bucket = s3_gate_bucket.create_bucket_s3(self.s3_client) bucket = s3_gate_bucket.create_bucket_s3(self.s3_client)
set_bucket_versioning( set_bucket_versioning(self.s3_client, bucket, s3_gate_bucket.VersioningStatus.SUSPENDED)
self.s3_client, bucket, s3_gate_bucket.VersioningStatus.SUSPENDED.value
)
with allure.step("Put first object into bucket"): with allure.step("Put first object into bucket"):
s3_gate_object.put_object_s3( s3_gate_object.put_object_s3(