]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/log
s3-tests.git
17 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>
17 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

17 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>
19 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`

19 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>
20 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

20 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>
20 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>
21 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>
21 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>
21 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>
21 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>
21 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>
21 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>
21 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>
21 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>
21 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>
21 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>
21 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>
21 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>
21 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>
21 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>
21 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>
21 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>
21 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>
21 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>
21 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>
21 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>
21 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>
21 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>
21 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>
21 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>
21 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

21 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>
21 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

21 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

22 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()

22 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>
22 months agos3: object lock tests for deletion of multipart objects 547/head
Casey Bodley [Fri, 9 Feb 2024 19:22:37 +0000 (14:22 -0500)]
s3: object lock tests for deletion of multipart objects

Signed-off-by: Casey Bodley <cbodley@redhat.com>
22 months agoPublicAccessBlock: test access deny via bucket policy 551/head
Seena Fallah [Mon, 19 Feb 2024 21:43:43 +0000 (22:43 +0100)]
PublicAccessBlock: test access deny via bucket policy

Make sure 403 is returned when access is denied via s3:GetBucketPublicAccessBlock action on GetBucketPublicAccessBlock

Refs: https://github.com/ceph/ceph/pull/55652
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
22 months agoPublicAccessBlock: test 404 on no block configuration
Seena Fallah [Mon, 19 Feb 2024 21:40:12 +0000 (22:40 +0100)]
PublicAccessBlock: test 404 on no block configuration

Make sure NoSuchPublicAccessBlockConfiguration is returned when no public block is configured on bucket:

Refs: https://github.com/ceph/ceph/pull/55652
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
22 months agoMerge pull request #546 from jzhu116-bloomberg/wip-64340
Casey Bodley [Mon, 12 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Merge pull request #546 from jzhu116-bloomberg/wip-64340

add test case for object copy in versioning suspended bucket

22 months agoMerge pull request #544 from tobias-urdin/improve-presigned
Casey Bodley [Mon, 12 Feb 2024 19:51:43 +0000 (19:51 +0000)]
Merge pull request #544 from tobias-urdin/improve-presigned

Add more testing for presigned URLs

22 months agoAdd more testing for presigned URLs 544/head
Tobias Urdin [Sun, 4 Feb 2024 14:28:28 +0000 (14:28 +0000)]
Add more testing for presigned URLs

This improves the testing for presigned URLs for
both get_object and put_object when using
generate_presigned_url().

It covers the case where you pass for example
a x-amz-acl (ACL in params for generated_presigned_url)
header that should be signed.

Tests the regression in [1].

[1] https://tracker.ceph.com/issues/64308

Signed-off-by: Tobias Urdin <tobias.urdin@binero.se>
22 months agotag test_versioning_obj_suspended_copy with fails_on_dbstore 546/head
Jane Zhu [Mon, 12 Feb 2024 17:44:49 +0000 (12:44 -0500)]
tag test_versioning_obj_suspended_copy with fails_on_dbstore

Signed-off-by: Juan Zhu <jzhu4@dev-10-34-20-139.pw1.bcc.bloomberg.com>
22 months agoadd test case for object copy in versioning suspended bucket
Jane Zhu [Fri, 9 Feb 2024 04:01:12 +0000 (23:01 -0500)]
add test case for object copy in versioning suspended bucket

Signed-off-by: Juan Zhu <jzhu4@dev-10-34-20-139.pw1.bcc.bloomberg.com>
23 months agoMerge pull request #533 from cbodley/wip-45736
Ali Maredia [Thu, 11 Jan 2024 18:59:03 +0000 (13:59 -0500)]
Merge pull request #533 from cbodley/wip-45736

304 Not Modified tests still expect etag header

2 years agoMerge pull request #532 from cbodley/wip-63537
Ali Maredia [Tue, 28 Nov 2023 20:53:16 +0000 (15:53 -0500)]
Merge pull request #532 from cbodley/wip-63537

object lock: test very large RetainUntilDate

2 years agoMerge pull request #491 from cbodley/wip-get-part
Ali Maredia [Tue, 28 Nov 2023 15:48:47 +0000 (10:48 -0500)]
Merge pull request #491 from cbodley/wip-get-part

test Head/GetObject on completed multipart parts

2 years agotest Head/GetObject on completed multipart parts 491/head
Casey Bodley [Fri, 17 Feb 2023 15:03:59 +0000 (10:03 -0500)]
test Head/GetObject on completed multipart parts

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years ago304 Not Modified tests still expect etag header 533/head
Casey Bodley [Tue, 21 Nov 2023 03:47:28 +0000 (22:47 -0500)]
304 Not Modified tests still expect etag header

test case for https://tracker.ceph.com/issues/45736

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoobject lock: test very large RetainUntilDate 532/head
Casey Bodley [Wed, 15 Nov 2023 21:31:52 +0000 (16:31 -0500)]
object lock: test very large RetainUntilDate

https://tracker.ceph.com/issues/63537 reported that large dates (with
year after 2107) got truncated when written. test with a later date, and
check that get_object_retention() gives back the date we put

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #527 from cbodley/wip-63004
Casey Bodley [Mon, 9 Oct 2023 18:56:53 +0000 (19:56 +0100)]
Merge pull request #527 from cbodley/wip-63004

add test_post_object_wrong_bucket() for CVE-2023-43040

2 years agoadd test_post_object_wrong_bucket() 527/head
Casey Bodley [Wed, 27 Sep 2023 18:31:43 +0000 (14:31 -0400)]
add test_post_object_wrong_bucket()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #524 from cbodley/wip-62013
Ali Maredia [Fri, 22 Sep 2023 14:53:42 +0000 (10:53 -0400)]
Merge pull request #524 from cbodley/wip-62013

lc: test transition of plain null version

2 years agoMerge pull request #525 from cbodley/wip-62919
Ali Maredia [Fri, 22 Sep 2023 14:52:28 +0000 (10:52 -0400)]
Merge pull request #525 from cbodley/wip-62919

boto2: fix byte vs. string comparison in verify_object

2 years agoboto2: copy configured_storage_classes() fix from boto3 525/head
Casey Bodley [Thu, 21 Sep 2023 21:42:58 +0000 (17:42 -0400)]
boto2: copy configured_storage_classes() fix from boto3

some boto2 storage class tests are failing because the list returned by
configured_storage_classes() included an empty string

the boto3 version had an extra line that removes empty values; copy that
for boto2

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoboto2: fix byte vs. string comparison in verify_object
Casey Bodley [Thu, 21 Sep 2023 14:00:37 +0000 (10:00 -0400)]
boto2: fix byte vs. string comparison in verify_object

the storage class tests were failing on comparisons between the input
data and output data:

AssertionError: assert 'oFbdZvtRj' == b'oFbdZvtRj'

convert the byte representation back to string for comparison

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #523 from tobias-urdin/http-options-presigned
Casey Bodley [Mon, 21 Aug 2023 19:52:49 +0000 (15:52 -0400)]
Merge pull request #523 from tobias-urdin/http-options-presigned

Add test to verify HTTP OPTIONS on presigned URL

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2 years agoAdd test to verify HTTP OPTIONS on presigned URL 523/head
Tobias Urdin [Wed, 2 Aug 2023 09:28:20 +0000 (09:28 +0000)]
Add test to verify HTTP OPTIONS on presigned URL

Related: https://tracker.ceph.com/issues/62033

Signed-off-by: Tobias Urdin <tobias.urdin@binero.com>
2 years agolc: test transition of plain null version 524/head
Casey Bodley [Fri, 4 Aug 2023 13:54:50 +0000 (09:54 -0400)]
lc: test transition of plain null version

for validating the fix of https://tracker.ceph.com/issues/62013

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #522 from nadavMiz/boto3-tests-readme-clerify
Casey Bodley [Thu, 6 Jul 2023 15:26:28 +0000 (11:26 -0400)]
Merge pull request #522 from nadavMiz/boto3-tests-readme-clerify

Remove filtering from boto3 test example for simplicity

2 years agoremove filtering from boto3 test example for simplicity 522/head
nadav mizrahi [Thu, 29 Jun 2023 13:55:21 +0000 (16:55 +0300)]
remove filtering from boto3 test example for simplicity

2 years agoMerge pull request #517 from cbodley/wip-rm-rgw-stat-bucket-headers
Soumya Koduri [Mon, 3 Jul 2023 04:53:23 +0000 (10:23 +0530)]
Merge pull request #517 from cbodley/wip-rm-rgw-stat-bucket-headers

remove reliance on x-rgw-object-count and x-rgw-bytes-used headers

2 years agoMerge pull request #521 from soumyakoduri/wip-skoduri-setattr
Soumya Koduri [Fri, 30 Jun 2023 12:09:27 +0000 (17:39 +0530)]
Merge pull request #521 from soumyakoduri/wip-skoduri-setattr

Add testcase to verify obj mtime post setattrs

2 years agoAdd testcase to verify obj mtime post setattrs 521/head
Soumya Koduri [Wed, 28 Jun 2023 07:42:54 +0000 (13:12 +0530)]
Add testcase to verify obj mtime post setattrs

Object mtime should not change for any attr changes unless
its a copy operation. Verify the same using PutObjectACL op.

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
2 years agoremove reliance on x-rgw-object-count and x-rgw-bytes-used headers 517/head
Casey Bodley [Wed, 21 Jun 2023 17:20:53 +0000 (13:20 -0400)]
remove reliance on x-rgw-object-count and x-rgw-bytes-used headers

stop using head_bucket() to fetch these response headers, and use
list_objects_v2() instead to count objects and sizes

Fixes: #315
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #513 from galsalomon66/using_get_bucket_name
Ali Maredia [Wed, 21 Jun 2023 19:32:59 +0000 (15:32 -0400)]
Merge pull request #513 from galsalomon66/using_get_bucket_name

Using get bucket name

2 years agoMerge pull request #266 from theanalyst/wip-38700-range
Casey Bodley [Wed, 14 Jun 2023 20:11:52 +0000 (16:11 -0400)]
Merge pull request #266 from theanalyst/wip-38700-range

add multipart ranges to encryption tests

2 years agoMerge pull request #514 from cbodley/wip-tox-readme
Ali Maredia [Mon, 12 Jun 2023 18:08:01 +0000 (14:08 -0400)]
Merge pull request #514 from cbodley/wip-tox-readme

readme: change fails_on_aws back to fails_on_rgw

2 years agoreadme: change fails_on_aws back to fails_on_rgw 514/head
Casey Bodley [Mon, 12 Jun 2023 17:33:44 +0000 (13:33 -0400)]
readme: change fails_on_aws back to fails_on_rgw

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge branch 'master' into using_get_bucket_name 513/head
Gal Salomon [Thu, 8 Jun 2023 07:19:37 +0000 (10:19 +0300)]
Merge branch 'master' into using_get_bucket_name

2 years agoinstead of hard-coded bucket-name using get_bucket_name.merging PR #488 alphaprinz
galsalomon66 [Thu, 8 Jun 2023 07:07:54 +0000 (10:07 +0300)]
instead of hard-coded bucket-name using get_bucket_name.merging PR #488 alphaprinz

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
2 years agoboto3/test_s3: add ranges around part boundary for encryption tests 266/head
Abhishek Lekshmanan [Tue, 26 Mar 2019 10:24:06 +0000 (11:24 +0100)]
boto3/test_s3: add ranges around part boundary for encryption tests

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2 years agoboto3/test_s3: range encoding helper function takes a size argument
Abhishek Lekshmanan [Tue, 26 Mar 2019 10:22:00 +0000 (11:22 +0100)]
boto3/test_s3: range encoding helper function takes a size argument

This is to avoid a get_object call for every range check as the object size will
not change during this duration and we'd most likely already know the object
sizes beforehand

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2 years agosse: add sse-c test with unaligned multipart parts
Casey Bodley [Fri, 22 Mar 2019 15:41:44 +0000 (11:41 -0400)]
sse: add sse-c test with unaligned multipart parts

Fixes: http://tracker.ceph.com/issues/38700
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #463 from cfsnyder/wip-56646
Casey Bodley [Wed, 17 May 2023 18:33:11 +0000 (14:33 -0400)]
Merge pull request #463 from cfsnyder/wip-56646

Add test_versioning_concurrent_multi_object_delete

2 years agoAdd test_versioning_concurrent_multi_object_delete 463/head
Cory Snyder [Thu, 21 Jul 2022 18:33:51 +0000 (18:33 +0000)]
Add test_versioning_concurrent_multi_object_delete

Tests that concurrent multi-object delete requests which specify
the same versioned object instances return successful object
responses within response body.

relates to: https://tracker.ceph.com/issues/56646

Signed-off-by: Cory Snyder <csnyder@iland.com>
2 years agoMerge pull request #506 from galsalomon66/json_s3tests
Casey Bodley [Mon, 15 May 2023 14:36:15 +0000 (10:36 -0400)]
Merge pull request #506 from galsalomon66/json_s3tests

Json s3tests

2 years agoMerge pull request #505 from cbodley/wip-59218
Ali Maredia [Tue, 11 Apr 2023 02:41:11 +0000 (22:41 -0400)]
Merge pull request #505 from cbodley/wip-59218

test_sse_s3_default_multipart_upload verifies encryption header

2 years agoprogress nessage is sent back upon processing the object, the change make sure it... 506/head
galsalomon66 [Mon, 10 Apr 2023 09:26:59 +0000 (12:26 +0300)]
progress nessage is sent back upon processing the object, the change make sure it stay with the max result

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
2 years agomodifying of the run_s3select routine; to handle the different statuses (progress...
galsalomon66 [Sun, 9 Apr 2023 12:02:24 +0000 (15:02 +0300)]
modifying of the run_s3select routine; to handle the different statuses (progress,stats,end)

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
2 years agoMerge pull request #501 from mkogan1/wip-chunked-trans-enc
Casey Bodley [Fri, 7 Apr 2023 13:19:38 +0000 (09:19 -0400)]
Merge pull request #501 from mkogan1/wip-chunked-trans-enc

Test object PUT with chunked transfer encoding

2 years agoupon removing the payload tag, the response index should be changed also
galsalomon66 [Tue, 4 Apr 2023 22:30:00 +0000 (01:30 +0300)]
upon removing the payload tag, the response index should be changed also

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
2 years agoMerge pull request #503 from cbodley/wip-multi-delete
Ali Maredia [Fri, 31 Mar 2023 18:26:25 +0000 (14:26 -0400)]
Merge pull request #503 from cbodley/wip-multi-delete

boto3: multi-object-delete tests use client.delete_objects()

2 years agotest_sse_s3_default_multipart_upload verifies encryption header 505/head
Casey Bodley [Thu, 30 Mar 2023 18:27:27 +0000 (14:27 -0400)]
test_sse_s3_default_multipart_upload verifies encryption header

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #502 from cbodley/wip-58960
Casey Bodley [Tue, 21 Mar 2023 21:09:04 +0000 (17:09 -0400)]
Merge pull request #502 from cbodley/wip-58960

s3website: collections.Container removed from python3.10

2 years agoMerge pull request #495 from cbodley/wip-get-object-torrent
Ali Maredia [Tue, 14 Mar 2023 16:40:35 +0000 (12:40 -0400)]
Merge pull request #495 from cbodley/wip-get-object-torrent

add test_get_object_torrent

2 years agoboto3: multi-object-delete tests use client.delete_objects() 503/head
Casey Bodley [Mon, 13 Mar 2023 17:00:25 +0000 (13:00 -0400)]
boto3: multi-object-delete tests use client.delete_objects()

when the tests were converted from boto2, they were rewritten as loops
over client.delete_object(). switch back to multi-delete

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agos3website: collections.Container removed from python3.10 502/head
Casey Bodley [Sun, 12 Mar 2023 19:33:34 +0000 (15:33 -0400)]
s3website: collections.Container removed from python3.10

Fixes: https://tracker.ceph.com/issues/58960
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoadd test_get_object_torrent 495/head
Casey Bodley [Sun, 19 Feb 2023 17:32:47 +0000 (12:32 -0500)]
add test_get_object_torrent

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #500 from soumyakoduri/wip-skoduri-lifecycle
Casey Bodley [Wed, 8 Mar 2023 13:48:51 +0000 (08:48 -0500)]
Merge pull request #500 from soumyakoduri/wip-skoduri-lifecycle

lifecycle: Fix test_lifecycle_expiration_header_* testcases

2 years agotest object PUT with chunked transfer enconding 501/head
Mark Kogan [Tue, 7 Mar 2023 14:08:51 +0000 (14:08 +0000)]
test object PUT with chunked transfer enconding

Before the RGW fix PR was responding with 411 instead of 200

RGW fix PR: https://github.com/ceph/ceph/pull/50235

Signed-off-by: Mark Kogan <mkogan@redhat.com>
2 years agolifecycle: Fix test_lifecycle_expiration_header_* testcases 500/head
Soumya Koduri [Tue, 7 Mar 2023 09:47:47 +0000 (15:17 +0530)]
lifecycle: Fix test_lifecycle_expiration_header_* testcases

Few checks were incorrectly mapped when switched to 'assert'. This
commit fixes the same.

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
2 years agoMerge pull request #499 from soumyakoduri/wip-bz58916
Casey Bodley [Mon, 6 Mar 2023 17:59:35 +0000 (12:59 -0500)]
Merge pull request #499 from soumyakoduri/wip-bz58916

dbstore: add back missing 'fails_on_dbstore' tag

2 years agoMerge pull request #490 from cbodley/wip-489
Casey Bodley [Mon, 6 Mar 2023 14:19:56 +0000 (09:19 -0500)]
Merge pull request #490 from cbodley/wip-489

boto3: list_versions() omits empty KeyMarker/VersionIdMarker

2 years agodbstore: add back missing 'fails_on_dbstore' tag 499/head
Soumya Koduri [Mon, 6 Mar 2023 14:18:01 +0000 (19:48 +0530)]
dbstore: add back missing 'fails_on_dbstore' tag

Mark testcase "test_lifecycle_expiration_header_and_tags_head" as
fails_on_dbstore

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
2 years agoMerge pull request #498 from m-ildefons/wip/tox-ini-fixes
Casey Bodley [Sun, 5 Mar 2023 15:06:56 +0000 (10:06 -0500)]
Merge pull request #498 from m-ildefons/wip/tox-ini-fixes

QoL: Fix tox.ini syntax and other minor things

2 years agoQoL: Fix tox.ini syntax and other minor things 498/head
Moritz Röhrich [Tue, 28 Feb 2023 11:19:54 +0000 (12:19 +0100)]
QoL: Fix tox.ini syntax and other minor things

- Fix tox.ini syntax

Modern tox versions require the expected environment variables to be
listed one by one on separate lines in tox.ini

- Add `venv` to list of ignored names for git

This is a common name for a local Python virtual environment. Less
typing than `virtualenv`

- Add `tox` to requirements.txt

Installing `tox` via `pip` has the advantage of including it in the
virtual environment, thus avoiding trouble on operating systems shipping
by default with python3.6 or older. It's also nice that `pip install -r
requirements.txt` is now sufficient to set up the testing environment,
after initializing the virtual environment with a moder-enough python
version.

Signed-off-by: Moritz Röhrich <moritz.rohrich@suse.com>
2 years agoMerge pull request #496 from cbodley/wip-58762
Soumya Koduri [Mon, 27 Feb 2023 05:40:40 +0000 (11:10 +0530)]
Merge pull request #496 from cbodley/wip-58762

iam: add back missing fails_on_dbstore tags