]> git.apps.os.sepia.ceph.com Git - s3-tests.git/log
s3-tests.git
7 months agorgw/logging: fix typo in readme 607/head
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>
7 months agorgw/logging: add cleanup tests
Yuval Lifshitz [Thu, 2 Jan 2025 14:01:49 +0000 (14:01 +0000)]
rgw/logging: add cleanup tests

* use flushing api instead of sleep when possible
* test flushing concurrency

Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
7 months agorgw/logging: test log bucket encryption error
Yuval Lifshitz [Thu, 19 Dec 2024 13:50:06 +0000 (13:50 +0000)]
rgw/logging: test log bucket encryption error

Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
7 months agorgw/logging: test source and log have different names
Yuval Lifshitz [Thu, 19 Dec 2024 12:05:00 +0000 (12:05 +0000)]
rgw/logging: test source and log have different names

Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
7 months agorgw/logging: test tenant support
Yuval Lifshitz [Thu, 19 Dec 2024 10:59:07 +0000 (10:59 +0000)]
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>
7 months agoMerge pull request #571 from linuxbox2/wip-get-objattrs
Matt Benjamin [Mon, 13 Jan 2025 16:09:29 +0000 (11:09 -0500)]
Merge pull request #571 from linuxbox2/wip-get-objattrs

test get_object_attributes

8 months agoMerge pull request #549 from jzhu116-bloomberg/wip-63995
Adam Emerson [Wed, 8 Jan 2025 21:03:34 +0000 (16:03 -0500)]
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>
8 months agomark attribute tests as failing on dbstore (for now) 571/head
Matt Benjamin [Fri, 29 Nov 2024 17:31:54 +0000 (12:31 -0500)]
mark attribute tests as failing on dbstore (for now)

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 months agomore tests for GetObjectAttributes
Casey Bodley [Thu, 17 Oct 2024 22:26:07 +0000 (18:26 -0400)]
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>
8 months agomultipart fallback to create-multipart checksum algorithm
Matt Benjamin [Sun, 13 Oct 2024 14:47:17 +0000 (10:47 -0400)]
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>
8 months agotest get_object_attributes
Matt Benjamin [Sat, 6 Jul 2024 17:21:55 +0000 (13:21 -0400)]
test get_object_attributes

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 months agoMerge pull request #606 from yuvalif/wip-yuval-bucket-logging-flush
Yuval Lifshitz [Wed, 18 Dec 2024 11:44:24 +0000 (13:44 +0200)]
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>
8 months agoMerge pull request #601 from pritha-srivastava/wip-rgw-merge-store-tests
Casey Bodley [Tue, 17 Dec 2024 21:34:03 +0000 (16:34 -0500)]
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)

8 months agoMerge pull request #605 from clwluvw/read-stats
Casey Bodley [Mon, 16 Dec 2024 17:39:21 +0000 (12:39 -0500)]
Merge pull request #605 from clwluvw/read-stats

HeadBucket: add read-stats query string for usage test

9 months agoHeadBucket: add read-stats query string for usage test 605/head
Seena Fallah [Tue, 10 Dec 2024 21:21:10 +0000 (22:21 +0100)]
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>
9 months agorgw/logging: tests for flush API 606/head
Yuval Lifshitz [Wed, 11 Dec 2024 20:54:21 +0000 (20:54 +0000)]
rgw/logging: tests for flush API

as well as test for object key filters

Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
9 months agoMerge pull request #576 from yuvalif/wip-yuval-bucket-logging
Casey Bodley [Tue, 10 Dec 2024 16:07:44 +0000 (11:07 -0500)]
Merge pull request #576 from yuvalif/wip-yuval-bucket-logging

rgw/logging: basic set of tests for bucket logging

9 months agorgw/logging: basic set of tests for bucket logging 576/head
Yuval Lifshitz [Thu, 8 Aug 2024 18:00:01 +0000 (18:00 +0000)]
rgw/logging: basic set of tests for bucket logging

Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
9 months agoMerge pull request #603 from ArbitCode/wip-raja-rgw-test-fix-68211
Casey Bodley [Mon, 25 Nov 2024 15:27:12 +0000 (10:27 -0500)]
Merge pull request #603 from ArbitCode/wip-raja-rgw-test-fix-68211

rgw:modify testcase rgw header when bucket  or user quota is disabled

9 months agoMerge pull request #604 from cbodley/wip-69001
Casey Bodley [Fri, 22 Nov 2024 15:25:13 +0000 (10:25 -0500)]
Merge pull request #604 from cbodley/wip-69001

sts: remove test_get_session_token_permanent_creds_denied

9 months agoMerge pull request #602 from pritha-srivastava/wip-rgw-change-err-code
Casey Bodley [Fri, 22 Nov 2024 15:24:58 +0000 (10:24 -0500)]
Merge pull request #602 from pritha-srivastava/wip-rgw-change-err-code

rgw/s3tests: making the tests generic to check only

9 months agosts: remove test_get_session_token_permanent_creds_denied 604/head
Casey Bodley [Thu, 21 Nov 2024 15:52:44 +0000 (10:52 -0500)]
sts: remove test_get_session_token_permanent_creds_denied

Fixes: https://tracker.ceph.com/issues/69001
Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 months agorgw:modify testcase rgw header when bucket quota or user is disabled 603/head
Raja Sharma [Wed, 20 Nov 2024 17:28:18 +0000 (22:58 +0530)]
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
9 months agorgw/s3tests: making the tests generic to check only 602/head
Pritha Srivastava [Wed, 20 Nov 2024 04:12:18 +0000 (09:42 +0530)]
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>
10 months agorgw/s3-tests: adding a test to check put, get, delete and 601/head
Pritha Srivastava [Tue, 12 Nov 2024 05:36:23 +0000 (11:06 +0530)]
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>
10 months agorgw/s3-test: adding test to set, get, delete and then get
Pritha Srivastava [Tue, 12 Nov 2024 04:34:25 +0000 (10:04 +0530)]
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>
10 months agoMerge pull request #593 from soumyakoduri/wip-skoduri-lc-noncur
Soumya Koduri [Wed, 23 Oct 2024 11:54:18 +0000 (17:24 +0530)]
Merge pull request #593 from soumyakoduri/wip-skoduri-lc-noncur

Updating lifecycle_noncur* tests to include objects with instance empty

11 months agoUpdating lifecycle_noncur* tests to include objects with instance empty 593/head
Soumya Koduri [Wed, 9 Oct 2024 17:23:19 +0000 (22:53 +0530)]
Updating lifecycle_noncur* tests to include objects with instance empty

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
11 months agoMerge pull request #591 from cbodley/wip-68292
Casey Bodley [Fri, 4 Oct 2024 21:21:04 +0000 (17:21 -0400)]
Merge pull request #591 from cbodley/wip-68292

s3: test GetObject with PartNumber and SSE-C encryption

11 months agoMerge pull request #589 from tobias-urdin/v2-presigned-get
Casey Bodley [Fri, 4 Oct 2024 20:27:16 +0000 (16:27 -0400)]
Merge pull request #589 from tobias-urdin/v2-presigned-get

Add v2 signature presigned get_object tests

11 months agos3: test GetObject with PartNumber and SSE-C encryption 591/head
Casey Bodley [Fri, 27 Sep 2024 18:16:05 +0000 (14:16 -0400)]
s3: test GetObject with PartNumber and SSE-C encryption

Signed-off-by: Casey Bodley <cbodley@redhat.com>
11 months agos3: add v2 signature presigned put_object tests 589/head
Casey Bodley [Wed, 25 Sep 2024 15:29:01 +0000 (11:29 -0400)]
s3: add v2 signature presigned put_object tests

