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
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
Casey Bodley
14768d8554
Merge pull request #601 from pritha-srivastava/wip-rgw-merge-store-tests
...
rgw/s3-tests: adding missing tests for testing delete operations (related to bucket policy and bucket public access block)
2024-12-17 16:34:03 -05:00
Seena Fallah
3145b1b0c3
HeadBucket: add read-stats query string for usage test
...
Refs: https://github.com/ceph/ceph/pull/56756
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
2024-12-12 23:59:16 +01:00
Yuval Lifshitz
79169a8b4f
rgw/logging: tests for flush API
...
as well as test for object key filters
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
2024-12-11 20:54:21 +00:00
Casey Bodley
74188c64ba
Merge pull request #576 from yuvalif/wip-yuval-bucket-logging
...
rgw/logging: basic set of tests for bucket logging
2024-12-10 11:07:44 -05:00
Yuval Lifshitz
10d46f4e33
rgw/logging: basic set of tests for bucket logging
...
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
2024-12-05 20:45:50 +00:00
Casey Bodley
7c53738f0e
Merge pull request #603 from ArbitCode/wip-raja-rgw-test-fix-68211
...
rgw:modify testcase rgw header when bucket or user quota is disabled
2024-11-25 10:27:12 -05:00
Casey Bodley
5c06fe52c7
Merge pull request #604 from cbodley/wip-69001
...
sts: remove test_get_session_token_permanent_creds_denied
2024-11-22 10:25:13 -05:00
Casey Bodley
66e8f000c9
sts: remove test_get_session_token_permanent_creds_denied
...
Fixes: https://tracker.ceph.com/issues/69001
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2024-11-22 08:41:08 -05:00
Raja Sharma
2aea98e604
rgw:modify testcase rgw header when bucket quota or user is disabled
...
By default quota is disable at user/bucket level.
if quota is disable then these value will not return so need to modify test_head_bucket_usages
'X-RGW-Quota-User-Size'
'X-RGW-Quota-User-Objects'
'X-RGW-Quota-Bucket-Size'
'X-RGW-Quota-Bucket-Objects'
to Fix: https://tracker.ceph.com/issues/68211
Signed-off-by: Raja Sharma raja@ibm.com
2024-11-20 23:09:21 +05:30
Pritha Srivastava
14f5672d09
rgw/s3tests: making the tests generic to check only
...
for 403 error code (and not specific errors) so that
the tests pass for any order of auth engines.
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
2024-11-20 09:42:18 +05:30
Pritha Srivastava
9a24fa8aba
rgw/s3-tests: adding a test to check put, get, delete and
...
then get to ensure that public block access is deleted
successfully.
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
2024-11-12 11:15:48 +05:30
Pritha Srivastava
3fa3367190
rgw/s3-test: adding test to set, get, delete and then get
...
a bucket policy to ensure that delete correctly removes
the bucket policy
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
2024-11-12 11:15:21 +05:30
Soumya Koduri
7362e522cc
Updating lifecycle_noncur* tests to include objects with instance empty
...
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
2024-10-10 00:49:03 +05:30
Casey Bodley
08df9352f9
Merge pull request #591 from cbodley/wip-68292
...
s3: test GetObject with PartNumber and SSE-C encryption
2024-10-04 17:21:04 -04:00
Casey Bodley
acc8ef43c9
s3: test GetObject with PartNumber and SSE-C encryption
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2024-09-27 15:06:21 -04:00
Casey Bodley
999d39d4db
s3: add v2 signature presigned put_object tests
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2024-09-25 11:29:01 -04:00
Tobias Urdin
ac71900ffb
Add v2 signature presigned get_object tests
...
This adds tests for get_object presigned URLs
using signature v2.
Also code formatting.
Signed-off-by: Tobias Urdin <tobias.urdin@binero.com>
2024-09-25 11:22:37 -04:00
Casey Bodley
aa82bd16ae
Merge pull request #579 from galsalomon66/tracker_65651
2024-09-03 10:53:00 -04:00
Casey Bodley
e8db6c2c16
Merge pull request #528 from pritha-srivastava/wip-rgw-oidc-tests
...
rgw: adding tests for add_client_id_to_oidc_provider
2024-08-29 10:50:47 -04:00
galsalomon66
6a775cb445
fix comments
...
Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
2024-08-28 09:48:09 +00:00
Gal Salomon
9444c29674
fix the assert per empty results
...
Signed-off-by: Gal Salomon <gal.salomon@gmail.com>
2024-08-19 16:00:16 +03:00
Pritha Srivastava
bc8c14ac12
rgw: adding tests for add_client_id_to_oidc_provider
...
and update_thumbprint_for oidc_provider.
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
2024-08-19 12:33:15 +05:30
Seena Fallah
ecf7a8a7a9
UploadPartCopy: add test for source bucket with policy
...
Ref: https://github.com/ceph/ceph/pull/59253
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
2024-08-16 14:30:17 +02:00
Casey Bodley
2e41494293
s3: reenable tenanted bucket policy test
...
the before-call hook url-encodes the ':' part of tenanted bucket names
to resolve SignatureDoesNotMatch errors
removed the list-v2 version of the test since it isn't relevant to
bucket policy test coverage
add a new test case that creates the bucket under the tenanted user,
then uses the main client to access it
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2024-08-14 08:19:41 -04:00
Casey Bodley
f61129e432
Merge pull request #572 from clwluvw/s3select-error
...
s3select: align error codes with the new AWS format
2024-07-30 13:26:23 +01:00
Casey Bodley
218f90063f
Merge pull request #574 from clwluvw/sse-c-policy
...
BucketPolicy: add test for sse-c in conditions
2024-07-26 14:09:31 +01:00
Seena Fallah
c9aded48e5
BucketPolicy: decouple encryption tests from invalid algo and unencrypted
...
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
2024-07-23 20:47:22 +02:00
Seena Fallah
87b496f25f
BucketPolicy: add test for sse-c in conditions
...
Ref. https://github.com/ceph/ceph/pull/58689
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
2024-07-19 23:07:03 +02:00
Seena Fallah
a83396cda7
BlockPublicPolicy: add test when policy has principal
...
Ref. https://tracker.ceph.com/issues/67048
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
2024-07-19 20:51:10 +02:00
Seena Fallah
93a3b6c704
PolicyStatus: add test for policy with Principal
...
Ref. https://github.com/ceph/ceph/pull/58686
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
2024-07-19 20:50:26 +02:00
Seena Fallah
474c1404e2
BucketPolicy: donot allow NotPrincipal with Allow Effect
...
Ref. https://github.com/ceph/ceph/pull/58686
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
2024-07-19 20:48:06 +02:00
Seena Fallah
2e395d78ea
s3select: align error codes with the new AWS format
...
ref. https://github.com/ceph/ceph/pull/56864
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
2024-07-17 17:04:21 +02:00
Casey Bodley
4eda9c0626
Merge pull request #570 from cbodley/wip-66705
...
test Get/HeadObject with partNumber for single-multipart upload
2024-07-05 15:51:15 +01:00
Casey Bodley
38ab4c5638
Merge pull request #561 from galsalomon66/fix_non_handled_error_resonse
...
Fix non handled error response
2024-07-05 15:04:39 +01:00
Matt Benjamin
8277a9fb9a
mark two tests that fail on dbstore
...
also add @pytest.mark.checksum for new checksum
tests
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2024-07-03 09:53:08 -04:00
Matt Benjamin
c0f0b679db
remove duplicate size assigment [rkhudov review]
...
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2024-07-03 09:53:02 -04:00
Matt Benjamin
95df503ced
add test_post_object_upload_checksum
...
this tests a two-megabyte binary upload with validated
(awscli-computed) SHA256 checksum, and also verifies failure when
a bad checksum is provided
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2024-07-03 09:52:55 -04:00
Matt Benjamin
9577cde013
add test_multipart_checksum_3parts
...
tests a full multipart upload cycle with 3 unique parts, which
verifies composite checksum computation and the logic to propagate
parts_count to ComleteMultipart
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2024-07-03 09:52:49 -04:00
Matt Benjamin
a3dbac7115
test_multipart_upload_sha256: work around failures re-trying complete-multipart
...
As described in https://tracker.ceph.com/issues/65746 , retrying complete-multipart
after having attempted to complete the same upload with a bad checksum argument
fails with an internal error.
The status code is 500, but I'm unsure if it can be retried again, or whether
the upload can be aborted later.
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2024-07-03 09:52:39 -04:00
Casey Bodley
bebdfd1ba7
test Get/HeadObject with partNumber for single-multipart upload
...
test_multipart_get_part() tests 'normal' multipart uploads. add a new
test case for a multipart upload with a single part to tests the fix
for https://tracker.ceph.com/issues/66705
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2024-06-26 10:50:42 -04:00
Sumedh A. Kulkarni
e9c5cc29e9
Fix wrong assertion of the test: test_buckets_list_ctime
...
TestName:
s3tests_boto3.functional.test_s3:test_buckets_list_ctime
Problem:
The test creates 5 buckets for a user but in an assertion check,
it asserts false if any bucket of the user has CreationTime less
than a day prior to current time.
Due to this reason the test fails if the user has pre-existing
buckets older than a day.
Solution:
Assert only on the CreationTime of buckets that were created with
test execution.
Signed-off-by: Sumedh A. Kulkarni <sumedh.a.kulkarni@seagate.com>
Co-developed-by: Bob Ham <bham12@bloomberg.net>
Signed-off-by: Bob Ham <bham12@bloomberg.net>
2024-05-14 07:12:17 -04:00
Gal Salomon
77f1334571
add handling for EventStreamError exception
...
Signed-off-by: Gal Salomon <gal.salomon@gmail.com>
2024-04-17 18:20:37 +03:00
Gal Salomon
c4c5a247eb
a change is the RGW error-response require changes in s3-tests
...
Signed-off-by: Gal Salomon <gal.salomon@gmail.com>
2024-04-16 10:10:32 +03:00
Casey Bodley
54c1488a43
Merge pull request #537 from cbodley/wip-iam-user-apis
...
iam: add tests for account-based IAM apis
2024-04-12 18:12:41 +01:00
Yuval Lifshitz
a28d46fa2a
test etag on mpu complete replies
...
this is to cover the fix of: https://tracker.ceph.com/issues/58879
Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
2024-03-25 16:45:06 +00:00
Matt Benjamin
46f60d3029
add tests for ObjectSizeGreater(Less)Than
...
Add tests for the new ObjectSizeGreaterThan and
ObjectSizeLessThan lifecycle operators.
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2024-03-15 10:30:33 -04:00
Matt Benjamin
d48530a294
add test test_lifecycle_expiration_newer_noncurrent()
...
This verifies the new NewerNoncurrentVersions lifecycle filter
operator.
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2024-03-15 10:30:33 -04:00
Casey Bodley
dfabbf5a8d
sns: add test_sns.py for simple topic testing
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2024-03-12 20:34:24 -04:00