Fix LifecycleConfiguration processing #536

Closed
opened 2024-11-01 13:22:31 +00:00 by dkirillov · 0 comments
Member

Expected Behavior

Tests:

pass

Current Behavior

Tests not pass

Possible Solution

  • Support legacy Rule.Prefix field in LifecycleConfiguration.
  • Change error status from XMLMalformed to InvalidArgument when parsing expiration rules
  • Return expiration info when put/head object

Steps to Reproduce (for bugs)

  1. Run tests

Context

No

Regression

No

<!--- Provide a general summary of the issue in the Title above --> ## Expected Behavior Tests: * [test_lifecycle_get](https://git.frostfs.info/TrueCloudLab/s3-tests/src/commit/d245097771698774d36a0283e9ef69bf67f3ba76/s3tests_boto3/functional/test_s3.py#L8200) * [test_lifecycle_get_no_id](https://git.frostfs.info/TrueCloudLab/s3-tests/src/commit/d245097771698774d36a0283e9ef69bf67f3ba76/s3tests_boto3/functional/test_s3.py#L8211) * [test_lifecycle_set](https://git.frostfs.info/TrueCloudLab/s3-tests/src/commit/d245097771698774d36a0283e9ef69bf67f3ba76/s3tests_boto3/functional/test_s3.py#L8190) * [test_lifecycle_id_too_long](https://git.frostfs.info/TrueCloudLab/s3-tests/src/commit/d245097771698774d36a0283e9ef69bf67f3ba76/s3tests_boto3/functional/test_s3.py#L8729) * [test_lifecycle_same_id](https://git.frostfs.info/TrueCloudLab/s3-tests/src/commit/d245097771698774d36a0283e9ef69bf67f3ba76/s3tests_boto3/functional/test_s3.py#L8741) * [test_lifecycle_set_invalid_date](https://git.frostfs.info/TrueCloudLab/s3-tests/src/commit/d245097771698774d36a0283e9ef69bf67f3ba76/s3tests_boto3/functional/test_s3.py#L8792) * [test_lifecycle_expiration_days0](https://git.frostfs.info/TrueCloudLab/s3-tests/src/commit/d245097771698774d36a0283e9ef69bf67f3ba76/s3tests_boto3/functional/test_s3.py#L8828) * [test_lifecycle_expiration_header_put](https://git.frostfs.info/TrueCloudLab/s3-tests/src/commit/d245097771698774d36a0283e9ef69bf67f3ba76/s3tests_boto3/functional/test_s3.py#L8879) * [test_lifecycle_expiration_header_head](https://git.frostfs.info/TrueCloudLab/s3-tests/src/commit/d245097771698774d36a0283e9ef69bf67f3ba76/s3tests_boto3/functional/test_s3.py#L8891) pass ## Current Behavior Tests not pass ## Possible Solution * Support legacy `Rule.Prefix` field in LifecycleConfiguration. * Change error status from `XMLMalformed` to `InvalidArgument` when parsing expiration rules * Return expiration info when put/head object ## Steps to Reproduce (for bugs) <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug. --> 1. Run tests ## Context No ## Regression No
dkirillov added the
bug
label 2024-11-01 13:22:31 +00:00
mbiryukova self-assigned this 2024-11-06 09:46:32 +00:00
alexvanin added this to the v0.31.0 milestone 2024-11-12 12:50:58 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-s3-gw#536
No description provided.