Signed-off-by: Casey Bodley <cbodley@redhat.com>
11 months agoAdd v2 signature presigned get_object tests
Tobias Urdin [Wed, 25 Sep 2024 11:18:21 +0000 (13:18 +0200)]
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>
12 months agoMerge pull request #579 from galsalomon66/tracker_65651
Casey Bodley [Tue, 3 Sep 2024 14:53:00 +0000 (10:53 -0400)]
Merge pull request #579 from galsalomon66/tracker_65651

12 months agoMerge pull request #528 from pritha-srivastava/wip-rgw-oidc-tests
Casey Bodley [Thu, 29 Aug 2024 14:50:47 +0000 (10:50 -0400)]
Merge pull request #528 from pritha-srivastava/wip-rgw-oidc-tests

rgw: adding tests for add_client_id_to_oidc_provider

12 months agofix comments 579/head
galsalomon66 [Wed, 28 Aug 2024 09:48:09 +0000 (09:48 +0000)]
fix comments

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
12 months agoMerge pull request #578 from clwluvw/upload-part-copy
Casey Bodley [Thu, 22 Aug 2024 18:39:30 +0000 (14:39 -0400)]
Merge pull request #578 from clwluvw/upload-part-copy

UploadPartCopy: add test for source bucket with policy

12 months agofix the assert per empty results
Gal Salomon [Mon, 19 Aug 2024 13:00:16 +0000 (16:00 +0300)]
fix the assert per empty results

Signed-off-by: Gal Salomon <gal.salomon@gmail.com>
12 months agorgw: adding tests for add_client_id_to_oidc_provider 528/head
Pritha Srivastava [Mon, 16 Oct 2023 05:39:45 +0000 (11:09 +0530)]
rgw: adding tests for add_client_id_to_oidc_provider
and update_thumbprint_for oidc_provider.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
12 months agoUploadPartCopy: add test for source bucket with policy 578/head
Seena Fallah [Fri, 16 Aug 2024 12:30:17 +0000 (14:30 +0200)]
UploadPartCopy: add test for source bucket with policy

Ref: https://github.com/ceph/ceph/pull/59253

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
12 months agoMerge pull request #577 from cbodley/wip-cross-tenant
Casey Bodley [Wed, 14 Aug 2024 13:44:16 +0000 (09:44 -0400)]
Merge pull request #577 from cbodley/wip-cross-tenant

s3: reenable tenanted bucket policy test

12 months agos3: reenable tenanted bucket policy test 577/head
Casey Bodley [Tue, 13 Aug 2024 14:23:19 +0000 (10:23 -0400)]
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>
13 months agoMerge pull request #572 from clwluvw/s3select-error
Casey Bodley [Tue, 30 Jul 2024 12:26:23 +0000 (13:26 +0100)]
Merge pull request #572 from clwluvw/s3select-error

s3select: align error codes with the new AWS format

13 months agoMerge pull request #574 from clwluvw/sse-c-policy
Casey Bodley [Fri, 26 Jul 2024 13:09:31 +0000 (14:09 +0100)]
Merge pull request #574 from clwluvw/sse-c-policy

BucketPolicy: add test for sse-c in conditions

13 months agoMerge pull request #573 from clwluvw/public-policy
Casey Bodley [Thu, 25 Jul 2024 14:33:14 +0000 (15:33 +0100)]
Merge pull request #573 from clwluvw/public-policy

BucketPolicy: donot allow NotPrincipal with Allow Effect

13 months agoBucketPolicy: decouple encryption tests from invalid algo and unencrypted 574/head
Seena Fallah [Tue, 23 Jul 2024 18:47:22 +0000 (20:47 +0200)]
BucketPolicy: decouple encryption tests from invalid algo and unencrypted

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
13 months agoBucketPolicy: add test for sse-c in conditions
Seena Fallah [Fri, 19 Jul 2024 21:07:03 +0000 (23:07 +0200)]
BucketPolicy: add test for sse-c in conditions

