]> git.apps.os.sepia.ceph.com Git - s3-tests.git/log
s3-tests.git
2 years agoMerge pull request #484 from yuvalif/fix-sts-error-handling
Casey Bodley [Mon, 20 Feb 2023 16:48:41 +0000 (11:48 -0500)]
Merge pull request #484 from yuvalif/fix-sts-error-handling

better error handling in the STS tests

2 years agoMerge pull request #487 from robbat2/rgw_post_content_length
Casey Bodley [Mon, 20 Feb 2023 14:28:53 +0000 (09:28 -0500)]
Merge pull request #487 from robbat2/rgw_post_content_length

test_post_object_upload_size_below_minimum_rgw_max_chunk_size: new testcase for size validation bug

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2 years agotest_post_object_upload_size_rgw_chunk_size_bug: new testcase 487/head
Robin H. Johnson [Wed, 1 Feb 2023 00:39:39 +0000 (16:39 -0800)]
test_post_object_upload_size_rgw_chunk_size_bug: new testcase

`ERR_TOO_SMALL` is wrongly returned if all of the following are true,
- the get_data returns multiple items (chunks)
- the length of the last item is smaller than the POST Policy's min
  value for content-length-range.

The check should be `(ofs < min_len)` instead of `(len < min_len)`

This is further confirmed by the next line of `s->obj_size = ofs`

Move the `int len` scope inside loop to try and prevent the bug in
future.

The bug was refactored in 2016, but was introduced in Oct 2012, when
this functionality was first added to RGW in commit 7bb3504d3f0974e9863f536e9af0ce8889d6888f.

Reference: https://github.com/ceph/ceph/blob/933a42f9af349b3b222270e7f19f1fe151d89e8e/src/rgw/rgw_op.cc#L4474-L4513
Reference: https://github.com/ceph/ceph/commit/7bb3504d3f0974e9863f536e9af0ce8889d6888f
Signed-off-by: Robin H. Johnson <rjohnson@digitalocean.com>
2 years agobetter error handling in the STS tests 484/head
Yuval Lifshitz [Wed, 25 Jan 2023 09:12:20 +0000 (11:12 +0200)]
better error handling in the STS tests

also, give more accurate instruction on how to run the tests

Signed-off-by: Yuval Lifshitz <ylifshit@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>
2 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

2 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