Soumya Koduri
bacab3cadf
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>
2022-04-27 15:44:40 +05:30
Soumya Koduri
d20d8d2207
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>
2022-03-22 00:51:30 +05:30
Soumya Koduri
cb830ebae1
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>
2022-02-07 23:24:34 +05:30
Soumya Koduri
0f3f35ef01
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>
2022-02-02 00:05:30 +05:30
Soumya Koduri
47292aee17
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>
2022-02-02 00:05:30 +05:30
Pragadeeswaran Sathyanarayanan
5f96a32045
Improving check_grants reliability
...
Signed-off-by: Pragadeeswaran Sathyanarayanan <psathyan@redhat.com>
2022-01-10 22:00:21 +05:30
Casey Bodley
490d0a4c4f
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>
2021-10-29 13:13:19 -04:00
Ali Maredia
687ab24e7d
Merge pull request #400 from iraj465/wip-new-multi-delete-objects-tests
...
rgw/s3_boto3:Adds new delete_objects tests
2021-09-08 15:58:40 -04:00
Mark Kogan
99d4b329e2
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>
2021-09-08 15:32:48 +03:00
Ali Maredia
96438f44e4
Merge pull request #408 from cbodley/wip-52037
...
object-lock: test changes between retention modes
2021-08-11 13:49:57 -04:00
Pragadeeswaran Sathyanarayanan
ea3caaa76b
Add support for disabling SSL certificate verification
...
Signed-off-by: Pragadeeswaran Sathyanarayanan <psathyan@redhat.com>
2021-08-08 16:27:55 +05:30
Mark Houghton
7fe0304e9c
Add tests for issue 47586.
2021-08-05 11:26:12 -04:00
Casey Bodley
8662815ebe
object-lock: test changes between retention modes
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2021-08-05 10:50:37 -04:00
Rahul Dev Parashar
44643af0b0
rgw/s3_boto3: Add tests for bucket encryption APIs
...
Tests are added for GetBucketEncryption, PutBucketEncryption,
and DeleteBucketEncryption APIs.
Related PR: https://github.com/ceph/ceph/pull/42222
Signed-off-by: Rahul Dev Parashar <rahul.dev@flipkart.com>
2021-07-26 20:23:07 +05:30
Ali Maredia
700a04737a
Merge pull request #401 from SoftIron/object-retention-iso8601
...
Add test to check retain date is in iso 8601 format
2021-07-15 20:47:07 -04:00
iraj465
d2a7ed88f1
chore:Removes unused scaffolds
2021-07-16 03:29:36 +05:30
iraj465
459e3c870a
rgw/boto3_s3:Adds delete_objects key limit for list-objects-v2
2021-07-16 03:15:53 +05:30
iraj465
20aa9aa071
chore:Bump the list-objects to paginator
2021-07-16 03:07:21 +05:30
Danny Abukalam
e229d1aaf6
Add test to check retain date is in iso 8601 format
...
Signed-off-by: Danny Abukalam <danny@softiron.com>
2021-07-15 12:52:37 -04:00
iraj465
64bdc3beec
rgw/s3_boto3:Adds new delete_objects tests for checking key delete limit
2021-07-13 23:20:35 +05:30
iraj465
ba9525f425
rgw/s3_boto3:Adds lifecycle transition test for invalid iso8601 date
2021-07-13 23:14:51 +05:30
Casey Bodley
7bd3c432fc
Merge pull request #386 from cbodley/wip-bucket-ctime
...
test that listed buckets have creation time
2021-06-28 11:09:11 -04:00
Or Friedmann
cfdf914c4b
test multipart upload with bucket policy
...
Signed-off-by: Or Friedmann <ofriedma@redhat.com>
2021-05-18 12:04:46 +03:00
Casey Bodley
66ced9af1d
test that listed buckets have creation time
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2021-03-11 16:48:04 -05:00
Or Friedmann
ef8f65d917
Add test for head bucket usage headers
...
Signed-off-by: Or Friedmann <ofriedma@redhat.com>
2020-12-03 18:28:40 +02:00
Or Friedmann
f4f7812efd
Add test for GetUsage api
...
Signed-off-by: Or Friedmann <ofriedma@redhat.com>
2020-12-03 17:53:50 +02:00
Ali Maredia
cd1794f3c7
Merge pull request #363 from linuxbox2/master-headbucket-dne
...
Add test for HeadBucket on a non-existent bucket
2020-11-24 23:57:51 -05:00
Or Friedmann
8638017020
Test expiration header for lc rules with tags
...
Signed-off-by: Or Friedmann <ofriedma@redhat.com>
2020-10-20 19:30:55 +03:00
Casey Bodley
a48a9bf6d1
Merge pull request #356 from cbodley/wip-test-bucket-recreate-acl
...
test bucket recreation with different acls
2020-10-08 10:37:09 -04:00
Matt Benjamin
16266d1590
Add test for HeadBucket on a non-existent bucket
...
n.b., RGW does not send a response document for this operation,
which seems consistent with
https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadBucket.html
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2020-10-08 09:30:50 -04:00
Matt Benjamin
4e3fd5ff41
Merge pull request #359 from huww98/master
...
Test list_objects_v2 KeyCount with Delimiter
2020-10-02 12:41:19 -04:00
胡玮文
30db28e775
Test list_objects_v2 KeyCount with Delimiter
...
Test for: https://github.com/ceph/ceph/pull/37396
Signed-off-by: 胡玮文 <huww98@outlook.com>
2020-09-25 00:28:15 +08:00
Matt Benjamin
f0868651fd
add noncurrent version expiration rule w/tag filter
...
Create 10 object versions (9 noncurrent). Install a noncurrent
version expiration at 4 days. Verify that 10 versions exist at
T+20, and only 1 (current) at T+60.
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2020-09-16 13:19:41 -04:00
Matt Benjamin
6ff497d908
add lifecycle expiration test mixing 2-tag filter w/versioning
...
By design this test duplicates test_lifecycle_expiration_tags2,
but enables object versioning on the bucket.
The tests install a rule which requires -2- tags to be matched,
and creates 2 objects, one matching only 1 of the required tags,
the other matching both. Only the 2nd object should expire.
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2020-09-15 09:57:00 -04:00
Matt Benjamin
e79dffa731
add tests for lifecycle expiration w/1 and 2 object tags
...
Note that the 1-tag case contains a filter prefix--which exposes
an apparent bug parsing Filter when it contains a Prefix element
and a single Tag element (without And).
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2020-09-14 19:06:32 -04:00
Matt Benjamin
c2b59fb714
fix lifecycle expiration days: 0
...
In fact test_lifecycle_expiration_days0 is should fail, as 0-day
expiration is permitted for transition rules but not expiration
rules.
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2020-09-14 14:23:48 -04:00
Matt Benjamin
9d526d1a76
s/test_set_tagging/test_set_bucket_tagging/;
...
The test exercises bucket tagging, has nothing to do with object
tagging (clarity).
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2020-09-11 13:52:29 -04:00
Matt Benjamin
979e739eff
fix test_lifecycle_expiration_header_{put,head}
...
Primarily fixes the expiration header() verifier function
check_lifecycle_expiration_header, but also cleans up
prefix handling in setup_lifecycle_expiration().
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2020-09-11 13:23:41 -04:00
Matt Benjamin
4948f8b009
fix and remark on test_lifecycle_expiration_days0
...
1. fix a python3-related KeyError exception
2. note here: AWS documentation includes examples of "Days 0"
in use, but boto3 will not accept them--this is why the days0
test currently sets Days 1
3. delay increased to 30s, to avoid occasional failures due to
jitter
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2020-09-11 10:43:14 -04:00
Casey Bodley
f6218fa1de
test bucket recreation with different acls
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2020-09-10 14:40:18 -04:00
Matt Benjamin
b6db7bdd8a
fix/restore test_lifecycle_expiration checks
...
Commit bf956df71e
adding
listobvjectsv2 tests inadvertently changed the v1
test_lifecycle_expiration test, which it had copied to
create a v2 version. Revert this.
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2020-05-19 08:41:39 -04:00
Abhishek Lekshmanan
4d675235dd
fix ignore public acls with py3 compatible code
...
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2020-01-22 17:06:09 +01:00
Abhishek Lekshmanan
3b1571ace6
add tests for ignore public acls
...
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2020-01-22 17:03:21 +01:00
Abhishek Lekshmanan
b4516725f2
add test for block public policy
...
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2020-01-22 17:03:21 +01:00
Abhishek Lekshmanan
d02c1819f6
use empty bodies for canned acl tests with BlockPublicAccess
...
This should be a temporary workaround until #42208 is fixed
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2020-01-22 17:03:21 +01:00
Abhishek Lekshmanan
4996430709
remove redundant get_client calls
...
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2020-01-22 17:03:21 +01:00
Abhishek Lekshmanan
6d3f574a8e
add ability to get svc client for s3config set of apis
...
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2020-01-22 17:03:10 +01:00
Abhishek Lekshmanan
1ad38530e0
add tests for public access configuration
...
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2020-01-22 17:01:41 +01:00
Abhishek Lekshmanan
3f9d31c6c7
add a few test cases for public bucket policies
...
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2020-01-22 17:01:40 +01:00
Abhishek Lekshmanan
02b1d50ca7
boto3: add bucket policy status checks for public ACLs
...
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2020-01-22 17:01:30 +01:00