]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/log
s3-tests.git
2 years agoUse get_new_bucket_name() in select tests. 488/head
Amit Prinz Setter [Sun, 29 Jan 2023 07:25:58 +0000 (09:25 +0200)]
Use get_new_bucket_name() in select tests.

Signed-off-by: Amit Prinz Setter <aprinzse@redhat.com>
2 years agoMerge pull request #486 from cbodley/wip-58365
Casey Bodley [Fri, 27 Jan 2023 14:20:40 +0000 (09:20 -0500)]
Merge pull request #486 from cbodley/wip-58365

test_s3: remove test_user_policy()

Reviewed-by: Pritha Srivastava <prsrivas@redhat.com>
2 years agotest_s3: remove test_user_policy() 486/head
Casey Bodley [Thu, 26 Jan 2023 16:23:03 +0000 (11:23 -0500)]
test_s3: remove test_user_policy()

this has been failing consistently in local testing. test_sts.py has
lots of user policy test coverage, so this test case in test_s3.py is
superfluous

Fixes: https://tracker.ceph.com/issues/58365
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoMerge pull request #482 from cbodley/wip-tox-pytest
Ali Maredia [Wed, 25 Jan 2023 22:46:57 +0000 (17:46 -0500)]
Merge pull request #482 from cbodley/wip-tox-pytest

replace deprecated nose with pytest

2 years agotest_headers: add custom marks for auth_common/aws2/aws4 482/head
Casey Bodley [Wed, 25 Jan 2023 22:04:04 +0000 (17:04 -0500)]
test_headers: add custom marks for auth_common/aws2/aws4

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoremove boostrap
Casey Bodley [Sun, 22 Jan 2023 16:50:40 +0000 (11:50 -0500)]
remove boostrap

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agocleanup duplicate lines
Casey Bodley [Sun, 22 Jan 2023 00:48:29 +0000 (19:48 -0500)]
cleanup duplicate lines

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoremove nose dependency from requirements.txt
Casey Bodley [Sat, 21 Jan 2023 19:25:30 +0000 (14:25 -0500)]
remove nose dependency from requirements.txt

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agonose: remove nose attrs and imports
Casey Bodley [Sat, 21 Jan 2023 19:24:31 +0000 (14:24 -0500)]
nose: remove nose attrs and imports

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agopytest: replace nose eq() with assert ==
Casey Bodley [Sat, 21 Jan 2023 19:05:46 +0000 (14:05 -0500)]
pytest: replace nose eq() with assert ==

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agopytest: replace nose SkipTest with pytest.skip()
Casey Bodley [Sat, 21 Jan 2023 18:37:40 +0000 (13:37 -0500)]
pytest: replace nose SkipTest with pytest.skip()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agopytest: replace @nose.with_setup with fixtures
Casey Bodley [Fri, 20 Jan 2023 22:04:30 +0000 (17:04 -0500)]
pytest: replace @nose.with_setup with fixtures

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agopytest: add custom marks for each nose @attr
Casey Bodley [Fri, 20 Jan 2023 19:35:45 +0000 (14:35 -0500)]
pytest: add custom marks for each nose @attr

and register them in pytest.ini

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agoremove tests tagged fails_strict_rfc2616
Casey Bodley [Fri, 20 Jan 2023 20:34:47 +0000 (15:34 -0500)]
remove tests tagged fails_strict_rfc2616

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agopytest: add global configfile and autouse teardown fixtures
Casey Bodley [Fri, 20 Jan 2023 19:44:08 +0000 (14:44 -0500)]
pytest: add global configfile and autouse teardown fixtures

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2 years agopytest: add tox.ini to run pytest, update README
Casey Bodley [Fri, 20 Jan 2023 20:24:07 +0000 (15:24 -0500)]
pytest: add tox.ini to run pytest, update README

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #476 from cbodley/wip-botocore-sigv2
Casey Bodley [Wed, 23 Nov 2022 18:04:13 +0000 (13:04 -0500)]
Merge pull request #476 from cbodley/wip-botocore-sigv2

pin botocore to resolve v2 signature failures

