Skip to content

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

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

s3: test conditional put_object() and delete_object()#663
AliMasarweh merged 9 commits intoceph:masterfrom
cbodley:wip-s3-conditional-write

Conversation

@cbodley
Copy link
Contributor

@cbodley cbodley commented Jun 27, 2025

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
@AliMasarweh AliMasarweh force-pushed the wip-s3-conditional-write branch 2 times, most recently from c231158 to b24f167 Compare July 16, 2025 11:50
Copy link
Contributor Author

@cbodley cbodley left a comment

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 👍

@AliMasarweh AliMasarweh force-pushed the wip-s3-conditional-write branch 6 times, most recently from f74d07c to 7b7e4a5 Compare July 21, 2025 09:21
cbodley added 6 commits July 21, 2025 12:35
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
@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 <ali.saed.masarwa@gmail.com>
@AliMasarweh AliMasarweh force-pushed the wip-s3-conditional-write branch from 6ba7bd5 to 6833430 Compare July 21, 2025 14:42
Signed-off-by: Ali Masarwa <ali.saed.masarwa@gmail.com>
@AliMasarweh AliMasarweh merged commit 538dedc into ceph:master Jul 28, 2025
@cbodley
Copy link
Contributor Author

cbodley commented Jul 28, 2025

pushed to ceph-master as well

@cbodley
Copy link
Contributor Author

cbodley commented Feb 19, 2026

cherry-picked to ceph-tentacle

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants