mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-29 03:41:48 +00:00
update the case for lifecycle expiration on versioning enabled bucket
Signed-off-by: zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
This commit is contained in:
parent
b528485f62
commit
e54de402aa
1 changed files with 1 additions and 0 deletions
|
@ -7937,6 +7937,7 @@ def test_lifecycle_expiration_versioning_enabled():
|
||||||
client = get_client()
|
client = get_client()
|
||||||
check_configure_versioning_retry(bucket_name, "Enabled", "Enabled")
|
check_configure_versioning_retry(bucket_name, "Enabled", "Enabled")
|
||||||
create_multiple_versions(client, bucket_name, "test1/a", 1)
|
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'}]
|
rules=[{'ID': 'rule1', 'Expiration': {'Days': 1}, 'Prefix': 'test1/', 'Status':'Enabled'}]
|
||||||
lifecycle = {'Rules': rules}
|
lifecycle = {'Rules': rules}
|
||||||
|
|
Loading…
Reference in a new issue