Ref. https://github.com/ceph/ceph/pull/58689

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
13 months agoBlockPublicPolicy: add test when policy has principal 573/head
Seena Fallah [Fri, 19 Jul 2024 18:51:10 +0000 (20:51 +0200)]
BlockPublicPolicy: add test when policy has principal

Ref. https://tracker.ceph.com/issues/67048

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
13 months agoPolicyStatus: add test for policy with Principal
Seena Fallah [Fri, 19 Jul 2024 18:50:26 +0000 (20:50 +0200)]
PolicyStatus: add test for policy with Principal

Ref. https://github.com/ceph/ceph/pull/58686

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
13 months agoBucketPolicy: donot allow NotPrincipal with Allow Effect
Seena Fallah [Fri, 19 Jul 2024 18:48:06 +0000 (20:48 +0200)]
BucketPolicy: donot allow NotPrincipal with Allow Effect

Ref. https://github.com/ceph/ceph/pull/58686

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
13 months agos3select: align error codes with the new AWS format 572/head
Seena Fallah [Wed, 17 Jul 2024 15:04:21 +0000 (17:04 +0200)]
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>
14 months agoMerge pull request #570 from cbodley/wip-66705
Casey Bodley [Fri, 5 Jul 2024 14:51:15 +0000 (15:51 +0100)]
Merge pull request #570 from cbodley/wip-66705

test Get/HeadObject with partNumber for single-multipart upload

14 months agoMerge pull request #561 from galsalomon66/fix_non_handled_error_resonse
Casey Bodley [Fri, 5 Jul 2024 14:04:39 +0000 (15:04 +0100)]
Merge pull request #561 from galsalomon66/fix_non_handled_error_resonse

Fix non handled error response

14 months agoMerge pull request #564 from linuxbox2/wip-cbodley-multipart-nostreaming
Casey Bodley [Thu, 4 Jul 2024 21:50:21 +0000 (22:50 +0100)]
Merge pull request #564 from linuxbox2/wip-cbodley-multipart-nostreaming

Wip cbodley multipart nostreaming

14 months agomark two tests that fail on dbstore 564/head
Matt Benjamin [Wed, 3 Jul 2024 13:42:37 +0000 (09:42 -0400)]
mark two tests that fail on dbstore

also add @pytest.mark.checksum for new checksum
tests

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
14 months agoremove duplicate size assigment [rkhudov review]
Matt Benjamin [Sat, 22 Jun 2024 21:42:21 +0000 (17:42 -0400)]
remove duplicate size assigment [rkhudov review]

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
14 months agoadd test_post_object_upload_checksum
Matt Benjamin [Fri, 3 May 2024 20:25:19 +0000 (16:25 -0400)]
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>
14 months agoadd test_multipart_checksum_3parts
Matt Benjamin [Wed, 1 May 2024 18:15:36 +0000 (14:15 -0400)]
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>
14 months agotest_multipart_upload_sha256: work around failures re-trying complete-multipart
Matt Benjamin [Wed, 1 May 2024 18:05:52 +0000 (14:05 -0400)]
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>
14 months agoadd "checksum" marker, since new checksum tests reference it
Casey Bodley [Wed, 1 May 2024 17:59:09 +0000 (13:59 -0400)]
add "checksum" marker, since new checksum tests reference it

this removes a Pytest warning during execution

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
14 months agotest Get/HeadObject with partNumber for single-multipart upload 570/head
Casey Bodley [Wed, 26 Jun 2024 14:50:28 +0000 (10:50 -0400)]
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>
14 months agoMerge pull request #569 from cbodley/wip-66655
Casey Bodley [Tue, 25 Jun 2024 13:12:21 +0000 (14:12 +0100)]
Merge pull request #569 from cbodley/wip-66655

requirements: unpin pytz version

14 months agorequirements: unpin pytz version 569/head
Casey Bodley [Mon, 24 Jun 2024 17:26:23 +0000 (13:26 -0400)]
requirements: unpin pytz version

Fixes: https://tracker.ceph.com/issues/66655
Signed-off-by: Casey Bodley <cbodley@redhat.com>
15 months agoMerge pull request #565 from bobham-bloomberg/FixListBucketsCtimeTest
Casey Bodley [Tue, 14 May 2024 15:48:37 +0000 (16:48 +0100)]
Merge pull request #565 from bobham-bloomberg/FixListBucketsCtimeTest

Fix wrong assertion of the test: `test_buckets_list_ctime`

16 months agoFix wrong assertion of the test: `test_buckets_list_ctime` 565/head
Sumedh A. Kulkarni [Tue, 5 Apr 2022 10:25:00 +0000 (04:25 -0600)]
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>
16 months agoadd handling for EventStreamError exception 561/head
Gal Salomon [Wed, 17 Apr 2024 15:20:37 +0000 (18:20 +0300)]
add handling for EventStreamError exception

Signed-off-by: Gal Salomon <gal.salomon@gmail.com>
16 months agoa change is the RGW error-response require changes in s3-tests
Gal Salomon [Tue, 16 Apr 2024 07:10:32 +0000 (10:10 +0300)]
a change is the RGW error-response require changes in s3-tests

Signed-off-by: Gal Salomon <gal.salomon@gmail.com>
17 months agoMerge pull request #537 from cbodley/wip-iam-user-apis
Casey Bodley [Fri, 12 Apr 2024 17:12:41 +0000 (18:12 +0100)]
Merge pull request #537 from cbodley/wip-iam-user-apis

iam: add tests for account-based IAM apis

17 months agoMerge pull request #557 from yuvalif/wip-yuval-mpu-etag
Casey Bodley [Wed, 27 Mar 2024 13:58:41 +0000 (13:58 +0000)]
Merge pull request #557 from yuvalif/wip-yuval-mpu-etag

test etag on mpu complete replies

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
17 months agotest etag on mpu complete replies 557/head
Yuval Lifshitz [Mon, 25 Mar 2024 16:45:06 +0000 (16:45 +0000)]
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>
17 months agoadd tests for ObjectSizeGreater(Less)Than
Matt Benjamin [Fri, 8 Mar 2024 15:10:47 +0000 (10:10 -0500)]
add tests for ObjectSizeGreater(Less)Than

Add tests for the new ObjectSizeGreaterThan and
ObjectSizeLessThan lifecycle operators.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
17 months agoadd test test_lifecycle_expiration_newer_noncurrent()
Matt Benjamin [Thu, 7 Mar 2024 19:27:13 +0000 (14:27 -0500)]
add test test_lifecycle_expiration_newer_noncurrent()

This verifies the new NewerNoncurrentVersions lifecycle filter
operator.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
18 months agosns: add test_sns.py for simple topic testing 537/head
Casey Bodley [Wed, 13 Mar 2024 00:05:15 +0000 (20:05 -0400)]
sns: add test_sns.py for simple topic testing

Signed-off-by: Casey Bodley <cbodley@redhat.com>
18 months agoiam: move iam_root, iam_alt_root fixtures to iam.py
Casey Bodley [Tue, 12 Mar 2024 19:47:51 +0000 (15:47 -0400)]
iam: move iam_root, iam_alt_root fixtures to iam.py

Signed-off-by: Casey Bodley <cbodley@redhat.com>
18 months agos3: remove test_bucket_acl_no_grants()
Casey Bodley [Fri, 1 Mar 2024 14:59:09 +0000 (09:59 -0500)]
s3: remove test_bucket_acl_no_grants()

aws doesn't consult acls for same-account access. rgw doesn't for
account users either

Fixes: https://github.com/ceph/s3-tests/issues/184
Signed-off-by: Casey Bodley <cbodley@redhat.com>
18 months agoiam: test cross-account policy with assumed role
Casey Bodley [Wed, 21 Feb 2024 14:36:06 +0000 (09:36 -0500)]
iam: test cross-account policy with assumed role

