]>
git.apps.os.sepia.ceph.com Git - s3-tests.git/log
Oguzhan Ozmen [Wed, 3 Sep 2025 14:21:40 +0000 (14:21 +0000)]
test_s3: verify list_object_versions after multi-object delete with versioning
Extend test_versioning_concurrent_multi_object_delete to also verify that
list_object_versions returns no Versions or DeleteMarkers after all objects
and their versions have been deleted. This ensures both list_objects and
list_object_versions reflect an empty bucket.
(cherry picked from commit
1062efc8c43a3c8ee539ac98f9cd5d9c96457c6c )
Oguzhan Ozmen [Wed, 3 Sep 2025 13:44:13 +0000 (13:44 +0000)]
test_s3 versioning multi object delete - add more versions for each object
Signed-off-by: Oguzhan Ozmen <oozmen@bloomberg.net>
(cherry picked from commit
8c43ceb5b8dd2a3aa3e257038c98ca87fd67304f )
Jane Zhu [Mon, 8 Sep 2025 04:26:30 +0000 (04:26 +0000)]
extend test_versioning_obj_suspended_copy to test copy to another non-versioned bucket
Signed-off-by: Jane Zhu <jzhu116@bloomberg.net>
(cherry picked from commit
6b715be9fe992ff79552bd46a60864fddc1f115e )
Adam C. Emerson [Fri, 5 Sep 2025 19:44:01 +0000 (15:44 -0400)]
s3: Mark tests known to fail on dbstore
Fixes: https://tracker.ceph.com/issues/72094
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
(cherry picked from commit
85a9b0662b0b4f7d705a4987e7161c69e7e811ad )
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Casey Bodley [Tue, 29 Jul 2025 14:59:20 +0000 (10:59 -0400)]
s3: test list_buckets with MaxBuckets/ContinuationToken
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
b2c4c07a21533fd15a5fbbf5701fe43625953d68 )
Casey Bodley [Tue, 1 Jul 2025 14:54:42 +0000 (10:54 -0400)]
s3: test_block_public_object_canned_acls() tests that 'private' works
Fixes: https://tracker.ceph.com/issues/49135
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
1f6e6f2d2c13c35851f197a4cebf232fc0071e60 )
Casey Bodley [Thu, 10 Jul 2025 15:13:01 +0000 (11:13 -0400)]
s3: test for aws-chunked in Content-Encoding responses
aws-chunked should not be persisted on upload for return on download
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
f549c9055f4db62743ec69f97a91b5f97a9eb157 )
Soumya Koduri [Mon, 4 Aug 2025 05:58:28 +0000 (11:28 +0530)]
rgw/cloud-restore: verify if the expiry-date is updated
This is the test-case for https://github.com/ceph/ceph/pull/64804.
If the `restoe-object` request is re-issued on a cloud-restored object,
it should update restoration period accordingly from the time the request
is re-issued.
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
(cherry picked from commit
ccdb9d15ab928c0e106a22ca86c88c1b969f2b54 )
Yuval Lifshitz [Tue, 5 Aug 2025 07:49:51 +0000 (10:49 +0300)]
Merge pull request #675 from yuvalif/wip-ceph-master--bucket-logging
rgw/logging: ceph master backports 2
N Balachandran [Thu, 17 Jul 2025 08:53:32 +0000 (14:23 +0530)]
bucket_logging: remove duplicate function
Removes the duplicate _verify_record_field function definition.
Signed-off-by: N Balachandran <nithya.balachandran@ibm.com>
(cherry picked from commit
9c2181144b87140b633493a4706afc1abf8c3083 )
N Balachandran [Fri, 4 Jul 2025 11:35:07 +0000 (17:05 +0530)]
bucket-logging: test the AuthType log field
Adds a test to check the value of the AuthType field.
Signed-off-by: N Balachandran <nithya.balachandran@ibm.com>
(cherry picked from commit
8f865c2b4a0c325f04692b521b5b2b618e3a12aa )
N Balachandran [Thu, 3 Jul 2025 10:37:20 +0000 (16:07 +0530)]
bucket-logging: fix typo
Fixes typo in function name.
Signed-off-by: N Balachandran <nithya.balachandran@ibm.com>
(cherry picked from commit
089d96df7041cefd31a46a728d61d650374dbe5c )
N Balachandran [Thu, 3 Jul 2025 10:10:00 +0000 (15:40 +0530)]
bucket-logging: tests for the ACLRequired field
Tests that the AclRequired field is set correctly in the bucket logging record.
Signed-off-by: N Balachandran <nithya.balachandran@ibm.com>
(cherry picked from commit
0616754ea56fbe70f1ad3e703d9905162933c77e )
N Balachandran [Tue, 1 Jul 2025 03:31:20 +0000 (09:01 +0530)]
readme: fix typo
Fixed typos in the example commands.
Signed-off-by: N Balachandran <nithya.balachandran@ibm.com>
(cherry picked from commit
67cbe2587be6d4a3f9a96cf20b71f3a5ea7d807d )
Ali Masarwa [Sun, 27 Jul 2025 12:18:26 +0000 (15:18 +0300)]
s3: more testing for conditional put
Signed-off-by: Ali Masarwa <ali.saed.masarwa@gmail.com>
(cherry picked from commit
8be24ac631850e7da8e52fad6041c36684acb606 )
Ali Masarwa [Wed, 9 Jul 2025 15:43:00 +0000 (18:43 +0300)]
s3: fixed tests
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>
(cherry picked from commit
68334301db8e2c24d4d6f2ed2f0d54ae4f453e0f )
Casey Bodley [Thu, 3 Jul 2025 20:49:54 +0000 (16:49 -0400)]
s3: test delete_objects() with Size
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
474a7e25b109e8e5394b8c11a509b51e40dbef2f )
Casey Bodley [Thu, 3 Jul 2025 20:49:41 +0000 (16:49 -0400)]
s3: test delete_objects() with LastModifiedTime
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
e6c5ad3efbc73e4396eb5bdddb54c1b3ef1b1d91 )
Casey Bodley [Thu, 3 Jul 2025 20:42:14 +0000 (16:42 -0400)]
s3: test delete_objects() with ETag
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
d9c90411b92417a7067138a127bdc0ddbc6e9ba6 )
Casey Bodley [Thu, 3 Jul 2025 21:19:24 +0000 (17:19 -0400)]
s3: test delete_object() with IfMatchSize
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
f7647bae0f40a3b5cbc9a9bbe01500c97f2aad64 )
Casey Bodley [Thu, 3 Jul 2025 21:19:07 +0000 (17:19 -0400)]
s3: test delete_object() with IfMatchLastModifiedTime
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
d67d70d0f11aacfdf01a1b80d9bc23d21b041367 )
Casey Bodley [Fri, 27 Jun 2025 18:05:45 +0000 (14:05 -0400)]
s3: test put_object() with IfMatch and IfNoneMatch
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
5f6d5b12450df7919d175435b5ab05e8fea77e56 )
Matt Benjamin [Mon, 14 Jul 2025 16:58:26 +0000 (12:58 -0400)]
delete, rgwlc: delete marker tests
0. non-creation in non-versioned buckets
1. creation in versioned buckets
2. creation in versioning-suspended buckets
3. delete-marker expiration (lifecycle)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit
47712fff0a1a2ea08ca8a866c88a1473e13df708 )
Raja Sharma [Sat, 28 Jun 2025 04:13:33 +0000 (09:43 +0530)]
rgw/sts: GetAccountSummary test
Signed-off-by: Raja Sharma <raja@ibm.com>
(cherry picked from commit
1a6dd6ea9bebd8cd054c5b44fdfb0683b0dd07c8 )
Yuval Lifshitz [Mon, 30 Jun 2025 18:14:05 +0000 (21:14 +0300)]
Merge pull request #665 from yuvalif/wip-ceph-master-logging
rgw/logging: ceph-master backports
Yuval Lifshitz [Tue, 3 Jun 2025 15:23:58 +0000 (15:23 +0000)]
rgw/logging: add tests for logging object key format
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
(cherry picked from commit
617437bb1787173acbf08c7fcea21ecba120fae9 )
Yuval Lifshitz [Tue, 20 May 2025 09:26:32 +0000 (09:26 +0000)]
rgw/logging: test conf last modified time
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
(cherry picked from commit
7c217886514b00cb9e9eb807b9f04c9f619dba97 )
Yuval Lifshitz [Tue, 13 May 2025 16:48:35 +0000 (16:48 +0000)]
rgw/logging: test part upload in mpu in standard mode
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
(cherry picked from commit
ea7930fd6dda0539457a4b737ab26dffc6bcae75 )
Yuval Lifshitz [Tue, 13 May 2025 16:04:42 +0000 (16:04 +0000)]
rgw/logging: test log object name order
verify that the names of the log objects in the log bucket
are lexicographically ordered
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
(cherry picked from commit
6febed20488c21f233ef62b9effb466efcbd5f50 )
Yuval Lifshitz [Mon, 12 May 2025 18:09:30 +0000 (18:09 +0000)]
rgw/logging: test mpu complete in standard mode
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
(cherry picked from commit
fcd58a8a49e07503af4db958f1c6fc85e41fb738 )
Yuval Lifshitz [Mon, 12 May 2025 15:47:57 +0000 (15:47 +0000)]
rgw/logging: test object metadata changes in journal mode
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
(cherry picked from commit
60be14c4adb295b0cc2a533f2af7cbcb7f761539 )
Yuval Lifshitz [Wed, 7 May 2025 15:56:18 +0000 (15:56 +0000)]
rgw/logging: add tests to verify wildcrad policy
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
(cherry picked from commit
bddaa945e1b7090a97824b7d86ca94e1a1ba01b9 )
Yuval Lifshitz [Wed, 7 May 2025 09:40:17 +0000 (09:40 +0000)]
rgw/logging: add tests for flushed object name
when using API call to flush the pending logging object of
the bucket, the flshed object name is returned.
tests were added to verify the right name is returned.
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
(cherry picked from commit
c9de24cfdc025d5b52c068df4c93b0cf0c32789e )
Emin [Tue, 10 Jun 2025 08:47:56 +0000 (10:47 +0200)]
fix: Fix typo
Signed-off-by: Emin <emin.sunacoglu@clyso.com>
(cherry picked from commit
5090f49508d52723753621093ae53bc59efdb7b2 )
Emin [Mon, 26 May 2025 14:10:19 +0000 (16:10 +0200)]
s3: fix: Changed test so that it accepts the character that has % sign in it as a key
(cherry picked from commit
cca670f505fac6d448edf721cb83ecc4eb58eae8 )
Emin [Mon, 26 May 2025 10:58:14 +0000 (12:58 +0200)]
s3: Add tests for test_upload_part_copy_percent_encoded_key
(cherry picked from commit
f33d068f6df36251fc3b1e3996836e03279d4109 )
Jiffin Tony Thottan [Fri, 30 May 2025 12:39:21 +0000 (18:09 +0530)]
increase time out for restore op in test_restore_object_permanent
and in test_lifecycle_expiration_size_gt() for lc.
Fixes: https://tracker.ceph.com/issues/71348
Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
(cherry picked from commit
b58d24c95003aa4defb7a5424a7458910bece5df )
Casey Bodley [Wed, 4 Jun 2025 22:31:39 +0000 (18:31 -0400)]
website: routing_setup() as pytest fixture
c80e9d2118ca5bcdec5285898a532f8e18faa6b6 had removed the use of
routing_setup() without adding a fixture to replace it. this had broken
routing_check(), but we hadn't noticed it because pytest hadn't
supported the 'yield' pattern in test_routing_generator() to call it
test_routing_generator() now uses this routing_setup fixture to provide
the kwargs that had previously been injected into routing_check() via
@common.with_setup_kwargs(setup=routing_setup, teardown=routing_teardown)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
9839a407c2353125bb867dec67a8f9960b1a2065 )
Casey Bodley [Wed, 4 Jun 2025 16:31:44 +0000 (12:31 -0400)]
website: use pytest parametrize for test_routing_generator()
resolves error with recent pytest:
==================================== ERRORS ====================================
____________ ERROR collecting s3tests/functional/test_s3_website.py ____________
'yield' keyword is allowed in fixtures, but not in tests (test_routing_generator)
use https://docs.pytest.org/en/7.1.x/example/parametrize.html instead to
generate a test_routing_generator() for each entry in ROUTING_RULES_TESTS
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
d587a4a49983651258f91a8a47b7faf0e7138ec3 )
Casey Bodley [Wed, 28 May 2025 15:09:18 +0000 (11:09 -0400)]
add missing 'assert' to test_bucket_logging_roll_time
saw a failure after this:
```
response = client.list_objects_v2(Bucket=log_bucket_name)
keys = _get_keys(response)
len(keys) == 1
> key = keys[0]
E IndexError: list index out of range
s3tests_boto3/functional/test_s3.py:16637: IndexError
```
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
6e26d4433591f0e054df96b19ef103c92f0e3f34 )
Casey Bodley [Thu, 22 May 2025 18:35:49 +0000 (14:35 -0400)]
s3: avoid 100-continue bug for test_encryption_sse_c_deny_algo_with_bucket_policy
was failing for a reason unrelated to sse-c or bucket policy
Fixes: https://tracker.ceph.com/issues/70607
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
562f0f77c07efb1c070d7aef7ecaf1a6bf2756cd )
Casey Bodley [Fri, 25 Apr 2025 16:00:23 +0000 (12:00 -0400)]
add test coverage for DeleteBucketLifecycle
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
886a769174bc3ca01243ffd0868037fc51a14892 )
Casey Bodley [Thu, 17 Apr 2025 13:07:08 +0000 (09:07 -0400)]
Merge pull request #641 from yuvalif/wip-yuval-bucket-logging-rollover
rgw/logging: mark test that require rollover time set
Yuval Lifshitz [Thu, 17 Apr 2025 12:37:03 +0000 (12:37 +0000)]
rgw/logging: mark test that require rollover time set
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
Soumya Koduri [Wed, 16 Apr 2025 11:55:43 +0000 (17:25 +0530)]
Merge pull request #628 from thotz/handle-allow-readthrough-in-testcases
rgw/s3tests: handle allow read through values in cloud transitions cases
Casey Bodley [Mon, 14 Apr 2025 13:50:28 +0000 (09:50 -0400)]
Merge pull request #624 from pritha-srivastava/wip-rgw-remove-fails-on-rgw
rgw/s3tests: removing fails_on_rgw for
Casey Bodley [Wed, 9 Apr 2025 17:57:50 +0000 (13:57 -0400)]
Merge pull request #563 from clwluvw/restrict-public-buckets
BucketPublicAccessBlock: add tests for RestrictPublicBuckets
Soumya Koduri [Tue, 8 Apr 2025 16:13:04 +0000 (21:43 +0530)]
Merge pull request #639 from thotz/increase-time-out-for-transition-test-cases
rgw/cloud-transition: increase time out for test cases
Jiffin Tony Thottan [Mon, 7 Apr 2025 09:38:09 +0000 (15:08 +0530)]
rgw/cloud-transition: increase time out for test cases
Fixes: https://tracker.ceph.com/issues/69411
Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
Casey Bodley [Tue, 1 Apr 2025 17:19:07 +0000 (13:19 -0400)]
Merge pull request #634 from yuvalif/wip-bucket-logging-policy
rgw/logging: bucket logging policy
Casey Bodley [Mon, 31 Mar 2025 19:41:12 +0000 (15:41 -0400)]
Merge pull request #626 from linuxbox2/wip-crc64nvme
Wip crc64nvme
Yuval Lifshitz [Mon, 31 Mar 2025 18:15:06 +0000 (18:15 +0000)]
rgw/logging: test bucket logging with accounts
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
Yuval Lifshitz [Fri, 28 Mar 2025 13:52:41 +0000 (13:52 +0000)]
rgw/logging: fix tenant test
tests were failing in teuthology since the tenanted user name
already have the tenant in its name
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
Matt Benjamin [Mon, 3 Mar 2025 18:31:21 +0000 (13:31 -0500)]
enhance additional checksum tests
includes tests for CRC64NVME, tests for selecting
COMPOSITE and FULL_OBJECT checksums
a decomposed matrix of tests for all checksum types
also removes the mixed checksum upload case that no longer
works in recent boto3
cleanups, add sha1
checksum validation failure (mismatch) returns BadDigest
multipart checksum matrix helper now validates checksum and checksum type
for all operations which can return them (complete-multipart, head-object,
and get-object-attributes)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
Matt Benjamin [Wed, 26 Feb 2025 02:04:55 +0000 (21:04 -0500)]
add minimal put-object for CRC64NVME
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
Casey Bodley [Thu, 27 Mar 2025 21:49:28 +0000 (17:49 -0400)]
Merge pull request #635 from cbodley/wip-69527
test put_bucket_acl with group uri
Yuval Lifshitz [Thu, 27 Mar 2025 18:28:07 +0000 (18:28 +0000)]
rgw/logging: add bucket logging permission tests
this is to cover new functionality added in:
https://github.com/ceph/ceph/pull/62284
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
Yuval Lifshitz [Thu, 27 Mar 2025 14:02:49 +0000 (14:02 +0000)]
rgw/logging: add more bucket logging error cases
this is to cover these checks:
* source bucket ownership
* "requester pays" on log bucket
that were added in: https://github.com/ceph/ceph/pull/62284
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
Yuval Lifshitz [Wed, 26 Mar 2025 13:52:16 +0000 (13:52 +0000)]
rgw/logging: add basic policy to target bucket
this commit needed to be able to run bucket logging regression
against: https://github.com/ceph/ceph/pull/62284
since target bucket requires policy for bucket logging to work
this only covers the positive cases from bucket logging policy
perspective
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
Casey Bodley [Wed, 26 Mar 2025 20:10:14 +0000 (16:10 -0400)]
test put_bucket_acl with group uri
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Yuval Lifshitz [Wed, 26 Mar 2025 13:51:28 +0000 (13:51 +0000)]
rgw/logging: add missing marker to remove warnings
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
Casey Bodley [Mon, 24 Mar 2025 17:48:11 +0000 (13:48 -0400)]
Merge pull request #614 from jzhu116-bloomberg/wip-63799
add test case for stacked delete-markers
Casey Bodley [Wed, 19 Mar 2025 18:42:25 +0000 (14:42 -0400)]
Merge pull request #625 from cbodley/wip-70191
s3: test bucket policy evaluation for CreateMultipartUpload
Casey Bodley [Wed, 19 Mar 2025 12:23:12 +0000 (08:23 -0400)]
Merge pull request #567 from clwluvw/policy-remove-self-access
BucketPolicy: add tests for ConfirmRemoveSelfBucketAccess header
Seena Fallah [Wed, 22 May 2024 15:57:25 +0000 (17:57 +0200)]
BucketPolicy: add tests for ConfirmRemoveSelfBucketAccess header
Refrence: https://github.com/ceph/ceph/pull/57629
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
Soumya Koduri [Sat, 15 Mar 2025 11:48:04 +0000 (17:18 +0530)]
Merge pull request #627 from soumyakoduri/wip-skoduri-restore
cloud-restore: Add testcase for restoring non-current versioned objects
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
Jiffin Tony Thottan [Thu, 6 Mar 2025 10:16:37 +0000 (15:46 +0530)]
rgw/s3tests: handle allow read through values in cloud transitions cases
Check the allow_read_through values for cases test_lifecycle_cloud_transition
and test_read_through
Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
Soumya Koduri [Tue, 4 Mar 2025 17:49:24 +0000 (23:19 +0530)]
cloud-restore: testcase for non-current versioned object
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
Soumya Koduri [Mon, 3 Mar 2025 14:33:45 +0000 (20:03 +0530)]
Merge pull request #599 from shreyanshjain7174/restore-s3tests
rgw/restore: s3tests to test restore object functionality
Reviewed-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
Reviewed-by: Adam Emerson <aemerson@redhat.com>
Reviewed-by: Soumya Koduri <skoduri@redhat.com>
Casey Bodley [Fri, 28 Feb 2025 16:00:15 +0000 (11:00 -0500)]
Merge pull request #622 from cbodley/wip-70013
s3: test that object lock can be enabled on an existing bucket
Casey Bodley [Fri, 28 Feb 2025 14:35:46 +0000 (09:35 -0500)]
Merge pull request #621 from cbodley/wip-69936
s3: reenable tests with range requests and checksums
Jane Zhu [Thu, 27 Feb 2025 22:07:31 +0000 (22:07 +0000)]
mark test_versioning_stack_delete_merkers fails_on_dbstore
Signed-off-by: Jane Zhu <jzhu116@bloomberg.net>
Casey Bodley [Wed, 26 Feb 2025 21:47:03 +0000 (16:47 -0500)]
s3: test bucket policy evaluation for CreateMultipartUpload
test case for https://tracker.ceph.com/issues/70191
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Pritha Srivastava [Wed, 26 Feb 2025 06:42:13 +0000 (12:12 +0530)]
rgw/s3tests: removing fails_on_rgw for
test_versioned_concurrent_object_create_concurrent_remove
as the associated tracker is marked as resolved and
the test also passes against main.
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
Jiffin Tony Thottan [Mon, 24 Feb 2025 05:41:43 +0000 (11:11 +0530)]
running cloud restore tests seperately
Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
Casey Bodley [Thu, 20 Feb 2025 19:41:44 +0000 (14:41 -0500)]
s3: test that object lock can be enabled on an existing bucket
Signed-off-by: Casey Bodley <cbodley@redhat.com>
shreyanshjain7174 [Mon, 4 Nov 2024 12:10:21 +0000 (07:10 -0500)]
rgw/restore: s3tests to test restore object functionality.
This tests are added to tests temporary restore, permanent restore and
read through resotre object functionality, this includes zonegroup
parameters and checks.
Signed-off-by: shreyanshjain7174 <ssanchet@redhat.com>
Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
Casey Bodley [Wed, 19 Feb 2025 20:12:42 +0000 (15:12 -0500)]
s3: reenable tests with range requests and checksums
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Casey Bodley [Wed, 19 Feb 2025 17:35:51 +0000 (12:35 -0500)]
Merge pull request #619 from cbodley/wip-unpin-botocore
unpin botocore, disable failing sigv2/checksum tests
Raja [Wed, 19 Feb 2025 14:51:51 +0000 (20:21 +0530)]
Merge pull request #620 from ArbitCode/wip-rgw-raja-remove-clientid-oidc-provider
rgw/iam: add RemoveClientIDFromOpenIDConnectProvider
Raja Sharma [Tue, 18 Feb 2025 03:39:18 +0000 (09:09 +0530)]
rgw/iam: add RemoveClientIDFromOpenIDConnectProvider
Signed-off-by: Raja Sharma <raja@ibm.com>
Casey Bodley [Fri, 14 Feb 2025 20:31:32 +0000 (15:31 -0500)]
sns: clear region_name for s3 clients
work around sns failures due to default region_name='':
> ERROR s3tests_boto3/functional/test_sns.py::test_account_topic_publish - botocore.exceptions.EndpointResolutionError: Invalid region: region was not a valid DNS name.
> ERROR s3tests_boto3/functional/test_sns.py::test_cross_account_topic_publish - botocore.exceptions.EndpointResolutionError: Invalid region: region was not a valid DNS name.
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Casey Bodley [Fri, 14 Feb 2025 16:35:54 +0000 (11:35 -0500)]
s3: disable checksum calculation for test_object_create_bad_contentlength_negative
if tls is enabled, boto will switch to STREAMING-UNSIGNED-PAYLOAD-TRAILER
and omit the provided content-length header. this leads to test failure:
> ________________ test_object_create_bad_contentlength_negative _________________
> e = assert_raises(ClientError, client.put_object, Bucket=bucket_name, Key=key_name, ContentLength=-1)
> AssertionError: ClientError not raised
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Casey Bodley [Thu, 13 Feb 2025 16:45:42 +0000 (11:45 -0500)]
iam: remove invalid Bucket param from list_buckets()
> botocore.exceptions.ParamValidationError: Parameter validation failed:
> Unknown parameter in input: "Bucket", must be one of: MaxBuckets, ContinuationToken, Prefix, BucketRegion
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Casey Bodley [Wed, 12 Feb 2025 21:06:49 +0000 (16:06 -0500)]
s3: disable multipart/ranged tests with checksum failures
boto update exposed some bugs in our checksum feature around multipart
copy and ranged requests. disabling them with fails_on_rgw until
https://tracker.ceph.com/issues/69936 is resolved
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Casey Bodley [Wed, 12 Feb 2025 19:44:45 +0000 (14:44 -0500)]
s3: disable request_checksum_calculation for test_multipart_checksum_upload_fallback
the test sends create_multipart_upload() with a requested checksum
algorithm, and upload_part() requests without. newer boto automatically
adds `x-amz-sdk-checksum-algorithm: CRC32` when nothing is specified,
so we have to explicitly disable that behavior via botocore config
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Casey Bodley [Fri, 6 Sep 2024 12:34:44 +0000 (08:34 -0400)]
s3: clean up use of tenanted bucket names
the botocore.handlers.validate_bucket_name validation is enabled by
default, but we can disable it with unregister(). this avoids having to
mess with the signature or url
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Casey Bodley [Wed, 22 Jan 2025 17:04:40 +0000 (12:04 -0500)]
s3: sse-kms policy tests use v4 client
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Casey Bodley [Wed, 22 Jan 2025 16:16:13 +0000 (11:16 -0500)]
s3: mark sigv2 tests with fails_on_rgw
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Casey Bodley [Wed, 22 Jan 2025 16:15:38 +0000 (11:15 -0500)]
requirements: unpin botocore version
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Ali Masarwa [Fri, 7 Feb 2025 07:19:48 +0000 (09:19 +0200)]
Merge pull request #616 from ceph/wip-alimasa-sns-cross-tenant
RGW | BucketNotification: fix test to expect authorization failure
Reviewed-by: yuvalif<ylifshit@redhat.com>
Ali Masarwa [Wed, 5 Feb 2025 08:49:01 +0000 (10:49 +0200)]
rgw|BN: fix test to expect authorization failure
Signed-off-by: Ali Masarwa <ali.saed.masarwa@gmail.com>
Raja [Thu, 30 Jan 2025 06:29:14 +0000 (11:59 +0530)]
Merge pull request #611 from ArbitCode/wip-raja-fix-multipart-upload-cant-get-obj-tag
RGW:test-case to fix obj by multipart upload cant get tag
Raja [Wed, 29 Jan 2025 15:14:09 +0000 (20:44 +0530)]
Merge branch 'ceph:master' into wip-raja-fix-multipart-upload-cant-get-obj-tag
Raja [Tue, 28 Jan 2025 16:41:37 +0000 (22:11 +0530)]
Merge pull request #610 from ArbitCode/wip-raja-rgw-test-support-64526
rgw test-case to support x-expected-bucket-owner
Jane Zhu [Thu, 23 Jan 2025 22:06:40 +0000 (22:06 +0000)]
add test case for stacked delete-markers
Signed-off-by: Jane Zhu <jzhu116@bloomberg.net>
Raja Sharma [Tue, 21 Jan 2025 12:11:33 +0000 (17:41 +0530)]
test-case to fix obj by multipart upload cant get tag
Signed-off-by: Raja Sharma <raja@ibm.com>
Yuval Lifshitz [Mon, 20 Jan 2025 10:14:11 +0000 (12:14 +0200)]
Merge pull request #607 from yuvalif/wip-yuval-bucket-logging-tenant
rgw/logging: increase test coverage
Reviewed-By: Ali Masarwe <ali.masarwa@ibm.com>
Raja Sharma [Fri, 17 Jan 2025 12:07:02 +0000 (17:37 +0530)]
rgw test-case to support x-expected-bucket-owner
If the bucket is owned by a different account, the request fails with the HTTP status code 403 Forbidden (access denied).
PR: ceph/ceph#61215
Fixes: https://tracker.ceph.com/issues/64526
Signed-off-by: Raja Sharma <raja@ibm.com>
Yuval Lifshitz [Wed, 8 Jan 2025 16:19:25 +0000 (16:19 +0000)]
rgw/logging: fix typo in readme
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>