Skip to content
This repository was archived by the owner on Oct 12, 2026. It is now read-only.

s3: test conditional put_object() and delete_object() - #663

Merged
AliMasarweh merged 9 commits into
ceph:masterfrom
cbodley:wip-s3-conditional-write
Jul 28, 2025
Merged

AliMasarweh merged 9 commits into
ceph:masterfrom
cbodley:wip-s3-conditional-write

Conversation

@cbodley

@cbodley cbodley commented Jun 27, 2025 •

Copy link
Copy Markdown
Contributor

test coverage for ceph/ceph#63348

  • put_object() with IfMatch and IfNoneMatch
  • delete_object() with IfMatch
  • delete_object() with IfMatchLastModifiedTime and IfMatchSize
  • delete_objects() with <ETag>
  • delete_objects() with <LastModifiedTime>
  • delete_objects() with <Size>

put_object tests are duplicated to test non-versioned and overwrites of a current version
delete_object(s) tests are duplicated to test non-versioned, deletes of a current version, and deletes of a specific version

@cbodley
cbodley force-pushed the wip-s3-conditional-write branch 3 times, most recently from 280eca2 to 1557dac Compare June 27, 2025 21:48
@cbodley
cbodley force-pushed the wip-s3-conditional-write branch from 1557dac to 36907dd Compare July 3, 2025 18:17
@cbodley cbodley changed the title s3: test put_object() with If-Match s3: test conditional put_object() and delete_object() Jul 3, 2025
@cbodley
cbodley force-pushed the wip-s3-conditional-write branch 5 times, most recently from 680bca0 to 01b946d Compare July 3, 2025 21:56
@cbodley
cbodley marked this pull request as ready for review July 3, 2025 22:01
@AliMasarweh
AliMasarweh force-pushed the wip-s3-conditional-write branch from 11b7f71 to 017a7a7 Compare July 15, 2025 12:03
Comment thread s3tests_boto3/functional/test_s3.py Resolved
@AliMasarweh
AliMasarweh force-pushed the wip-s3-conditional-write branch 2 times, most recently from c231158 to b24f167 Compare July 16, 2025 11:50
Comment thread s3tests_boto3/functional/test_s3.py Resolved

@cbodley cbodley left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack on delete changes from 404->204 👍

Comment thread s3tests_boto3/functional/test_s3.py Resolved
@AliMasarweh
AliMasarweh force-pushed the wip-s3-conditional-write branch 6 times, most recently from f74d07c to 7b7e4a5 Compare July 21, 2025 09:21
@AliMasarweh
AliMasarweh force-pushed the wip-s3-conditional-write branch 2 times, most recently from 7ed5d02 to 6ba7bd5 Compare July 21, 2025 14:40
we expected an error if we delete non-existent objects but that is not
true

Signed-off-by: Ali Masarwa <[email protected]>
@AliMasarweh
AliMasarweh force-pushed the wip-s3-conditional-write branch from 6ba7bd5 to 6833430 Compare July 21, 2025 14:42
@AliMasarweh
AliMasarweh merged commit 538dedc into ceph:master Jul 28, 2025
@cbodley

cbodley commented Jul 28, 2025

Copy link
Copy Markdown
Contributor Author

pushed to ceph-master as well

@cbodley

cbodley commented Feb 19, 2026

Copy link
Copy Markdown
Contributor Author

cherry-picked to ceph-tentacle

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants