]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
update the case for lifecycle expiration on versioning enabled bucket 286/head
authorzhang Shaowen <zhangshaowen@cmss.chinamobile.com>
Thu, 11 Jul 2019 08:36:16 +0000 (16:36 +0800)
committerzhang Shaowen <zhangshaowen@cmss.chinamobile.com>
Thu, 11 Jul 2019 08:36:16 +0000 (16:36 +0800)
Signed-off-by: zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
s3tests_boto3/functional/test_s3.py

index 47b9b1e9aa3f06085e628bd0cf128d0084253945..a728af3a5a908b9f9cf81723e3c6ed680ce6cf74 100644 (file)
@@ -7937,6 +7937,7 @@ def test_lifecycle_expiration_versioning_enabled():
     client = get_client()
     check_configure_versioning_retry(bucket_name, "Enabled", "Enabled")
     create_multiple_versions(client, bucket_name, "test1/a", 1)
+    client.delete_object(Bucket=bucket_name, Key="test1/a")
 
     rules=[{'ID': 'rule1', 'Expiration': {'Days': 1}, 'Prefix': 'test1/', 'Status':'Enabled'}]
     lifecycle = {'Rules': rules}