Signed-off-by: Casey Bodley <cbodley@redhat.com>
18 months agoiam: add account tests for GroupPolicy apis
Casey Bodley [Sun, 11 Feb 2024 16:51:17 +0000 (11:51 -0500)]
iam: add account tests for GroupPolicy apis

Signed-off-by: Casey Bodley <cbodley@redhat.com>
18 months agoiam: add account tests for Group apis
Casey Bodley [Sun, 11 Feb 2024 16:50:43 +0000 (11:50 -0500)]
iam: add account tests for Group apis

Signed-off-by: Casey Bodley <cbodley@redhat.com>
18 months agoiam: add account test for OpenIDConnectProvider apis
Casey Bodley [Tue, 6 Feb 2024 22:57:14 +0000 (17:57 -0500)]
iam: add account test for OpenIDConnectProvider apis

Signed-off-by: Casey Bodley <cbodley@redhat.com>
18 months agoiam: test cross-account permissions
Casey Bodley [Tue, 30 Jan 2024 23:17:17 +0000 (18:17 -0500)]
iam: test cross-account permissions

test the [iam alt root] user's access to buckets owned by [iam root]
using various policy principals and acl grantees

Signed-off-by: Casey Bodley <cbodley@redhat.com>
18 months agoconfig: add [iam alt root] for an alt account's root user
Casey Bodley [Tue, 30 Jan 2024 23:16:40 +0000 (18:16 -0500)]
config: add [iam alt root] for an alt account's root user

Signed-off-by: Casey Bodley <cbodley@redhat.com>
18 months agoiam: test managed role policy
Casey Bodley [Sun, 4 Feb 2024 23:07:09 +0000 (18:07 -0500)]
iam: test managed role policy

Signed-off-by: Casey Bodley <cbodley@redhat.com>
18 months agoiam: add account test for RolePolicy apis
Casey Bodley [Fri, 26 Jan 2024 20:51:55 +0000 (15:51 -0500)]
iam: add account test for RolePolicy apis

adds test cases for the following iam actions:
* PutRolePolicy
* GetRolePolicy
* DeleteRolePolicy
* ListRolePolicies

verified to pass against aws when an account root user's credentials are
provided in the [iam] section of s3tests.conf

Signed-off-by: Casey Bodley <cbodley@redhat.com>
18 months agoiam: add account tests for Role apis
Casey Bodley [Fri, 26 Jan 2024 20:23:40 +0000 (15:23 -0500)]
iam: add account tests for Role apis

adds test cases for the following iam actions:
* CreateRole
* GetRole
* ListRoles
* DeleteRole
* UpdateRole

verified to pass against aws when an account root user's credentials are
provided in the [iam] section of s3tests.conf

Signed-off-by: Casey Bodley <cbodley@redhat.com>
18 months agoiam: test managed user policy
Casey Bodley [Sun, 4 Feb 2024 23:06:39 +0000 (18:06 -0500)]
iam: test managed user policy

Signed-off-by: Casey Bodley <cbodley@redhat.com>
18 months agoiam: add account tests for UserPolicy apis
Casey Bodley [Fri, 12 Jan 2024 03:49:54 +0000 (22:49 -0500)]
iam: add account tests for UserPolicy apis

adds test cases for the following iam actions:
* PutUserPolicy
* GetUserPolicy
* DeleteUserPolicy
* ListUserPolicies

verified to pass against aws when an account root user's credentials are
provided in the [iam] section of s3tests.conf

Signed-off-by: Casey Bodley <cbodley@redhat.com>
18 months agoiam: test bucket policy principal for iam user with path
Casey Bodley [Tue, 2 Jan 2024 00:11:24 +0000 (19:11 -0500)]
iam: test bucket policy principal for iam user with path

Signed-off-by: Casey Bodley <cbodley@redhat.com>
18 months agoiam: add tests for AccessKey apis
Casey Bodley [Wed, 20 Dec 2023 19:17:35 +0000 (14:17 -0500)]
iam: add tests for AccessKey apis

