mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-30 19:33:40 +00:00
boto2: rm functional.test_s3.test_lifecycle_rules_conflict
The assumption that there may be only one rule per prefix has been removed. The rules specifically tested here--without tag filters--do overlap but are not in conflict. I am proposing to remove altogether rather than writing new deconfliction logic. Signed-off-by: Matt Benjamin <mbenjamin@redhat.com> Signed-off-by: Ali Maredia <amaredia@redhat.com>
This commit is contained in:
parent
2ab737206b
commit
bc7e9d6eea
1 changed files with 0 additions and 15 deletions
|
@ -7775,21 +7775,6 @@ def test_lifecycle_invalid_status():
|
||||||
eq(e.status, 400)
|
eq(e.status, 400)
|
||||||
eq(e.error_code, 'MalformedXML')
|
eq(e.error_code, 'MalformedXML')
|
||||||
|
|
||||||
@attr(resource='bucket')
|
|
||||||
@attr(method='put')
|
|
||||||
@attr(operation='rules conflicted in lifecycle')
|
|
||||||
@attr('lifecycle')
|
|
||||||
@attr(assertion='fails 400')
|
|
||||||
def test_lifecycle_rules_conflicted():
|
|
||||||
bucket = get_new_bucket()
|
|
||||||
lifecycle = create_lifecycle(rules=[{'id': 'rule1', 'days': 2, 'prefix': 'test1/', 'status': 'Enabled'},
|
|
||||||
{'id': 'rule2', 'days': 3, 'prefix': 'test3/', 'status': 'Enabled'},
|
|
||||||
{'id': 'rule3', 'days': 5, 'prefix': 'test1/abc', 'status': 'Enabled'}])
|
|
||||||
e = assert_raises(boto.exception.S3ResponseError, bucket.configure_lifecycle, lifecycle)
|
|
||||||
eq(e.status, 400)
|
|
||||||
eq(e.error_code, 'InvalidRequest')
|
|
||||||
|
|
||||||
|
|
||||||
def generate_lifecycle_body(rules):
|
def generate_lifecycle_body(rules):
|
||||||
body = '<?xml version="1.0" encoding="UTF-8"?><LifecycleConfiguration>'
|
body = '<?xml version="1.0" encoding="UTF-8"?><LifecycleConfiguration>'
|
||||||
for rule in rules:
|
for rule in rules:
|
||||||
|
|
Loading…
Reference in a new issue