Matt Benjamin
ea9f07a2bf
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-10-01 11:29:45 -04:00
root
7d14452035
STS Tests Files and modification in __init__.py
...
Signed-off-by: Kalpesh Pandya <kapandya@redhat.com>
2020-09-16 01:40:33 -04:00
gal salomon
6ea6cb6467
add filter for s3select tests
...
Signed-off-by: gal salomon <gal.salomon@gmail.com>
(cherry picked from commit fce9a52ef4
)
2020-07-07 07:38:41 -04:00
gal salomon
10c801a2e0
fix comments;remove non-used imports;enable test for projection;using get_client()
...
(cherry picked from commit 72e251ed69
)
2020-06-25 13:42:23 -04:00
gal salomon
9d670846a3
adding radom-generated tests, one for where clause , the second for prjection. random arithmetical expression is generated and used for building s3-select query; result is compared to python-engine
...
(cherry picked from commit fb39ac4829
)
2020-06-25 13:42:23 -04:00
gal salomon
bb801b8625
python linter; replace assert with assert_equal; add complex query test(sum,count,where); add test-schema ;
...
(cherry picked from commit e006dd4753
)
2020-06-25 13:42:23 -04:00
gal salomon
652619f46f
using config parameters
...
(cherry picked from commit 1a9d3677f7
)
2020-06-25 13:42:23 -04:00
gal salomon
b1ddeee6eb
add tests to validate csv-header-info functionalities is correct
...
(cherry picked from commit 5dc8bc75ab
)
2020-06-25 13:42:23 -04:00
gal salomon
ca9cb5cc2c
adding test cases for processing CSV objects with different CSV definitions; validate null,escape-rules and quotes are processed correctly
...
(cherry picked from commit 94b1986228
)
2020-06-25 13:42:23 -04:00
gal salomon
e010c4cfec
adding utcnow test
...
(cherry picked from commit 4c7c279f70
)
2020-06-25 13:42:23 -04:00
gal salomon
edea887e9c
adding tests for date-time functionalities
...
(cherry picked from commit 5925f0fb3f
)
2020-06-25 13:42:23 -04:00
gal salomon
cd4f7e1a7a
add complex expression tests; for nested function calls; and different where-clause which create the same group of values
...
(cherry picked from commit c1bce6ac70
)
2020-06-25 13:42:23 -04:00
gal salomon
048f9297a1
adding test for detection of cyclic reference to alias
...
(cherry picked from commit d543619e71
)
2020-06-25 13:42:23 -04:00
gal salomon
8bd6158054
adding aggregation tests
...
(cherry picked from commit f42872fd53
)
2020-06-25 13:42:23 -04:00
gal salomon
aca68a9d39
adding alias test case
...
(cherry picked from commit 74daf86fe5
)
2020-06-25 13:42:23 -04:00
gal salomon
537431c686
commit first tests for s3select and initial framework
...
(cherry picked from commit dac38694ef
)
2020-06-25 13:42:23 -04:00
Matt Benjamin
8ca96c4519
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-26 11:07:53 -04:00
Abhishek Lekshmanan
7b3df700cc
fix ignore public acls with py3 compatible code
...
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 4d675235dd
)
2020-03-26 16:28:12 +01:00
Abhishek Lekshmanan
4fc133b1b5
add tests for ignore public acls
...
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 3b1571ace6
)
2020-03-26 16:28:12 +01:00
Abhishek Lekshmanan
0a495efc8c
add test for block public policy
...
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit b4516725f2
)
2020-03-26 16:28:12 +01:00
Abhishek Lekshmanan
a48cf75391
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>
(cherry picked from commit d02c1819f6
)
2020-03-26 16:28:12 +01:00
Abhishek Lekshmanan
a20e0d47f2
remove redundant get_client calls
...
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 4996430709
)
2020-03-26 16:28:12 +01:00
Abhishek Lekshmanan
19947bd541
add ability to get svc client for s3config set of apis
...
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 6d3f574a8e
)
2020-03-26 16:26:39 +01:00
Abhishek Lekshmanan
94168194fd
add tests for public access configuration
...
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 1ad38530e0
)
2020-03-26 16:26:19 +01:00
Abhishek Lekshmanan
0e3084c995
add a few test cases for public bucket policies
...
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 3f9d31c6c7
)
2020-03-26 16:24:14 +01:00
Abhishek Lekshmanan
1d39198872
boto3: add bucket policy status checks for public ACLs
...
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 02b1d50ca7
)
2020-03-26 16:23:46 +01:00
Casey Bodley
13452bd25f
Merge pull request #337 from ceph/wip-python-3-port
...
Wip python 3 port
2020-01-15 08:48:54 -05:00
Ali Maredia
024e74c469
remove all non-functional tests and infra
...
Signed-off-by: Ali Maredia <amaredia@redhat.com>
2020-01-14 12:20:07 -05:00
Adam C. Emerson
be9935ba1a
Port functional tests from python 2 to python 3
...
Add fails_on_rgw to tests not passing. Some
tests from the master branch do not pass on the
rgw yet. Others waiting on rgw tracker issues to
be resolved.
Signed-off-by: Ali Maredia <amaredia@redhat.com>
2020-01-14 12:20:05 -05:00
Abhishek L
c9c84faf48
Merge pull request #314 from theanalyst/iam/user-policy-basic
...
iam: add a very basic user policy smoke test
Reviewed-By: Casey Bodley <cbodley@redhat.com>
Reviewed-By: Pritha Srivastava <prsivas@redhat.com>
Reviewed-By: Yuval Lifshitz <yuvalif@yahoo.com>
2019-12-20 18:30:21 +01:00
Abhishek L
aa453fa5c3
Merge pull request #311 from theanalyst/encoding-type
...
list-objects: add basic tests for encoding
Reviewed-By: Casey Bodley <cbodley@redhat.com>
2019-12-20 18:28:23 +01:00
Abhishek Lekshmanan
045ad2f46e
iam: explicitly set a region for the iam client
...
Avoids region not defined errors
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2019-12-20 18:17:58 +01:00
Abhishek Lekshmanan
48be90a64e
iam: add a very basic user policy smoke test
...
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2019-12-20 18:17:55 +01:00
Ali Maredia
fc195db725
Merge pull request #321 from romayalon/tags-order-fix
...
test_put_obj_with_tags
2019-12-10 13:04:08 -05:00
Ali Maredia
dd44c92340
Merge pull request #156 from gaul/read-unreadable-object
...
Test reading an unreadable object
2019-11-25 00:22:44 -05:00
Andrew Gaul
b787b79d81
Ignore missing x-rgw-* headers
...
Continue to require them in test_bucket_head_extended. Only Ceph
supports these headers.
Signed-off-by: Andrew Gaul <andrew@gaul.org>
2019-11-24 22:02:19 +09:00
Andrew Gaul
2160a6a403
Test reading an unreadable object
...
Signed-off-by: Andrew Gaul <andrew@gaul.org>
2019-11-24 21:48:36 +09:00
Romy
a2598dcdea
fix lists compare
2019-11-06 13:39:29 +02:00
Ali Maredia
5cb2bcdf89
Merge pull request #307 from peter-ginchev/fix_listobjects_v2_tests
...
Fix validate_bucket_listv2
2019-10-28 23:56:38 -04:00
Abhishek Lekshmanan
04b5e63238
list-objects: add basic tests for encoding
...
Fixes: https://tracker.ceph.com/issues/41870
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2019-10-18 16:22:50 +02:00
Andrea Baglioni
b051efdada
sse-kms test keys parametrization
...
Signed-off-by: Andrea Baglioni <andrea.baglioni@workday.com>
2019-10-07 11:53:45 +01:00
Andrea Baglioni
4f9710a23b
sse-kms: adding missing kms test to parametrization
2019-10-07 11:53:30 +01:00
Peter Ginchev
2a475a408a
Fix validate_bucket_listv2
...
NextContinuationToken is not cleartext, and we shouldn't assume that.
Also, the test should use it for ContinuationToken
2019-09-30 14:38:45 +03:00
Soumya Koduri
15d4dd96c5
Fix create_bucket tests as per new bucket naming conventions
...
As per amazon s3 spec -
https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-s3-bucket-naming-requirements.html
The s3 bucket names should not contain upper case letters or underscore.
Name cannot end with dash or have consecutive periods, or dashes adjacent to periods
Name length shouldn't exceed 63 characters.
These rules are being enforced via
- https://github.com/ceph/ceph/pull/26787
This patch is to update the respective testcases as well.
Note: check_invalid_bucket_name() seems to have been broken. It should
try to create bucket using invalid name. Have addressed it in this
patch. Because of this few testcases (which were incorrectly passing
earlier) are failing in validate_bucket_name. Have marked them
'fails_on_rgw' as done for test_bucket_create_naming_bad_punctuation
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
2019-09-24 13:48:58 -04:00
Casey Bodley
8f732422ca
Merge pull request #286 from zhangsw/lifecycle-expiration-versioning
...
Add a case for lifecycle expiration on versining enabled bucket.
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2019-08-30 08:58:30 -04:00
Ali Maredia
dab15076fe
Merge pull request #297 from albin-antony/mutuallyexclusive
...
startafter and continuation token shouldn't be returned if they are not specified in the request
2019-08-22 14:13:09 -04:00
albIN7
1ba6187525
startafter or continuation token shouldn't be returned if they are not specified in the request
...
Signed-off-by: Albin Antony <aantony@redhat.com>
2019-08-06 21:18:43 +05:30
Tianshan Qu
773edab4b9
add test case for list with delimiter not skip special keys
...
Signed-off-by: Tianshan Qu <tianshan@xsky.com>
2019-07-26 11:15:28 +08:00
Ali Maredia
968778e81b
Merge pull request #96 from gaul/if-match
...
Test copy if-match and if-none-match
2019-07-23 14:27:26 -04:00
Ali Maredia
75f748f211
Merge pull request #291 from zhangsw/listobjectv2
...
Add a test case for continuation token in list objects v2
2019-07-23 13:51:59 -04:00