3 years agopin botocore to resolve v2 signature failures 476/head
Casey Bodley [Tue, 22 Nov 2022 19:32:57 +0000 (14:32 -0500)]
pin botocore to resolve v2 signature failures

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #472 from galsalomon66/fixes_related_to_new_csv_parser_2
Ali Maredia [Tue, 18 Oct 2022 18:52:09 +0000 (14:52 -0400)]
Merge pull request #472 from galsalomon66/fixes_related_to_new_csv_parser_2

new CSV parser has some impact on engine results

3 years agoremove comment 472/head
galsalomon66 [Mon, 17 Oct 2022 21:37:29 +0000 (00:37 +0300)]
remove comment

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
3 years agoMerge pull request #473 from cbodley/wip-copyobj-tails
Ali Maredia [Thu, 6 Oct 2022 20:57:39 +0000 (16:57 -0400)]
Merge pull request #473 from cbodley/wip-copyobj-tails

add test_object_copy_16m to test refcounting of tail objects

3 years agoadd test_object_copy_16m to test refcounting of tail objects 473/head
Casey Bodley [Fri, 30 Sep 2022 16:28:28 +0000 (12:28 -0400)]
add test_object_copy_16m to test refcounting of tail objects

i don't think any of our CopyObj test cases were large enough to have
tail objects, so weren't exercising our tail object ref counting
strategy

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agothe use of std::to_string change the double presentation(not accuracy)
galsalomon66 [Sun, 18 Sep 2022 07:46:04 +0000 (10:46 +0300)]
the use of std::to_string change the double presentation(not accuracy)

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
3 years agothe upgraded CSV parser has some impact on engine result. (redundant comma, quote...
galsalomon66 [Mon, 12 Sep 2022 12:33:35 +0000 (15:33 +0300)]
the upgraded CSV parser has some impact on engine result. (redundant comma, quote behavior)

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
3 years agoMerge pull request #471 from soumyakoduri/wip-skoduri-cloud
Soumya Koduri [Tue, 6 Sep 2022 17:07:37 +0000 (22:37 +0530)]
Merge pull request #471 from soumyakoduri/wip-skoduri-cloud

cloud-transition: Adjust lc wait time

3 years agocloud-transition: Adjust lc wait time 471/head
Soumya Koduri [Mon, 5 Sep 2022 08:42:03 +0000 (14:12 +0530)]
cloud-transition: Adjust lc wait time

Fixes: https://tracker.ceph.com/issues/57401
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agoMerge pull request #439 from zalsader/patch-1
Soumya Koduri [Thu, 25 Aug 2022 05:10:53 +0000 (10:40 +0530)]
Merge pull request #439 from zalsader/patch-1

Add support for rocky linux in bootstrap

3 years agoMerge pull request #469 from soumyakoduri/dbstore_test_master
Soumya Koduri [Fri, 19 Aug 2022 04:58:14 +0000 (10:28 +0530)]
Merge pull request #469 from soumyakoduri/dbstore_test_master

dbstore: Update the tests marked 'fails_on_dbstore'

3 years agodbstore: Update the tests marked 'fails_on_dbstore' 469/head
Soumya Koduri [Wed, 15 Jun 2022 18:38:35 +0000 (00:08 +0530)]
dbstore: Update the tests marked 'fails_on_dbstore'

Tag/Untag testcases failing on dbstore as per latest run against main

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agoMerge pull request #461 from ifed01/origin/wip-ifed-fix-s3-loc-tests
Casey Bodley [Wed, 3 Aug 2022 15:30:14 +0000 (11:30 -0400)]
Merge pull request #461 from ifed01/origin/wip-ifed-fix-s3-loc-tests

Test case for locked and "marked-deleted" object version removal

3 years agoMerge pull request #464 from shriya-deshmukh/delete-bucket-tagging-test-case
Ali Maredia [Fri, 29 Jul 2022 17:35:56 +0000 (13:35 -0400)]
Merge pull request #464 from shriya-deshmukh/delete-bucket-tagging-test-case

rgw/s3_boto3: Added http status code verification for DeleteBucketTagging case.

3 years agorgw/s3_boto3: Added http status code verification for DeleteBucketTagging 464/head
Shriya Deshmukh [Wed, 27 Jul 2022 14:43:11 +0000 (08:43 -0600)]
rgw/s3_boto3: Added http status code verification for DeleteBucketTagging
case.

Updated test_set_bucket_tagging test for verifying the http status code
for DeleteBucketTagging case.

Related CEPH PR: https://github.com/ceph/ceph/pull/47262

Signed-off-by: Shriya Deshmukh <shriya.deshmukh@seagate.com>
3 years agoMerge pull request #460 from soumyakoduri/user_policy_tests
Ali Maredia [Thu, 21 Jul 2022 18:01:08 +0000 (14:01 -0400)]
Merge pull request #460 from soumyakoduri/user_policy_tests

Fix User Policy test failures on dbstore

3 years agoFix User Policy test failures on dbstore 460/head
Soumya Koduri [Wed, 20 Jul 2022 16:26:28 +0000 (21:56 +0530)]
Fix User Policy test failures on dbstore

Tag User policy tests failing on dbstore as 'fails_on_dbstore'

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agoTest case for locked and "marked-deleted" object version removal. 461/head
Igor Fedotov [Fri, 15 Jul 2022 15:55:51 +0000 (18:55 +0300)]
Test case for locked and "marked-deleted" object version removal.

Reproduces: https://tracker.ceph.com/issues/55766
Signed-off by: Igor Fedotov <igor.fedotov@croit.io>

3 years agoMerge pull request #453 from Seagate/master
Ali Maredia [Tue, 28 Jun 2022 16:03:24 +0000 (12:03 -0400)]
Merge pull request #453 from Seagate/master

Contributing User Policy tests

3 years agoAdded put/get/list/delete User Policy Tests 453/head
Ravindra Choudhari [Mon, 27 Jun 2022 06:24:27 +0000 (11:54 +0530)]
Added put/get/list/delete User Policy Tests

c4d30d7 Ravindra Choudhari Mon, 27 Jun 2022 removing region name
4a13f58 Ravindra Choudhari Thu, 16 Jun 2022 Updating readme file (#15)
18bc152 Ravindra Choudhari Tue, 14 Jun 2022 Adding attr test_of_iam to all user policy tests (#13)
03f520a Ravindra Choudhari Tue, 14 Jun 2022 resolving review comments (#12)
7cf2823 Ravindra Choudhari Mon, 13 Jun 2022 added IAM policy test section in README.rst (#11)
563f3ea Ravindra Choudhari Fri, 10 Jun 2022 adding failing three tests back with attr @fails_on_rgw (#10)
696dd2e Ravindra Choudhari  Mon, 6 Jun 2022 changes as per review comments
3d63dfd Ravindra Choudhari  Mon, 6 Jun 2022 Fixed review comments (#8)
9492f69 Ravindra Choudhari Fri, 3 Jun 2022 Fixed review comments (#7)
74095dc Ketan Arlulkar      Wed, 1 Jun 2022 Fixed review comments (#6)
942fb4f Ketan Arlulkar      Wed, 1 Jun 2022 Added Tests for conflicting policies and IAM actions (#4)
ad5b5ae Ravindra Choudhari  Tue, 31 May 2022 IAM policies s3 actions (#5)
6515ec6 Ketan Arlulkar      Fri, 27 May 2022 Corrected eq import
40a2841 Ravindra Choudhari  Tue, 17 May 2022 resolving conflicts
f53a5c1 Ravindra Choudhari  Tue, 17 May 2022 added cleanup
747d563 Ketan Arlulkar      Tue, 17 May 2022 Added cleanup/Delete Policy
d1cc1d8 Ketan Arlulkar      Mon, 16 May 2022 Fixed review comments
1ec43a2 Ravindra Choudhari  Mon, 16 May 2022 delete user policy tests
a01722e Ravindra Choudhari  Mon, 16 May 2022 get user policy tests
ff9d676 Ketan Arlulkar      Fri, 13 May 2022 Removed TEST IDs
d261400 Ketan Arlulkar      Tue, 10 May 2022 Put User Policy & List User Policy Tests

Signed-off-by: Ravindra Choudhari <ravindra.choudhari@seagate.com>
3 years agoMerge pull request #457 from cbodley/wip-bad-tests
Ali Maredia [Mon, 6 Jun 2022 18:24:41 +0000 (14:24 -0400)]
Merge pull request #457 from cbodley/wip-bad-tests

remove tests that fail on boto3's parameter validation

3 years agoremove tests that fail on boto3's parameter validation 457/head
Casey Bodley [Thu, 2 Jun 2022 16:25:24 +0000 (12:25 -0400)]
remove tests that fail on boto3's parameter validation

Fixes: https://tracker.ceph.com/issues/55193
Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #452 from cbodley/wip-no-such-tag-set
Daniel Gryniewicz [Wed, 18 May 2022 18:34:14 +0000 (14:34 -0400)]
Merge pull request #452 from cbodley/wip-no-such-tag-set

fix GetBucketTagging error code

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
3 years agofix GetBucketTagging error code 452/head
Casey Bodley [Wed, 18 May 2022 13:40:14 +0000 (09:40 -0400)]
fix GetBucketTagging error code

related to https://tracker.ceph.com/issues/55460

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agoAdd support for rocky linux 439/head
Zuhair AlSader [Wed, 13 Apr 2022 04:10:53 +0000 (00:10 -0400)]
Add support for rocky linux

Signed-off-by: Zuhair AlSader <zuhair.alsader@seagate.com>
3 years agoMerge pull request #450 from soumyakoduri/dbstore-tests
Soumya Koduri [Wed, 11 May 2022 18:03:13 +0000 (23:33 +0530)]
Merge pull request #450 from soumyakoduri/dbstore-tests

Tag sse* tests with 'fails_on_dbstore' attr

3 years agoMerge pull request #442 from soumyakoduri/cloudtier_tests
Soumya Koduri [Wed, 11 May 2022 08:45:38 +0000 (14:15 +0530)]
Merge pull request #442 from soumyakoduri/cloudtier_tests

Adjust wait time for cloud-transition test failures

3 years agoTag sse* tests with 'fails_on_dbstore' attr 450/head
Soumya Koduri [Tue, 10 May 2022 19:21:42 +0000 (00:51 +0530)]
Tag sse* tests with 'fails_on_dbstore' attr

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agoMerge pull request #449 from cbodley/wip-cloud-config-sample
Soumya Koduri [Tue, 10 May 2022 05:34:26 +0000 (11:04 +0530)]
Merge pull request #449 from cbodley/wip-cloud-config-sample

s3tests.conf.SAMPLE: comment out [s3 cloud] section

3 years agos3tests.conf.SAMPLE: comment out [s3 cloud] section 449/head
Casey Bodley [Mon, 9 May 2022 21:19:44 +0000 (17:19 -0400)]
s3tests.conf.SAMPLE: comment out [s3 cloud] section

Signed-off-by: Casey Bodley <cbodley@redhat.com>
3 years agoAdjust wait time for cloud-transition test failures 442/head
Soumya Koduri [Wed, 13 Apr 2022 09:58:00 +0000 (15:28 +0530)]
Adjust wait time for cloud-transition test failures

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agoMerge pull request #440 from mdw-at-linuxbox/sse-s3-5
Ali Maredia [Mon, 2 May 2022 20:58:55 +0000 (16:58 -0400)]
Merge pull request #440 from mdw-at-linuxbox/sse-s3-5

changes for sse s3.

Reviewed-by: Ali Maredia <amaredia@redhat.com>
3 years agosse s3 jumbo patch - all in one fixes for sse-s3 logic 440/head
Priya Sehgal [Fri, 30 Jul 2021 11:54:16 +0000 (17:24 +0530)]
sse s3 jumbo patch - all in one fixes for sse-s3 logic

original tests by Priya Sehgal <priya.sehgal@flipkart.com>:
rgw/s3_boto3: Tests added for SSE-S3 (GET, PUT, HEAD, MPU).

Additions by Casey Bodley <cbodley@redhat.com>:
add 'sse-s3' tag to test cases
sse: add _put_bucket_encryption() helper function
sse: document test cases with default bucket encryption
sse: expects encryption response header on put/get
sse: add 8MB default-encrypted upload
sse: test uploads that request x-amz-server-side-encryption=AES256

Lastly all my changes (Marcus Watts <mwatts@redhat.com>):

remove obsolete test - do it only in boto3 now.

Combine or rename duplicated function names.
Giving more than one test the same name is a Bad Thing(tm).

sse: expand test_bucket_policy_put_obj_enc, and _put_bucket_encryption

test_bucket_policy_put_obj_enc was testing too many things at once.
new tests:

* customer encryption and sse-s3: should fail
* customer encryption and sse-kms: should fail
* deny if not sse-s3: no-enc fails, sse-s3 succeeds.
* deny if not sse-s3: kms fails
  deny if not sse-ksm: no-enc fails, sse-kms succeeds.
  deny if not sse-ksm: s3 fails

_put_bucket_encryption was only testing sse-s3.
* test both these variations: sse-s3 and sse-kms

Note:
* these tests will fail on pre-sse-s3 ceph.

python3: comment out all boto3.set_stream_logger() calls
They made too much output.

Signed-off-by: Marcus Watts <mwatts@redhat.com>
3 years agoMerge pull request #441 from soumyakoduri/dbstore-tests
Soumya Koduri [Thu, 28 Apr 2022 17:53:02 +0000 (23:23 +0530)]
Merge pull request #441 from soumyakoduri/dbstore-tests

Tag testcases failing on dbstore with 'fails_on_dbstore' attr

3 years agoTag testcases failing on dbstore with 'fails_on_dbstore' attr 441/head
Soumya Koduri [Wed, 13 Apr 2022 09:58:00 +0000 (15:28 +0530)]
Tag testcases failing on dbstore with 'fails_on_dbstore' attr

To be able to successfully run s3tests on dbstore backend in teuthology,
mark all the s3-tests currently failing on it with 'fails_on_dbstore' attr

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agoMerge pull request #435 from soumyakoduri/lc_tests
Casey Bodley [Tue, 5 Apr 2022 19:30:08 +0000 (15:30 -0400)]
Merge pull request #435 from soumyakoduri/lc_tests

lifecycle: Addressing lc spurious failures

3 years agolifecycle: Adjust lc wait time 435/head
Soumya Koduri [Mon, 21 Mar 2022 19:21:30 +0000 (00:51 +0530)]
lifecycle: Adjust lc wait time

Adjust wait time to fix spurious failures reported -
https://github.com/ceph/ceph/pull/40703#issuecomment-1060811704
http://qa-proxy.ceph.com/teuthology/mbenjamin-2022-02-23_15:42:19-rgw-wip-rgwlc-noreset-distro-basic-smithi/6703349/teuthology.log

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agoMerge pull request #429 from soumyakoduri/lc_tests
Casey Bodley [Tue, 8 Feb 2022 17:29:04 +0000 (12:29 -0500)]
Merge pull request #429 from soumyakoduri/lc_tests

lifecycle/deletemarker_expiration: Increase timer window

3 years agolifecycle/deletemarker_expiration: Increase timer window 429/head
Soumya Koduri [Mon, 7 Feb 2022 17:54:34 +0000 (23:24 +0530)]
lifecycle/deletemarker_expiration: Increase timer window

Increase wait time in test_lifecycle_deletemarker_expiration(..)
to avoid any spurious failure.

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agoMerge pull request #421 from soumyakoduri/lc_tests
Casey Bodley [Fri, 4 Feb 2022 16:01:42 +0000 (11:01 -0500)]
Merge pull request #421 from soumyakoduri/lc_tests

Enable Lifecycle tests

3 years agoEnable lifecycle tests 421/head
Soumya Koduri [Fri, 17 Dec 2021 11:25:49 +0000 (16:55 +0530)]
Enable lifecycle tests

Add an option to configure lc debug interval and adjust lifecycle
tests sleep as per the value set.

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agoAdd testcases for rgw cloudtransition feature
Soumya Koduri [Mon, 6 Dec 2021 05:23:18 +0000 (10:53 +0530)]
Add testcases for rgw cloudtransition feature

Feature PR: https://github.com/ceph/ceph/pull/35100

Also ported lc testcases from boto2 to boto3

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
3 years agoMerge pull request #424 from psathyan/fix_check_grants
Ali Maredia [Tue, 18 Jan 2022 22:02:35 +0000 (17:02 -0500)]
Merge pull request #424 from psathyan/fix_check_grants

Improving check_grants reliability

3 years agoMerge pull request #428 from TRYTOBE8TME/wip-sts-error
Casey Bodley [Tue, 18 Jan 2022 14:18:50 +0000 (09:18 -0500)]
Merge pull request #428 from TRYTOBE8TME/wip-sts-error

s3tests_boto3/test_sts: Changing code for proper cleanup

3 years agotest_sts: Changing code for proper cleanup 428/head
Kalpesh Pandya [Thu, 6 Jan 2022 07:29:49 +0000 (12:59 +0530)]
test_sts: Changing code for proper cleanup

This solves: https://tracker.ceph.com/issues/53090

The solution is: We need to delete the role_policy and
user_policy attached user which was causing the failure.

Signed-off-by: Kalpesh Pandya <kapandya@redhat.com>
3 years agoMerge pull request #426 from galsalomon66/revert_install_arrow
Ali Maredia [Thu, 13 Jan 2022 21:31:30 +0000 (16:31 -0500)]
Merge pull request #426 from galsalomon66/revert_install_arrow

revert the arrow installation(causing failure on some distro"s, such …

3 years agorevert the arrow installation(causing failure on some distro"s, such as fedora) 426/head
gal salomon [Wed, 12 Jan 2022 17:01:06 +0000 (19:01 +0200)]
revert the arrow installation(causing failure on some distro"s, such as fedora)

Signed-off-by: gal salomon <gal.salomon@gmail.com>
3 years agoMerge pull request #419 from galsalomon66/parquet_s3tests
Gal Salomon [Tue, 11 Jan 2022 21:15:08 +0000 (23:15 +0200)]
Merge pull request #419 from galsalomon66/parquet_s3tests

parquet tests

3 years agofix output-serialization tests(upon comparing query results need to remove redundant... 419/head
gal salomon [Tue, 28 Dec 2021 15:08:17 +0000 (17:08 +0200)]
fix output-serialization tests(upon comparing query results need to remove redundant columns)

skip output-serial test. the results from both queries are not equal, thus it raise an assert. the problem seems to be the formatting before the comparision

remove test_output_serial_expressions until fixing the test

experiment pyarrow for parquet testing, adding arrow/parquet to bootstrap, installing pyarrow,pandas for reading/writing parquet

Signed-off-by: gal salomon <gal.salomon@gmail.com>
3 years agoImproving check_grants reliability 424/head
Pragadeeswaran Sathyanarayanan [Tue, 28 Dec 2021 15:26:23 +0000 (20:56 +0530)]
Improving check_grants reliability

Signed-off-by: Pragadeeswaran Sathyanarayanan <psathyan@redhat.com>
3 years agomerging master tests into parquet branch
gal salomon [Mon, 27 Dec 2021 19:46:59 +0000 (21:46 +0200)]
merging master tests into parquet branch

Signed-off-by: gal salomon <gal.salomon@gmail.com>
3 years agofix for assert of error messages
gal salomon [Tue, 21 Dec 2021 08:02:42 +0000 (10:02 +0200)]
fix for assert of error messages

Signed-off-by: gal salomon <gal.salomon@gmail.com>
3 years agoremove redundant comma. s3select-engine produced redundant result column before...
gal salomon [Tue, 7 Dec 2021 15:02:21 +0000 (17:02 +0200)]
remove redundant comma.  s3select-engine produced redundant result column before its last fix, s3tests should align with that

Signed-off-by: gal salomon <gal.salomon@gmail.com>
3 years agoMerge pull request #402 from galsalomon66/progress-stats
Ali Maredia [Mon, 20 Dec 2021 15:37:14 +0000 (10:37 -0500)]
Merge pull request #402 from galsalomon66/progress-stats

s3select-tests:  new-s3select-responses, output-serialization, presto alignments

4 years agoadding datatime queries from #395 402/head
galsalomon66 [Thu, 25 Nov 2021 09:57:52 +0000 (11:57 +0200)]
adding datatime queries from #395

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
4 years agoMerge pull request #415 from cbodley/wip-list-multipart-owner
Ali Maredia [Thu, 18 Nov 2021 19:31:12 +0000 (14:31 -0500)]
Merge pull request #415 from cbodley/wip-list-multipart-owner

check Owner/Initiator fields of ListMultipartUploads response

4 years agorollback to use like without escape syntax (explore valgrind issue)
galsalomon66 [Fri, 12 Nov 2021 09:39:45 +0000 (11:39 +0200)]
rollback to use like without escape syntax (explore valgrind issue)

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
4 years agomodify the queries syntax to like-escape; the queries semantics is the same; results...
galsalomon66 [Thu, 11 Nov 2021 14:15:49 +0000 (16:15 +0200)]
modify the queries syntax to like-escape; the queries semantics is the same; results are the same; it is a part of exploring valgrind issue around like-operator

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
4 years agocheck Owner/Initiator fields of ListMultipartUploads response 415/head
Casey Bodley [Fri, 29 Oct 2021 17:06:30 +0000 (13:06 -0400)]
check Owner/Initiator fields of ListMultipartUploads response

new test case test_list_multipart_upload_owner() uses two different
users to initiate multipart uploads, then tests that
list_multipart_uploads() shows the correct user ids and display names
for each upload

Signed-off-by: Casey Bodley <cbodley@redhat.com>
4 years agoadd output-serialization tests; add syntax-error tests; run_s3select_output should...
galsalomon66 [Thu, 21 Oct 2021 00:32:57 +0000 (03:32 +0300)]
add output-serialization tests; add syntax-error tests; run_s3select_output should merge into run_s3select

Signed-off-by: galsalomon66 <gal.salomon@gmail.com>
4 years agoremove comments from the like-expressions
gal salomon [Sun, 17 Oct 2021 11:03:39 +0000 (14:03 +0300)]
remove comments from the like-expressions

Signed-off-by: gal salomon <gal.salomon@gmail.com>
4 years agoMerge pull request #400 from iraj465/wip-new-multi-delete-objects-tests
Ali Maredia [Wed, 8 Sep 2021 19:58:40 +0000 (15:58 -0400)]
Merge pull request #400 from iraj465/wip-new-multi-delete-objects-tests

rgw/s3_boto3:Adds new delete_objects tests

4 years agoMerge pull request #411 from mkogan1/multipart-extra-complete2
Ali Maredia [Wed, 8 Sep 2021 14:44:20 +0000 (10:44 -0400)]
Merge pull request #411 from mkogan1/multipart-extra-complete2

test extra complete_multipart_upload()

4 years agotest extra complete_multipart_upload() 411/head
Mark Kogan [Sun, 25 Apr 2021 11:21:26 +0000 (14:21 +0300)]
test extra complete_multipart_upload()

After the 1st successfull one should also return 200 OK

related tracker issue: https://tracker.ceph.com/issues/50141
related pr: https://github.com/ceph/ceph/pull/40594

Signed-off-by: Mark Kogan <mkogan@redhat.com>
4 years agoMerge pull request #410 from Rjerk/wip-fix-doc-example
Ali Maredia [Tue, 7 Sep 2021 20:06:14 +0000 (16:06 -0400)]
Merge pull request #410 from Rjerk/wip-fix-doc-example

docs: fix wrong example in README.rst

4 years agodocs: fix wrong example in README.rst 410/head
Liu Lan [Mon, 6 Sep 2021 11:25:09 +0000 (19:25 +0800)]
docs: fix wrong example in README.rst

Run: S3TEST_CONF=your.conf ./virtualenv/bin/nosetests s3tests.functional.test_s3:test_bucket_list_empty

But get an error: "ERROR: Failure: ValueError (No such test test_bucket_list_empty)".

Because test_bucket_list_empty is a test case in s3tests_boto3 directory.

Signed-off-by: Liu Lan <liulan_yewu@cmss.chinamobile.com>
4 years agoMerge pull request #403 from pritha-srivastava/wip-rgw-sts-abac
Ali Maredia [Fri, 3 Sep 2021 14:57:08 +0000 (10:57 -0400)]
Merge pull request #403 from pritha-srivastava/wip-rgw-sts-abac

rgw sts abac tests

4 years agorgw/sts: test to use role tag as iam:ResourceTag in 403/head
Pritha Srivastava [Fri, 23 Jul 2021 06:38:07 +0000 (12:08 +0530)]
rgw/sts: test to use role tag as iam:ResourceTag in
role's trust policy.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
4 years agorgw/sts: test for s3:ResourceTag in role's permission policy
Pritha Srivastava [Fri, 16 Jul 2021 07:47:54 +0000 (13:17 +0530)]
rgw/sts: test for s3:ResourceTag in role's permission policy

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
4 years agorgw/sts: adding test for aws:TagKeys that can be used in the
Pritha Srivastava [Thu, 15 Jul 2021 10:10:04 +0000 (15:40 +0530)]
rgw/sts: adding test for aws:TagKeys that can be used in the
condition element of the role's trust policy and the role's
permission policy.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
4 years agorgw/sts: adding test for aws:PrincipalTag in role permission
Pritha Srivastava [Thu, 15 Jul 2021 08:45:54 +0000 (14:15 +0530)]
rgw/sts: adding test for aws:PrincipalTag in role permission
policy.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
4 years agorgw/sts: adding test to check for aws:RequestTag
Pritha Srivastava [Thu, 15 Jul 2021 08:03:08 +0000 (13:33 +0530)]
rgw/sts: adding test to check for aws:RequestTag
in the condition element of a role's trust policy.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
4 years agorgw/sts: adding tests for testing assumerolewithwebidentity
Pritha Srivastava [Wed, 14 Jul 2021 10:10:39 +0000 (15:40 +0530)]
rgw/sts: adding tests for testing assumerolewithwebidentity
using 'sub' and 'azp' fields in the web token.

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
4 years agoMerge pull request #408 from cbodley/wip-52037
Ali Maredia [Wed, 11 Aug 2021 17:49:57 +0000 (13:49 -0400)]
Merge pull request #408 from cbodley/wip-52037

object-lock: test changes between retention modes

4 years agoMerge pull request #409 from ceph/wip-ssl-verify-fix
Ali Maredia [Wed, 11 Aug 2021 17:13:59 +0000 (13:13 -0400)]
Merge pull request #409 from ceph/wip-ssl-verify-fix

Disable ssl verify by default

4 years agodisable ssl verify by default wip-ssl-verify-fix 409/head
Ali Maredia [Tue, 10 Aug 2021 18:41:05 +0000 (14:41 -0400)]
disable ssl verify by default

Signed-off-by: Ali Maredia <amaredia@redhat.com>
4 years agoMerge pull request #405 from psathyan/wip-ssl-verify
Ali Maredia [Mon, 9 Aug 2021 16:01:25 +0000 (12:01 -0400)]
Merge pull request #405 from psathyan/wip-ssl-verify

Add support for disabling SSL certificate verification

4 years agoAdd support for disabling SSL certificate verification 405/head
Pragadeeswaran Sathyanarayanan [Fri, 30 Jul 2021 04:14:29 +0000 (09:44 +0530)]
Add support for disabling SSL certificate verification

Signed-off-by: Pragadeeswaran Sathyanarayanan <psathyan@redhat.com>
4 years agoMerge pull request #365 from markhoughton-microfocus/issue_47586_tests
Casey Bodley [Thu, 5 Aug 2021 15:28:44 +0000 (11:28 -0400)]
Merge pull request #365 from markhoughton-microfocus/issue_47586_tests

Tests for multi-object delete with object lock

4 years agoAdd tests for issue 47586. 365/head
Mark Houghton [Mon, 19 Oct 2020 16:58:56 +0000 (17:58 +0100)]
Add tests for issue 47586.

4 years agoobject-lock: test changes between retention modes 408/head
Casey Bodley [Tue, 3 Aug 2021 21:04:15 +0000 (17:04 -0400)]
object-lock: test changes between retention modes

Signed-off-by: Casey Bodley <cbodley@redhat.com>
4 years agonuke_prefixed_buckets waits up to 60 seconds for object locks to expire
Casey Bodley [Wed, 4 Aug 2021 19:00:04 +0000 (15:00 -0400)]
nuke_prefixed_buckets waits up to 60 seconds for object locks to expire

objects locked in GOVERNANCE mode can be removed with
BypassGovernanceRetention, but some tests may leave an object locked in
COMPLIANCE mode, which blocks deletion until the retention period
expires

nuke_prefixed_buckets now checks the retention policy of objects that it
fails to delete with AccessDenied, and will wait up to 60 seconds for
locks to expire before retrying the deletes. if the wait exceeds 60
seconds, it instead throws an error without deleting the bucket

instead of doing this in nuke_prefixed_buckets, we could potentially
have each object-lock test case handle this manually, but that would
add a separate delay to each test case

Signed-off-by: Casey Bodley <cbodley@redhat.com>
4 years agonuke_prefixed_buckets deletes objects in batches
Casey Bodley [Wed, 4 Aug 2021 17:56:39 +0000 (13:56 -0400)]
nuke_prefixed_buckets deletes objects in batches

speed up the cleanup by using delete_objects() with batches of 128

Signed-off-by: Casey Bodley <cbodley@redhat.com>