adds test cases for the following iam actions:
* CreateAccessKey
* UpdateAccessKey
* DeleteAccessKey
* ListAccessKeys

verified to pass against aws when an account root user's credentials are
provided in the [iam] section of s3tests.conf

Signed-off-by: Casey Bodley <cbodley@redhat.com>
18 months agoiam: add tests for User apis
Casey Bodley [Tue, 19 Dec 2023 15:26:19 +0000 (10:26 -0500)]
iam: add tests for User apis

adds test cases for the following iam actions:
* CreateUser
* GetUser
* UpdateUser
* DeleteUser
* ListUsers

verified to pass against aws when an account root user's credentials are
provided in the [iam] section of s3tests.conf

Signed-off-by: Casey Bodley <cbodley@redhat.com>
18 months agoconfig: add [iam root] for an account root user
Casey Bodley [Sun, 4 Feb 2024 23:25:31 +0000 (18:25 -0500)]
config: add [iam root] for an account root user

Signed-off-by: Casey Bodley <cbodley@redhat.com>
18 months agoconfig: parse iam config during setup()
Casey Bodley [Tue, 2 Jan 2024 00:08:10 +0000 (19:08 -0500)]
config: parse iam config during setup()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
18 months agoiam: rename test_of_iam mark to iam_tenant
Casey Bodley [Fri, 12 Jan 2024 03:45:03 +0000 (22:45 -0500)]
iam: rename test_of_iam mark to iam_tenant

differentiate the test cases that expect a tenant-wide IAM api from new
ones that expect an account-wide api

Signed-off-by: Casey Bodley <cbodley@redhat.com>
18 months agoconfig: add fixtures for iam name/path prefixes
Casey Bodley [Fri, 12 Jan 2024 03:42:24 +0000 (22:42 -0500)]
config: add fixtures for iam name/path prefixes

Signed-off-by: Casey Bodley <cbodley@redhat.com>
18 months agofixtures: split setup() and configure()
Casey Bodley [Fri, 12 Jan 2024 03:38:17 +0000 (22:38 -0500)]
fixtures: split setup() and configure()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
18 months agoMerge pull request #555 from cbodley/wip-64822
Casey Bodley [Sun, 10 Mar 2024 14:43:36 +0000 (14:43 +0000)]
Merge pull request #555 from cbodley/wip-64822

test_headers: use fixture to hook request headers

18 months agotest_headers: use fixture to hook request headers 555/head
Casey Bodley [Sun, 10 Mar 2024 14:39:26 +0000 (10:39 -0400)]
test_headers: use fixture to hook request headers

Signed-off-by: Casey Bodley <cbodley@redhat.com>
18 months agoMerge pull request #547 from cbodley/wip-63724
Casey Bodley [Fri, 8 Mar 2024 19:14:19 +0000 (19:14 +0000)]
Merge pull request #547 from cbodley/wip-63724

s3: object lock tests for deletion of multipart objects

18 months agoMerge pull request #551 from clwluvw/bucket-public-block
Casey Bodley [Thu, 7 Mar 2024 15:55:37 +0000 (15:55 +0000)]
Merge pull request #551 from clwluvw/bucket-public-block

BucketPublicAccessBlock: compatibility issues

18 months agoMerge pull request #552 from alimaredia/lc-utcnow-fix
Ali Maredia [Wed, 21 Feb 2024 17:29:17 +0000 (12:29 -0500)]
Merge pull request #552 from alimaredia/lc-utcnow-fix

replace datetime.now with datetime.utcnow()

18 months agoreplace datetime.now with datetime.utcnow() 552/head
Ali Maredia [Tue, 20 Feb 2024 17:17:32 +0000 (12:17 -0500)]
replace datetime.now with datetime.utcnow()

when the local timezone is not UTC and if it is a day behind,
lifecycle_header tests fails with 2 days not equal to 1
so replacing datetime.now() with datetime.utcnow()

Signed-off-by: Ali Maredia <amaredia@redhat.com>