Commit graph

247 commits

Author SHA1 Message Date
Yuval Lifshitz
efcf5a70b5 rgw/logging: mark test that require rollover time set
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
2025-04-17 12:37:03 +00:00
Soumya Koduri
eb7b569dfb
Merge pull request #628 from thotz/handle-allow-readthrough-in-testcases
rgw/s3tests: handle allow read through values in cloud transitions cases
2025-04-16 17:25:43 +05:30
Casey Bodley
46ba1fc060
Merge pull request #624 from pritha-srivastava/wip-rgw-remove-fails-on-rgw
rgw/s3tests: removing fails_on_rgw for
2025-04-14 09:50:28 -04:00
Casey Bodley
7aae6ce2ca
Merge pull request #563 from clwluvw/restrict-public-buckets
BucketPublicAccessBlock: add tests for RestrictPublicBuckets
2025-04-09 13:57:50 -04:00
Jiffin Tony Thottan
6bd0d1d3f2 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>
2025-04-08 20:45:25 +05:30
Casey Bodley
d1fb0a7d07
Merge pull request #634 from yuvalif/wip-bucket-logging-policy
rgw/logging: bucket logging policy
2025-04-01 13:19:07 -04:00
Yuval Lifshitz
899afe1613 rgw/logging: test bucket logging with accounts
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
2025-03-31 18:15:06 +00:00
Yuval Lifshitz
b20fb3f3e6 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>
2025-03-28 13:52:41 +00:00
Matt Benjamin
2c9c5d9845 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>
2025-03-27 19:54:37 -04:00
Matt Benjamin
49bed85fc6 add minimal put-object for CRC64NVME
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2025-03-27 19:54:00 -04:00
Yuval Lifshitz
37f188c39c 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>
2025-03-27 18:28:07 +00:00
Yuval Lifshitz
f8e4f39fc1 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>
2025-03-27 14:02:49 +00:00
Yuval Lifshitz
199277999d 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>
2025-03-27 12:25:53 +00:00
Casey Bodley
48fac52a3b test put_bucket_acl with group uri
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2025-03-26 16:10:14 -04:00
Casey Bodley
9100c095f0
Merge pull request #614 from jzhu116-bloomberg/wip-63799
add test case for stacked delete-markers
2025-03-24 13:48:11 -04:00
Casey Bodley
14982aa140
Merge pull request #625 from cbodley/wip-70191
s3: test bucket policy evaluation for CreateMultipartUpload
2025-03-19 14:42:25 -04:00
Casey Bodley
d3d39abf8a
Merge pull request #567 from clwluvw/policy-remove-self-access
BucketPolicy: add tests for ConfirmRemoveSelfBucketAccess header
2025-03-19 08:23:12 -04:00
Seena Fallah
99d56caad6 BucketPolicy: add tests for ConfirmRemoveSelfBucketAccess header
Refrence: https://github.com/ceph/ceph/pull/57629
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
2025-03-19 10:29:21 +01:00
Jiffin Tony Thottan
9d77c0a0d7 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>
2025-03-07 21:34:36 +05:30
Soumya Koduri
bce66ded33 cloud-restore: testcase for non-current versioned object
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
2025-03-05 17:47:36 +05:30
Soumya Koduri
78458f02d9
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>
2025-03-03 20:03:45 +05:30
Casey Bodley
44824f69f5
Merge pull request #622 from cbodley/wip-70013
s3: test that object lock can be enabled on an existing bucket
2025-02-28 11:00:15 -05:00
Jane Zhu
92438e7830 mark test_versioning_stack_delete_merkers fails_on_dbstore
Signed-off-by: Jane Zhu <jzhu116@bloomberg.net>
2025-02-28 14:12:48 +00:00
Casey Bodley
56f5bebef8 s3: test bucket policy evaluation for CreateMultipartUpload
test case for https://tracker.ceph.com/issues/70191

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2025-02-26 16:47:15 -05:00
Pritha Srivastava
6ea4051d59 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>
2025-02-26 12:12:46 +05:30
Jiffin Tony Thottan
598fd3777d running cloud restore tests seperately
Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
2025-02-24 11:11:43 +05:30
Casey Bodley
f0854020d7 s3: test that object lock can be enabled on an existing bucket
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2025-02-20 14:41:44 -05:00
shreyanshjain7174
ca71ddd86b 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>
2025-02-20 11:48:39 +05:30
Casey Bodley
ed8944c9cb s3: reenable tests with range requests and checksums
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2025-02-19 15:12:42 -05:00
Casey Bodley
cc56036255 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>
2025-02-13 11:55:09 -05:00
Casey Bodley
dfb8fc5b16 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>
2025-02-13 11:55:09 -05:00
Casey Bodley
5aff597245 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>
2025-02-13 11:55:09 -05:00
Casey Bodley
25a502872b s3: sse-kms policy tests use v4 client
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2025-02-13 11:55:09 -05:00
Casey Bodley
e786aa4f42 s3: mark sigv2 tests with fails_on_rgw
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2025-02-13 11:55:08 -05:00
Raja
3456f8b66c
Merge branch 'ceph:master' into wip-raja-fix-multipart-upload-cant-get-obj-tag 2025-01-29 20:44:09 +05:30
Raja
710dd45f31
Merge pull request #610 from ArbitCode/wip-raja-rgw-test-support-64526
rgw test-case to support x-expected-bucket-owner
2025-01-28 22:11:37 +05:30
Jane Zhu
d2be0bbc18 add test case for stacked delete-markers
Signed-off-by: Jane Zhu <jzhu116@bloomberg.net>
2025-01-23 22:06:40 +00:00
Raja Sharma
e8bcf49484 test-case to fix obj by multipart upload cant get tag
Signed-off-by: Raja Sharma <raja@ibm.com>
2025-01-21 17:52:28 +05:30
Raja Sharma
8f36772ce0 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>
2025-01-17 23:33:34 +05:30
Yuval Lifshitz
75693ccff7 rgw/logging: add cleanup tests
* use flushing api instead of sleep when possible
* test flushing concurrency

Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
2025-01-15 16:38:15 +00:00
Yuval Lifshitz
87df05aaa4 rgw/logging: test log bucket encryption error
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
2025-01-15 16:25:01 +00:00
Yuval Lifshitz
d1d1b4e8a4 rgw/logging: test source and log have different names
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
2025-01-15 16:25:01 +00:00
Yuval Lifshitz
30ecc7cad6 rgw/logging: test tenant support
when source and log buckets are on a specific tenant, or
on different tenants

Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
2025-01-15 16:25:01 +00:00
Matt Benjamin
ff16b9c0c3
Merge pull request #571 from linuxbox2/wip-get-objattrs
test get_object_attributes
2025-01-13 11:09:29 -05:00
Adam Emerson
333a8a69a9
Merge pull request #549 from jzhu116-bloomberg/wip-63995
add test case for delete-marker expiration with 'Days' tag

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2025-01-08 16:03:34 -05:00
Matt Benjamin
a30f6e0010 mark attribute tests as failing on dbstore (for now)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2025-01-07 15:24:56 -05:00
Casey Bodley
8f10b2e532 more tests for GetObjectAttributes
* multipart upload without checksums
* multipart upload with a single part
* pagination of multipart parts
* non-multipart upload with/without checksum
* versioned object, current and non-current
* sse-c encrypted object

Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2025-01-07 15:24:46 -05:00
Matt Benjamin
5f94278e22 multipart fallback to create-multipart checksum algorithm
there seem to be workloads which assume checksum algorithm can be
omitted from upload-part

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2025-01-07 15:23:41 -05:00
Matt Benjamin
f4ce789ca1 test get_object_attributes
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2025-01-07 15:23:32 -05:00
Yuval Lifshitz
ae8bebd87f
Merge pull request #606 from yuvalif/wip-yuval-bucket-logging-flush
rgw/logging: tests for flush API

Reviewed-By: Ali Masarwe <ali.masarwa@ibm.com>
2024-12-18 13:44:24 +02:00